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 |
local KEYBOARD_RETRAIT_ROOT_SCENE_NAME = "retrait_keyboard_root"
end
ZO_RETRAIT_KEYBOARD = ZO_RetraitStation_Retrait_Keyboard : New ( self . control : GetNamedChild ( "RetraitPanel" ) , self )
ZO_RECONSTRUCT_KEYBOARD = ZO_RetraitStation_Reconstruct_Keyboard : New ( self . control : GetNamedChild ( "ReconstructPanel" ) , self )
end
local MENU_BAR_DATA =
{
initialButtonAnchorPoint = RIGHT ,
buttonTemplate = "ZO_MenuBarTooltipButton" ,
normalSize = 51 ,
downSize = 64 ,
buttonPadding = - 15 ,
animationDuration = 180 ,
}
self . retraitTab =
{
categoryName = SI_RETRAIT_STATION_RETRAIT_MODE ,
descriptor = ZO_RETRAIT_MODE_RETRAIT ,
normal = "EsoUI/Art/Crafting/retrait_tabIcon_up.dds" ,
pressed = "EsoUI/Art/Crafting/retrait_tabIcon_down.dds" ,
highlight = "EsoUI/Art/Crafting/retrait_tabIcon_over.dds" ,
disabled = "EsoUI/Art/Crafting/retrait_tabIcon_disabled.dds" ,
}
self . reconstructTab =
{
categoryName = SI_RETRAIT_STATION_RECONSTRUCT_MODE ,
descriptor = ZO_RETRAIT_MODE_RECONSTRUCT ,
normal = "EsoUI/Art/Crafting/reconstruct_tabIcon_up.dds" ,
pressed = "EsoUI/Art/Crafting/reconstruct_tabIcon_down.dds" ,
highlight = "EsoUI/Art/Crafting/reconstruct_tabIcon_over.dds" ,
disabled = "EsoUI/Art/Crafting/reconstruct_tabIcon_disabled.dds" ,
}
end
KEYBOARD_RETRAIT_ROOT_SCENE = self . interactScene
end
if not self . initializedTabs then
local retraitFragments =
{
RIGHT_PANEL_BG_FRAGMENT ,
RETRAIT_STATION_RETRAIT_FRAGMENT ,
CRAFTING_RESULTS_FRAGMENT ,
}
self . tabs : Add ( self . retraitTab . categoryName , retraitFragments , self . retraitTab , ZO_RETRAIT_KEYBOARD : GetKeybindDescriptor ( ) )
local reconstructFragments =
{
RIGHT_BG_FRAGMENT ,
RETRAIT_STATION_RECONSTRUCT_FRAGMENT ,
CRAFTING_RESULTS_FRAGMENT ,
}
self . tabs : Add ( self . reconstructTab . categoryName , reconstructFragments , self . reconstructTab , ZO_RECONSTRUCT_KEYBOARD : GetKeybindDescriptor ( ) )
self . initializedTabs = true
end
if self . mode == ZO_RETRAIT_MODE_RECONSTRUCT then
else
end
end
end
end
end
if self . mode ~= mode then
self . mode = mode
end
end
local modeBackground
if self . mode == ZO_RETRAIT_MODE_RETRAIT then
modeBackground = ZO_SharedRightPanelBackground
elseif self . mode == ZO_RETRAIT_MODE_RECONSTRUCT then
modeBackground = ZO_SharedRightBackground
end
if modeBackground then
local DIVIDER_OFFSET_X = 40
end
end
-- Global XML functions
end |