mirror of https://github.com/OpenRCT2/OpenRCT2.git
increase digits for wait, decrease digits for rotate, zoom
This commit is contained in:
parent
bd4e8cbd08
commit
fc71361a9e
|
@ -256,7 +256,13 @@ static void window_title_command_editor_mouseup(rct_window *w, rct_widgetindex w
|
||||||
window_close(w);
|
window_close(w);
|
||||||
break;
|
break;
|
||||||
case WIDX_TEXTBOX_FULL:
|
case WIDX_TEXTBOX_FULL:
|
||||||
window_start_textbox(w, widgetIndex, STR_STRING, textbox1Buffer, 4);
|
if (command.Type == TITLE_SCRIPT_WAIT) {
|
||||||
|
window_start_textbox(w, widgetIndex, STR_STRING, textbox1Buffer, 5);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Currently the only other commands that use this textbox are Rotate and Zoom which have a maximum of 3.
|
||||||
|
window_start_textbox(w, widgetIndex, STR_STRING, textbox1Buffer, 2);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case WIDX_TEXTBOX_X:
|
case WIDX_TEXTBOX_X:
|
||||||
window_start_textbox(w, widgetIndex, STR_STRING, textbox1Buffer, 4);
|
window_start_textbox(w, widgetIndex, STR_STRING, textbox1Buffer, 4);
|
||||||
|
@ -447,7 +453,8 @@ static void window_title_command_editor_textinput(rct_window * w, rct_widgetinde
|
||||||
if (value > 3) value = 3;
|
if (value > 3) value = 3;
|
||||||
}
|
}
|
||||||
else if (command.Type == TITLE_SCRIPT_WAIT) {
|
else if (command.Type == TITLE_SCRIPT_WAIT) {
|
||||||
if (value < 1) value = 100;
|
if (value < 100) value = 100;
|
||||||
|
if (value > 65000) value = 65000;
|
||||||
}
|
}
|
||||||
command.Rotations = (uint8)value;
|
command.Rotations = (uint8)value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue