Fixed some functions, will check into the rest in the morning.
This commit is contained in:
@@ -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,
|
||||
|
@@ -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};
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user