![]() |
SafeComboBox override - Printable Version +- MMOMinion (https://www.mmominion.com) +-- Forum: FFXIVMinion (https://www.mmominion.com/forumdisplay.php?fid=87) +--- Forum: [DOWNLOADS] Addons, Lua Modules, Navigation Meshes.. (https://www.mmominion.com/forumdisplay.php?fid=90) +---- Forum: I Need Help with LUA coding! (https://www.mmominion.com/forumdisplay.php?fid=104) +---- Thread: SafeComboBox override (/showthread.php?tid=16775) |
SafeComboBox override - Underwhelp - 07-04-2016 How do I change the value of a variable is they are set to a SafeComboBox? For example. I wish to set gAssistMode setting via my own GUI , my GUI reflect the settings as selected in the Assist Window, but I can not set the value via my GUI. Inside ffxiv_task_assist.lua I can see the value is saved via a SafeComboBox function call. How can I override this ? Without having to modify the task file itself... Code: gAssistMode = ffxivminion.SafeComboBox(Settings.FFXIVMINION.gAssistMode,gAssistMode_listitems,GetString("none")) Code: function ffxivminion.SafeComboBox(var,varlist,default) Here is my function attempting to set the value, I was trying different methods to try and force it. Code: GUI:AlignFirstTextHeightToWidgets() RE: SafeComboBox override - Ace - 07-07-2016 The SafeComboBox just pulls the initial value. I don't really understand the context of what you're doing well enough to offer a fix. Setting gAssistMode to whatever AssistMode is, should change the value, but if you are attempting to change it to a value that is not in our normal list, then you will have some issues with that. |