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


Java Assets类代码示例

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

}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:23,代码来源:Cubes.java

示例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();

}
 
开发者ID:RedTroop,项目名称:Cubes,代码行数:21,代码来源:Cubes.java

示例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);
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:8,代码来源:SplashMenu.java

示例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();
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:14,代码来源:LogMenu.java

示例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();
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:32,代码来源:Cubes.java

示例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);
  }
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:13,代码来源:JsonLoader.java

示例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();
}
 
开发者ID:RedTroop,项目名称:Cubes,代码行数:29,代码来源:Cubes.java

示例8: BlockTextureHandler

import ethanjones.cubes.graphics.assets.Assets; //导入依赖的package包/类
public BlockTextureHandler(String id) {
  this(Assets.getBlockItemTextureRegion(id, "block"));
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:4,代码来源:BlockTextureHandler.java

示例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;
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:5,代码来源:BlockTextureHandler.java

示例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);
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:5,代码来源:ImageButtons.java

示例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);
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:5,代码来源:ImageButtons.java

示例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);
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:6,代码来源:ImageButtons.java

示例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);
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:6,代码来源:ImageButtons.java

示例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);
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:6,代码来源:ImageButtons.java

示例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);
}
 
开发者ID:RedTroop,项目名称:Cubes_2,代码行数:6,代码来源:ImageButtons.java


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