Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/windowing/StarVerticalLayout.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-21 00:58:49 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-21 00:58:49 +1000
commit4b0bc220e4da1173f742a4973939b139bef562db (patch)
tree0ff66d5957575fa814fc10b8cd93e3dd378f45dc /source/windowing/StarVerticalLayout.cpp
parent607be749451aa40e3619e7ceab0927d1fcec8233 (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.cpp10
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 {