Skip to content

Commit

Permalink
Merge pull request #199 from worron/node_count_option
Browse files Browse the repository at this point in the history
Add option to show node count
  • Loading branch information
Ark2000 authored Sep 12, 2024
2 parents 6262247 + 0a9cbcf commit 69fdd0d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions addons/panku_console/modules/engine_tools/module.gd
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
class_name PankuModuleEngineTools extends PankuModule

func init_module():
get_module_opt().count_nodes = load_module_data("count_nodes", false)
super.init_module()

func toggle_fullscreen() -> void:
if DisplayServer.window_get_mode() != DisplayServer.WINDOW_MODE_WINDOWED:
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED)
Expand Down
5 changes: 4 additions & 1 deletion addons/panku_console/modules/engine_tools/opt.gd
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ func reload_current_scene():
time_scale = v
_module.set_time_scale(time_scale)

@export var export_comment_count_nodes = "Show node count in performance info (can issue extra performance hit)."
@export var count_nodes := false

@export var readonly_performance_info:String:
get:
return _module.get_performance_info(false)
return _module.get_performance_info(count_nodes)

0 comments on commit 69fdd0d

Please sign in to comment.