diff --git a/binaries/data/mods/public/gui/pregame/BackgroundHandler.js b/binaries/data/mods/public/gui/pregame/BackgroundHandler.js index c5bc7ec80f..8c16669ef3 100644 --- a/binaries/data/mods/public/gui/pregame/BackgroundHandler.js +++ b/binaries/data/mods/public/gui/pregame/BackgroundHandler.js @@ -29,6 +29,20 @@ class BackgroundLayer "bottom": backgroundsSize.bottom }; } + else if (this.layer.halign) + { + const left = ({ + "left": 0.0, + "center": (backgroundsSize.right - width) / 2, + "right": backgroundsSize.right - width, + }[this.layer.halign] || 0.0) + offset; + this.background.size = { + "left": left, + "top": backgroundsSize.top, + "right": left + width, + "bottom": backgroundsSize.bottom + }; + } else { const right = backgroundsSize.right / 2 + offset; diff --git a/binaries/data/mods/public/gui/pregame/backgrounds/background.js b/binaries/data/mods/public/gui/pregame/backgrounds/background.js index 956835b22a..0b8913e7c2 100644 --- a/binaries/data/mods/public/gui/pregame/backgrounds/background.js +++ b/binaries/data/mods/public/gui/pregame/backgrounds/background.js @@ -59,7 +59,8 @@ export const backgrounds = { { "offset": (time, width) => -0.1, "sprite": "background-kush1-4", - "tiling": true + "tiling": false, + "halign": "right" } ],