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 |
do
local NOT_EQUIPPED = false
local NO_CREATOR_NAME = nil
local FORCE_FULL_DURABILITY = true
local NO_PREVIEW_VALUE = nil
-- For some market product types we can just use other tooltip layouts
if rewardType == REWARD_ENTRY_TYPE_COLLECTIBLE then
local params =
{
collectibleId = collectibleId ,
showIfPurchasable = true ,
}
return
elseif rewardType == REWARD_ENTRY_TYPE_ITEM then
local stackCount = amount
self : LayoutItemWithStackCount ( itemLink , NOT_EQUIPPED , NO_CREATOR_NAME , FORCE_FULL_DURABILITY , NO_PREVIEW_VALUE , stackCount , EQUIP_SLOT_NONE )
return
elseif rewardType == REWARD_ENTRY_TYPE_LOOT_CRATE then
local quantity = amount
return
elseif rewardType == REWARD_ENTRY_TYPE_ADD_CURRENCY then
return
elseif rewardType == REWARD_ENTRY_TYPE_INSTANT_UNLOCK then
return
end
end
end
do
local g_dailyLoginRewardtimerStatValuePair
g_dailyLoginRewardtimerStatValuePair = nil
if not claimableRewardIndex and nextPotentialRewardIndex == rewardIndex then
if timeToNextMonth == 0 or timeToNextClaim < timeToNextMonth then
statValuePair : SetStat ( GetString ( SI_GAMEPAD_DAILY_LOGIN_REWARDS_TOOLTIP_AVAILABLE_TIMER ) , self : GetStyle ( "statValuePairStat" ) )
local formattedTime = ZO_FormatTimeLargestTwo ( timeToNextClaim , TIME_FORMAT_STYLE_DESCRIPTIVE_MINIMAL )
g_dailyLoginRewardtimerStatValuePair = statValuePair
end
end
end
end
if g_dailyLoginRewardtimerStatValuePair then
local formattedTime = ZO_FormatTimeLargestTwo ( GetTimeUntilNextDailyLoginRewardClaimS ( ) , TIME_FORMAT_STYLE_DESCRIPTIVE_MINIMAL )
end
end
end
end |