mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-18 20:23:28 +00:00
added spacer
This commit is contained in:
@@ -509,6 +509,10 @@ namespace omath::hud
|
||||
{
|
||||
add_right_label(w.child.color, w.child.offset, w.child.outlined, w.child.text);
|
||||
},
|
||||
[this](const widget::Spacer& w)
|
||||
{
|
||||
m_text_cursor_right.x += w.size;
|
||||
},
|
||||
},
|
||||
child);
|
||||
}
|
||||
@@ -538,6 +542,10 @@ namespace omath::hud
|
||||
{
|
||||
add_left_label(w.child.color, w.child.offset, w.child.outlined, w.child.text);
|
||||
},
|
||||
[this](const widget::Spacer& w)
|
||||
{
|
||||
m_text_cursor_left.x -= w.size;
|
||||
},
|
||||
},
|
||||
child);
|
||||
}
|
||||
@@ -567,6 +575,10 @@ namespace omath::hud
|
||||
{
|
||||
add_centered_top_label(w.child.color, w.child.offset, w.child.outlined, w.child.text);
|
||||
},
|
||||
[this](const widget::Spacer& w)
|
||||
{
|
||||
m_text_cursor_top.y -= w.size;
|
||||
},
|
||||
},
|
||||
child);
|
||||
}
|
||||
@@ -596,6 +608,10 @@ namespace omath::hud
|
||||
add_centered_bottom_label(w.child.color, w.child.offset, w.child.outlined,
|
||||
w.child.text);
|
||||
},
|
||||
[this](const widget::Spacer& w)
|
||||
{
|
||||
m_text_cursor_bottom.y += w.size;
|
||||
},
|
||||
},
|
||||
child);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user