let me make this PAINFULLY CLEAR
This commit is contained in:
@@ -114,10 +114,13 @@ public class Control extends Module{
|
||||
|
||||
state.set(State.playing);
|
||||
|
||||
if(world.getSector() == null && !Settings.getBool("custom-warning", false)){
|
||||
threads.runGraphics(() -> ui.showInfo("$mode.custom.warning"));
|
||||
Settings.putBool("custom-warning", true);
|
||||
Settings.save();
|
||||
if(world.getSector() == null && !Settings.getBool("custom-warning-for-real-1", false)){
|
||||
threads.runGraphics(() -> ui.showInfo("$mode.custom.warning", () ->
|
||||
ui.showInfo("$mode.custom.warning.read", () -> {
|
||||
Settings.putBool("custom-warning-for-real-1", true);
|
||||
Settings.save();
|
||||
})));
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -244,6 +244,17 @@ public class UI extends SceneModule{
|
||||
}}.show();
|
||||
}
|
||||
|
||||
public void showInfo(String info, Runnable clicked){
|
||||
new Dialog("$text.info.title", "dialog"){{
|
||||
getCell(content()).growX();
|
||||
content().margin(15).add(info).width(400f).wrap().get().setAlignment(Align.center, Align.center);
|
||||
buttons().addButton("$text.ok", () -> {
|
||||
clicked.run();
|
||||
hide();
|
||||
}).size(90, 50).pad(4);
|
||||
}}.show();
|
||||
}
|
||||
|
||||
public void showError(String text){
|
||||
new Dialog("$text.error.title", "dialog"){{
|
||||
content().margin(15).add(text).width(400f).wrap().get().setAlignment(Align.center, Align.center);
|
||||
|
||||
Reference in New Issue
Block a user