localised resources and remaining scenes
This commit is contained in:
@@ -379,7 +379,7 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
bbcode_enabled = true
|
||||
text = "#Primary Fire#"
|
||||
text = "%Primary Fire%"
|
||||
scroll_active = false
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
@@ -409,7 +409,7 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
bbcode_enabled = true
|
||||
text = "#Secondary Fire#"
|
||||
text = "%Secondary Fire%"
|
||||
scroll_active = false
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
@@ -82,9 +82,9 @@ func set_energy_visible(value: bool) -> void:
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
fps_label.text = "FPS: " + str(Engine.get_frames_per_second())
|
||||
wave_start_label.text = tr(parse_action_tag("PROMPT_START_WAVE"))
|
||||
place_text.text = parse_action_tag("[center]#Primary Fire#")
|
||||
swap_text.text = parse_action_tag("[center]#Secondary Fire#")
|
||||
wave_start_label.text = parse_action_tag(tr("PROMPT_START_WAVE"))
|
||||
place_text.text = parse_action_tag("[center]%Primary Fire%")
|
||||
swap_text.text = parse_action_tag("[center]%Secondary Fire%")
|
||||
|
||||
|
||||
func grow_wave_start_label() -> void:
|
||||
@@ -215,7 +215,7 @@ func pickup(card: Card) -> void:
|
||||
|
||||
|
||||
func parse_action_tag(text: String) -> String:
|
||||
var string_array: PackedStringArray = text.split("#")
|
||||
var string_array: PackedStringArray = text.split("%")
|
||||
var output: Array[String] = []
|
||||
if string_array.size() > 1:
|
||||
for i: int in InputMap.action_get_events(string_array[1]).size():
|
||||
|
||||
Reference in New Issue
Block a user