Just making things work again

This commit is contained in:
2025-08-30 21:38:53 -05:00
parent 6f1defb3da
commit 3ccf4ebabb
10 changed files with 102 additions and 44 deletions

View File

@@ -30,7 +30,7 @@ func _parseAdvancedText() -> void:
key = tr(key)
self.text = processInputTags(key)
func processInputTags(text:String) -> String:
func processInputTags(_text:String) -> String:
var regex = RegEx.new()
regex.compile(r"\[input action=(.*?)\](.*?)\[/input\]")
var result = text
@@ -41,4 +41,4 @@ func processInputTags(text:String) -> String:
# var icon_path = get_icon_for_action(action, device)
var img_tag = "[img height=%d valign=center,center]res://textures/input/%s.tres[/img]" % [ height, action ]
result = result.replace(match.get_string(0), img_tag)
return result
return result