LuaMachine icon indicating copy to clipboard operation
LuaMachine copied to clipboard

Struct Enums convert to/from DisplayName strings

Open Olathuss opened this issue 2 years ago • 1 comments

UENUMs set in Structs will use the DisplayName string value in LUA during conversion. They will also properly convert to the right ENUM value from LuaValue strings.

Olathuss avatar Apr 25 '23 07:04 Olathuss

It should be noted this could break current projects depending on the integer conversion. But I added this in my current project and wanted to share.

If modifications would be preferred before using, such as adding a bool to the conversion to allow integer or string, feel free to reject and modify as needed; if it's wanted at all. Or if you'd like me to add changes, let me know. Thanks!

Olathuss avatar Apr 25 '23 07:04 Olathuss