Added q&d calculator limit

This commit is contained in:
Willem Cazander 2022-08-12 20:35:04 +02:00
parent 7aef73b979
commit 69488da538

View file

@ -66,6 +66,10 @@ public class CalculatorDeskApp extends AbstractDeskApp implements DeskAppRendere
ImGui.text(valueLoc);
ImGui.separator();
if (value.length() > 8) {
value = "0"; // dirty limit for parseInt
valueLoc = baseNumber.BȍőnPrintNumber10(Integer.parseInt(value), 9999999);
}
if (ImGui.button(baseNumber.BȍőnNumber10().BȍőnCharFor(7), buttonSize, buttonSize)) {
value+="7";