|
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 |
local anchorSide local arrow if arrowSide == LEFT then anchorSide = RIGHT else anchorSide = LEFT end if arrow then endend if(nestedBg) then end self.rightDividerFadeInAnimation = ANIMATION_MANAGER:CreateTimelineFromVirtual("ZO_GamepadQuadrantFadeAlphaIn", self.rightDivider) self.rightDividerFadeOutAnimation = ANIMATION_MANAGER:CreateTimelineFromVirtual("ZO_GamepadQuadrantFadeAlphaOut", self.rightDivider) endendlocal BACKGROUND_SCROLL_RATE = 0.0005local BACKGROUND_SCROLL_RATE_VARIANCE = 0.0001 bottom = top + ZO_GAMEPAD_PANEL_BG_BOTTOM_COORDend--Only attach this screen to the quadrant 1 background when it is shown. Otherwise it is moving back and forth everytime any quadrant 1 UI is shown causing a bunch of unnecessary anchor update.end--When hidden anchor it to a non-moving variant of the quadrant background: this way existing layout code that assumes this is well anchored will see what it wants to see.end |