55 Commits

Author SHA1 Message Date
Charles Dang
2873ad1c7e MP Lobby: removed manual player list sorting
It didn't make much sense to have these since there's really no situation you'd want
the "default" sorting order, which is however the server decided to send the list.

(cherry-picked from commit e754e64987b3be3e97adebe0755f408066b2f41d)
2018-10-07 03:21:44 +00:00
Charles Dang
7b4b14eb32 MP Lobby: bunch of small UI and text formatting tweaks
(cherry-picked from commit 58ebc064e97382eef36aa90bf947cff8f72b6826)
2018-10-07 03:20:36 +00:00
Charles Dang
650121a8de MP Lobby: removed Refresh button
I'm not 100% sure about this change, but I think its presence was rather confusing and
it (hopefully) shouldn't ever be needed.

(cherry-picked from commit fe10bc0315472b49072a39cd577b9872617d81d3)
2018-10-07 03:20:32 +00:00
Charles Dang
9e2918d68e MP Lobby: base resolution selection on window width not height
[ci skip]

Height isn't the problem. The default lobby can display fine even at 600 px h. Width is
the problem the default layout faces at low resolutions, and it was quite odd to have a
really wide window use the low resolution layout, despite there obviously being enough
horizontal space to fit the sidebar.

(cherry-picked from commit 2f565b8e90e9b49a49635034524eb79d29e5f80d)
2018-10-07 03:20:21 +00:00
Charles Dang
5c66a97f3c MP Lobby: decreased size of scenario/era name label
[ci skip]

Will slightly mitigate the issue of it potentially getting too long...

(cherry-picked from commit 08d0f6983fa6ac23d2335b8776d88715e5c073e2)
2018-10-07 03:20:21 +00:00
Charles Dang
f464cd20c7 MP Lobby: shifted game info icon to the left
[ci skip]

(cherry-picked from commit 0db17bbcf18ca3410ddfa162bb6d0ca656f97f80)
2018-10-07 03:20:20 +00:00
Charles Dang
e9bc7c9586 MP Lobby: restored Era info to main game display
Includes some slight spacing tweaks.

(cherry-picked from commit b17e9fa9b127110bf8b97a70d96e512ff64fdf2f)
2018-10-07 03:20:20 +00:00
Charles Dang
b0b150cb5a MP Lobby: improved low-resolution layout
[ci skip]

* Removed unnecessary spacer line.
* Increased chat area height by 10% .

(cherry-picked from commit 195eb0ce73299489551e28024b6ae5f58a4d2025)
2018-10-07 03:20:17 +00:00
Charles Dang
577fa7c0dd MP Lobby: removed individual Join/Observe buttons for each game
(cherry-picked from commit ffe71c5157c2df1f857b3ea999efdd533a514ecc)
2018-10-07 03:20:15 +00:00
Charles Dang
d52737b5d0 Swapped the position and formatting of game names and titles in the MP lobby
Addresses point 2 of #2815.

