Commit Graph

23 Commits

Author SHA1 Message Date
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
f8f5e05669 naively scale dialogs by ui scale 2024-05-30 21:01:31 -06:00
a416368e0d const-correctness in dialogxml (dialogs) 2023-01-22 17:12:56 -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
e3d6a4748e Dialog XML definitions are now loaded thru the resource manager 2023-01-07 11:59:42 -05:00
c4d7fc6b99 Make dialogs iterable 2023-01-07 01:21:42 -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
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
f14c99f14b Split out cContainer, cLed, and cLedGroup into their own files 2020-12-21 17:16:15 -05:00
27f687806f Implement automatic height calculation for text labels 2020-12-19 17:36:03 -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
c65bac2a8f Implement relative positioning system for DialogXML
This allows widgets to be positioned relative to other widgets.

Two dialogs have been converted to use relative positioning.

Also fix some issues with calculating the dialog rect.
2020-02-23 22:00:01 -05:00
0bf41cb172 Centre dialogs above their parent window 2020-02-05 22:46:17 -05:00
f9f4d5671c Factor out the framerate limiter into a class
Patch from @x-qq
2020-02-01 21:03:56 -05:00
1fcbd8e922 Rearrange the dialog event loop a little
This patch is contributed by @x-qq
and should improve CPU usage on Linux.
2020-01-20 19:47:09 -05:00
c2ce2a2cd1 Split up the graphtool files 2017-04-14 15:43:07 -04:00
82abdab695 Major code reorganization
This commit only updates the XCode project for the changes.
A later commit each will update it for scons and MSVC.

A few actual changes are mixed in:
- Add a prefix header for a handful of common definitions
- Moved current_cursor into the Cursor class as a static member
- Removed the make_cursor_sword and make_cursor_watch functions
- Include tests in the All target
- Remove redundant -l flags for Common and Common-Party (since they're included in the Link phases anyway)
2017-04-14 00:24:29 -04:00