.cancelButton(true)
.icon("/testmonologfx/dialog_cancel.png")
.type(MonologFXButton.Type.NO)
.build();
MonologFX mono = MonologFXBuilder.create()
.titleText("TinyG Firware Build Outdated...")
.message("Your TinyG firmware is too old to be used with tgFX. \nYour build version: " + tg.machine.getFirmwareBuild() + "\n"
+ "Minmal Needed Version: " + tg.machine.hardwarePlatform.getMinimalBuildVersion().toString() + "\n\n"
+ "Click ok to attempt to auto upgrade your TinyG. \nA Internet Connection is Required."
+ "\nClicking No will exit tgFX.")
.button(btnYes)
.button(btnNo)
.type(MonologFX.Type.ERROR)
.build();
MonologFXButton.Type retval = mono.showDialog();
switch (retval) {
case YES:
logger.info("Clicked Yes");