Back to Home

ESO Lua File v101044

internalingame/marketannouncement/gamepad/marketannouncementmarketproduct_gamepad.lua

[◄ back to folders ]
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
----
-- ZO_MarketAnnouncementMarketProduct_Gamepad
----
ZO_MarketAnnouncementMarketProduct_Gamepad = ZO_MarketAnnouncementMarketProduct_Shared:Subclass()
function ZO_MarketAnnouncementMarketProduct_Gamepad:New(...)
    return ZO_MarketAnnouncementMarketProduct_Shared.New(self, ...)
end
function ZO_MarketAnnouncementMarketProduct_Gamepad:SetIsFocused(isFocused)
    ZO_MarketAnnouncementMarketProduct_Shared.SetIsFocused(self, isFocused)
    local descriptionControl = self:GetDescriptionControl()
    if isFocused then
        descriptionControl:EnableUpdateHandler()
    else
        descriptionControl:DisableUpdateHandler()
    end
end
function ZO_MarketAnnouncementMarketProduct_Gamepad:SetupTextCalloutAnchors()
    ZO_MarketAnnouncementMarketProduct_Shared.SetupTextCalloutAnchors(self)
    self:GetDescriptionControl():SetAnchor(BOTTOMLEFT, self.control, BOTTOMLEFT, ZO_MARKET_ANNOUNCEMENT_MARKET_PRODUCT_INFO_OFFSET_X, -45)
end
-- override of ZO_MarketProductBase:GetEsoPlusIcon()
function ZO_MarketAnnouncementMarketProduct_Gamepad:GetEsoPlusIcon()
    return zo_iconFormatInheritColor("EsoUI/Art/Market/Gamepad/gp_ESOPlus_Chalice_WHITE_64.dds", "100%", "100%")
end
--Overridden from base
function ZO_MarketAnnouncementMarketProduct_Gamepad:GetNarrationText()
    local narrations = {}
    ZO_AppendNarration(narrations, SCREEN_NARRATION_MANAGER:CreateNarratableObject(GetString(SI_MARKET_ANNOUNCEMENT_TITLE)))
    ZO_AppendNarration(narrations, SCREEN_NARRATION_MANAGER:CreateNarratableObject(self.descriptionText))
    return narrations
end