1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
end
end
end
local INITIAL_CONTEXT_MENU_REF_COUNT = 1
{
-- Cancel All Previews
{
end ,
end ,
} ,
-- Preview Target
{
else
end
end ,
return not collectibleData . IsBlocked or not collectibleData : IsBlocked ( GAMEPLAY_ACTOR_CATEGORY_PLAYER )
end ,
end ,
end ,
} ,
-- Change outfit name
{
end ,
ZO_Dialogs_ShowDialog ( "RENAME_OUFIT" , { actorCategory = outfitManipulator : GetActorCategory ( ) , outfitIndex = outfitManipulator : GetOutfitIndex ( ) } , { initialEditText = outfitManipulator : GetOutfitName ( ) } )
end ,
} ,
}
end
ZO_RESTYLE_SHEET_WINDOW_KEYBOARD : RegisterCallback ( "ModeSelectorDropdownChanged" , self . onModeDropdownChangedCallback )
end
ZO_OUTFIT_STYLES_PANEL_KEYBOARD : UnregisterCallback ( "PreviewSlotsChanged" , self . updateKeybindCallback )
ZO_RESTYLE_SHEET_WINDOW_KEYBOARD : UnregisterCallback ( "ModeSelectorDropdownChanged" , self . onModeDropdownChangedCallback )
end
end
end
end
end
do
local DISALLOW_DYEING = false
local SPECIALIZED_COLLECTIBLE_CATEGORY_ENABLED = true
local DONT_DERIVE_COLLECTIBLE_CATEGORIES_FROM_SLOTS = false
local RESTYLE_CATEGORY_DATA = ZO_RestyleCategoryData : New ( RESTYLE_MODE_OUTFIT , DISALLOW_DYEING , COLLECTIBLE_CATEGORY_SPECIALIZATION_OUTFIT_STYLES , SPECIALIZED_COLLECTIBLE_CATEGORY_ENABLED , DONT_DERIVE_COLLECTIBLE_CATEGORIES_FROM_SLOTS )
local RESTYLE_COMPANION_CATEGORY_DATA = ZO_RestyleCategoryData : New ( RESTYLE_MODE_COMPANION_OUTFIT , DISALLOW_DYEING , COLLECTIBLE_CATEGORY_SPECIALIZATION_OUTFIT_STYLES , SPECIALIZED_COLLECTIBLE_CATEGORY_ENABLED , DONT_DERIVE_COLLECTIBLE_CATEGORIES_FROM_SLOTS )
local actorCategory = ZO_OUTFIT_MANAGER . GetActorCategoryByRestyleMode ( currentSheet : GetRestyleMode ( ) )
if actorCategory == GAMEPLAY_ACTOR_CATEGORY_PLAYER then
return RESTYLE_CATEGORY_DATA
elseif actorCategory == GAMEPLAY_ACTOR_CATEGORY_COMPANION then
return RESTYLE_COMPANION_CATEGORY_DATA
end
return nil
end
end
end
end
end
end |