2026-01-30 00:35:01 +08:00
|
|
|
## Static class that stores references to note scenes.
|
2026-02-01 23:07:05 +08:00
|
|
|
@abstract class_name NoteScenes extends Object
|
2026-01-30 00:35:01 +08:00
|
|
|
|
|
|
|
|
static func get_tap(skin: StringName = "default") -> PackedScene:
|
|
|
|
|
if _tap_scenes.has(skin):
|
|
|
|
|
return _tap_scenes[skin]
|
|
|
|
|
else:
|
|
|
|
|
push_warning("Tap note skin [", skin, "] does not exist.")
|
|
|
|
|
return _tap_scenes["default"]
|
|
|
|
|
|
|
|
|
|
static func get_hold(skin: StringName = "default") -> PackedScene:
|
|
|
|
|
if _hold_scenes.has(skin):
|
|
|
|
|
return _hold_scenes[skin]
|
|
|
|
|
else:
|
|
|
|
|
push_warning("Hold note skin [", skin, "] does not exist.")
|
|
|
|
|
return _hold_scenes["default"]
|
|
|
|
|
|
|
|
|
|
# ======== IMPLEMENTATION ======== #
|
|
|
|
|
|
|
|
|
|
static var _tap_scenes: Dictionary[StringName, PackedScene] = {
|
2026-02-04 00:01:27 +08:00
|
|
|
"default": load("uid://jbgxbhfpj806")
|
2026-01-30 00:35:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static var _hold_scenes: Dictionary[StringName, PackedScene] = {
|
2026-02-04 00:01:27 +08:00
|
|
|
"default": load("uid://dq5ocf0272tet")
|
2026-01-30 00:35:01 +08:00
|
|
|
}
|