mirror of
https://github.com/HarmonyHoney/tiny_crate.git
synced 2026-07-28 18:22:40 +00:00
minified hint func
This commit is contained in:
parent
d3db52a99b
commit
4bfb93cc59
1 changed files with 1 additions and 5 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue