Commit Graph

252 Commits

Author SHA1 Message Date
20bb7e4322 more convenient has_next_action() 2024-09-03 00:08:26 -04:00
4c67d7220e record and replay scrollbar movement from user input 2024-09-03 00:08:26 -04:00
18d7bb2508 don't record dummy field input events 2024-09-03 00:08:26 -04:00
9b1b9df456 record and replay tab/shift-tab in multi-field forms 2024-09-03 00:08:26 -04:00
8cc8f5e2b7 Remove a few TODO notes that look obsolete 2024-08-27 09:18:42 -04:00
ec2a20208e Fix a bunch of 'Failed to create texture' errors being written to console 2024-08-24 20:50:26 -04:00
ad9ad3dc3c record and replay text field input 2024-08-24 20:04:29 -04:00
3b6d16a549 always calculate_layout() when recalcRect() is called 2024-08-22 09:47:06 -04:00
5ac49be9df cTextMsg recalculate line breaks on setText() 2024-08-22 09:47:06 -04:00
d5a536c19c encapsulate control.lbl so setText() is required 2024-08-22 09:47:06 -04:00
c08a10867c cTextMsg pre-calculate layout 2024-08-22 09:47:06 -04:00
39c85e7f3c limit framerate of controls' nested event loops 2024-08-22 09:47:06 -04:00
20c53fb2ed Fix crash if you cancel the scenario selection 2024-08-21 23:47:44 -04:00
b624b32284 Seeing \a is just confusing, so make it a constant 2024-08-12 19:27:30 -04:00
104f6d6b0b Address some compiler warnings (Xcode 12)
* Missing prototypes
* Unused function parameters
* Float comparison in preferences
2024-08-10 12:06:11 -04:00
4e6306b110 record and replay mods on startup buttons. fix #394 2024-08-09 19:47:15 -04:00
a13e7cdc3b replace atoi with std::stoi 2024-08-09 02:06:31 -04:00
f01fdb7e2a move ui_rand to cDialog 2024-08-08 13:43:29 -04:00
fc12092a1b replace rand() and srand(). fix #390 2024-08-08 13:43:29 -04:00
a1022aa23b guard next_action_type() call 2024-08-08 08:30:59 -04:00
41f88c9f58 container controls replay child control clicks 2024-08-03 12:30:08 -04:00
9c1a5b98e1 led groups replay specific led click 2024-07-31 19:58:19 -04:00
9d5c2e4fe1 revert control_focus recording/replaying 2024-07-31 19:58:19 -04:00
49c62aa985 don't replay events for empty id controls 2024-07-31 19:58:19 -04:00
3c3a105ae4 make pop_next_action() return a reference 2024-07-28 17:07:33 -04:00
bf724951c5 record and replay control focus events 2024-07-28 17:07:33 -04:00
a7925affc5 replay control clicks in open dialogs 2024-07-28 17:07:33 -04:00
acd7bb4080 record clicks on dialog controls 2024-07-28 17:07:33 -04:00
7cb1770059 Fix #314 2024-07-06 00:21:47 -04:00
010c3c0b39 cDialog DRY recursive relative positioning code 2024-07-03 19:24:58 -06:00
f2b7372b15 make click sound handling DRY 2024-07-03 18:42:20 -06:00
fa3d092dc9 check for ui initialization without game-only global var 2024-06-12 12:51:03 -06:00
8ddb99361d showError() use console when UI is not ready 2024-06-12 12:26:27 -06:00
f8f5e05669 naively scale dialogs by ui scale 2024-05-30 21:01:31 -06:00
8a2cfbae7e Fix some issues rendering animated terrains in dialogs, and avoid a crash if a graphics sheet cannot be found 2023-01-30 00:07:25 -05:00
3c36338407 Fix crash when checking a dialog's format value 2023-01-29 19:39:51 -05:00
b19356757d Small code simplification in dialogxml formatting system 2023-01-22 17:59:47 -05:00
2adbafd3dc Add missing getter cControl::getLabelCtrl 2023-01-22 17:58:29 -05:00
d3283e466d Add optional label to cControl::setTextToNum 2023-01-22 17:57:07 -05:00
a416368e0d const-correctness in dialogxml (dialogs) 2023-01-22 17:12:56 -05:00
455af36c81 const-correctness in dialogxml (widgets) 2023-01-22 17:04:32 -05:00
929d012aab Fix cStrDlog potentially requesting a 0-string dialog 2023-01-21 18:03:12 -05:00
03342627ec Avoid integer overflow when positioning a dialog
Thanks to @fosnola for spotting
2023-01-18 21:35:29 -05:00
91140aa6d4 cDialog handle text fields in containers 2023-01-14 01:26:49 -05:00
3bdcf02be0 Handle modifier keys differently to avoid Apple flagging us as wishing to monitor input from other applications
Fixes #291
2023-01-12 21:43:45 -05:00
e212e99794 Fix buffer overrun if apply/removeShift is called with an unknown character 2023-01-12 20:24:35 -05:00
729ccfe765 Fix missing include 2023-01-07 12:01:10 -05:00
e3d6a4748e Dialog XML definitions are now loaded thru the resource manager 2023-01-07 11:59:42 -05:00
c3dd886783 Fix LED text colour and correct width attribute validation 2023-01-07 01:23:07 -05:00
c4d7fc6b99 Make dialogs iterable 2023-01-07 01:21:42 -05:00