buckshotroulette-decomp/DotRemover.gd

18 lines
485 B
GDScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

class_name DotFix extends Node
var key
var p
func _ready():
p = get_parent()
key = p.text
await get_tree().create_timer(1, false).timeout
Fix()
func Fix():
if key == "TOTAL CASH" && TranslationServer.get_locale() == "EN": p.text = "TOTAL CASH "; return
if key == "SHOTS FIRED" && TranslationServer.get_locale() == "EN": p.text = "SHOTS FIRED "; return
var orig = tr(key)
var modif = orig.replace(".", "").replace(":", "").replace("", "").replace(":", "")
p.text = modif