icy-zebra-52882
07/16/2022, 11:39 AMicy-zebra-52882
07/16/2022, 11:40 AM.text
?icy-zebra-52882
07/16/2022, 11:41 AMdialog.text
(but dialog.title
works fine)bright-gpu-74537
07/16/2022, 11:41 AMbright-gpu-74537
07/16/2022, 11:42 AMicy-zebra-52882
07/16/2022, 11:42 AMhttps://plzlookat.mystupid.pictures/firefox_9pzzobL4ra.png▾
bright-gpu-74537
07/16/2022, 11:43 AMicy-zebra-52882
07/16/2022, 11:44 AMicy-zebra-52882
07/16/2022, 11:45 AMhx
var dialogue = new MessageBox();
dialogue.title = I18nHelper.instance.tr("editor/theme-switch-modal/title");
dialogue.message = I18nHelper.instance.tr("editor/theme-switch-modal/message-body");
dialogue.buttons = DialogButton.YES | DialogButton.NO;
dialogue.customStyle.percentWidth = 60;
dialogue.icon = "assets/images/editor/warning.png";
bright-gpu-74537
07/16/2022, 11:45 AMicy-zebra-52882
07/16/2022, 11:46 AMicy-zebra-52882
07/16/2022, 11:46 AMbright-gpu-74537
07/16/2022, 11:48 AMicy-zebra-52882
07/16/2022, 11:48 AMbright-gpu-74537
07/16/2022, 11:56 AMbright-gpu-74537
07/16/2022, 11:56 AMhaxe
var mb = new MessageBox();
mb.text = "This message body was set via the .text property";
mb.icon = "haxeui-core/styles/default/haxeui_small.png";
mb.buttons = "Custom" | DialogButton.CANCEL;
mb.show();
icy-zebra-52882
07/16/2022, 12:00 PMhttps://plzlookat.mystupid.pictures/hl_nbb4anSaPL.png▾
icy-zebra-52882
07/16/2022, 12:00 PMbright-gpu-74537
07/16/2022, 12:00 PMicy-zebra-52882
07/16/2022, 12:02 PM"custom text"
like you did above or a DialogButton
value, or "custom text" | DialogButton.value
icy-zebra-52882
07/16/2022, 12:02 PMDialogButton
values, for translation?icy-zebra-52882
07/16/2022, 12:02 PMbright-gpu-74537
07/16/2022, 12:03 PMbright-gpu-74537
07/16/2022, 12:03 PMicy-zebra-52882
07/16/2022, 12:03 PMicy-zebra-52882
07/16/2022, 12:03 PMbright-gpu-74537
07/16/2022, 12:04 PMicy-zebra-52882
07/16/2022, 12:04 PMbright-gpu-74537
07/16/2022, 12:04 PMhaxe
LocaleManager.instance.language = "fr";
showMessageBox.onClick = function(_) {
var mb = new MessageBox();
mb.text = "This message body was set via the .text property";
mb.icon = "haxeui-core/styles/default/haxeui_small.png";
mb.buttons = "Custom" | DialogButton.CANCEL;
mb.show();
}
bright-gpu-74537
07/16/2022, 12:05 PM