From 4bfb93cc59a21496e992014cdcc73c25ff310a5c Mon Sep 17 00:00:00 2001 From: Harmony Monroe Date: Wed, 30 Sep 2020 20:46:21 -0400 Subject: [PATCH] minified hint func --- Script/DevConsole.gd | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Script/DevConsole.gd b/Script/DevConsole.gd index 541d459..33afe4c 100644 --- a/Script/DevConsole.gd +++ b/Script/DevConsole.gd @@ -61,14 +61,10 @@ func _on_Input_text_changed(new_text): node_hint.text = "" else: var l = [] - node_hint.text = "" for c in _get_cmd_list(): if c.begins_with(new_text.to_lower()): l.append(c) - l = str(l) - l.erase(0, 1) - l.erase(l.length() - 1, 1) - node_hint.text = l + node_hint.text = str(l).substr(1, str(l).length() - 2) func _call(method := "", arg := ""): if _get_cmd_list().has(method):