当前位置: 首页>>代码示例>>Java>>正文


Java Assets.getTextureRegion方法代码示例

本文整理汇总了Java中ethanjones.cubes.graphics.assets.Assets.getTextureRegion方法的典型用法代码示例。如果您正苦于以下问题:Java Assets.getTextureRegion方法的具体用法?Java Assets.getTextureRegion怎么用?Java Assets.getTextureRegion使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ethanjones.cubes.graphics.assets.Assets的用法示例。


在下文中一共展示了Assets.getTextureRegion方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SplashMenu

import ethanjones.cubes.graphics.assets.Assets; //导入方法依赖的package包/类
public SplashMenu() {
  logo = new Image(new TextureRegionDrawable(Assets.getTextureRegion("core:logo.png")), Scaling.fillY, Align.center);
  text = new Label("Loading " + Branding.DEBUG, new Label.LabelStyle(Fonts.smallHUD, Color.WHITE));

  stage.addActor(logo);
  stage.addActor(text);
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:8,代码来源:SplashMenu.java

示例2: LogMenu

import ethanjones.cubes.graphics.assets.Assets; //导入方法依赖的package包/类
public LogMenu() {
  label = new Label("", new LabelStyle(Fonts.smallHUD, Color.BLACK));
  label.setWrap(true);
  Drawable background = new TextureRegionDrawable(Assets.getTextureRegion("core:hud/LogBackground.png"));
  scrollPane = new ScrollPane(label, new ScrollPaneStyle(background, null, null, null, null));
  scrollPane.setScrollingDisabled(true, false);
  back = MenuTools.getBackButton(this);
  
  stage.addActor(scrollPane);
  stage.addActor(back);
  
  refresh();
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:14,代码来源:LogMenu.java

示例3: jumpButton

import ethanjones.cubes.graphics.assets.Assets; //导入方法依赖的package包/类
public static ImageButton.ImageButtonStyle jumpButton() {
  TextureRegionDrawable t = new TextureRegionDrawable(Assets.getTextureRegion("core:hud/touch/JumpButton.png"));
  return new ImageButton.ImageButtonStyle(t, t, null, null, null, null);
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:5,代码来源:ImageButtons.java

示例4: descendButton

import ethanjones.cubes.graphics.assets.Assets; //导入方法依赖的package包/类
public static ImageButton.ImageButtonStyle descendButton() {
  TextureRegionDrawable t = new TextureRegionDrawable(Assets.getTextureRegion("core:hud/touch/DescendButton.png"));
  return new ImageButton.ImageButtonStyle(t, t, null, null, null, null);
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:5,代码来源:ImageButtons.java

示例5: blocksButton

import ethanjones.cubes.graphics.assets.Assets; //导入方法依赖的package包/类
public static ImageButton.ImageButtonStyle blocksButton() {
  TextureRegionDrawable up = new TextureRegionDrawable(Assets.getTextureRegion("core:hud/touch/BlocksButtonUp.png"));
  TextureRegionDrawable down = new TextureRegionDrawable(Assets.getTextureRegion("core:hud/touch/BlocksButtonDown.png"));
  return new ImageButton.ImageButtonStyle(up, down, null, null, null, null);
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:6,代码来源:ImageButtons.java

示例6: chatButton

import ethanjones.cubes.graphics.assets.Assets; //导入方法依赖的package包/类
public static ImageButton.ImageButtonStyle chatButton() {
  TextureRegionDrawable up = new TextureRegionDrawable(Assets.getTextureRegion("core:hud/touch/ChatButtonUp.png"));
  TextureRegionDrawable down = new TextureRegionDrawable(Assets.getTextureRegion("core:hud/touch/ChatButtonDown.png"));
  return new ImageButton.ImageButtonStyle(up, down, null, null, null, null);
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:6,代码来源:ImageButtons.java

示例7: debugButton

import ethanjones.cubes.graphics.assets.Assets; //导入方法依赖的package包/类
public static ImageButton.ImageButtonStyle debugButton() {
  TextureRegionDrawable up = new TextureRegionDrawable(Assets.getTextureRegion("core:hud/touch/DebugButtonUp.png"));
  TextureRegionDrawable down = new TextureRegionDrawable(Assets.getTextureRegion("core:hud/touch/DebugButtonDown.png"));
  return new ImageButton.ImageButtonStyle(up, down, null, null, null, null);
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:6,代码来源:ImageButtons.java

示例8: inventoryModifierButton

import ethanjones.cubes.graphics.assets.Assets; //导入方法依赖的package包/类
public static ImageButton.ImageButtonStyle inventoryModifierButton() {
  TextureRegionDrawable up = new TextureRegionDrawable(Assets.getTextureRegion("core:hud/touch/InventoryModifierButtonUp.png"));
  TextureRegionDrawable down = new TextureRegionDrawable(Assets.getTextureRegion("core:hud/touch/InventoryModifierButtonDown.png"));
  return new ImageButton.ImageButtonStyle(up, down, null, null, null, null);
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:6,代码来源:ImageButtons.java


注:本文中的ethanjones.cubes.graphics.assets.Assets.getTextureRegion方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。