Explicitly set lobby background layer (#91160)

Right now this is based on insertion order which is a bit gross and
breaks event-base. No difference for us though
This commit is contained in:
Mothblocks
2025-05-16 14:28:03 -07:00
committed by GitHub
parent 29d9626d3d
commit f340c5a62f
2 changed files with 7 additions and 4 deletions

View File

@@ -314,12 +314,14 @@
///Layer for lobby menu collapse button
#define LOBBY_BELOW_MENU_LAYER 2
///Layer for lobby menu background image and main buttons (Join/Ready, Observe, Character Prefs)
#define LOBBY_MENU_LAYER 3
/// Layer for background
#define LOBBY_BACKGROUND_LAYER 3
///Layer for main buttons (Join/Ready, Observe, Character Prefs)
#define LOBBY_MENU_LAYER 4
///Layer for lobby menu shutter, which covers up the menu to collapse/expand it
#define LOBBY_SHUTTER_LAYER 4
#define LOBBY_SHUTTER_LAYER 5
///Layer for lobby menu buttons that are hanging away from and lower than the main panel
#define LOBBY_BOTTOM_BUTTON_LAYER 5
#define LOBBY_BOTTOM_BUTTON_LAYER 6
///cinematics are "below" the splash screen
#define CINEMATIC_LAYER -1

View File

@@ -124,6 +124,7 @@
/atom/movable/screen/lobby/background
icon = 'icons/hud/lobby/background.dmi'
icon_state = "background"
layer = LOBBY_BACKGROUND_LAYER
screen_loc = "TOP,CENTER:-61"
/atom/movable/screen/lobby/button