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 |
ZO_LARGE_SINGLE_MARKET_PRODUCT_WIDTH = 407
ZO_LARGE_SINGLE_MARKET_PRODUCT_HEIGHT = 270
ZO_LARGE_SINGLE_MARKET_PRODUCT_CONTENT_TOP_INSET_Y = 11
ZO_LARGE_SINGLE_MARKET_PRODUCT_CONTENT_INSET_X = 25
ZO_LARGE_SINGLE_MARKET_PRODUCT_CONTENT_BOTTOM_INSET_Y = - 20
ZO_MARKET_PRODUCT_PURCHASED_DESATURATION = 1
ZO_MARKET_PRODUCT_NOT_PURCHASED_DESATURATION = 0
--
--[[ ZO_LargeSingleMarketProduct_Base ]] --
--
end
end
-- Used for explicity show/hide without re-laying out the data via :Show
end
-- override of ZO_MarketProductBase:GetBackground()
end
local formattedTitle
if stackCount > 1 then
else
end
end
end
if self . isFocused ~= isFocused then
self . isFocused = isFocused
end
end
-- override of ZO_MarketProductBase:IsFocused()
return self . isFocused
end
end
end
-- Update Product style is called during show, product refresh, and on selection changed.
-- Effectively Dims, Brightens and Desaturates products according to focus and product state
local displayState = self . displayState
-- only update the purchased label if we are showing it (which should be if we are purchase locked)
if isPurchaseLocked then
ZO_MarketClasses_Shared_ApplyTextColorToLabelByState ( control . purchaseLabelControl , isFocused , displayState )
ZO_MarketClasses_Shared_ApplyEsoPlusColorToLabelByState ( control . esoPlusDealLabelControl , isFocused , displayState )
end
ZO_MarketClasses_Shared_ApplyEsoPlusColorToLabelByState ( control . esoPlusCost , isFocused , displayState )
local textCalloutBackgroundColor
local textCalloutTextColor
textCalloutBackgroundColor = ZO_BLACK
textCalloutTextColor = isFocused and ZO_MARKET_PRODUCT_ON_SALE_COLOR or ZO_MARKET_PRODUCT_ON_SALE_DIMMED_COLOR
textCalloutBackgroundColor = isFocused and ZO_MARKET_PRODUCT_ON_SALE_COLOR or ZO_MARKET_PRODUCT_ON_SALE_DIMMED_COLOR
textCalloutTextColor = isFocused and ZO_MARKET_PRODUCT_BACKGROUND_BRIGHTNESS_COLOR or ZO_MARKET_DIMMED_COLOR
textCalloutBackgroundColor = isFocused and ZO_MARKET_PRODUCT_NEW_COLOR or ZO_MARKET_PRODUCT_NEW_DIMMED_COLOR
textCalloutTextColor = isFocused and ZO_MARKET_PRODUCT_BACKGROUND_BRIGHTNESS_COLOR or ZO_MARKET_DIMMED_COLOR
end
local backgroundColor = isFocused and ZO_MARKET_PRODUCT_BACKGROUND_BRIGHTNESS_COLOR or ZO_MARKET_DIMMED_COLOR
local previousCostColor = isFocused and ZO_DEFAULT_TEXT or ZO_DISABLED_TEXT
end |