Closed betenner closed 4 years ago
` public class Main : Script { private TextElement _text = new TextElement("Test Text", new PointF(100, 100), 1f, Color.LightBlue);
public Main() { Tick += Main_Tick; } private void Main_Tick(object sender, EventArgs e) { _text.Draw(); }
} ` The text drawn this way is flickering (maybe not drawn each frame). If I set Interval to 1, the game will crash.
I found a weird workaround for this issue: Just open then console then type Help() to show the help, then close the console. Then everything works fine...
` public class Main : Script { private TextElement _text = new TextElement("Test Text", new PointF(100, 100), 1f, Color.LightBlue);
} ` The text drawn this way is flickering (maybe not drawn each frame). If I set Interval to 1, the game will crash.