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 |
ZO_LEVEL_UP_REWARDS_KEYBOARD_SCREEN_WIDTH = 500
ZO_LEVEL_UP_REWARDS_KEYBOARD_MAX_SCREEN_HEIGHT = 760
ZO_LEVEL_UP_REWARDS_KEYBOARD_ART_WIDTH = ZO_LEVEL_UP_REWARDS_BACKGROUND_USED_TEXTURE_WIDTH
ZO_LEVEL_UP_REWARDS_KEYBOARD_ART_HEIGHT = 138
ZO_LEVEL_UP_REWARDS_KEYBOARD_ROW_WIDTH = ZO_LEVEL_UP_REWARDS_KEYBOARD_ART_WIDTH
local SCROLL_BAR_WIDTH = 16
local ADDITIONAL_RIGHT_PADDING = 5
ZO_LEVEL_UP_REWARDS_KEYBOARD_SCROLL_WIDTH = ZO_LEVEL_UP_REWARDS_KEYBOARD_ROW_WIDTH + SCROLL_BAR_WIDTH + ADDITIONAL_RIGHT_PADDING
end
--the control that all further controls are anchored off of
self . initialControl = initialControl
self . nextOffsetY = 0
self . totalHeight = 0
self . rewardControlsBySection = { }
self . currentSection = 0
end
self . currentSection = self . currentSection + 1
self . rewardControlsBySection [ self . currentSection ] = { }
end
if self . initialControl then
else
end
self . nextOffsetY = 0
end
self . nextOffsetY = self . nextOffsetY + offsetY
end
return self . totalHeight
end
return self . rewardControlsBySection
end |