102 Commits

Author SHA1 Message Date
Jan
132cccb971
refactor: use new line character instead of std::endl 2024-03-24 20:24:22 +01:00
Jan
7820390dd8
Support static expressions for menu simple string properties 2023-12-25 22:59:56 +01: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
Jan
69cd172879
Accept setLocalVar scripts without value as default value expression 2023-12-25 09:50:24 +01:00
Jan
82f3d4925f
Fix not respecting case-insensitive functions when converting menus 2023-12-14 19:32:51 +01:00
Jan
0b1120f26f
Add menu base function as lowercase to the function map to enable case-insensitivity 2023-12-14 18:29:09 +01:00
Jan
00c866c246
Fix custom menu function not being compared case-insensitive 2023-12-14 18:22:02 +01:00
b8b76adc73
fix(menus): make functions case insensitive 2023-12-10 21:33:02 +01:00
Clang Format
c858695f0c
Adjust further code formatting 2023-11-19 21:07:28 +00:00
Jan
0c4835bc36
Fix build due to reordered headers 2023-11-19 21:07:27 +00:00
Clang Format
6b4f5d94a8
Reformat code with clang format 2023-11-19 21:07:21 +00:00
Jan
1e6824368c Fix bugs related to parsing IW5 base game menus 2023-09-26 22:27:32 +02:00
Jan
486d704ce6 Add MP only IW5 UiScripts 2023-09-26 20:59:55 +02:00
Jan
13dfbc9bbb Add IW5 specific uiscripts 2023-09-25 22:55:00 +02:00
Jan
4ff8b3396e Implement the rest of IW5 menu event handler sequences 2023-09-25 21:54:27 +02:00
Jan
d071dc1bfd Make script numeric matchers match negative numbers as well 2023-09-25 21:45:06 +02:00
Jan
870fa44b02 Add existing iw5 script statements 2023-09-24 22:48:11 +02:00
Jan
0b92b9b871 Fix setLocalVar not correctly flushing script when not setting static var 2023-09-24 11:46:39 +02:00
Jan
502e134ed8 Fix not properly handling concurrent strings in permissive menu loading mode 2023-09-23 19:04:15 +02:00
Jan
88bc1c1056 Fix SimpleLexer not being able to read escaped strings 2023-09-23 14:28:59 +02: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
ccc020ca7e Make key handler map a multimap to be able to support multiple handlers for the same key 2023-08-23 23:07:55 +02:00
Jan
db60287a7b Apply statemaps to materials 2022-08-20 19:23:49 +02:00
Jan
886bcfeaf8 Add non static evaluation for simple expressions 2022-08-13 14:13:11 +02:00
Jan
a092f76ec9 Add option to not parse floating point numbers when using SimpleLexer 2022-03-30 19:07:54 +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
4b80ed1e9e Do not parse menus more than once when they have already been parsed 2022-01-01 16:39:28 +01:00
Jan
b5475e30f0 Only load menu files once 2021-12-31 00:09:25 +01:00
Jan
8e4b2bb057 Add non default forecolor flag if forecolor is not white 2021-12-29 18:08:38 +01:00
Jan
f30bbd65da Initialize default values of menus via class level defaults 2021-12-29 13:50:45 +01:00
Jan
96ad97b784 Apply menu elements defaults 2021-12-29 09:02:40 +01:00
Jan
d8b1f58b40 Accept any character on menu permissive mode 2021-12-29 02:52:13 +01:00
Jan
7188b0946d Make use of custom functions when converting menus 2021-12-28 23:52:42 +01:00
Jan
f0edfc5939 Fix IW4x menu script arguments 2021-12-28 18:04:32 +01:00
Jan
30bc876ee4 Add menu iw4x uiscripts 2021-12-28 15:31:56 +01:00
Jan
bfe488acad Add missing expressions for openSound and closeSound for menus 2021-12-28 14:17:16 +01:00
Jan
80a0fba606 Parse menu event handler setplayerdata 2021-12-28 14:17:02 +01:00
Jan
d2262ebaec Fix menu dvarStrList not working because of String chaining 2021-12-28 11:49:42 +01:00
Jan
f8c79d27d0 Discord menu function that have already been defined when parsing 2021-12-27 14:16:17 +01:00
Jan
245a2ed642 Add equals operation to simpleexpressionvalue to check if an expression is the same as another one 2021-12-27 14:15:44 +01:00
Jan
cc88fb0a5a Log menu parsing errors in stderr 2021-12-27 11:32:47 +01:00
Jan
d4154d0cc2 Parse menu function values 2021-12-27 11:28:11 +01:00
Jan
9c5c34b0c8 Leave away unnecessary trailing zeros in script numeric values for menus 2021-12-12 16:23:58 +01:00
Jan
988620e23d Menu conversion base 2021-12-05 16:23:25 +01:00
Jan
05de9cab29 Use StringChain in menu parsing whenever applicable 2021-12-04 13:38:51 +01:00
Jan
616c6414ff Add string chains to menu string properties 2021-12-02 22:39:12 +01:00
Jan
6f15fe6010 Make abstract color property accept less than 4 color values and make others zero 2021-12-02 22:20:11 +01:00