void ConsoleWidget::Push(const grinliz::GLString &str) { Scroll(); lines[0].text.SetText(str.safe_str()); lines[0].age = 0; lines[0].highLight.SetAtom(RenderAtom()); }
void ConsoleWidget::Push(const grinliz::GLString &str, gamui::RenderAtom icon, const grinliz::Vector2F& pos) { Scroll(); lines[0].text.SetText(str.safe_str()); lines[0].age = 0; lines[0].pos = pos; lines[0].button.SetDeco(icon, icon); }
void ConsoleWidget::Push(const grinliz::GLString &str, const gamui::RenderAtom& icon, const grinliz::Vector2F& pos, const gamui::RenderAtom& background) { Scroll(); lines[0].text.SetText(str.safe_str()); lines[0].age = 0; lines[0].pos = pos; lines[0].button.SetDeco(icon, icon); lines[0].highLight.SetAtom(background); lines[0].SetHighLightSize(); }
void ConsoleWidget::Push(const grinliz::GLString &str) { Scroll(); lines[0].text.SetText(str.safe_str()); lines[0].age = 0; }