Replaced '$' formatting with '@'

This commit is contained in:
Anuken
2020-08-04 10:18:01 -04:00
parent 8dd4839f53
commit f60afc39f1
68 changed files with 458 additions and 458 deletions

View File

@@ -16,12 +16,12 @@ public class HostDialog extends BaseDialog{
float w = 300;
public HostDialog(){
super("$hostserver");
super("@hostserver");
addCloseButton();
cont.table(t -> {
t.add("$name").padRight(10);
t.add("@name").padRight(10);
t.field(Core.settings.getString("name"), text -> {
player.name(text);
Core.settings.put("name", text);
@@ -41,26 +41,26 @@ public class HostDialog extends BaseDialog{
cont.add().width(65f);
cont.button("$host", () -> {
cont.button("@host", () -> {
if(Core.settings.getString("name").trim().isEmpty()){
ui.showInfo("$noname");
ui.showInfo("@noname");
return;
}
runHost();
}).width(w).height(70f);
cont.button("?", () -> ui.showInfo("$host.info")).size(65f, 70f).padLeft(6f);
cont.button("?", () -> ui.showInfo("@host.info")).size(65f, 70f).padLeft(6f);
shown(() -> {
if(!steam){
Core.app.post(() -> Core.settings.getBoolOnce("hostinfo", () -> ui.showInfo("$host.info")));
Core.app.post(() -> Core.settings.getBoolOnce("hostinfo", () -> ui.showInfo("@host.info")));
}
});
}
public void runHost(){
ui.loadfrag.show("$hosting");
ui.loadfrag.show("@hosting");
Time.runTask(5f, () -> {
try{
net.host(Vars.port);
@@ -68,7 +68,7 @@ public class HostDialog extends BaseDialog{
if(steam){
Core.app.post(() -> Core.settings.getBoolOnce("steampublic2", () -> {
ui.showCustomConfirm("$setting.publichost.name", "$public.confirm", "$yes", "$no", () -> {
ui.showCustomConfirm("@setting.publichost.name", "@public.confirm", "@yes", "@no", () -> {
Core.settings.put("publichost", true);
platform.updateLobby();
}, () -> {
@@ -81,10 +81,10 @@ public class HostDialog extends BaseDialog{
if(Version.modifier.contains("beta")){
Core.settings.put("publichost", false);
platform.updateLobby();
Core.settings.getBoolOnce("betapublic", () -> ui.showInfo("$public.beta"));
Core.settings.getBoolOnce("betapublic", () -> ui.showInfo("@public.beta"));
}
}catch(IOException e){
ui.showException("$server.error", e);
ui.showException("@server.error", e);
}
ui.loadfrag.hide();
hide();