AtilioA / BG3-MCM

🔧 Baldur's Gate 3 Mod Configuration Menu provides an in-game UI that enables players to intuitively manage mod settings.
https://wiki.bg3.community/Tutorials/Mod-Frameworks/mod-configuration-menu
GNU Affero General Public License v3.0
10 stars 1 forks source link

enum values being sent as strings #20

Open Faen668 opened 1 week ago

Faen668 commented 1 week ago

when subscribing to the 'MCM_Setting_Saved' event, enum values seem to come through as strings rather than numeric values.

I may have missed something but if this is the case then translations would be a nightmare as you have to hardcode the strings for comparison rather than just the enum value of the choice.

AtilioA commented 1 week ago

Enums have string values. Could you clarify how this would affect translation handling?

Faen668 commented 1 week ago

No I can't clarify it because I'm totally wrong and you should forget you ever saw this :)

I got confused as I had my .loca text the same as the blueprint so it appeared to just be passing the localised text not the blueprint defined value.

Apologies!