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 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 |
ZO_Gamepad_ParametricList_Search_Screen . Initialize ( self , BACKGROUND_LIST_FILTER_TARGET_CRAFTED_ABILITY_ID , "craftedAbilityTextSearch" , control , createTabBar , activateOnShow , scene )
end
local DEFAULT_EQUALITY_FUNCTION = nil
local DEFAULT_HEADER_SETUP_FUNCTION = nil
self . craftedAbilityList : AddDataTemplate ( "ZO_GamepadNewMenuEntryTemplate" , ZO_SharedGamepadEntry_OnSetup , ZO_GamepadMenuEntryTemplateParametricListFunction )
self . craftedAbilityList : AddDataTemplate ( "ZO_GamepadSubMenuEntryTemplate" , ZO_SharedGamepadEntry_OnSetup , ZO_GamepadMenuEntryTemplateParametricListFunction )
self . craftedAbilityList : AddDataTemplate ( "ZO_GamepadSubMenuEntryTemplateWithStatus" , ZO_SharedGamepadEntry_OnSetup , ZO_GamepadMenuEntryTemplateParametricListFunction , DEFAULT_EQUALITY_FUNCTION , "CraftedAbilityEntry" )
self . craftedAbilityList : AddDataTemplateWithHeader ( "ZO_GamepadSubMenuEntryTemplateWithStatus" , ZO_SharedGamepadEntry_OnSetup , ZO_GamepadMenuEntryTemplateParametricListFunction , DEFAULT_EQUALITY_FUNCTION , "ZO_GamepadMenuEntryHeaderTemplate" , DEFAULT_HEADER_SETUP_FUNCTION , "CraftedAbilityEntryWithHeader" )
if leftScriptData and rightScriptData then
end
return false
end
self . scriptsList : AddDataTemplate ( "ZO_GamepadSubMenuEntryTemplateWithStatus" , ZO_SharedGamepadEntry_OnSetup , ZO_GamepadMenuEntryTemplateParametricListFunction , CompareScriptEntries , "CraftedAbilityScriptEntry" )
self . scriptsList : AddDataTemplateWithHeader ( "ZO_GamepadSubMenuEntryTemplateWithStatus" , ZO_SharedGamepadEntry_OnSetup , ZO_GamepadMenuEntryTemplateParametricListFunction , CompareScriptEntries , "ZO_GamepadMenuEntryHeaderTemplate" , DEFAULT_HEADER_SETUP_FUNCTION , "CraftedAbilityScriptEntryWithHeader" )
self . scriptsList : AddDataTemplateWithHeader ( "ZO_GamepadSubMenuEntryTemplate" , ZO_SharedGamepadEntry_OnSetup , ZO_GamepadMenuEntryTemplateParametricListFunction , CompareScriptEntries , "ZO_GamepadMenuEntryHeaderTemplate" )
end
-- To be overridden
end
end
self : SetSearchCriteria ( BACKGROUND_LIST_FILTER_TARGET_CRAFTED_ABILITY_ID , "craftedAbilityTextSearch" )
-- Default hidden value of search text entry before calling refresh which may update the hidden state
end
return ZO_GAMEPAD_DISABLED_SELECTED_COLOR , ZO_GAMEPAD_DISABLED_UNSELECTED_COLOR
end
if appendToList ~= true then
end
local currentHeader = nil
local entryData = ZO_GamepadEntryData : New ( craftedAbilityData : GetFormattedName ( ) , craftedAbilityData : GetIcon ( ) )
else
end
entryData . overrideStatusIndicatorIcons = { ZO_IS_CRAFTED_ABILITY_ON_HOT_BAR_STATUS_ICON_OVERRIDE }
end
if currentHeader ~= headerText then
currentHeader = headerText
else
end
end
end
end
end
end
end
self : SetSearchCriteria ( BACKGROUND_LIST_FILTER_TARGET_CRAFTED_ABILITY_SCRIPT_ID , "craftedAbilityScriptsTextSearch" )
local RESET_TO_TOP = true
end
end
return ZO_GAMEPAD_DISABLED_SELECTED_COLOR , ZO_GAMEPAD_DISABLED_UNSELECTED_COLOR
end
end
local currentHeader = nil
for scribingSlot = SCRIBING_SLOT_ITERATION_BEGIN , SCRIBING_SLOT_ITERATION_END do
local isAnyScriptUnderHeader = false
if self : ShouldShowScript ( craftedAbilityData : GetId ( ) , scriptId ) and self : IsDataInSearchTextResults ( scriptId ) then
else
end
if not isScriptCompatible then
else
end
entryData . overrideStatusIndicatorIcons = { ZO_IS_ACTIVELY_SCRIBED_STATUS_ICON_OVERRIDE }
if isScriptSlotted then
end
end
if currentHeader ~= headerText then
currentHeader = headerText
else
end
isAnyScriptUnderHeader = true
end
end
if not isAnyScriptUnderHeader then
local unlockedScripts = SCRIBING_DATA_MANAGER : GetUnlockedSortedScriptsForCraftedAbilityAndSlot ( craftedAbilityData : GetId ( ) , scribingSlot )
if # unlockedScripts == 0 then
end
currentHeader = headerText
end
end
end
end
return true
end
return false
end
return true
end
end
if craftedAbilityData then
else
end
end
end
end
return SCRIBING_DATA_MANAGER : GetAllSortedScriptsForCraftedAbilityAndSlot ( craftedAbilityData : GetId ( ) , scribingSlot )
end
end
end
end
end
end
if craftedAbilityData then
local NO_SELECTED_SCRIPT = nil
local OPTIONS = { displayFlags = SCRIBING_TOOLTIP_DISPLAY_FLAGS_SHOW_ACQUIRE_HINT }
GAMEPAD_TOOLTIPS : LayoutCraftedAbility ( GAMEPAD_LEFT_TOOLTIP , craftedAbilityData , NO_SELECTED_SCRIPT , NO_SELECTED_SCRIPT , NO_SELECTED_SCRIPT , OPTIONS )
local activePrimaryScriptId , activeSecondaryScriptId , activeTertiaryScriptId = craftedAbilityData : GetActiveScriptIds ( )
GAMEPAD_TOOLTIPS : LayoutCraftedAbilityByIds ( GAMEPAD_RIGHT_TOOLTIP , craftedAbilityData : GetId ( ) , activePrimaryScriptId , activeSecondaryScriptId , activeTertiaryScriptId , OPTIONS )
end
end
end
if scriptData then
local NO_SELECTED_SCRIPT = nil
local OPTIONS = { displayFlags = SCRIBING_TOOLTIP_DISPLAY_FLAGS_SHOW_ACQUIRE_HINT }
GAMEPAD_TOOLTIPS : LayoutCraftedAbilityScript ( GAMEPAD_LEFT_TOOLTIP , self : GetSelectedCraftedAbilityData ( ) , scriptData , NO_SELECTED_SCRIPT , NO_SELECTED_SCRIPT , NO_SELECTED_SCRIPT , OPTIONS )
end
end
local RESET_TO_TOP = true
end
end
if entryData then
end
end
end |