42 lines
1.1 KiB
GDScript
42 lines
1.1 KiB
GDScript
class_name GlobalConfig extends Resource
|
||
|
||
const DEBUG = true
|
||
# const DEBUG = false
|
||
|
||
# .res would be binary encoded, .tres is text encoded
|
||
const RES_FILE_FORMAT = ".tres"
|
||
|
||
## layers
|
||
const CANVAS_LAYER_UI = 12
|
||
const CANVAS_LAYER_PROP_INSPECTOR = 11
|
||
const CANVAS_LAYER_SHADING = 10
|
||
const CANVAS_LAYER_FG = 2
|
||
const CANVAS_LAYER_HD_ENTITY = 1
|
||
|
||
const AUDIO_BUS_SFX = "game_sfx"
|
||
|
||
|
||
const CHARACTER_COLOR_MAP = {
|
||
"default": Color.LIGHT_SEA_GREEN,
|
||
"吕萍": Color.ORANGE,
|
||
"雾": Color.MEDIUM_SEA_GREEN,
|
||
# "???": Color.MEDIUM_SPRING_GREEN,
|
||
"获得": Color.WHITE,
|
||
"小蝶": Color.YELLOW,
|
||
"王癞子": Color.AQUA,
|
||
}
|
||
|
||
signal current_selected_archive_id_changed
|
||
signal auto_save_seconds_changed
|
||
|
||
@export var game_total_seconds := 0 # 游戏总时长
|
||
@export var game_rounds := 1 # 当前周目数
|
||
@export var current_selected_archive_id := -1: # 当前选定存档, -1 为未选择
|
||
set(val):
|
||
current_selected_archive_id = val
|
||
current_selected_archive_id_changed.emit()
|
||
@export var auto_save_seconds := 60:
|
||
set(val):
|
||
auto_save_seconds = val
|
||
auto_save_seconds_changed.emit()
|