show rules to the user

This commit is contained in:
2025-03-23 22:29:28 +03:00
parent 3f1addcadd
commit a2b730df22
3 changed files with 17 additions and 0 deletions

View File

@@ -81,6 +81,16 @@ namespace Game.UI {
DrawTextBox(HAlignment.Center, VAlignment.Center, BoxType.Double, windowHeight / 2 + 1, windowWidth / 2 + 1, text, 0xffffff, 0xffffff, 0xfc5d2d, windowWidth / 2);
}
public void ShowMainGameScreenBase() {
ClearWithColor(0x5e61ed);
DrawTitle(2, 0x5e61ed);
DrawCopyright(0x5e61ed);
}
public void DrawRules() {
DrawTextBox(HAlignment.Center, VAlignment.Center, BoxType.Simple, windowHeight / 2 + 1, windowWidth / 2 + 1, GetMessage(Message.RULES), 0x00fcdb, 0x00fcdb, 0x000000, windowWidth * 3 / 4);
}
void DrawTitle(int y, int bgColor) {
string text1 = GetMessage(Message.TITLE_LINE1)!;
string text2 = GetMessage(Message.TITLE_LINE2)!;