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)
ZO_Dyeing_CopyExistingDyesToPending()
KEYBIND_STRIP:RemoveDefaultExit()
KEYBIND_STRIP:AddKeybindButtonGroup(self.keybindStripDescriptor)
if self.dyeLayoutDirty then
self:LayoutDyes()
end
self:RefreshSavedSets()
self.equipmentSheet:MarkViewDirty()
if not ZO_MenuBar_GetSelectedDescriptor(self.toolsTabs) then
self.suppressSounds = true
ZO_MenuBar_SelectDescriptor(self.toolsTabs, self.dyeTool)
self.suppressSounds = false
end
elseif newState == SCENE_HIDDEN then
KEYBIND_STRIP:RemoveKeybindButtonGroup(self.keybindStripDescriptor)
KEYBIND_STRIP:RestoreDefaultExit()
MAIN_MENU_MANAGER:ClearBlockingScene(OnBlockingSceneActivated)
end
end)