mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(UI): 添加初始增益选择面板功能
实现初始增益选择面板的创建和显示逻辑,包括: - 新增SelectInitialFeed面板场景和脚本 - 修改CompilingTip面板结束后跳转到选择面板 - 在ComponentManager中添加面板管理功能 - 优化UIState的面板加载和切换逻辑
This commit is contained in:
@@ -9,6 +9,7 @@ static var summons = {}
|
||||
static var effects = {}
|
||||
static var feeds = []
|
||||
static var obstacles = {}
|
||||
static var panels = {}
|
||||
static var uiComponents = {}
|
||||
static var themes = {}
|
||||
static var fieldTextures = {}
|
||||
@@ -29,6 +30,8 @@ static func init():
|
||||
feeds.append(load(i))
|
||||
for i in DirTool.listdir("res://components/Obstacles"):
|
||||
obstacles[DirTool.getBasenameWithoutExtension(i)] = load(i)
|
||||
for i in DirTool.listdir("res://components/Scenes/FullscreenPanels"):
|
||||
panels[DirTool.getBasenameWithoutExtension(i)] = load(i)
|
||||
for i in DirTool.listdir("res://components/UI"):
|
||||
uiComponents[DirTool.getBasenameWithoutExtension(i)] = load(i)
|
||||
for i in DirTool.listdir("res://themes"):
|
||||
@@ -53,6 +56,8 @@ static func getFeed(i: int) -> PackedScene:
|
||||
return null
|
||||
static func getObstacle(t: String) -> PackedScene:
|
||||
return MathTool.priority(obstacles.get(t, false), load("res://components/Obstacles/%s.tscn" % t))
|
||||
static func getPanel(t: String) -> PackedScene:
|
||||
return MathTool.priority(panels.get(t, false), load("res://components/Scenes/FullscreenPanels/%s.tscn" % t))
|
||||
static func getUIComponent(t: String) -> PackedScene:
|
||||
return MathTool.priority(uiComponents.get(t, false), load("res://components/UI/%s.tscn" % t))
|
||||
static func getTheme(t: String) -> Theme:
|
||||
|
||||
Reference in New Issue
Block a user