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 |
----
-- MarketAnnouncementMarketProduct_Keyboard
----
end
end
-- overwrite to change anchoring
function MarketAnnouncementMarketProduct_Keyboard : LayoutCostAndText ( description , cost , discountPercent , discountedCost , isNew )
ZO_MarketProductBase . LayoutCostAndText ( self , description , cost , discountPercent , discountedCost , isNew )
self . textCallout : SetAnchor ( BOTTOMLEFT , self . purchaseLabelControl , TOPLEFT , ZO_LARGE_SINGLE_MARKET_PRODUCT_CALLOUT_X_OFFSET , 0 )
elseif cost > discountedCost then
self . textCallout : SetAnchor ( BOTTOMLEFT , self . previousCost , TOPLEFT , ZO_LARGE_SINGLE_MARKET_PRODUCT_CALLOUT_X_OFFSET - 2 , 0 ) -- x offset to account for strikethrough
else
self . cost : SetAnchor ( BOTTOMLEFT , self . control , BOTTOMLEFT , ZO_LARGE_SINGLE_MARKET_PRODUCT_CONTENT_X_INSET , ZO_LARGE_SINGLE_MARKET_PRODUCT_CONTENT_BOTTOM_INSET_Y )
self . textCallout : SetAnchor ( BOTTOMLEFT , self . cost , TOPLEFT , ZO_LARGE_SINGLE_MARKET_PRODUCT_CALLOUT_X_OFFSET , 0 )
end
end
----
-- MarketAnnouncement_Keyboard
----
end
self . carousel = ZO_MarketProductCarousel : New ( self . carouselControl , "ZO_MarketAnnouncement_MarketProductTemplate_Keyboard" )
end
end
return marketProduct
end
--global XML functions
end |