ingame/dyeing/keyboard/dyeing_keyboard.lua:45 -- DYEING_SCENE:RegisterCallback("StateChange", function(oldState, newState)
if newState == SCENE_SHOWING then
MAIN_MENU_MANAGER:SetBlockingScene("dyeing", OnBlockingSceneActivated)
TriggerTutorial(TUTORIAL_TRIGGER_DYEING_OPENED)
local selectedTabType = ZO_MenuBar_GetSelectedDescriptor(self.tabs)
self:UpdateOptionControls()
InitializePendingDyes(self.mode)
KEYBIND_STRIP:RemoveDefaultExit()
KEYBIND_STRIP:AddKeybindButtonGroup(self.keybindStripDescriptor)
if self.dyeLayoutDirty then
self:LayoutDyes()
end
self:RefreshSavedSets()
self.equipmentSheet:MarkViewDirty()
self.collectibleSheet:MarkViewDirty()
if not ZO_MenuBar_GetSelectedDescriptor(self.toolsTabs) then
self.suppressSounds = true
ZO_MenuBar_SelectDescriptor(self.toolsTabs, self.dyeTool)
self.suppressSounds = false
end
local IS_ENABLED = true
if CanUseCollectibleDyeing() then
ZO_MenuBar_SetDescriptorEnabled(self.tabs, DYE_MODE_COLLECTIBLE, IS_ENABLED)
else
ZO_MenuBar_SetDescriptorEnabled(self.tabs, DYE_MODE_COLLECTIBLE, not IS_ENABLED)
end
elseif newState == SCENE_HIDDEN then
KEYBIND_STRIP:RemoveKeybindButtonGroup(self.keybindStripDescriptor)
KEYBIND_STRIP:RestoreDefaultExit()
MAIN_MENU_MANAGER:ClearBlockingScene(OnBlockingSceneActivated)
end
end)