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 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 |
local ineligibilitySection = self : AcquireSection ( self : GetStyle ( "instantUnlockIneligibilitySection" ) )
if errorStringId ~= 0 then
ineligibilitySection : AddLine ( GetErrorString ( errorStringId ) , self : GetStyle ( "instantUnlockIneligibilityLine" ) )
end
end
end
end
do
-- For some market product types we can just use other tooltip layouts
if productType == MARKET_PRODUCT_TYPE_COLLECTIBLE then
local params =
{
showIfPurchasable = showCollectiblePurchasableHint ,
}
elseif productType == MARKET_PRODUCT_TYPE_ITEM then
elseif productType == MARKET_PRODUCT_TYPE_CROWN_CRATE then
elseif productType == MARKET_PRODUCT_TYPE_CURRENCY then
elseif productType == MARKET_PRODUCT_TYPE_INSTANT_UNLOCK then
--Instant Unlock Restrictions
if expectedClaimResult == MARKET_PURCHASE_RESULT_FAIL_INSTANT_UNLOCK_REQ_LIST then
elseif expectedClaimResult == MARKET_PURCHASE_RESULT_TEMPORARY_HOTBAR_PROHIBITION then
local ineligibilitySection = self : AcquireSection ( self : GetStyle ( "instantUnlockIneligibilitySection" ) )
ineligibilitySection : AddLine ( GetString ( "SI_MARKETPURCHASABLERESULT" , MARKET_PURCHASE_RESULT_TEMPORARY_HOTBAR_PROHIBITION ) , self : GetStyle ( "instantUnlockIneligibilityLine" ) )
end
end
else
-- things added to the topSection stack upwards
if productType == MARKET_PRODUCT_TYPE_BUNDLE then
if DoesMarketProductContainDLC ( productId ) and GetMarketProductNumBundledProducts ( productId ) == 1 then
else
end
end
-- Name
if productType == MARKET_PRODUCT_TYPE_HOUSING then
if houseId > 0 then
displayName = ZO_SELECTED_TEXT : Colorize ( zo_strformat ( SI_MARKET_PRODUCT_HOUSE_NAME_FORMATTER , houseDisplayName , displayName ) )
end
elseif stackCount > 1 then
else
end
-- Description
bodySection : AddLine ( zo_strformat ( GetMarketProductDescription ( productId ) ) , self : GetStyle ( "bodyDescription" ) )
end
end
end
local DONT_SHOW_AS_PURCHASABLE = false
local achievementId , completedAchievement = GetMarketProductUnlockedByAchievementInfo ( marketProductId )
if achievementId ~= 0 then
criteriaSection : AddLine ( GetString ( SI_MARKET_PRODUCT_TOOLTIP_REQUIRED_ACHIEVEMENT_HEADER ) , self : GetStyle ( "achievementSummaryCriteriaHeader" ) )
criteriaSection : AddSection ( self : GetCheckboxSection ( zo_strformat ( achievementName ) , completedAchievement ) )
purchasableOnAltSection : AddLine ( GetString ( SI_MARKET_PRODUCT_TOOLTIP_SKYSHARD_PURCHASABLE_ON_ALT_CHARACTER_DESCRIPTION ) , self : GetStyle ( "bodyDescription" ) , self : GetStyle ( "whiteFontColor" ) )
purchasableOnAltSection : AddLine ( GetString ( SI_MARKET_PRODUCT_TOOLTIP_SKILL_LINE_PURCHASABLE_ON_ALT_CHARACTER_DESCRIPTION ) , self : GetStyle ( "bodyDescription" ) , self : GetStyle ( "whiteFontColor" ) )
else
purchasableOnAltSection : AddLine ( GetString ( SI_MARKET_PRODUCT_TOOLTIP_PURCHASABLE_ON_ALT_CHARACTER_DESCRIPTION ) , self : GetStyle ( "bodyDescription" ) , self : GetStyle ( "whiteFontColor" ) )
end
end
end
if not passesReqList and errorStringId ~= 0 then
local ineligibilitySection = self : AcquireSection ( self : GetStyle ( "instantUnlockIneligibilitySection" ) )
ineligibilitySection : AddLine ( GetErrorString ( errorStringId ) , self : GetStyle ( "instantUnlockIneligibilityLine" ) )
end
local currencyType , cost , costAfterDiscount , discountPercent , esoPlusCost = GetMarketProductPricingByPresentation ( marketProductId , presentationIndex )
if esoPlusCost then
local dealText
if cost then
else
end
local INHERIT_COLOR = true
local esoPlusDealString = zo_iconTextFormatNoSpace ( "EsoUI/Art/Market/Gamepad/gp_ESOPlus_Chalice_WHITE_64.dds" , "100%" , "100%" , dealText , INHERIT_COLOR )
bodySection : AddLine ( esoPlusDealString , self : GetStyle ( "bodyDescription" ) , self : GetStyle ( "esoPlusColorStyle" ) )
end
end
bodySection : AddLine ( zo_strformat ( SI_MARKET_FREE_TRIAL_TOOLTIP_DESCRIPTION , endTimeString ) , self : GetStyle ( "bodyDescription" ) )
-- using a second body section here to separate out the start instruction from the description
-- the action here should match the actual action in the keybind strip to start the free trial
bodySection2 : AddKeybindLine ( "UI_SHORTCUT_PRIMARY" , SI_MARKET_FREE_TRIAL_TOOLTIP_START_INSTRUCTIONS , self : GetStyle ( "bodyDescription" ) )
end
end
statValuePair : SetStat ( GetString ( SI_MARKET_SUBSCRIPTION_PAGE_SUBSCRIPTION_STATUS_LABEL_GAMEPAD ) , self : GetStyle ( "statValuePairStat" ) )
end
-- things added to the topSection stack upwards
if crateCount > 0 then
topSubsection : AddLine ( zo_iconTextFormat ( "EsoUI/Art/Tooltips/icon_crown_crate.dds" , 24 , 24 , crateCount ) )
end
-- Name
if stackCount > 1 then
else
end
-- Description
end
do
internalassert ( INSTANT_UNLOCK_MAX_VALUE == 17 , "Update gamepad tooltip for new instant unlock type" )
-- things added to the topSection stack upwards
-- Name
-- Body
local tooltipLines = { }
if instantUnlockCategory == INSTANT_UNLOCK_REWARD_CATEGORY_UPGRADE then
local currentUnlock
local maxUnlock
if instantUnlockType == INSTANT_UNLOCK_PLAYER_BACKPACK then
elseif instantUnlockType == INSTANT_UNLOCK_PLAYER_BANK then
elseif instantUnlockType == INSTANT_UNLOCK_CHARACTER_SLOT then
elseif instantUnlockType == INSTANT_UNLOCK_OUTFIT then
maxUnlock = MAX_OUTFIT_UNLOCKS
elseif instantUnlockType == INSTANT_UNLOCK_ARMORY_BUILD_SLOT then
maxUnlock = MAX_NUM_ARMORY_BUILDS
end
statValuePair : SetValue ( zo_strformat ( SI_MARKET_PRODUCT_TOOLTIP_UNLOCK_LEVEL , currentUnlock , maxUnlock ) , self : GetStyle ( "statValuePairValue" ) )
elseif instantUnlockCategory == INSTANT_UNLOCK_REWARD_CATEGORY_SERVICE_TOKEN then
local tokenCountString
if instantUnlockType == INSTANT_UNLOCK_RENAME_TOKEN then
tokenCountString = zo_strformat ( SI_SERVICE_TOOLTIP_SERVICE_TOKENS_AVAILABLE , GetNumServiceTokens ( SERVICE_TOKEN_NAME_CHANGE ) , GetString ( "SI_SERVICETOKENTYPE" , SERVICE_TOKEN_NAME_CHANGE ) )
elseif instantUnlockType == INSTANT_UNLOCK_RACE_CHANGE_TOKEN then
tokenCountString = zo_strformat ( SI_SERVICE_TOOLTIP_SERVICE_TOKENS_AVAILABLE , GetNumServiceTokens ( SERVICE_TOKEN_RACE_CHANGE ) , GetString ( "SI_SERVICETOKENTYPE" , SERVICE_TOKEN_RACE_CHANGE ) )
elseif instantUnlockType == INSTANT_UNLOCK_APPEARANCE_CHANGE_TOKEN then
tokenCountString = zo_strformat ( SI_SERVICE_TOOLTIP_SERVICE_TOKENS_AVAILABLE , GetNumServiceTokens ( SERVICE_TOKEN_APPEARANCE_CHANGE ) , GetString ( "SI_SERVICETOKENTYPE" , SERVICE_TOKEN_APPEARANCE_CHANGE ) )
elseif instantUnlockType == INSTANT_UNLOCK_ALLIANCE_CHANGE_TOKEN then
tokenCountString = zo_strformat ( SI_SERVICE_TOOLTIP_SERVICE_TOKENS_AVAILABLE , GetNumServiceTokens ( SERVICE_TOKEN_ALLIANCE_CHANGE ) , GetString ( "SI_SERVICETOKENTYPE" , SERVICE_TOKEN_ALLIANCE_CHANGE ) )
end
else
end
-- Description
for i = 1 , # tooltipLines do
end
end
end |