setText(6, (string)"Draw: " + (keyselect == 6 ? "_" : Input::keyToChar(drawkey)));
setText(7, (string)"Throw: " + (keyselect == 7 ? "_" : Input::keyToChar(throwkey)));
setText(8, (string)"Attack: " + (keyselect == 8 ? "_" : Input::keyToChar(attackkey)));
- if (debugmode) {
+ if (devtools) {
setText(9, (string)"Console: " + (keyselect == 9 ? "_" : Input::keyToChar(consolekey)));
}
}
addButton(6, "", 10 + 40, 160);
addButton(7, "", 10 + 30, 120);
addButton(8, "", 10 + 20, 80);
- if (debugmode) {
+ if (devtools) {
addButton(9, "", 10 + 10, 40);
}
- addButton(debugmode ? 10 : 9, "Back", 10, 10);
+ addButton(devtools ? 10 : 9, "Back", 10, 10);
updateControlsMenu();
break;
case 5: {
if (name.size() < 32) {
name.append((32 - name.size()), ' ');
}
- name += to_string(int((int(accountactive->getFastTime(i)) - int(accountactive->getFastTime(i)) % 60) / 60));
+ int fasttime = (int)round(accountactive->getFastTime(i));
+ name += to_string(int((fasttime - fasttime % 60) / 60));
name += ":";
- if ((int)(accountactive->getFastTime(i)) % 60 < 10)
+ if (fasttime % 60 < 10)
name += "0";
- name += to_string((int)(accountactive->getFastTime(i)) % 60);
+ name += to_string(fasttime % 60);
addButton(i, name, 10, 400 - i * 25, i > accountactive->getProgress() ? 0.5 : 1, 0, 0);
}
case 4:
if (!waiting) {
fireSound();
- if (selected < (debugmode ? 10 : 9) && keyselect == -1)
+ if (selected < (devtools ? 10 : 9) && keyselect == -1)
keyselect = selected;
if (keyselect != -1)
setKeySelected();
- if (selected == (debugmode ? 10 : 9)) {
+ if (selected == (devtools ? 10 : 9)) {
flash();
mainmenu = 3;
}