Added q&d calculator limit
This commit is contained in:
parent
7aef73b979
commit
69488da538
|
@ -66,6 +66,10 @@ public class CalculatorDeskApp extends AbstractDeskApp implements DeskAppRendere
|
||||||
ImGui.text(valueLoc);
|
ImGui.text(valueLoc);
|
||||||
ImGui.separator();
|
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)) {
|
if (ImGui.button(baseNumber.BȍőnNumber10().BȍőnCharFor(7), buttonSize, buttonSize)) {
|
||||||
value+="7";
|
value+="7";
|
||||||
|
|
Loading…
Reference in a new issue