本文整理匯總了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;
}