extends Control @onready var map = get_parent() func _process(delta): queue_redraw() func _draw(): if map.MsgTimer > 0: var temp = false if (not map.InvOpen): if map.SelectedItem != null: if map.SelectedItem.itemtemplate.tempname == "paper" or map.SelectedItem.itemtemplate.tempname == "oldpaper": temp = true if (not temp): map.MsgColor = map.MsgColor.from_rgba8(0, 0, 0, min(map.MsgTimer / 2, 255)) Utils.DrawTextRaw(self, map.Msg, (size.x / 2)+1, (size.y / 2) + 201, Utils.COUR_FONT, 19, true, map.MsgColor) map.MsgColor = map.MsgColor.from_rgba8(255, 255, 255, min(map.MsgTimer / 2, 255)) #If Left(Msg,14)="Blitz3D Error!" Then #Color 255,0,0 #EndIf Utils.DrawTextRaw(self, map.Msg, (size.x / 2), (size.y / 2) + 200, Utils.COUR_FONT, 19, true, map.MsgColor) else: map.MsgColor = map.MsgColor.from_rgba8(0, 0, 0, min(map.MsgTimer / 2, 255)) Utils.DrawTextRaw(self, map.Msg, (size.x / 2)+1, (size.y * 0.94) + 1, Utils.COUR_FONT, 19, true, map.MsgColor) map.MsgColor = map.MsgColor.from_rgba8(255, 255, 255, min(map.MsgTimer / 2, 255)) #If Left(Msg,14)="Blitz3D Error!" Then #Color 255,0,0 #EndIf Utils.DrawTextRaw(self, map.Msg, (size.x / 2), (size.y * 0.94), Utils.COUR_FONT, 19, true, map.MsgColor) map.MsgTimer = map.MsgTimer - Global.FPSfactor2 map.MsgColor = map.MsgColor.from_rgba8(255, 255, 255) if map.ShowFPS: Utils.DrawTextRaw(self, "FPS: " + str(Engine.get_frames_per_second()), 20, 20, Utils.COUR_FONT, 20, false, map.MsgColor)