Fixed some functions, will check into the rest in the morning.

This commit is contained in:
2025-01-16 00:07:07 -05:00
parent 93632faaed
commit 389f266722
2 changed files with 9 additions and 2 deletions

View File

@@ -78,6 +78,11 @@ namespace JUI {
float scale = 1.f;
JGL::J2D::Begin();
Vector2 text_pos = {align_x, align_y};
JGL::J2D::OutlineRect(color, text_pos, bounds);
JGL::J2D::DrawString(
color,
content,

View File

@@ -239,7 +239,8 @@ namespace JUI {
Vector2 Widget::GetAbsoluteMarginTopLeft()
{
// TODO: Implement correctly.
return {0,0};
}
Vector2 Widget::GetAbsolutePaddingBottomRight() const {
@@ -256,7 +257,8 @@ namespace JUI {
Vector2 Widget::GetAbsoluteMarginBottomRight()
{
// TODO: Implement correctly.
return {0,0};
}