mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 17:03:43 +02:00
Add constants for progress bar offset
This commit is contained in:
parent
1f2e34d59b
commit
adbd9ff854
1 changed files with 3 additions and 1 deletions
|
@ -34,6 +34,8 @@
|
|||
visible = false,
|
||||
BAR_WIDTH = 480, // Dimension of SVG in pixels of visible portion (half) of the bar.
|
||||
BAR_HEIGHT = 10,
|
||||
BAR_Y_OFFSET_2D = -10, // Offset of progress bar while in desktop mode
|
||||
BAR_Y_OFFSET_HMD = -300, // Offset of progress bar while in HMD
|
||||
BAR_URL = Script.resolvePath("assets/images/progress-bar.svg"),
|
||||
BACKGROUND_WIDTH = 520,
|
||||
BACKGROUND_HEIGHT = 50,
|
||||
|
@ -245,7 +247,7 @@
|
|||
windowWidth = viewport.x;
|
||||
windowHeight = viewport.y;
|
||||
|
||||
var yOffset = HMD.active ? -300 : -10;
|
||||
var yOffset = HMD.active ? BAR_Y_OFFSET_HMD : BAR_Y_OFFSET_2D;
|
||||
|
||||
background2D.width = SCALE_2D * BACKGROUND_WIDTH;
|
||||
background2D.height = SCALE_2D * BACKGROUND_HEIGHT;
|
||||
|
|
Loading…
Reference in a new issue