本文整理汇总了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);
}
示例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();
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}