Skip to content

Commit 5d2c036

Browse files
committed
Another getter I forgot
1 parent 7f82869 commit 5d2c036

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

loader/include/Geode/ui/NineSlice.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace geode {
2323

2424
/// Sets a multiplier for the slices to be scaled by
2525
void setScaleMultiplier(float scaleMultiplier);
26+
float getScaleMultiplier();
2627

2728
/// Sets whether the slices should repeat or scale, by default, it scales
2829
void setRepeatCenter(bool repeat);

loader/src/ui/nodes/NineSlice.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,10 @@ void NineSlice::setScaleMultiplier(float scaleMultiplier) {
296296
m_impl->m_dirty = true;
297297
}
298298

299+
float NineSlice::getScaleMultiplier() {
300+
return m_impl->m_scaleMultiplier;
301+
}
302+
299303
void NineSlice::setRepeatCenter(bool repeat) {
300304
m_impl->m_repeatCenter = repeat;
301305
m_impl->m_dirty = true;

0 commit comments

Comments
 (0)