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 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 |
-------------------------
-- Tribute Patron Tile --
-------------------------
ZO_TRIBUTE_PATRON_SELECTION_TILE_WIDTH_KEYBOARD = 220
ZO_TRIBUTE_PATRON_SELECTION_TILE_HEIGHT_KEYBOARD = 330
ZO_TRIBUTE_PATRON_TILE_ICON_WIDE_DIMENSIONS_KEYBOARD = ZO_TRIBUTE_PATRON_BOOK_TILE_WIDE_WIDTH_KEYBOARD - 20
ZO_TRIBUTE_PATRON_TILE_ICON_DIMENSIONS_KEYBOARD = ZO_TRIBUTE_PATRON_BOOK_TILE_WIDTH_KEYBOARD - 20
-- Primary logic class must be subclassed after the platform class so that platform specific functions will have priority over the logic class functionality
end
end
end
-------------------------
-- Tribute Patron Book Tile --
-------------------------
ZO_TributePatronBookTile_Keyboard = ZO_Object . MultiSubclass ( ZO_TributePatronTile_Keyboard , ZO_TributePatronTile_Shared )
end
end
local desaturation = isLocked and 1 or 0
if isLocked then
end
end
-- Begin ZO_ContextualActionsTile_Keyboard Overrides --
if isFocused then
local DONT_HIGHLIGHT_ACTIVE_FAVOR_STATE = false
local ALLOW_NOT_COLLECTIBLE_WARNING = false
local SHOW_ACQUIRE_HINT = true
local SHOW_LORE = true
ItemTooltip : SetTributePatron ( self . patronData : GetId ( ) , DONT_HIGHLIGHT_ACTIVE_FAVOR_STATE , ALLOW_NOT_COLLECTIBLE_WARNING , SHOW_ACQUIRE_HINT , SHOW_LORE )
else
end
end
-- End ZO_ContextualActionsTile_Keyboard Overrides --
-------------------------
-- Tribute Patron Selection Tile --
-------------------------
ZO_TRIBUTE_PATRON_SELECTION_TILE_KEYBOARD_GLOW_ANIMATION_PROVIDER = ZO_ReversibleAnimationProvider : New ( "ShowOnMouseOverLabelAnimation" )
ZO_TributePatronSelectionTile_Keyboard = ZO_Object . MultiSubclass ( ZO_TributePatronTile_Keyboard , ZO_TributePatronSelectionTile_Shared )
end
end
--This needs to be done manually to override logic in ZO_ContextualActionsTile_Keyboard
end
--TODO Tribute: Determine if any of this logic can be moved to shared
local isDrafted = false
local isSelected = false
if ZO_TRIBUTE_PATRON_SELECTION_MANAGER then
isSelected = currentSelectedPatronId == patronId
end
local iconDesaturation = isLocked and 1 or 0
local highlightTexture = isLocked and "EsoUI/Art/Tribute/tributePatronHighlight_Disabled.dds" or "EsoUI/Art/Tribute/tributePatronHighlight_Hover.dds"
end
local showGlow = isSelected or isDrafted
if showGlow then
ZO_TRIBUTE_PATRON_SELECTION_TILE_KEYBOARD_GLOW_ANIMATION_PROVIDER : PlayForward ( self . glow , self . patronData . animateInstantly )
else
ZO_TRIBUTE_PATRON_SELECTION_TILE_KEYBOARD_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
end
end
-- Begin ZO_ContextualActionsTile_Keyboard Overrides --
if isFocused then
local DONT_HIGHLIGHT_ACTIVE_FAVOR_STATE = false
local ALLOW_NOT_COLLECTIBLE_WARNING = false
ItemTooltip : SetTributePatron ( self . patronData : GetId ( ) , DONT_HIGHLIGHT_ACTIVE_FAVOR_STATE , ALLOW_NOT_COLLECTIBLE_WARNING , showAquireHintIfPatronIsLocked )
else
end
end
end
end
--If the patron is selectable, just draft right away and skip the confirm
--If the patron is already selected, just tell the selection manager to confirm
end
end
end
-- End ZO_ContextualActionsTile_Keyboard Overrides --
-- XML functions
----------------
end
end |