-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added links to the slabset.toml files in Slabset Editor
- Loading branch information
1 parent
1a8fa9c
commit ce06a96
Showing
7 changed files
with
171 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,3 +117,4 @@ func super_merge(dict1, dict2): | |
else: | ||
merged[key] = dict2[key] | ||
return merged | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
extends PanelContainer | ||
onready var oCfgLoader = Nodelist.list["oCfgLoader"] | ||
|
||
onready var containerForLabels = $ScrollContainer/VBoxContainer | ||
|
||
func start(): | ||
for i in containerForLabels.get_children(): | ||
i.queue_free() | ||
|
||
for cfg_type in [oCfgLoader.LOAD_CFG_FXDATA, oCfgLoader.LOAD_CFG_CAMPAIGN, oCfgLoader.LOAD_CFG_CURRENT_MAP]: | ||
if oCfgLoader.paths_loaded.has(cfg_type) == false: | ||
continue | ||
|
||
# var addToGrid | ||
|
||
# match cfg_type: | ||
# oCfgLoader.LOAD_CFG_FXDATA: | ||
# addToGrid = oFileListGridA | ||
# oCfgLoader.LOAD_CFG_CAMPAIGN: | ||
# addToGrid = oFileListGridB | ||
# oCfgLoader.LOAD_CFG_CURRENT_MAP: | ||
# addToGrid = oFileListGridC | ||
|
||
for path in oCfgLoader.paths_loaded[cfg_type]: | ||
if path: | ||
if path.to_lower().ends_with("slabset.toml"): | ||
add_linkbutton(path) | ||
|
||
func add_linkbutton(path): | ||
var id = LinkButton.new() | ||
id.connect("pressed", self, "_on_linkbutton_pressed", [path]) | ||
id.underline = LinkButton.UNDERLINE_MODE_ON_HOVER | ||
id.text = path.get_base_dir().get_file().plus_file(path.get_file()) | ||
containerForLabels.add_child(id) | ||
|
||
func _on_linkbutton_pressed(path): | ||
OS.shell_open(path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters