215 Commits

Author SHA1 Message Date
Charles Dang
5872f52879 Fix some missed rename instances and wrong widget/window IDs 2016-11-10 11:04:09 -05:00
Charles Dang
da5ca8efce GUI2: bunch of small internal layout tweaks to dialogs using unit preview panes
These should have littke to no obvious effect, except if one of these dialogs is made fixed-size or
extra space becomes available for some reason.
2016-11-05 19:53:06 +11:00
Charles Dang
72f4c95b2b MP Staging, MP Join Game: use gold_small definition for Connected Players header 2016-11-05 16:01:03 +11:00
Charles Dang
f4870a86d0 Cleaned up kate modlines 2016-10-24 23:32:07 +11:00
Charles Dang
600e0c47b0 Chat Log: made dialog fixed-size and cleaned up WML 2016-10-24 23:29:16 +11:00
Charles Dang
231cb1a4a4 Preferences: demote Show Halos to Advanced 2016-10-24 16:46:42 +11:00
Charles Dang
d54f440cb9 Game Load: use small label for leader name
This is to reduce the number of leader names that would cause a list resize.
2016-10-23 00:39:31 +11:00
Charles Dang
80881de369 Made Preferences and Game Load windows fixed-size
Both are slightly wider than before. In the latter case, 750 would have matched the old automatic width, but
for some reason, the window's scrollbars were showing. Need to investigate further.
2016-10-23 00:35:21 +11:00
Charles Dang
71bc3f356b Added GUI_WINDOW_FIXED_SIZE_CENTERED macro 2016-10-22 23:58:00 +11:00
Charles Dang
339b4f3ee1 Enabled some commented out tooltips now that bug #22176 is fixed 2016-10-19 22:36:57 +11:00
Charles Dang
918e8e4102 Preferences: small tooltip grammar correction 2016-10-13 00:06:01 +11:00
Ignacio R. Morelle
007a76d72f gui2/tfile_dialog: Add support for user-defined bookmarks
Users can add and remove bookmarks from the end of the bookmarks list.
These correspond to the currently viewed directory and have its name as
their label. It's not possible to remove hardcoded bookmarks. A bookmark
may only be removed after selecting it.

In order to ensure that users will be able to remove their own bookmarks
if they match predefined paths, the bookmarks bar now matches items from
bottom to top instead of the other way around.
2016-10-12 03:11:01 -03:00
Ignacio R. Morelle
eb3bc1f0ce gui2/tfile_dialog: Rearrange some elements
The path label above the fileview now stands on its own without the
"Location:" label since it's self-explanatory for anyone who's managed
to get this far and install Wesnoth. The Delete and New Folder buttons
have had their order reversed so that destructive actions are on the
side opposite to the dialog's control buttons (OK/Cancel), the "Places"
heading no longer has a colon.
2016-10-12 03:11:01 -03:00
Ignacio R. Morelle
d1951b40b9 gui2/tfile_dialog: Add a bookmarks bar
The bookmarks bar holds predefined bookmarks (as in the stuff
src/desktop/paths.hpp exposes) and allows users to easily browse to them
in a single click. It will eventually be possible for the user to add or
remove custom bookmarks as well.

I might add a method to disable specific irrelevant bookmarks later, not
sure (e.g. nobody cares about the preferences dir when trying to find
wesnothd).
2016-10-12 03:11:01 -03: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
860325d3df Supposed to be with f1d2488529d0 2016-10-12 13:42:23 +11:00
Charles Dang
262188c82e MP Join Game: converted dialog to team-based tree view like MP Staging 2016-10-12 12:58:10 +11:00
Charles Dang
3197db5bf6 MP Staging: small UI tweaks 2016-10-11 19:41:33 +11:00
Ignacio R. Morelle
abc9a599b6 gui2/tgame_cache_options: Relabel OK as Close 2016-10-11 01:12:05 -03:00
Ignacio R. Morelle
c458e3e180 gui2: Make dialogs with fs browse buttons use the new browse icon 2016-10-11 01:09:22 -03:00
Charles Dang
1f1855300d GUI2/Stacked Widget: removed [stack] wrapper around [layer] and use the latter directly
All dialog WML changes in this commit consist of removing [stack] tags and reducing subsequent subtag indent
by one layer.
2016-10-10 18:55:52 +11:00
Charles Dang
aabc655c6c MP Staging: redesigned dialog to group sides by team 2016-10-09 21:57:37 +11:00
Charles Dang
da72c43c3b MP Connect: tweak Host Networked Game tooltip
There's no need to confuse new players with the 'wesnothd' terminology
2016-10-07 18:37:00 +11:00
Charles Dang
77ea3b274d Tooltips: enable markup 2016-10-07 18:30:02 +11:00
Charles Dang
87f1f05677 MP Staging, MP Join Game: made side numbers really big 2016-10-06 21:22:19 +11:00
Charles Dang
147caf83cc GUI2: some formula formatting cleanups 2016-10-05 19:34:28 +11:00
Charles Dang
f7100f2315 File Dialog: more sensible size 2016-10-05 18:22:42 +11:00
Charles Dang
bf1c038882 File Dialog: used fixed-size window instead of dynamic 2016-10-05 17:47:57 +11:00
Ignacio R. Morelle
0f83718965 gui2/tfile_dialog: Set maximum dialog height 2016-10-05 03:06:43 -03:00
Ignacio R. Morelle
409b61f5be gui2/tfile_dialog: We can delete folders too 2016-10-05 03:06:43 -03:00
Ignacio R. Morelle
6e1f6bb686 gui2/tfile_dialog: Initial port of the filechooser dialog to GUI2
This provides, as far as I can tell, all the filechooser functionality
that is actually in use in Open File mode except for the "type-ahead"
option that is used to set filename extension hints.

There's some newly-introduced border cases courtesy of Boost.Filesystem
that I really feel we shouldn't worry about for now:

 * // is handled weirdly thanks to BFS honoring the POSIX provision for
   implementation-defined behavior regarding it.
 * UNCs on Windows are not supported. Just like in mostly everywhere
   else in Wesnoth. Same applies to \\.\, \\?\ and \??\.
 * Non-directory path components on Windows are not handled very
   gracefully (particularly obvious with volumes mounted as NTFS
   junction points, or symbolic links for the Documents folder on
   Wine) due to quirks in BFS's path::canonical() method and how it
   relies on dereferencing individual path components to resolve dot
   entries.

Haven't tested all callers yet, they are still using the original
filechooser entry points for now. I need to remove those and make
everyone use gui2::tfile_dialog directly before this can be merged to
master.
2016-10-05 03:06:43 -03:00
Charles Dang
e25aa4ac2c MP Create Game: use tooltips for mod descriptions 2016-10-04 19:36:29 +11:00
Charles Dang
a67809d240 Slightly bump initial tooltip width 2016-10-04 19:35:50 +11:00
Charles Dang
dbbc0b7414 Dropdown List: set the tooltip on the whole panel, instead of just individual elements 2016-10-03 17:55:11 +11:00
Charles Dang
38680bde3b MP Create: remove vertical spacer lines 2016-10-03 17:19:57 +11:00
Charles Dang
051519b038 Fixup 59c0675691ff 2016-10-03 14:33:51 +11:00
Charles Dang
ae663df1f0 End Credits: use no-blur version of box_display panel
There's *massive* performance loss with the blurred version. This is most likely due to surface
blur being reevaluated every draw cycle, causing massive slowdowns.
2016-10-03 04:56:58 +11:00
Pentarctagon
5990347ed1 Fix the content of a message getting squished 2016-10-01 14:01:43 -05:00
Charles Dang
b4d460cd16 MP Join Game: layout improvements 2016-10-01 10:32:13 +11:00
Charles Dang
e46fc2faa3 MP Staging: fixed header misalignment
For some reason, the left/right borders made them even more out of alignment. Optimally, these should still be
shifted 5 px to the right each, but that's a problem for another day (it'd likely mean a new label definition).
2016-10-01 06:50:45 +11:00
Charles Dang
39c99d076a Lobby: add missing border around player tree 2016-10-01 03:01:39 +11:00
Charles Dang
45ea8c6a43 Added GUI2 MP Join Game dialog
Note the faction select dialog doesn't appear for some reason.
2016-10-01 02:09:20 +11:00
Charles Dang
fe2e119b25 MP Create Game: fixed widespread typo 2016-09-30 21:08:47 +11:00
Charles Dang
688c3f600d Faction Select: use small label for recruits list
This is better for factions with long lists like those in Age of Heroes
2016-09-30 15:17:58 +11:00
Charles Dang
75636ee17c MP Staging: some progress with getting the network processing working, as well as using the dialog for non-hosts 2016-09-29 13:37:22 +11:00
Charles Dang
1848c8c919 MP Method Selection: specify max username input length
This was already checked when the password was parsed by the server, so it makes sense for the UI
to reflect that restriction.
2016-09-28 12:58:02 +11:00
Charles Dang
42cb2afae5 MP Staging: layout tweaks 2016-09-21 03:06:46 +11:00
Charles Dang
ad0a9768b9 MP Staging: wired in more functionality 2016-09-20 23:04:24 +11:00
Charles Dang
96a66dc37c Dropdown List: fixed grow factor for name column 2016-09-20 21:29:47 +11:00