4421b94831
fix(menu): allow numeric dvar values ( #927 )
...
* fix(menu): allow numeric dvar values
* chore: use std format instead of stringstream
---------
Co-authored-by: Jan Laupetin <[email protected] >
2026-07-23 20:06:08 +02:00
mo and GitHub
9c56a28ef4
fix: apply menu item origin as an offset ( #917 )
...
Add `origin` values to the existing item rectangle instead of replacing its coordinates.
2026-07-19 21:32:10 +02:00
mo and GitHub
0c1efa1667
fix: assign ownerdraw item type when parsing menus ( #911 )
...
Set `m_type` to `ITEM_TYPE_OWNERDRAW` when parsing an `ownerdraw` property. Otherwise, it retains the default `ITEM_TYPE_TEXT`.
This restores controls such as the Source button in the IW4x server browser.
2026-07-17 18:26:50 +02:00
Jan
f5c987ce59
Add unit tests for menu item rect
2023-12-25 19:52:05 +01:00
Jan
7fff36dab2
Accept expressions as part of the column sequence
2023-12-25 11:34:49 +01:00
Clang Format and Jan
c858695f0c
Adjust further code formatting
2023-11-19 21:07:28 +00:00
Clang Format and Jan
6b4f5d94a8
Reformat code with clang format
2023-11-19 21:07:21 +00:00
Jan
4829a4206b
Ensure correct expression type for static expressions in menu parsing but do not enforce when permissive
2023-08-24 20:12:57 +02:00
Jan
8a1fe03358
Add base for IW5 menu parsing
2023-08-23 23:08:50 +02:00
Jan
91cfb2e8dd
Move AbstractScopeSequenceHolder to Parse and make it a template class to be reusable
2022-01-18 22:55:25 +01:00
Jan
8a3bbf948b
Make sure you can specify event handlers more than once to be able to append script data
2022-01-01 20:00:09 +01:00
Jan
7188b0946d
Make use of custom functions when converting menus
2021-12-28 23:52:42 +01:00
Jan
d2262ebaec
Fix menu dvarStrList not working because of String chaining
2021-12-28 11:49:42 +01:00
Jan
05de9cab29
Use StringChain in menu parsing whenever applicable
2021-12-04 13:38:51 +01:00
Jan
17e7926442
Accept semicolons in menu dvarStrList and dvarFloatList
2021-12-01 18:22:54 +01:00
Jan
74988af30b
Add expression numerics and int to multiple sequences for menu items
2021-11-28 20:20:28 +01:00
Jan
b082e471e7
Add permissive mode for menu parsing that accepts unknown script tokens as long as they can be put into the script
2021-11-28 17:55:26 +01:00
Jan
9279123ef9
Consume lonely semicolons in items and menus
2021-11-26 21:48:05 +01:00
Jan
fb70d9538a
Make menu and item rect accept expressions as static values
2021-11-26 17:43:27 +01:00
Jan
5b087e0d31
Add missing itemscope and menuscope sequences
2021-11-25 19:22:14 +01:00
Jan
4f2a8454a6
Move common expression classes to simple parsing setup
2021-11-22 21:47:05 +01:00
Jan
03b3981312
Add menu key handlers
2021-11-20 22:01:01 +01:00
Jan
aae2b9f3d9
Add sequence for listbox columns
2021-11-20 18:40:18 +01:00
Jan
ebdfb5b9aa
Parse feature specific item properties
2021-11-20 18:22:34 +01:00
Jan
dd8a9bf374
Set item type features when setting type
2021-11-20 14:29:24 +01:00
Jan
ed329e6453
Add item scope sequences for expressions and menueventhandlerset
2021-11-14 20:05:06 +01:00
Jan
5af2e6da61
Add menu scopes to state before closing them
2021-11-06 17:47:18 +01:00
Jan
b15efd4a4c
Move item parsing sequences for different scopes into the same class
2021-11-06 11:03:15 +01:00