Skip to content

Commit

Permalink
Merge pull request #36 from Norodix/load_list_fix
Browse files Browse the repository at this point in the history
Fix category change in editor in 4.1
  • Loading branch information
PunchablePlushie authored Sep 22, 2023
2 parents 6bbbcfa + 3f4f387 commit a27d779
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions addons/ggs/classes/ggs_globals.gd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ extends Node
### Signals

signal category_selected(category: ggsCategory)
signal category_changed(category: ggsCategory)
signal setting_selected(setting: ggsSetting)


Expand Down Expand Up @@ -79,6 +80,7 @@ func _ready() -> void:

func _on_category_selected(category: ggsCategory) -> void:
active_category = category
category_changed.emit(category)


func _on_setting_selected(setting: ggsSetting) -> void:
Expand Down
2 changes: 1 addition & 1 deletion addons/ggs/editor/setting_panel/setting_list.gd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extends ggsTree
func _ready() -> void:
item_selected.connect(_on_item_selected)
item_activated.connect(_on_item_activated)
GGS.category_selected.connect(_on_Global_category_selected)
GGS.category_changed.connect(_on_Global_category_selected)


func add_item(setting: ggsSetting) -> void:
Expand Down

0 comments on commit a27d779

Please sign in to comment.