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 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 |
local LINE_SPACING = 3
local BORDER = 8
local MAX_WIDTH = 400
local NUM_RESOURCES = 3
local KEEP_TOOLTIP_NAME = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_KEEP_TOOLTIP , KEEP_TOOLTIP_COLOR_NAME ) )
local KEEP_TOOLTIP_ATTACK_LINE = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_KEEP_TOOLTIP , KEEP_TOOLTIP_COLOR_ATTACK_LINE ) )
local KEEP_TOOLTIP_NORMAL_LINE = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_KEEP_TOOLTIP , KEEP_TOOLTIP_COLOR_NORMAL_LINE ) )
local KEEP_TOOLTIP_ACCESSIBLE = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_KEEP_TOOLTIP , KEEP_TOOLTIP_COLOR_ACCESSIBLE ) )
local KEEP_TOOLTIP_NOT_ACCESSIBLE = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_KEEP_TOOLTIP , KEEP_TOOLTIP_COLOR_NOT_ACCESSIBLE ) )
local KEEP_TOOLTIP_UNIDIRECTIONALLY_ACCESSIBLE = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_KEEP_TOOLTIP , KEEP_TOOLTIP_COLOR_UNIDIRECTIONALLY_ACCESSIBLE ) )
local KEEP_TOOLTIP_AT_KEEP = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_KEEP_TOOLTIP , KEEP_TOOLTIP_COLOR_AT_KEEP ) )
local KEEP_TOOLTIP_OWNER = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_KEEP_TOOLTIP , KEEP_TOOLTIP_COLOR_OWNER ) )
local KEEP_TOOLTIP_UNCLAIMED = ZO_ColorDef : New ( GetInterfaceColor ( INTERFACE_COLOR_TYPE_KEEP_TOOLTIP , KEEP_TOOLTIP_COLOR_UNCLAIMED ) )
local SMALL_KEEP_ICON_STRING = zo_iconFormatInheritColor ( "EsoUI/Art/AvA/AvA_tooltipIcon_keep.dds" , 32 , 32 )
self . extraSpace = offsetY
end
local spacing = self . extraSpace or LINE_SPACING
if ( self . lastLine ) then
else
end
self . extraSpace = nil
self . lastLine = line
if ( width > self . width ) then
self . width = width
end
self . height = self . height + height + LINE_SPACING
end
self . lastLine = nil
self . width = 0
self . height = 0
self . extraSpace = nil
self . keepId = nil
self . districtIds = nil
self . battlegroundContext = nil
self . isLockedByLinkedCollectible = nil
self . historyPercent = 1.0
end
local DISTRICT_BONUS_RESTRICTION_TEXT = GetString ( SI_TOOLTIP_DISTRICT_TEL_VAR_BONUS_RESTRICTION_TEXT )
if telVarBonus > 0 then
end
return nil
end
if pointBonus > 0 then
end
return nil
end
if directionalAccess == KEEP_PIECE_DIRECTIONAL_ACCESS_BIDIRECTIONAL then
elseif directionalAccess == KEEP_PIECE_DIRECTIONAL_ACCESS_BLOCKED then
elseif directionalAccess == KEEP_PIECE_DIRECTIONAL_ACCESS_UNIDIRECTIONAL then
if keepType == KEEPTYPE_MILEGATE then
end
end
end
end
-- Keep Layout --
-----------------
self . keepId = keepId
self . battlegroundContext = battlegroundContext
self . historyPercent = historyPercent
if ( keepName ) then
self . width = width
self . height = height
--Alliance Owner Name
local allianceName
if ( alliance == ALLIANCE_NONE ) then
else
end
local text = zo_strformat ( GetString ( SI_TOOLTIP_KEEP_ALLIANCE_OWNER ) , allianceColor : Colorize ( allianceName ) )
end
local notHistorical = historyPercent >= 1.0
if notHistorical then
--Guild Owner Name
if ( guildName == "" ) then
end
end
-- siege weapons
local playerAllianceName = zo_strformat ( SI_MAP_KEEP_INFO_ALLIANCE_TOOLTIP_FORMAT , GetColoredAllianceName ( playerAlliance ) )
-- always show players alliance weapons
text = zo_strformat ( GetString ( SI_TOOLTIP_KEEP_SIEGE_WEAPON ) , playerAllianceName , numPlayerSiegeWeapons , maxSiegeWeapons )
-- show siege weapons for each alliance if non zero
for i = 1 , NUM_ALLIANCES do
if ( i ~= playerAlliance ) then
if ( numSiegeWeapons > 0 ) then
local allianceName = zo_strformat ( SI_MAP_KEEP_INFO_ALLIANCE_TOOLTIP_FORMAT , GetColoredAllianceName ( i ) )
text = zo_strformat ( GetString ( SI_TOOLTIP_KEEP_SIEGE_WEAPON ) , allianceName , numSiegeWeapons , maxSiegeWeapons )
end
end
end
end
--Artifact Info
if keepType == KEEPTYPE_ARTIFACT_KEEP then
if ( objectiveId ~= 0 ) then
if ( artifactType == OBJECTIVE_ARTIFACT_OFFENSIVE ) then
else
end
--it's held by the enemy
if ( artifactState ~= OBJECTIVE_CONTROL_STATE_FLAG_AT_BASE ) then
end
end
end
--Tel Var Bonus Info
if ( keepType == KEEPTYPE_IMPERIAL_CITY_DISTRICT ) then
if telVarBonusText then
local finalBonusText = zo_strformat ( SI_TOOLTIP_DISTRICT_TEL_VAR_BONUS_TEXT , telVarBonusText , ZO_Currency_GetPlatformFormattedCurrencyIcon ( CURT_TELVAR_STONES ) )
end
end
--Keep Capture Bonus Info
if keepType == KEEPTYPE_KEEP then
if pointBonusText then
local finalBonusText = zo_strformat ( SI_TOOLTIP_KEEP_CAPTURE_BONUS_TEXT , pointBonusText , ZO_Currency_GetPlatformFormattedCurrencyIcon ( CURT_ALLIANCE_POINTS ) )
end
end
if statusText then
end
--Keep Fast Travel Status
if startingKeep or isUsingKeepRecallStone then
if keepId == startingKeep then
else
local isKeepAccessible = isUsingKeepRecallStone and GetKeepRecallAvailable ( keepId , bgContext ) or CanKeepBeFastTravelledTo ( keepId , bgContext )
if isKeepAccessible then
else
if keepType ~= KEEPTYPE_KEEP and keepType ~= KEEPTYPE_BORDER_KEEP and keepType ~= KEEPTYPE_OUTPOST and keepType ~= KEEPTYPE_TOWN then
elseif playerAlliance ~= alliance then
AddLine ( self , GetString ( SI_TOOLTIP_KEEP_NOT_ACCESSIBLE_CARRYING_DAEDRIC_ARTIFACT ) , KEEP_TOOLTIP_NOT_ACCESSIBLE )
showUnderAttackLine = false
elseif isUsingKeepRecallStone then
AddLine ( self , GetString ( "SI_KEEPRECALLSTONEUSERESULT" , keepRecallUseResult ) , KEEP_TOOLTIP_NOT_ACCESSIBLE )
else
end
end
end
end
end
--Keep Under Attack
local showUnderAttackLine = GetHistoricalKeepUnderAttack ( keepId , battlegroundContext , historyPercent )
if showUnderAttackLine then
end
if WORLD_MAP_MANAGER : IsInMode ( MAP_MODE_AVA_RESPAWN ) and IsLocalBattlegroundContext ( battlegroundContext ) then
else
end
end
end
self . width = self . width + BORDER * 2
self . height = self . height + BORDER * 2
end
self : LayoutIconStringLine ( ownerSection , nil , header , self . tooltip : GetStyle ( "mapLocationTooltipContentHeader" ) )
end
if usable then
self : LayoutIconStringLine ( section , nil , zo_strformat ( formatString , keyText ) , self . tooltip : GetStyle ( "mapKeepAccessible" ) , self . tooltip : GetStyle ( "keepBaseTooltipContent" ) )
else
self : LayoutIconStringLine ( section , nil , GetString ( SI_TOOLTIP_KEEP_NOT_RESPAWNABLE ) , self . tooltip : GetStyle ( "mapKeepInaccessible" ) , self . tooltip : GetStyle ( "keepBaseTooltipContent" ) )
end
end
if keepName then
self : LayoutIconStringLine ( keepSection , nil , zo_strformat ( SI_TOOLTIP_KEEP_NAME , keepName ) , self . tooltip : GetStyle ( "mapTitle" ) )
local showUnderAttackLine = GetHistoricalKeepUnderAttack ( keepId , battlegroundContext , historyPercent )
--Keep Fast Travel Status
if startingKeep then
if keepId == startingKeep then
self : LayoutIconStringLine ( keepSection , nil , GetString ( SI_TOOLTIP_KEEP_STARTING_KEEP ) , self . tooltip : GetStyle ( "mapKeepAt" ) , self . tooltip : GetStyle ( "keepBaseTooltipContent" ) )
else
local USABLE = true
LayoutKeepActionLine_Gamepad ( self , keepSection , SI_GAMEPAD_WORLD_MAP_TOOLTIP_KEEP_ACCESSIBLE , USABLE )
else
if ( keepType ~= KEEPTYPE_KEEP ) and ( keepType ~= KEEPTYPE_BORDER_KEEP ) and ( keepType ~= KEEPTYPE_OUTPOST ) then
self : LayoutIconStringLine ( keepSection , nil , GetString ( SI_TOOLTIP_KEEP_NOT_ACCESSIBLE ) , self . tooltip : GetStyle ( "mapKeepInaccessible" ) , self . tooltip : GetStyle ( "keepBaseTooltipContent" ) )
elseif playerAlliance ~= keepAlliance then
self : LayoutIconStringLine ( keepSection , nil , GetString ( SI_TOOLTIP_KEEP_NOT_ACCESSIBLE_WRONG_OWNER ) , self . tooltip : GetStyle ( "mapKeepInaccessible" ) , self . tooltip : GetStyle ( "keepBaseTooltipContent" ) )
self : LayoutIconStringLine ( keepSection , nil , GetString ( SI_TOOLTIP_KEEP_NOT_ACCESSIBLE_CARRYING_DAEDRIC_ARTIFACT ) , self . tooltip : GetStyle ( "mapKeepInaccessible" ) , self . tooltip : GetStyle ( "keepBaseTooltipContent" ) )
elseif showUnderAttackLine then
self : LayoutIconStringLine ( keepSection , nil , GetString ( SI_TOOLTIP_KEEP_NOT_ACCESSIBLE_UNDER_ATTACK ) , self . tooltip : GetStyle ( "mapKeepInaccessible" ) , self . tooltip : GetStyle ( "keepBaseTooltipContent" ) )
showUnderAttackLine = false
self : LayoutIconStringLine ( keepSection , nil , GetString ( SI_TOOLTIP_KEEP_STARTING_KEEP_UNDER_ATTACK ) , self . tooltip : GetStyle ( "mapKeepInaccessible" ) , self . tooltip : GetStyle ( "keepBaseTooltipContent" ) )
self : LayoutIconStringLine ( keepSection , nil , GetString ( SI_TOOLTIP_KEEP_NOT_ACCESSIBLE_RESOURCES ) , self . tooltip : GetStyle ( "mapKeepInaccessible" ) , self . tooltip : GetStyle ( "keepBaseTooltipContent" ) )
self : LayoutIconStringLine ( keepSection , nil , GetString ( SI_TOOLTIP_KEEP_STARTING_KEEP_RESOURCES ) , self . tooltip : GetStyle ( "mapKeepInaccessible" ) , self . tooltip : GetStyle ( "keepBaseTooltipContent" ) )
else
self : LayoutIconStringLine ( keepSection , nil , GetString ( SI_TOOLTIP_KEEP_NOT_ACCESSIBLE_NETWORK ) , self . tooltip : GetStyle ( "mapKeepInaccessible" ) , self . tooltip : GetStyle ( "keepBaseTooltipContent" ) )
end
end
end
end
--Keep Under Attack
if showUnderAttackLine then
self : LayoutIconStringLine ( keepSection , nil , GetString ( SI_TOOLTIP_KEEP_IN_COMBAT ) , self . tooltip : GetStyle ( "mapKeepUnderAttack" ) )
end
-- Respawn
if WORLD_MAP_MANAGER : IsInMode ( MAP_MODE_AVA_RESPAWN ) and IsLocalBattlegroundContext ( battlegroundContext ) then
LayoutKeepActionLine_Gamepad ( self , keepSection , SI_GAMEPAD_WORLD_MAP_TOOLTIP_KEEP_RESPAWNABLE , CanRespawnAtKeep ( keepId ) )
end
--Alliance Owner Name
if keepAlliance == ALLIANCE_NONE then
LayoutKeepOwnerSection_Gamepad ( self , keepSection , GetString ( SI_GAMEPAD_WORLD_MAP_TOOLTIP_ALLIANCE_OWNER ) , nil , GetString ( SI_KEEP_UNCLAIMED ) , self . tooltip : GetStyle ( "mapLocationKeepUnclaimed" ) )
else
local allianceName = zo_strformat ( SI_MAP_KEEP_INFO_ALLIANCE_TOOLTIP_FORMAT , GetColoredAllianceName ( keepAlliance ) )
LayoutKeepOwnerSection_Gamepad ( self , keepSection , GetString ( SI_GAMEPAD_WORLD_MAP_TOOLTIP_ALLIANCE_OWNER ) , allianceIcon , allianceName , self . tooltip : GetStyle ( "mapLocationKeepClaimed" ) )
end
end
local notHistorical = historyPercent >= 1.0
if notHistorical then
--Guild Owner Name
if guildName == "" then
LayoutKeepOwnerSection_Gamepad ( self , keepSection , GetString ( SI_GAMEPAD_WORLD_MAP_TOOLTIP_GUILD_OWNER ) , nil , GetString ( SI_KEEP_UNCLAIMED_GUILD ) , self . tooltip : GetStyle ( "mapLocationKeepUnclaimed" ) )
else
LayoutKeepOwnerSection_Gamepad ( self , keepSection , GetString ( SI_GAMEPAD_WORLD_MAP_TOOLTIP_GUILD_OWNER ) , nil , guildName , self . tooltip : GetStyle ( "mapLocationKeepClaimed" ) )
end
end
-- Siege Weapons
-- Always show players alliance weapons.
local playerAllianceName = zo_strformat ( SI_MAP_KEEP_INFO_ALLIANCE_TOOLTIP_FORMAT , GetColoredAllianceName ( playerAlliance ) )
self : LayoutIconStringLine ( weaponsSection , nil , GetString ( SI_GAMEPAD_WORLD_MAP_TOOLTIP_SIEGE_WEAPONS ) , self . tooltip : GetStyle ( "mapLocationTooltipContentHeader" ) )
local playerSiegeWeaponsText = zo_strformat ( SI_GAMEPAD_WORLD_MAP_TOOLTIP_SIEGE , numPlayerSiegeWeapons , maxSiegeWeapons )
self : LayoutIconStringRightStringLine ( weaponsSection , playerAllianceIcon , playerSiegeWeaponsText , playerAllianceName , self . tooltip : GetStyle ( "mapLocationKeepClaimed" ) )
-- Show siege weapons for other alliances, if non-zero.
for i = 1 , NUM_ALLIANCES do
if ( i ~= playerAlliance ) then
if numSiegeWeapons > 0 then
local allianceName = zo_strformat ( SI_MAP_KEEP_INFO_ALLIANCE_TOOLTIP_FORMAT , GetColoredAllianceName ( i ) )
local siegeWeaponsText = zo_strformat ( SI_GAMEPAD_WORLD_MAP_TOOLTIP_SIEGE , numSiegeWeapons , maxSiegeWeapons )
self : LayoutIconStringRightStringLine ( weaponsSection , allianceIcon , allianceName , siegeWeaponsText , self . tooltip : GetStyle ( "mapLocationKeepClaimed" ) )
end
end
end
end
if statusText then
self : LayoutIconStringLine ( passableSection , nil , GetString ( SI_GAMEPAD_WORLD_MAP_TOOLTIP_KEEP_PASSABLE ) , self . tooltip : GetStyle ( "mapLocationTooltipContentHeader" ) )
self : LayoutIconStringLine ( passableSection , allianceIcon , statusText , self . tooltip : GetStyle ( "mapLocationKeepClaimed" ) )
end
--Artifact Info
if ( keepType == KEEPTYPE_ARTIFACT_KEEP ) then
if ( objectiveId ~= 0 ) then
local artifactName , artifactType , artifactState = GetObjectiveInfo ( keepId , objectiveId , battlegroundContext )
if ( artifactType == OBJECTIVE_ARTIFACT_OFFENSIVE ) then
else
end
local isStolen = ( artifactState ~= OBJECTIVE_CONTROL_STATE_FLAG_AT_BASE )
local colorStyle = isStolen and self . tooltip : GetStyle ( "mapArtifactStolen" ) or self . tooltip : GetStyle ( "mapArtifactNormal" )
if isStolen then
self : LayoutIconStringLine ( artifactSection , nil , GetString ( SI_TOOLTIP_ARTIFACT_TAKEN ) , colorStyle , self . tooltip : GetStyle ( "mapLocationTooltipContentHeader" ) )
else
self : LayoutIconStringLine ( artifactSection , nil , zo_strformat ( SI_AVA_OBJECTIVE_DISPLAY_NAME_TOOLTIP , artifactName ) , colorStyle , self . tooltip : GetStyle ( "mapLocationTooltipContentHeader" ) )
end
self : LayoutIconStringLine ( artifactSection , nil , text , colorStyle , self . tooltip : GetStyle ( "mapLocationKeepElderScrollInfo" ) )
end
end
--Tel Var Bonus Info
if keepType == KEEPTYPE_IMPERIAL_CITY_DISTRICT then
if telVarBonusText then
local finalBonusText = zo_strformat ( SI_GAMEPAD_WORLD_MAP_TOOLTIP_DISTRICT_TEL_VAR_BONUS_TEXT_FORMAT , telVarBonusText , ZO_Currency_GetPlatformFormattedCurrencyIcon ( CURT_TELVAR_STONES ) )
self : LayoutIconStringLine ( cityBonusSection , nil , GetString ( SI_GAMEPAD_WORLD_MAP_TOOLTIP_DISTRICT_TEL_VAR_BONUS_HEADER ) , self . tooltip : GetStyle ( "mapLocationTooltipContentHeader" ) )
self : LayoutIconStringLine ( cityBonusSection , nil , finalBonusText , self . tooltip : GetStyle ( "mapLocationKeepClaimed" ) , self . tooltip : GetStyle ( "keepBaseTooltipContent" ) )
self : LayoutIconStringLine ( cityBonusSection , nil , DISTRICT_BONUS_RESTRICTION_TEXT , self . tooltip : GetStyle ( "mapLocationKeepClaimed" ) , self . tooltip : GetStyle ( "keepBaseTooltipContent" ) )
end
end
--Keep Capture Bonus Info
if keepType == KEEPTYPE_KEEP then
if pointBonusText then
local finalBonusText = zo_strformat ( SI_GAMEPAD_WORLD_MAP_TOOLTIP_KEEP_CAPTURE_BONUS_TEXT_FORMAT , pointBonusText , ZO_Currency_GetPlatformFormattedCurrencyIcon ( CURT_ALLIANCE_POINTS ) )
self : LayoutIconStringLine ( cityBonusSection , nil , GetString ( SI_GAMEPAD_WORLD_MAP_TOOLTIP_KEEP_CAPTURE_BONUS_HEADER ) , self . tooltip : GetStyle ( "mapLocationTooltipContentHeader" ) )
self : LayoutIconStringLine ( cityBonusSection , nil , finalBonusText , self . tooltip : GetStyle ( "mapLocationKeepClaimed" ) , self . tooltip : GetStyle ( "keepBaseTooltipContent" ) )
end
end
end
end
end
if ( self . keepId and self . battlegroundContext and self . historyPercent ) then
end
end
self . width = width
self . height = height
if guildNameText ~= nil then
end
end
local tooltipColor = KEEP_TOOLTIP_ACCESSIBLE
if not usable then
tooltipColor = KEEP_TOOLTIP_NOT_ACCESSIBLE
end
end
self . width = self . width + BORDER * 2
self . height = self . height + BORDER * 2
end
-- Respawn
LayoutKeepActionLine_Gamepad ( self , campSection , SI_GAMEPAD_WORLD_MAP_TOOLTIP_KEEP_RESPAWNABLE , usable )
end
-- Alliance Owner
local allianceName = zo_strformat ( SI_MAP_KEEP_INFO_ALLIANCE_TOOLTIP_FORMAT , GetColoredAllianceName ( playerAlliance ) )
LayoutKeepOwnerSection_Gamepad ( self , campSection , GetString ( SI_GAMEPAD_WORLD_MAP_TOOLTIP_ALLIANCE_OWNER ) , allianceIcon , allianceName , self . tooltip : GetStyle ( "mapLocationKeepClaimed" ) )
-- Guild Owner
if guildName then
LayoutKeepOwnerSection_Gamepad ( self , campSection , GetString ( SI_GAMEPAD_WORLD_MAP_TOOLTIP_GUILD_OWNER ) , nil , guildName , self . tooltip : GetStyle ( "mapLocationKeepClaimed" ) )
end
end
end
if ( point == TOPLEFT ) then
elseif ( point == TOPRIGHT ) then
elseif ( point == BOTTOMLEFT ) then
else
end
end
return self . width
end
end
end |