|
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 |
return objectend if newState == SCENE_FRAGMENT_SHOWING then elseif newState == SCENE_FRAGMENT_HIDDEN then end end) end) end end)end local MENU_BAR_DATA = { initialButtonAnchorPoint = RIGHT, buttonTemplate = "ZO_MenuBarTooltipButton", normalSize = 51, downSize = 64, buttonPadding = -15, animationDuration = 180, } local function CreateButtonData(normal, pressed, highlight, disabled, enabledFunction, alwaysShowTooltip, customTooltipFunction, callback) return { disabled = disabled, alwaysShowTooltip = alwaysShowTooltip, } end local ALWAYS_SHOW_EQUIP_TOOLTIP = true local DEFAULT_ENABLED_FUNCTION = nil SetTooltipText(informationTooltip, zo_strformat(SI_MENU_BAR_TOOLTIP, GetString(SI_CRAFT_ADVISOR_TOOLTIP_EQUIP_TAB))) end "EsoUI/Art/WritAdvisor/advisor_tabIcon_equip_down.dds", "EsoUI/Art/WritAdvisor/advisor_tabIcon_equip_over.dds", "EsoUI/Art/WritAdvisor/advisor_tabIcon_equip_disabled.dds", DEFAULT_ENABLED_FUNCTION, ALWAYS_SHOW_EQUIP_TOOLTIP, function() end) local ALWAYS_SHOW_CRAFT_TOOLTIP = true SetTooltipText(informationTooltip, zo_strformat(SI_MENU_BAR_TOOLTIP, GetString(SI_CRAFT_ADVISOR_TOOLTIP_WRIT_TAB))) else SetTooltipText(informationTooltip, zo_strformat(SI_MENU_BAR_TOOLTIP, GetString(SI_CRAFT_ADVISOR_TOOLTIP_WRIT_TAB))) end end "EsoUI/Art/WritAdvisor/advisor_tabIcon_quests_down.dds", "EsoUI/Art/WritAdvisor/advisor_tabIcon_quests_over.dds", "EsoUI/Art/WritAdvisor/advisor_tabIcon_quests_disabled.dds", ALWAYS_SHOW_CRAFT_TOOLTIP, function() end)end --If the writ tab is enabled, we want to default to it, otherwise, default to the equip tab else endend else endend --If this is the first time showing the craft advisor, we need to do a bit of extra setup self.tabs:Add(SI_CRAFT_ADVISOR_WRITS_TITLE, { WRIT_ADVISOR_FRAGMENT, MEDIUM_LEFT_PANEL_BG_FRAGMENT}, self.writData) self.tabs:Add(SI_CHARACTER_EQUIP_TITLE, { READ_ONLY_CHARACTER_WINDOW_FRAGMENT, THIN_LEFT_PANEL_BG_FRAGMENT}, self.equipmentData) endendendend |