(cherry-picked from commit 6615aa7efe2de65362e3ec19ee3e72a65dea50d8)
2018-10-07 03:18:47 +00:00
Charles Dang
e0b35791e2 GUI2/Text Box: refactored hint text interface
Previously, I had implemented the hint text ("Search)" and image (the magnifying glass)
as a custom text box definition. This caused some problems, though. Since the string was
hard-coded as part of a WFL formula, it couldn't be translated (see #2709 and #2732). It
also wasn't expandable to any other usecase.

Instead, I've added two new hint_text= and hint_image= keys to [text_box], wrapped the
"Search" text and magnifying image path in a helper macro, and refactored the default
definition to display the hint text and image when appropriate.

This also fixes a minor issue where selected text wouldn't remain highlighted when the
box wasn't focused when using the filter definition (it did with the default one).

This should fix the untranslatable "Search" text issue mentioned in both issues above.
The new string is in the wesnoth-lib textdomain.

(cherry-picked from commit db5abb7e637fd87699fce49a9543faafc3f58068)
2018-10-07 03:18:19 +00:00
Charles Dang
9c83099613 MP Lobby: increased chatbox height on standard resolution
[ci skip]

* Increase chatbox height from 25% of the screen height to 28%
* Removed remaining horizontal spacer line
* Disabled horizontal scrollbar for the game list. I had set the mode to 'auto' in order to
  reserve space for the bar should it be needed. However, I've since decreased the amount of
  content in the game listbox, rendering the chance it will be needed much less likely.
2018-02-24 22:52:35 +11:00
Charles Dang
b35663e1bf GUI2/Chatbox: handle main border in including windows
[ci skip]

This is consistent with other widgets.
2018-02-22 15:13:48 +11:00
Charles Dang
38477ee23b MP Lobby: ensure turn/slots text always has enough space
[ci skip]
2018-02-20 15:13:22 +11:00
Jyrki Vesterinen
18e208e07c Revert "GUI2: removed GUI_FORCE_WIDGET_SIZE macro in favor of fixed_width/fixed_height keys"
This reverts commit 9f386ed563e84e355130a940be804d13bf5b3d9c.

fixed_width/fixed_height are broken and completely fail to block the
widget from growing.
2017-11-15 19:04:03 +02:00
Charles Dang
9f386ed563 GUI2: removed GUI_FORCE_WIDGET_SIZE macro in favor of fixed_width/fixed_height keys
[ci skip]
2017-11-11 23:12:14 +11:00
Charles Dang
71b32cec16 Lobby Main: tweak player list entry borders
[ci skip]

No wonder this list looked messy. The labels didn't have full borders!
2017-11-10 13:05:29 +11:00
Charles Dang
961c8c05d3 MP Lobby: cleaned up WML layout
[ci skip]

This mostly focused on formatting and reducing the number of sub-grids in the player tree area.
2017-11-05 22:22:15 +11:00
Charles Dang
fa14cf65e1 MP Lobby: right-align status text
[ci skip]

This prevents status text from sometimes floating off to the left if the status label shrinks but
a relayout hasn't occurred. In that case, the label widget's area would be larger than needed for
the text, and since left-align is the default setting, the next text gets stuck weirdly aligned.
2017-11-01 11:18:40 +11:00
Charles Dang
0737736d3c MP Lobby: completely redesigned game entry layout
I did one of these about a year ago, but in the time since I realize it was honestly really crowded
and had some fundamental problems (for example, the listbox would get a horizontal scrollbar if a game
with a lot of mods was started).

This time around, I've focused on simplicity. The main changes:
* The minimap has been made 10 px larger. This was to accommodate the 5 px borders, so now the actual
  map image is 72x72.
* Game name and scenario name have swapped places, and the latter is now larger.
* Game names are no longer colorized based on the number of vacant slots or whether you can observe
  the game or not.
* The Turns/Slots label coloring has been toned down and been made larger. It is now either white
  (game has started), green (vacant slots available), or yellow (vacant slots available for reloaded game).
* The Turns limit  no longer displays "/-" for games with unlimited turns. Now you just get "Turn n".
* Due to 1bfa170856ed, proper names of all missing content is displayed. I also got rid of those
  "Unknown Scenario"/"Unknown Campaign" labels in favor of a simple red-color game type token (S or C),
  respectively.
* All game setting icons have been moved to a tooltip attached to an info icon, except those for
  Password Required and Observes Allowed.
* The info icon will also change color (and its tooltip display a message) if the player need to download
  additional content to join that game.
2017-10-29 16:55:42 +11:00
gfgtdf
55f0ccad5c fixes to widget resolutions 2017-07-31 04:37:40 +02:00
Charles Dang
4f50559af9 GUI2 WML: consistent styling, don't use strings for bools 2017-04-16 17:19:03 +11:00
Charles Dang
f0dffab55a Tree View Node: rename tree_view_node_icon to tree_view_node_toggle
This better reflect its function
2017-04-12 17:00:03 +11:00
Charles Dang
70f827415b MP Lobby: rename class for better consistency with other dialogs 2017-03-16 18:47:45 +11:00
Charles Dang
0fc5ab92a3 GUI2: added a background for filter text boxes instead of using a 'Filter' label
[ci skip]
2016-12-17 00:45:00 +11:00
Jyrki Vesterinen
4ed0146251 Lock sizes of all chat boxes
This fixes the chat box randomly becoming too large in the MP lobby.
2016-11-15 22:41:48 +02:00
Charles Dang
0ac4c0fcfa Removed some unnecessary minimum size forcing
Using grow factors properly removes the need for these as long as the chatboxes are set to a minimum size
2016-10-12 15:41:38 +11:00
Charles Dang
cea34e70bd MP Lobby: made gamelist expand to max available height
For some reason, I swapped these grow factors in the past since the chatbox was growing... not sure why.
It works fine like this, and plus, the chatbox is now equal in height those in Staging and Join.
2016-10-12 15:38:13 +11:00
Charles Dang
39c99d076a Lobby: add missing border around player tree 2016-10-01 03:01:39 +11:00
Charles Dang
33653e3969 Reduced chatbox size slightly 2016-09-18 03:01:03 +11:00
Charles Dang
b07810608a Renamed the mp_chatbox widget simply "chatbox" 2016-09-09 08:25:04 +11:00
Charles Dang
765f0bfc6a Moved chatbox code to its own file and updates schema 2016-09-09 07:47:02 +11:00
gfgtdf
1c2bb78d15 add mp chatbox widget
to be used in mp lobbay and mp connect.
2016-09-08 22:14:45 +02:00
Charles Dang
db2381806d MP Lobby: enable game list horizontal scrollbar for now
Until we figure out what to do about the list of mods possibly being too long,
this prevents window scrollbars.
2016-09-01 15:16:49 +11:00
Charles Dang
f3e63ebc96 MP Lobby: added Replay Options combobox to small resolution layout 2016-09-01 13:12:16 +11:00
Charles Dang
8c68d2a253 MP Lobby: few subtle layout improvements 2016-09-01 05:38:24 +11:00
Charles Dang
b726e9fe1d MP Lobby: improved game row layout
This includes adding a section for active Modifications as the GUI1 lobby does
2016-09-01 00:41:31 +11:00
Charles Dang
7baf9587ad MP Lobby: implement all replay view options 2016-08-30 11:11:39 +11:00
Charles Dang
fae6da9ad1 MP Lobby: added a game status icon for Registered Users Only 2016-08-20 22:18:48 +11:00
Celtic Minstrel
f5acf47a19 Rename indention -> indentation 2016-08-20 02:52:11 -04:00
Charles Dang
425ad0acd5 MP Lobby: few small layout tweaks 2016-08-17 13:42:05 +11:00
Charles Dang
483fda8638 MP Lobby: few layout fixes for the low-res version 2016-08-17 11:33:54 +11:00
Charles Dang
32451f2245 MP Lobby: layout improvements and cleanup 2016-08-17 01:08:42 +11:00
Charles Dang
7fb8d7dade MP Lobby: improved low-res layout 2016-08-13 15:09:08 +11:00
Celtic Minstrel
e38446aa4c Add lower-resolution-friendly version of MP lobby 2016-08-12 23:47:29 -04:00
Charles Dang
bacece459c MP Lobby: fixed a few layout issues 2016-08-13 13:08:26 +11:00
Charles Dang
87f0716616 Reduced brightness of lobby game list border 2016-05-18 13:06:10 +11:00
Charles Dang
f77b3d7a6f tlobby_main: improved formula for game listbox min height 2016-04-10 07:14:51 +11:00
Charles Dang
3bfc17a9e9 tlobby_main: fix misalignment of game listbox borders 2016-04-10 07:06:55 +11:00
Charles Dang
25e8d4f07c tlobby_main: use large buttons for main controls 2016-04-10 06:51:06 +11:00