void UIText(int font, const LayoutManager &layout, const char *text, uint32_t color, float scale, int align) { ui_draw2d.SetFontScale(scale, scale); float w, h; ui_draw2d.MeasureText(font, text, &w, &h); float x, y; layout.GetPos(&w, &h, &x, &y); UIText(font, x, y, text, color, scale, 0); ui_draw2d.SetFontScale(1.0f, 1.0f); }
void UIText(int font, int x, int y, const char *text, uint32_t color, float scale, int align) { ui_draw2d.SetFontScale(scale, scale); ui_draw2d.DrawTextShadow(font, text, x, y, color, align); ui_draw2d.SetFontScale(1.0f, 1.0f); }