Originally Posted by etb12345
I have looked trough all the wiki but i cant find anything that would let me change tab from Refining to Deconstruct. I am making a plugin and i would like that it automaticly open the Deconstruct tab when i visit a station.
Anyone have this information?
How to change Tab
|
You can use the following command to change tab:
Lua Code:
ZO_MenuBar_SelectDescriptor(ZO_SmithingTopLevelModeMenuBar, mode)
where mode is:
1: refinment
2: creation
3: improvement
4: deconstruction
5: research
This works, but I'm really not sure if it doesn't break something else, so you should test it before you actually use it in addon:
Lua Code:
SMITHING_SCENE:RegisterCallback("StateChange",
function(oldState, newState)
if newState == SCENE_SHOWING then
ZO_MenuBar_SelectDescriptor(ZO_SmithingTopLevelModeMenuBar, 4)
end
end)