public static void Draw_LABEL_LINE_Y(string _str, float _x, float _y, float _size, float _txt_height, Color _col_line_START, Color _col_line_END, Color _col_txt, float _txt_margin = DEFAULT_TEXT_MARGIN, float _rotation = 1) { GL.PushMatrix(); GL_DRAW.TransformMatrix(_x, _y, _rotation); GL_DRAW.Draw_LINE(0, 0, 0, _size, _col_line_START, _col_line_END); GL_TXT.Txt(_str, 0, _size + _txt_margin, _txt_height / 5, _col_txt); GL.PopMatrix(); }
public void Draw() { GL_DRAW.RESET_SKEW(); currentScreen.Draw(); Palette _P = currentScreen.P; Color _COL = _P.Get(4); GL_DRAW.RESET_SKEW(); // screen name GL_TXT.Txt(currentScreen.title, SCREEN_TITLE_X, SCREEN_TITLE_Y, DEFAULT_TXT_CELL_HEIGHT, _COL); string _PAGE_STR = (currentScreen_index + 1) + "/" + totalScreens; // screen index status GL_TXT.Txt(_PAGE_STR, 1f - (((_PAGE_STR.Length + 2) * 3) * DEFAULT_TXT_CELL_HEIGHT), SCREEN_TITLE_Y, DEFAULT_TXT_CELL_HEIGHT, _COL); // time remaining line currentScreen.timeRemaining = 1f - (screenTimer / currentScreen.duration); GL_DRAW.Draw_RECT_FILL(0f, 0f, 0.005f, currentScreen.timeRemaining, _COL); }
public static void Draw_LABEL_BOX(string _str, float _x, float _y, float _w, float _h, float _txt_height, float _txt_x, float _txt_y, Color _col_PANEL, Color _col_TXT) { GL_DRAW.Draw_RECT_FILL(_x, _y, _w, _h, _col_PANEL); GL_DRAW.Draw_RECT_FILL(_x + _w + (_h * 0.05f), _y, (_h * 0.05f), _h, _col_PANEL); GL_TXT.Txt(_str, _x + (_w * _txt_x), _y + (_h * _txt_y), _txt_height / 5, _col_TXT); }
public void TXT(string _str, float _x, float _y, Color _col, float _cellSize = PRESENTATION.DEFAULT_TXT_CELL_HEIGHT) { GL_TXT.Txt(_str.ToLower(), _x, _y, _cellSize, _col); }