Error with Example Project - max_h not found in YuiElementSize.inspectron
I'm trying to learn how this library works and when I try testing it with the example provided, I get an error on compile.
ERROR in action number 1 of Create Event for object yui_document: Variable YuiElementSize.max_h(102667, -2147483648) not set before reading it. at gml_Script_YuiElementSize (line 147) - .Watch(nameof(max_h))
Any ideas of how to fix this? Thanks!
okay I think i finally understand what was happening here -- the problem seems to be that in some versions of GM, when the static inspectron is initialized (declared at the end of the constructor) it can't find the nameof(max_h) because that's defined in the non-static constructor logic which hasn't run at the time of static initialization. This problem doesn't seem to happen in GM 2023.11 for whatever reason (the version I still use). When I eventually update to a newer version I will see if I encounter this, but it may already be fixed in newer versions of GM