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
0714004f1c
Fix a few compiler warnings
2023-01-06 22:02:05 -05:00
ALONSO Laurent
ca74661801
button.cpp: try to make tiny buttons work...
2023-01-06 20:49:08 -05:00
ALONSO Laurent
f2584f4133
try to remove some "flickering" by using setActive(false)/setActive() and adding
...
a glFlush...
2023-01-06 13:46:21 -05:00
b03a200f8a
Labelled buttons should only require a width if they actually HAVE a label
2023-01-06 02:59:21 -05:00
9b8c35489b
Fix key descriptions using alt being rendered as just #
2023-01-06 02:44:28 -05:00
e7ae84ee2a
Fix large string dialogs not wrapping text and expanding to crazy widths
2023-01-04 20:52:11 -05:00
fea9cfb0c8
call redraw_everything() when cDialogs move
2023-01-04 15:27:33 -07:00
5b2561d034
Disable header maps in Xcode 12
2022-07-12 20:35:41 -04:00
f5be1d9706
Fix missing override annotations
2022-07-05 09:28:41 -04:00
8d31c27d11
Fix unused element and unhandled switch case warnings
2022-07-05 09:19:32 -04:00
ee5e7fd48c
Various fixes to make the project build in Xcode 12 on Catalina
...
This now requires Boost to be installed by MacPorts. However, we could add the standard Homebrew path to the include path as well to support both.
This also requires SFML and its dependencies to be installed in /Library/Frameworks; it's unclear whether this is reasonable.
Code signing is completely disabled, and Zlib is now loaded as a tbd instead of a dylib. This will probably break for some older computers, but hopefully they can just use the Xcode 4 project instead.
Boost is forcing -mt suffixes on all its libraries. Whatever. We'll just roll with that.
This makes the script work both with and without the suffixes.
Using parentheses instead of braces silences the stupid narrowing warning, so yay.
2022-07-05 00:17:52 -04:00
x-qq
55a105a0f6
make the game buildable on linux ( #283 )
...
- Scons -> python3
- include issues
2022-03-13 15:38:22 -04:00
af8f30aaf2
Fix duplicate function definitions
2022-03-13 11:14:08 -04:00
f14c99f14b
Split out cContainer, cLed, and cLedGroup into their own files
2020-12-21 17:16:15 -05:00
81c2a084e3
Allow automatically calculating both the width and height of a text label
...
This fixes welcome dialog links triggering when you hit OK in the right place
2020-12-19 18:10:25 -05:00
27f687806f
Implement automatic height calculation for text labels
2020-12-19 17:36:03 -05:00
d7ddaa7cd8
Fix broken colour= in DialogXML and add special link colour
2020-02-26 01:47:32 -05:00
7f12c6eea4
Support underlined text in DialogXML
2020-02-26 01:20:11 -05:00
49d88c76e2
Add page definition facility to the DialogXML <stack> widget
...
- New <page> element in <stack>
- Visibility of elements is now remembered when switching pages
- Unstoring a <pict> on a stack page no longer resets default values
- Documentation updated for new features
2020-02-25 21:05:59 -05:00
f0f789913f
parseChildControl now returns the control's ID if successful
2020-02-24 00:13:37 -05:00
8f81a3504d
Deduplicate child element parsing in DialogXML
2020-02-24 00:07:45 -05:00
c8549ca680
DialogXML: Support <key> in <text> with optional ref=
2020-02-23 23:02:16 -05:00