mirror of https://github.com/OpenRCT2/OpenRCT2.git
Add methods to move a widget
This commit is contained in:
parent
9906a18bc7
commit
4db5d62476
|
@ -137,6 +137,18 @@ struct Widget
|
|||
return top - 1;
|
||||
}
|
||||
|
||||
void moveRight(int32_t amount)
|
||||
{
|
||||
left += amount;
|
||||
right += amount;
|
||||
}
|
||||
|
||||
void moveDown(int32_t amount)
|
||||
{
|
||||
top += amount;
|
||||
bottom += amount;
|
||||
}
|
||||
|
||||
bool IsVisible() const
|
||||
{
|
||||
return !(flags & WIDGET_FLAGS::IS_HIDDEN);
|
||||
|
|
Loading…
Reference in New Issue