diff --git a/gdextension/limboai.gdextension b/gdextension/limboai.gdextension index 8f12f49..c71edd6 100644 --- a/gdextension/limboai.gdextension +++ b/gdextension/limboai.gdextension @@ -24,7 +24,6 @@ android.release.arm64 = "res://addons/limboai/bin/liblimboai.android.template_re [icons] -BehaviorTree = "res://addons/limboai/icons/BehaviorTree.svg" BTAction = "res://addons/limboai/icons/BTAction.svg" BTAlwaysFail = "res://addons/limboai/icons/BTAlwaysFail.svg" BTAlwaysSucceed = "res://addons/limboai/icons/BTAlwaysSucceed.svg" @@ -68,12 +67,13 @@ BTSubtree = "res://addons/limboai/icons/BTSubtree.svg" BTTimeLimit = "res://addons/limboai/icons/BTTimeLimit.svg" BTWait = "res://addons/limboai/icons/BTWait.svg" BTWaitTicks = "res://addons/limboai/icons/BTWaitTicks.svg" +BehaviorTree = "res://addons/limboai/icons/BehaviorTree.svg" LimboAI = "res://addons/limboai/icons/LimboAI.svg" LimboDeselectAll = "res://addons/limboai/icons/LimboDeselectAll.svg" LimboExtraBlackboard = "res://addons/limboai/icons/LimboExtraBlackboard.svg" LimboExtraClock = "res://addons/limboai/icons/LimboExtraClock.svg" -LimboExtractSubtree = "res://addons/limboai/icons/LimboExtractSubtree.svg" LimboExtraVariable = "res://addons/limboai/icons/LimboExtraVariable.svg" +LimboExtractSubtree = "res://addons/limboai/icons/LimboExtractSubtree.svg" LimboHSM = "res://addons/limboai/icons/LimboHSM.svg" LimboPercent = "res://addons/limboai/icons/LimboPercent.svg" LimboSelectAll = "res://addons/limboai/icons/LimboSelectAll.svg" diff --git a/gdextension/update_icons.py b/gdextension/update_icons.py index 8d65696..7280e90 100755 --- a/gdextension/update_icons.py +++ b/gdextension/update_icons.py @@ -58,9 +58,14 @@ def main(): content += "[icons]\n\n" + icon_files = [] icons_dir = os.path.join(config_dir, "../icons/") for icon_file in glob.glob(icons_dir + "/*.svg"): icon_file = os.path.basename(icon_file) + icon_files.append(icon_file) + + icon_files.sort() + for icon_file in icon_files: content += os.path.splitext(icon_file)[0] + " = \"res://addons/limboai/icons/" + icon_file + "\"\n" f = open(config_path, "w")