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 |
ZO_EXPIRING_MARKET_CURRENCY_ROW_GAMEPAD_HEIGHT = 55
local DATA_ENTRY_TYPE_EXPIRING_CURRENCY = 1
end
self . expiringCurrencyRowPool = ZO_ControlPool : New ( "ZO_ExpiringMarketCurrencyRow_Gamepad" , self . expiringCurrencyContainer , "ExpiringCurrencyRow" )
end
end
EVENT_MANAGER : RegisterForEvent ( "ZO_ExpiringMarketCurrency_Gamepad" , EVENT_CROWN_UPDATE , OnCrownsUpdated )
end
end
EVENT_MANAGER : RegisterForEvent ( "ZO_ExpiringMarketCurrency_Gamepad" , EVENT_EXPIRING_MARKET_CURRENCY_STATE_UPDATED , OnExpiringMarketCurrencyStateUpdated )
-- Ensure that refresh only occurs on second boundaries
end
end
end
end
end
local textColor = ZO_SELECTED_TEXT
if entryData . timeLeftS < EXPIRING_MARKET_CURRENCY_WARNING_THRESHOLD_SECONDS then
textColor = ZO_ERROR_COLOR
end
local formattedCrownAmount = ZO_Currency_FormatKeyboard ( CURT_CROWNS , entryData . currencyAmount , ZO_CURRENCY_FORMAT_AMOUNT_ICON , { color = ZO_SELECTED_TEXT } )
if previousControl then
else
end
return rowControl
end
if numExpiringMarketCurrencyInfos == 0 then
return
end
local previousControl = nil
for i = 1 , numExpiringMarketCurrencyInfos do
local entryData =
{
currencyAmount = currencyAmount ,
timeLeftS = timeLeftS ,
}
previousControl = rewardControl
end
end
local narrations = { }
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( GetString ( SI_EXPIRING_CROWNS_DESCRIPTION_TEXT ) ) )
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( GetString ( SI_EXPIRING_CROWNS_EMPTY_TEXT ) ) )
else
local formattedNarrationString = zo_strformat ( SI_EXPIRING_CROWNS_AMOUNT_NARRATION_FORMAT , entryData . currencyAmount )
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( formattedNarrationString ) )
formattedNarrationString = zo_strformat ( SI_EXPIRING_CROWNS_EXPIRES_AT_NARRATION_FORMAT , formattedTimeLeft )
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( formattedNarrationString ) )
end
end
return narrations
end
end |