|
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 |
--------------------------- Tribute Patron Tile ---------------------------ZO_TRIBUTE_PATRON_BOOK_TILE_WIDTH_GAMEPAD = 238ZO_TRIBUTE_PATRON_BOOK_TILE_HEIGHT_GAMEPAD = 366ZO_TRIBUTE_PATRON_SELECTION_TILE_WIDTH_GAMEPAD = 232ZO_TRIBUTE_PATRON_SELECTION_TILE_HEIGHT_GAMEPAD = 326ZO_TRIBUTE_PATRON_BOOK_TILE_ICON_DIMENSIONS_GAMEPAD = ZO_TRIBUTE_PATRON_BOOK_TILE_WIDTH_GAMEPAD + 20ZO_TRIBUTE_PATRON_SELECTION_TILE_ICON_DIMENSIONS_GAMEPAD = ZO_TRIBUTE_PATRON_SELECTION_TILE_WIDTH_GAMEPAD + 20endendend--------------------------- Tribute Patron Book Tile ----------------------------- Primary logic class must be subclassed after the platform class so that platform specific functions will have priority over the logic class functionalityZO_TributePatronBookTile_Gamepad = ZO_Object.MultiSubclass(ZO_TributePatronTile_Gamepad, ZO_TributePatronTile_Shared)endendend-- Begin ZO_ContextualActionsTile_Gamepad Overrides -- if isFocused then local optionalArgs = { highlightActivePatronState = false, suppressNotCollectibleWarning = false, showAcquireHint = true, showLore = true, } endend-- End ZO_ContextualActionsTile_Gamepad Overrides --------------------------------------- Tribute Patron Selection Tile -------------------------------------ZO_TRIBUTE_PATRON_SELECTION_TILE_GAMEPAD_GLOW_ANIMATION_PROVIDER = ZO_ReversibleAnimationProvider:New("ShowOnMouseOverLabelAnimation")--TODO Tribute: Determine if any of this logic can be moved to sharedZO_TributePatronSelectionTile_Gamepad = ZO_Object.MultiSubclass(ZO_TributePatronTile_Gamepad, ZO_TributePatronSelectionTile_Shared)endend local toggleTooltipDescriptor = { keybind = "UI_SHORTCUT_TERTIARY", end, } --This needs to be done manually to override logic in ZO_ContextualActionsTile_Gamepadend local isDrafted = false local isSelected = false if ZO_TRIBUTE_PATRON_SELECTION_MANAGER then isSelected = currentSelectedPatronId == patronId endend local showGlow = isSelected or isDrafted if showGlow then ZO_TRIBUTE_PATRON_SELECTION_TILE_GAMEPAD_GLOW_ANIMATION_PROVIDER:PlayForward(self.glow, self.patronData.animateInstantly) else ZO_TRIBUTE_PATRON_SELECTION_TILE_GAMEPAD_GLOW_ANIMATION_PROVIDER:PlayBackward(self.glow, self.patronData.animateInstantly) end end if showGlow then local glowTexture if isDrafted then glowTexture = isLocked and "EsoUI/Art/Tribute/tributePatronHighlight_DraftedDisabled.dds" or "EsoUI/Art/Tribute/tributePatronHighlight_Drafted.dds" else glowTexture = "EsoUI/Art/Tribute/tributePatronHighlight_Selected.dds" end endend local DONT_HIGHLIGHT_ACTIVE_FAVOR_STATE = false local ALLOW_NOT_COLLECTIBLE_WARNING = false local optionalArgs = { highlightActivePatronState = DONT_HIGHLIGHT_ACTIVE_FAVOR_STATE, suppressNotCollectibleWarning = ALLOW_NOT_COLLECTIBLE_WARNING, } ZO_TributePatronTooltip_Gamepad_Show(self.patronData, optionalArgs, LEFT, self.control, RIGHT, 25, 0) endend-- Begin ZO_ContextualActionsTile_Gamepad Overrides --end-- End ZO_ContextualActionsTile_Gamepad Overrides ---- XML functions----------------endend |