The title may be a bit missleading, but to shorten it a bit...I need help in finding a way to enforce icon change, color change, widget change...whatever change to ui elements midgame and resting the UI so changes will get invoked on the fly. As far as I understand SkyUI uses its WidgetBase Script in order to check widgets root/source folder, and enable the corresponding .swf file. So it's feasible to simply exchange .swf files with different icon colors to achieve a icon color change. But how would I do that on the fly inside the game?
I already figured, that when using if conditions on...
String Function GetWidgetSource() Return "WM/WM_ArrowCount.swf" EndFunction
...it would allow me to change the icons set by reloading the game. Hence why I need to find a way to reset the widgets ingame. It should be somthing like this inside the MCM OnOptionMenuAccept() Event...
Event OnOptionMenuAccept(Int Option, Int Index) ... If AnyIndex == 0 ArrowThemeGlobal.SetValueInt(0) ElseIf AnyIndex == 1 ArrowThemeGlobal.SetValueInt(1) EndIf ForceWidgetRest(); <-- doesn't actually existEndEvent
...and then in the widget script...
String Function GetWidgetSource() If ArrowThemeGlobal == 0 Return "WM/WM_ArrowCount.swf" ElseIf ArrowThemeGlobal == 1 Return "WM/WM_ArrowCount_White.swf" EndIfEndFunction
...there has to be a way. I've tried a lot, but I can't get those widgets to reset ingame. Please help me!