MCPcopy Create free account
hub / github.com/EasyRPG/Player / SetMaxDigits

Method SetMaxDigits

src/window_numberinput.cpp:99–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void Window_NumberInput::SetMaxDigits(int idigits_max) {
100 // Up to 10 digits (highest 32 bit number)
101 int top = std::max(10, idigits_max);
102 digits_max =
103 (idigits_max > top) ? top :
104 (idigits_max <= 0) ? 1 :
105 idigits_max;
106 ResetIndex();
107 UpdateCursorRect();
108 Refresh();
109}
110
111bool Window_NumberInput::GetShowOperator() const {
112 return show_operator;

Callers 3

PushUiNumberInputMethod · 0.80
UpdateOptionsMethod · 0.80

Calls 1

maxFunction · 0.85

Tested by

no test coverage detected