diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-21 00:58:49 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-21 00:58:49 +1000 |
commit | 4b0bc220e4da1173f742a4973939b139bef562db (patch) | |
tree | 0ff66d5957575fa814fc10b8cd93e3dd378f45dc /source/windowing/StarVerticalLayout.cpp | |
parent | 607be749451aa40e3619e7ceab0927d1fcec8233 (diff) |
Support for changing the game's timescale
Context-specific (like per-world) timescales can also be added later
Diffstat (limited to 'source/windowing/StarVerticalLayout.cpp')
-rw-r--r-- | source/windowing/StarVerticalLayout.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/windowing/StarVerticalLayout.cpp b/source/windowing/StarVerticalLayout.cpp index d421a29..412fce0 100644 --- a/source/windowing/StarVerticalLayout.cpp +++ b/source/windowing/StarVerticalLayout.cpp @@ -9,7 +9,7 @@ VerticalLayout::VerticalLayout(VerticalAnchor verticalAnchor, int verticalSpacin disableScissoring(); } -void VerticalLayout::update() { +void VerticalLayout::update(float dt) { m_size = Vec2I(0, 0); if (m_members.empty()) @@ -64,22 +64,22 @@ RectI VerticalLayout::relativeBoundRect() const { void VerticalLayout::setHorizontalAnchor(HorizontalAnchor horizontalAnchor) { m_horizontalAnchor = horizontalAnchor; - update(); + update(0); } void VerticalLayout::setVerticalAnchor(VerticalAnchor verticalAnchor) { m_verticalAnchor = verticalAnchor; - update(); + update(0); } void VerticalLayout::setVerticalSpacing(int verticalSpacing) { m_verticalSpacing = verticalSpacing; - update(); + update(0); } void VerticalLayout::setFillDown(bool fillDown) { m_fillDown = fillDown; - update(); + update(0); } RectI VerticalLayout::contentBoundRect() const { |