PressAnyKeyScreen → SplashScreen
This commit is contained in:
40
src/autoloads/UIConstants.gd
Normal file
40
src/autoloads/UIConstants.gd
Normal file
@@ -0,0 +1,40 @@
|
||||
extends Node
|
||||
|
||||
## UI Constants for the Skelly project
|
||||
##
|
||||
## Contains shared UI constants, sizes, colors, and other UI-related values
|
||||
## to maintain consistency across the game interface.
|
||||
|
||||
# Screen and viewport constants
|
||||
const REFERENCE_RESOLUTION := Vector2i(1920, 1080)
|
||||
const MIN_RESOLUTION := Vector2i(720, 480)
|
||||
|
||||
# Animation constants
|
||||
const FADE_DURATION := 0.3
|
||||
const BUTTON_HOVER_SCALE := 1.1
|
||||
const BUTTON_PRESS_SCALE := 0.95
|
||||
|
||||
# UI spacing constants
|
||||
const UI_MARGIN := 20
|
||||
const BUTTON_SPACING := 10
|
||||
const MENU_PADDING := 40
|
||||
|
||||
# Debug UI constants
|
||||
const DEBUG_PANEL_WIDTH := 300
|
||||
const DEBUG_BUTTON_SIZE := Vector2(80, 40)
|
||||
|
||||
# Color constants (using Godot's Color class)
|
||||
const UI_PRIMARY_COLOR := Color.WHITE
|
||||
const UI_SECONDARY_COLOR := Color(0.8, 0.8, 0.8)
|
||||
const UI_ACCENT_COLOR := Color(0.2, 0.6, 1.0)
|
||||
const UI_WARNING_COLOR := Color(1.0, 0.6, 0.2)
|
||||
const UI_ERROR_COLOR := Color(1.0, 0.2, 0.2)
|
||||
|
||||
# Font sizes (relative to default)
|
||||
const FONT_SIZE_SMALL := 14
|
||||
const FONT_SIZE_NORMAL := 18
|
||||
const FONT_SIZE_LARGE := 24
|
||||
const FONT_SIZE_TITLE := 32
|
||||
|
||||
func _ready():
|
||||
DebugManager.log_info("UIConstants loaded successfully", "UIConstants")
|
||||
1
src/autoloads/UIConstants.gd.uid
Normal file
1
src/autoloads/UIConstants.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bsyi2da620arn
|
||||
Reference in New Issue
Block a user