Adjust scenario editor scroll bar size/positioning.

FIxes #772
This commit is contained in:
2025-08-02 01:10:54 -04:00
parent e9212db929
commit 3bb416b1e4
4 changed files with 33 additions and 9 deletions

View File

@@ -87,6 +87,10 @@ void cScrollbar::setWheelEventRect(rectangle rect) {
this->wheel_event_rect = rect;
}
rectangle cScrollbar::getWheelEventRect() const {
return wheel_event_rect;
}
long cScrollbar::getPosition() const {
return pos;
}

View File

@@ -125,6 +125,7 @@ public:
/// @param newStyle The new style.
void setStyle(eScrollStyle newStyle);
void setWheelEventRect(rectangle);
rectangle getWheelEventRect() const;
virtual void draw() override;
virtual bool handle_event(const sf::Event&) override;
/// @copydoc cControl::getSupportedHandlers