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 |
ZO_COMPANION_CHARACTER_KEYBOARD_TREE_WIDTH = 243
-- 75 is the inset from the multiIcon plus the icon and spacing from ZO_IconHeader
ZO_COMPANION_CHARACTER_KEYBOARD_TREE_LABEL_WIDTH = ZO_COMPANION_CHARACTER_KEYBOARD_TREE_WIDTH - 75
self . scene = ZO_InteractScene : New ( "companionCharacterKeyboard" , SCENE_MANAGER , ZO_COMPANION_MANAGER : GetInteraction ( ) )
if newState == SCENE_SHOWING then
elseif newState == SCENE_HIDDEN then
end
end )
end
end
end
local DEFAULT_INDENT = 60
local DEFAULT_SPACING = - 10
self . navigationTree = ZO_Tree : New ( self . control : GetNamedChild ( "NavigationContainer" ) , DEFAULT_INDENT , DEFAULT_SPACING , ZO_COMPANION_CHARACTER_KEYBOARD_TREE_WIDTH )
-- ZO_CompanionCharacter_Keyboard_TreeCategory
local iconTexture = open and entryData . pressedIcon or entryData . normalIcon
local mouseoverTexture = entryData . mouseoverIcon
end
if selected then
end
end
self . navigationTree : AddTemplate ( "ZO_CompanionCharacter_Keyboard_TreeCategory" , TreeCategoryEntrySetup , OnTreeCategorySelected )
end
end
end
end
if categoryNode then
end
else
end
end
end
end
local NAVIGATION_ENTRY_DATA =
{
{
fragment = COMPANION_OVERVIEW_KEYBOARD_FRAGMENT ,
normalIcon = "EsoUI/Art/Companion/Keyboard/companion_overview_up.dds" ,
pressedIcon = "EsoUI/Art/Companion/Keyboard/companion_overview_down.dds" ,
mouseoverIcon = "EsoUI/Art/Companion/Keyboard/companion_overview_over.dds" ,
} ,
{
fragment = COMPANION_EQUIPMENT_KEYBOARD_FRAGMENT ,
normalIcon = "EsoUI/Art/Companion/Keyboard/companion_inventory_up.dds" ,
pressedIcon = "EsoUI/Art/Companion/Keyboard/companion_inventory_down.dds" ,
mouseoverIcon = "EsoUI/Art/Companion/Keyboard/companion_inventory_over.dds" ,
if SHARED_INVENTORY and SHARED_INVENTORY : AreAnyItemsNew ( ZO_InventoryUtils_DoesNewItemMatchFilterType , ITEMFILTERTYPE_COMPANION , BAG_BACKPACK ) then
return ZO_KEYBOARD_NEW_ICON
end
return nil
end ,
} ,
}
local treeNode = self . navigationTree : AddNode ( "ZO_CompanionCharacter_Keyboard_TreeCategory" , entryData )
end
end
return
end
end
if fragment then
end
end
-----------------------------
-- Global XML Functions
-----------------------------
end |