adjusted position of 'users' menu in multiplayer lobby...
...so it is positioned nicely, and extends all the way down the screen
This commit is contained in:
parent
bec01a73df
commit
b1dfc87f85
2 changed files with 5 additions and 1 deletions
|
@ -348,8 +348,10 @@ void ui::hide_children(bool hide)
|
|||
|
||||
void ui::layout_children(const SDL_Rect& rect)
|
||||
{
|
||||
users_menu_.set_width(xscale(156));
|
||||
users_menu_.set_width(xscale(159));
|
||||
users_menu_.set_location(xscale(856), yscale(42));
|
||||
users_menu_.set_height(yscale(715));
|
||||
users_menu_.set_max_height(yscale(715));
|
||||
chat_textbox_.set_location(xscale(11) + 4, yscale(573) + 4);
|
||||
chat_textbox_.set_measurements(xscale(833) - 8, yscale(143) - 8);
|
||||
entry_textbox_.set_location(xscale(11) + 4, yscale(732));
|
||||
|
|
|
@ -395,6 +395,8 @@ void menu::set_items(const std::vector<std::string>& items, bool strip_spaces, b
|
|||
|
||||
void menu::set_max_height(const int new_max_height) {
|
||||
max_height_ = new_max_height;
|
||||
itemRects_.clear();
|
||||
max_items_ = -1;
|
||||
}
|
||||
|
||||
void menu::set_max_width(const int new_max_width) {
|
||||
|
|
Loading…
Add table
Reference in a new issue