Just making things work again
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user