99 Commits

Author SHA1 Message Date
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
93fea39ddd Move StructuredDataDef Parsing to new package 2022-03-21 10:30:54 +01:00
Jan
0a226652f2 Rename CommonStructuredDataStructEntry to Property 2022-03-20 17:40:12 +01:00
Jan
b2140260a4 Dump CommonStructuredDataDefSet instead of the game's internal structures 2022-03-19 23:39:50 +01:00
Jan
c38367d55b Move common structureddatadef classes to objcommon 2022-03-12 14:02:52 +01:00
Jan
dff7912dbc Parse padding instructions for StructuredDataDef 2022-02-06 10:49:58 +01:00
Jan
497c9fc6cf Rename StructuredDataDef classes to remove "Def" from classes that do not need it 2022-01-22 14:47:47 +01:00
Jan
2da6ab8479 Fix empty StructuredDataDef struct having a size of 8 when it is the root struct 2022-01-22 14:41:20 +01:00
Jan
f061ff91f5 Create default StructuredDataDef struct when none was specified so there is always a root struct 2022-01-22 14:35:43 +01:00
Jan
dd23e3f66d Fix StructuredDataDef multi dimensional arrays not getting parsed correctly 2022-01-22 13:57:10 +01:00
Jan
9ed169fcba Calculate StructuredDataDef sizes and offsets 2022-01-22 13:40:08 +01:00
Jan
96ef7a46fb Convert StructuredDataDef for IW4 2022-01-20 23:38:45 +01:00
Jan
b894a524e8 Parse structured data def reserved enum count 2022-01-20 22:37:33 +01:00
Jan
944586fcde Parse StructuredDataDef structs 2022-01-19 19:58:41 +01:00
Jan
1c1fbd1007 Add initial draft of structured data def parser to parse enums only for now 2022-01-18 22:55:50 +01: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
Jan
17e7926442 Accept semicolons in menu dvarStrList and dvarFloatList 2021-12-01 18:22:54 +01:00
Jan
a8126e2db3 Make parenthesis when using menu boolean expression optional 2021-12-01 18:16:58 +01:00
Jan
74988af30b Add expression numerics and int to multiple sequences for menu items 2021-11-28 20:20:28 +01:00
Jan
8bf0126e38 Add hint for permissive mode when parsing fails within event handlerset 2021-11-28 18:03:27 +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
c3a44f60d3 Accept static expressions for menu floating point and int 2021-11-26 21:50:07 +01:00
Jan
9279123ef9 Consume lonely semicolons in items and menus 2021-11-26 21:48:05 +01:00