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 |
ZO_GUILD_FINDER_KEYBOARD_OPTIONS_TREE_WIDTH = 240
ZO_GUILD_FINDER_KEYBOARD_OPTIONS_TREE_LABEL_WIDTH = ZO_GUILD_FINDER_KEYBOARD_OPTIONS_TREE_WIDTH - 64
return object
end
self . hasDeferredInitialized = false
self . categoryTree = ZO_Tree : New ( self . listContainer , 60 , - 10 , ZO_GUILD_FINDER_KEYBOARD_OPTIONS_TREE_WIDTH )
self . iconChildlessHeaderTemplateName = self . iconChildlessHeaderTemplateName or "ZO_IconChildlessHeader"
end
end
local function TreeHeaderSelected_Childless ( control , categoryInfo , selected , reselectingDuringRebuild )
if selected then
end
end
if open and userRequested then
end
end
if selected and not reselectingDuringRebuild then
end
end
end
local NO_EQUALITY_FUNCTION = nil
local NO_SELECTION_FUNCTION = nil
local DEFAULT_CHILD_INDENT = nil
local CHILD_INDENT = 60
local CHILD_SPACING = 0
self . categoryTree : AddTemplate ( self . iconChildlessHeaderTemplateName , TreeHeaderSetup_Childless , TreeHeaderSelected_Childless , NO_EQUALITY_FUNCTION , DEFAULT_CHILD_INDENT , CHILD_SPACING )
self . categoryTree : AddTemplate ( "ZO_GuildFinder_IconHeader" , self . onSetupChildHeader , NO_SELECTION_FUNCTION , NO_EQUALITY_FUNCTION , CHILD_INDENT , CHILD_SPACING )
self . categoryTree : AddTemplate ( "ZO_GuildFinder_Tree_SubCategory" , TreeEntrySetup , TreeEntryOnSelected )
end
self . categoryData = categoryData
self . nodeLookupTable = { }
end
local nodeLookupData = { node = parentNode }
local node = self . categoryTree : AddNode ( "ZO_GuildFinder_Tree_SubCategory" , { data = data , subCategoryData = subCategoryData } , parentNode )
if not nodeLookupData . subCategories then
nodeLookupData . subCategories = { }
end
end
else
local nodeLookupData = { node = node }
end
end
end
end
end
if self . selectedCategory ~= newCategory then
self . subcategoryValue = nil
self . selectedCategory = newCategory
end
if self . subcategoryValue ~= newValue then
self . subcategoryValue = newValue
if self . hasDeferredInitialized then -- managers are not set until deferred initialize
end
end
end
local manager = self . selectedCategory . manager
end
end
local manager = self . selectedCategory . manager
if self . subcategoryValue then
end
end
end |