2024-12-23 01:29:31 +00:00
|
|
|
class_name GlobalConfig extends Resource
|
|
|
|
|
2024-12-24 01:16:06 +00:00
|
|
|
const DEBUG = true
|
|
|
|
# const DEBUG = false
|
|
|
|
|
2024-12-23 01:29:31 +00:00
|
|
|
# .res would be binary encoded, .tres is text encoded
|
|
|
|
const RES_FILE_FORMAT = ".tres"
|
|
|
|
|
2024-12-24 01:16:06 +00:00
|
|
|
## layers
|
2025-01-10 07:43:55 +00:00
|
|
|
const CANVAS_LAYER_DIALOG = 13
|
2025-01-07 10:54:50 +00:00
|
|
|
const CANVAS_LAYER_UI = 12
|
|
|
|
const CANVAS_LAYER_PROP_INSPECTOR = 11
|
2025-01-05 11:25:13 +00:00
|
|
|
const CANVAS_LAYER_SHADING = 10
|
|
|
|
const CANVAS_LAYER_FG = 2
|
|
|
|
const CANVAS_LAYER_HD_ENTITY = 1
|
2024-12-26 13:58:37 +00:00
|
|
|
|
|
|
|
const AUDIO_BUS_SFX = "game_sfx"
|
2024-12-23 01:29:31 +00:00
|
|
|
|
2025-01-08 14:08:37 +00:00
|
|
|
|
|
|
|
const CHARACTER_COLOR_MAP = {
|
|
|
|
"default": Color.LIGHT_SEA_GREEN,
|
|
|
|
"吕萍": Color.ORANGE,
|
|
|
|
"雾": Color.MEDIUM_SEA_GREEN,
|
|
|
|
"获得": Color.WHITE,
|
2025-01-09 11:54:34 +00:00
|
|
|
"小蝶": Color.MEDIUM_SPRING_GREEN,
|
|
|
|
"小蝉": Color.AQUA,
|
|
|
|
"陆仁": Color.POWDER_BLUE,
|
|
|
|
"李氏": Color.SKY_BLUE,
|
|
|
|
"方瞎子": Color.BURLYWOOD,
|
|
|
|
"张胖子": Color.DARK_KHAKI,
|
2025-01-08 14:08:37 +00:00
|
|
|
"王癞子": Color.AQUA,
|
2025-01-09 11:54:34 +00:00
|
|
|
"吕萍(母)": Color.AQUA,
|
2025-01-08 14:08:37 +00:00
|
|
|
}
|
|
|
|
|
2024-12-24 11:24:55 +00:00
|
|
|
signal current_selected_archive_id_changed
|
2024-12-23 01:29:31 +00:00
|
|
|
signal auto_save_seconds_changed
|
|
|
|
|
2024-12-24 11:24:55 +00:00
|
|
|
@export var game_total_seconds := 0 # 游戏总时长
|
2024-12-23 01:29:31 +00:00
|
|
|
@export var game_rounds := 1 # 当前周目数
|
2024-12-24 11:24:55 +00:00
|
|
|
@export var current_selected_archive_id := -1: # 当前选定存档, -1 为未选择
|
2024-12-23 01:29:31 +00:00
|
|
|
set(val):
|
2024-12-24 11:24:55 +00:00
|
|
|
current_selected_archive_id = val
|
|
|
|
current_selected_archive_id_changed.emit()
|
2024-12-23 01:29:31 +00:00
|
|
|
@export var auto_save_seconds := 60:
|
|
|
|
set(val):
|
|
|
|
auto_save_seconds = val
|
2025-01-05 11:25:13 +00:00
|
|
|
auto_save_seconds_changed.emit()
|