本文整理汇总了Java中ethanjones.cubes.graphics.assets.Assets类的典型用法代码示例。如果您正苦于以下问题:Java Assets类的具体用法?Java Assets怎么用?Java Assets使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Assets类属于ethanjones.cubes.graphics.assets包,在下文中一共展示了Assets类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: preInit
import ethanjones.cubes.graphics.assets.Assets; //导入依赖的package包/类
public static void preInit(AdapterInterface aI) {
if (preInit)
return;
preInit = true;
if (Compatibility.get() == null) {
Log.error(new CubesException("No Compatibility module for this platform: " + Gdx.app.getType().name()
+ ", OS: " + System.getProperty("os.name") + ", Arch:" + System.getProperty("os.arch")));
}
Cubes.adapterInterface = aI;
Compatibility.get().getBaseFolder().mkdirs();
Log.info(Branding.DEBUG); // Can't log till base folder setup
Log.info("https://github.com/ictrobot/Cubes");
Debug.printProperties();
Compatibility.get().logEnvironment();
Executor.init();
Assets.preInit();
}
示例2: preInit
import ethanjones.cubes.graphics.assets.Assets; //导入依赖的package包/类
public static void preInit(AdapterInterface adapterInterface) {
if (preInit) return;
preInit = true;
if (Compatibility.get() == null) {
Log.error(new CubesException("No Compatibility module for this platform: " + Gdx.app.getType().name() + ", OS: " + System.getProperty("os.name") + ", Arch:" + System.getProperty("os.arch")));
}
Cubes.adapterInterface = adapterInterface;
Compatibility.get().getBaseFolder().mkdirs();
Log.info(Branding.DEBUG); //Can't log till base folder setup
Log.info("https://github.com/ictrobot/Cubes");
Debug.printProperties();
Compatibility.get().logEnvironment();
Executor.init();
Assets.preInit();
}
示例3: 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);
}
示例4: 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();
}
示例5: init
import ethanjones.cubes.graphics.assets.Assets; //导入依赖的package包/类
public static void init() {
if (!preInit)
throw new CubesException("Cubes.init called before Cubes.preInit");
if (init)
return;
init = true;
JsonLoader.loadCore();
Blocks.init();
ModManager.init();
JsonLoader.firstStage();
Compatibility.get().preInit();
ModManager.postModEvent(new PreInitializationEvent());
JsonLoader.secondStage();
Settings.init();
Compatibility.get().init();
ModManager.postModEvent(new InitializationEvent());
Assets.init();
Localization.load();
Settings.print();
Compatibility.get().postInit();
ModManager.postModEvent(new PostInitializationEvent());
IDManager.loaded();
EntityManager.loaded();
if (!Adapter.isDedicatedServer())
Graphics.init();
}
示例6: loadCore
import ethanjones.cubes.graphics.assets.Assets; //导入依赖的package包/类
public static void loadCore() {
AssetManager core = Assets.getCoreAssetManager();
HashMap<String, FileHandle> map = new HashMap<String, FileHandle>();
for (Asset j : core.getAssets("json/")) {
map.put(j.getPath().substring(5), j.getFileHandle());
}
try {
coreMap = load(map);
} catch (IOException e) {
throw new CubesException("Failed to load core json", e);
}
}
示例7: init
import ethanjones.cubes.graphics.assets.Assets; //导入依赖的package包/类
public static void init() {
if (!preInit) throw new CubesException("Cubes.init called before Cubes.preInit");
if (init) return;
init = true;
JsonLoader.loadCore();
Blocks.init();
ModManager.init();
JsonLoader.firstStage();
Compatibility.get().preInit();
ModManager.postModEvent(new PreInitializationEvent());
JsonLoader.secondStage();
Settings.init();
Compatibility.get().init();
ModManager.postModEvent(new InitializationEvent());
Assets.init();
Localization.load();
Settings.print();
Compatibility.get().postInit();
ModManager.postModEvent(new PostInitializationEvent());
IDManager.loaded();
EntityManager.loaded();
if (!Adapter.isDedicatedServer()) Graphics.init();
}
示例8: BlockTextureHandler
import ethanjones.cubes.graphics.assets.Assets; //导入依赖的package包/类
public BlockTextureHandler(String id) {
this(Assets.getBlockItemTextureRegion(id, "block"));
}
示例9: setSide
import ethanjones.cubes.graphics.assets.Assets; //导入依赖的package包/类
public BlockTextureHandler setSide(BlockFace blockFace, String id) {
textureRegions[blockFace.index] = Assets.getBlockItemTextureRegion(id, "block");
return this;
}
示例10: 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);
}
示例11: 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);
}
示例12: 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);
}
示例13: 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);
}
示例14: 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);
}
示例15: 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);
}