本文整理汇总了Java中ethanjones.cubes.core.localization.Localization.get方法的典型用法代码示例。如果您正苦于以下问题:Java Localization.get方法的具体用法?Java Localization.get怎么用?Java Localization.get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ethanjones.cubes.core.localization.Localization
的用法示例。
在下文中一共展示了Localization.get方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ServerSetupMenu
import ethanjones.cubes.core.localization.Localization; //导入方法依赖的package包/类
public ServerSetupMenu(final Save save) {
super();
title = new Label(Localization.get("menu.server.title"), skin.get("title", Label.LabelStyle.class));
saveLabel = new Label(Localization.get("menu.server.save", save.name), skin);
saveLabel.setAlignment(Align.center);
port = new TextField("", skin);
port.setMessageText(Localization.get("menu.server.port", Settings.getIntegerSettingValue(Settings.NETWORKING_PORT)));
port.setTextFieldFilter(new TextField.TextFieldFilter.DigitsOnlyFilter());
start = new TextButton(Localization.get("menu.server.start"), skin);
back = MenuTools.getBackButton(this);
start.addListener(new ChangeListener() {
@Override
public void changed(ChangeEvent event, Actor actor) {
int p = port.getText().isEmpty() ? Settings.getIntegerSettingValue(Settings.NETWORKING_PORT) : Integer.parseInt(port.getText());
Adapter.setMenu(new ServerRunningMenu(save, p));
}
});
stage.addActor(title);
stage.addActor(saveLabel);
stage.addActor(port);
stage.addActor(start);
stage.addActor(back);
}
示例2: SingleplayerSaveDeleteMenu
import ethanjones.cubes.core.localization.Localization; //导入方法依赖的package包/类
public SingleplayerSaveDeleteMenu(final Save save) {
title = new Label(Localization.get("menu.singleplayer.delete.title"),
skin.get("title", Label.LabelStyle.class));
text = new Label(Localization.get("menu.singleplayer.delete.text", save.name), skin);
delete = new TextButton(Localization.get("menu.singleplayer.delete.delete", save.name), skin);
back = MenuTools.getBackButton(this);
text.setAlignment(Align.center);
delete.addListener(new ChangeListener() {
@Override
public void changed(ChangeEvent event, Actor actor) {
ClientSaveManager.deleteSave(save);
Menu prev = MenuManager.getPrevious(SingleplayerSaveDeleteMenu.this);
if (!(prev instanceof SingleplayerSavesMenu))
return;
((SingleplayerSavesMenu) prev).updateSavesList();
Adapter.setMenu(prev);
}
});
stage.addActor(title);
stage.addActor(text);
stage.addActor(delete);
stage.addActor(back);
}
示例3: SingleplayerSaveDeleteMenu
import ethanjones.cubes.core.localization.Localization; //导入方法依赖的package包/类
public SingleplayerSaveDeleteMenu(final Save save) {
title = new Label(Localization.get("menu.singleplayer.delete.title"), skin.get("title", Label.LabelStyle.class));
text = new Label(Localization.get("menu.singleplayer.delete.text", save.name), skin);
delete = new TextButton(Localization.get("menu.singleplayer.delete.delete", save.name), skin);
back = MenuTools.getBackButton(this);
text.setAlignment(Align.center);
delete.addListener(new ChangeListener() {
@Override
public void changed(ChangeEvent event, Actor actor) {
ClientSaveManager.deleteSave(save);
Menu prev = MenuManager.getPrevious(SingleplayerSaveDeleteMenu.this);
if (!(prev instanceof SingleplayerSavesMenu)) return;
((SingleplayerSavesMenu) prev).updateSavesList();
Adapter.setMenu(prev);
}
});
stage.addActor(title);
stage.addActor(text);
stage.addActor(delete);
stage.addActor(back);
}
示例4: getName
import ethanjones.cubes.core.localization.Localization; //导入方法依赖的package包/类
public static String getName(String id) {
return Localization.get("terrain." + id.replaceFirst(":", "."));
}
示例5: toString
import ethanjones.cubes.core.localization.Localization; //导入方法依赖的package包/类
@Override
public String toString() {
return Localization.get("command.common.value.coordinate.string");
}
示例6: ClientErrorMenu
import ethanjones.cubes.core.localization.Localization; //导入方法依赖的package包/类
public ClientErrorMenu(String message) {
super(Localization.get(message), Localization.get("menu.general.return_main_menu"));
}
示例7: SingleplayerLoadingMenu
import ethanjones.cubes.core.localization.Localization; //导入方法依赖的package包/类
public SingleplayerLoadingMenu(Save save) {
super(Localization.get("menu.general.loading"), false);
this.save = save;
}
示例8: getDisplayName
import ethanjones.cubes.core.localization.Localization; //导入方法依赖的package包/类
public String getDisplayName() {
return Localization.get("inventory." + name.replaceFirst(":", "."));
}
示例9: ClientErrorMenu
import ethanjones.cubes.core.localization.Localization; //导入方法依赖的package包/类
public ClientErrorMenu(String message, Exception e) {
super(Localization.get(message) + getString(e), Localization.get("menu.general.return_main_menu"));
}
示例10: SingleplayerLoadingMenu
import ethanjones.cubes.core.localization.Localization; //导入方法依赖的package包/类
public SingleplayerLoadingMenu(Save save) {
super(Localization.get("menu.general.loading"), false);
this.save = save;
}
示例11: getDisplayName
import ethanjones.cubes.core.localization.Localization; //导入方法依赖的package包/类
public String getDisplayName() {
return Localization.get("inventory." + name.replaceFirst(":", "."));
}
示例12: MultiplayerLoadingMenu
import ethanjones.cubes.core.localization.Localization; //导入方法依赖的package包/类
public MultiplayerLoadingMenu(String address, int port) {
super(Localization.get("menu.multiplayer.connecting"), false);
this.address = address;
this.port = port;
}
示例13: WorldLoadingMenu
import ethanjones.cubes.core.localization.Localization; //导入方法依赖的package包/类
public WorldLoadingMenu() {
super(Localization.get("menu.general.loading"), false);
progressBar = new ProgressBar(0f, 1f, 0.001f, false, PROGRESS_BAR_STYLE);
stage.addActor(progressBar);
}
示例14: toString
import ethanjones.cubes.core.localization.Localization; //导入方法依赖的package包/类
@Override
public String toString() {
return Localization.get("command.common.value.command.string");
}
示例15: RunnableMenu
import ethanjones.cubes.core.localization.Localization; //导入方法依赖的package包/类
public RunnableMenu(Runnable runnable) {
super(Localization.get("menu.general.waiting"), false);
this.runnable = runnable;
}