本文整理汇总了Java中de.lessvoid.nifty.tools.resourceloader.NiftyResourceLoader类的典型用法代码示例。如果您正苦于以下问题:Java NiftyResourceLoader类的具体用法?Java NiftyResourceLoader怎么用?Java NiftyResourceLoader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NiftyResourceLoader类属于de.lessvoid.nifty.tools.resourceloader包,在下文中一共展示了NiftyResourceLoader类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setResourceLoader
import de.lessvoid.nifty.tools.resourceloader.NiftyResourceLoader; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void setResourceLoader(NiftyResourceLoader niftyResourceLoader) {
//!
//! NOTE: No need to implement this method.
//!
}
开发者ID:Wolftein,项目名称:Quark-Engine,代码行数:10,代码来源:NiftySoundDevice.java
示例2: setResourceLoader
import de.lessvoid.nifty.tools.resourceloader.NiftyResourceLoader; //导入依赖的package包/类
public void setResourceLoader(NiftyResourceLoader niftyResourceLoader) {
}
开发者ID:AMPBEdu,项目名称:gjOryx,代码行数:3,代码来源:RenderDeviceJme.java
示例3: initializeNifty
import de.lessvoid.nifty.tools.resourceloader.NiftyResourceLoader; //导入依赖的package包/类
private void initializeNifty() throws PromiseException
{
inputSystem = new LwjglInputSystem();
try
{
inputSystem.startup();
}
catch (Exception ex)
{
throw new Error(ex);
}
nifty = new Nifty(new LwjglRenderDevice(), new NullSoundDevice(), inputSystem, new AccurateTimeProvider());
NiftyResourceLoader niftyResourceLoader = nifty.getResourceLoader();
niftyResourceLoader.removeAllResourceLocations();
// nifty first tries stuff on the class path (needed for its internal files)
niftyResourceLoader.addResourceLocation(new ClasspathLocation());
// Then try the same reference as a resource key
// (add this second so that zones can not override nifty build-ins)
niftyResourceLoader.addResourceLocation(new DBNiftyResourceLocation(resourceDB));
TriggerOnShowEffect.registerEffect(nifty);
SpriteAnimationEffect.registerEffect(nifty);
BackgroundColorSpriteEffect.registerEffect(nifty);
BackgroundColorAnimated.registerEffect(nifty);
ClockTextEffect.registerEffect(nifty);
niftyCameraImpl = new NiftyCameraImpl(resourceDB, mapEntities, mapClassic, stars);
CameraNiftyController.registerControl(nifty, niftyCameraImpl);
boolean first = true;
/*{
Logger logger = Logger.getLogger("de.lessvoid.nifty");
logger.setLevel(Level.FINER);
ConsoleHandler handler = new ConsoleHandler();
handler.setLevel(Level.FINER);
logger.addHandler(handler);
}*/
for (String res : networkedGame.niftyGuiResources)
{
if (first)
{
nifty.fromXmlWithoutStartScreen(res);
first = false;
}
else
{
nifty.addXml(res);
}
}
mainScreen = nifty.getScreen("aphelion-main");
if (mainScreen == null)
{
throw new PromiseException("Missing nifty-gui screen: aphelion-main");
}
ScreenController screenControl = mainScreen.getScreenController();
if (screenControl instanceof MainScreenController)
{
((MainScreenController) screenControl).aphelionBind(networkedGame);
}
nifty.gotoScreen("aphelion-main");
}
开发者ID:Periapsis,项目名称:aphelion,代码行数:67,代码来源:InitializeLoop.java
示例4: setResourceLoader
import de.lessvoid.nifty.tools.resourceloader.NiftyResourceLoader; //导入依赖的package包/类
@Override
public void setResourceLoader(NiftyResourceLoader resourceLoader)
{
}
开发者ID:jacquesh,项目名称:project-grige,代码行数:5,代码来源:Input.java
示例5: setResourceLoader
import de.lessvoid.nifty.tools.resourceloader.NiftyResourceLoader; //导入依赖的package包/类
public void setResourceLoader(NiftyResourceLoader nrl) {
}
开发者ID:relu91,项目名称:niftyeditor,代码行数:4,代码来源:SoudDevicenull.java
注:本文中的de.lessvoid.nifty.tools.resourceloader.NiftyResourceLoader类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论