1638 Commits

Author SHA1 Message Date
Iris Morelle
af60f10391 gui2/text_box: Re-do borders for all states
This makes it so all states of the text box widget have borders again.
The colours are changed, however, so that the focused state has the
brightest border.

This turned out to be necessary because otherwise the chat input textbox
in the MP lobby completely blends with the chat log box, making it seem
as though it disappears whenever it doesn't have the keyboard focus.

[ci skip]
2020-01-24 01:43:53 -03:00
Charles Dang
954d0cdc00 GUI2/Text Box: restored border on disabled state
[ci skip]
2020-01-22 23:31:38 -05:00
nemaara
5c9077dc41
Merge pull request #4568 from nemaara/language_icon
Title screen: move language button to icon
2019-11-17 19:22:42 -05:00
nemaara
32eb921d2d
Merge pull request #4566 from nemaara/tutorial_cleanup
Tutorial: move from title screen to campaign menu
2019-11-17 18:06:06 -05:00
Iris Morelle
f136bb9ef3 gui2/mp_connect: Overhaul dialog adding a more powerful server list
There has been functionality to manage custom servers in the player's
preferences file since as far back as commit
5fb0b2a91123474d147c9de4918fc11a1b4c15ac in June 2007, but there's never
been a user interface for it.

This commit removes the current server list dialog attached to the MP
Connect dialog and replaces it with the same functionality embedded into
the latter, as well as the ability to edit the server list in the
player's preferences file. There's some code movement in a few other
places since the previous function in the preferences namespace doesn't
suit the new code (it always returned a combined list of game and
player-defined servers).

There's some disabled code referencing a situation where the listbox
with the list of servers allows the code (and the player) to clear the
selection. It's disabled because there are some UX issues with it noted
in the code comments associated to it.

Fixes #4564.
2019-11-17 18:05:29 -03:00
Iris Morelle
b56bf27604 gui2/game_save: Give the OK button a custom label
[ci skip]
2019-11-17 18:05:29 -03:00
Iris Morelle
06719958da gui2/addon_connect: Use icon button for Help
[ci skip]
2019-11-17 18:05:29 -03:00
Iris Morelle
34d45d3ee5 gui2/network_transmission: Modernize appearance
Following the previous commit altering the progress bar's styling, we
now rearrange the dialog to completely eliminate visual gaps during
add-ons server connection by having the status display share a row with
the Cancel button so as to not force extreme layout recalculations. The
status display is also smaller corresponding with its lesser importance
compared to the progress bar itself, which has now become the absolute
centerpiece of the dialog by taking up almost all of its horizontal
space even when the descriptive text is short.

There's an engine change in this, recommended by Vultraz to avoid
recalculating the UI unnecessarily during network transfers. It
necessitates a minor hack in the WML to ensure that the status label has
a non-0 initial size, but it's nothing too major.
2019-11-17 01:49:15 -03:00
Iris Morelle
335e5ccdf3 gui2/progress_bar: Modernize appearance
The old design was heavily based on the old GUI0 loadscreen, inheriting
the weird blocky 3D shading effect reminiscent of the old Windows 9x
times. This makes it look very obviously out of place with the current
Wesnoth UI look and feel.

We increase the default width of the progress bar to reduce visual gaps
between different phases of the add-ons client's initial connection
sequence, and decrease the height to something that is more in
proportion with the font size without taking up more space than
necessary. The colours are inspired by the current textbox and button
widgets while keeping consistency with the rest of the game's UI.

[ci skip]
2019-11-17 01:49:15 -03:00
nemaara
4282d0b112 Tutorial: move from title screen to campaign menu 2019-11-16 15:11:55 -05:00
nemaara
acc96b165d Title screen: move language button to icon 2019-11-15 23:00:46 -05:00
pentarctagon
6371f0497c Add a separate toggle for if a replay should be public.
This makes it possible for a game to allow observers but have the replay not be public.
2019-11-11 18:13:51 -06:00
Iris Morelle
3beefca899 gui2/text_box: Add hover effect
This gives GUI2 textboxes (and password boxes since they are a subclass)
a simple hover effect by extending the canvas definitions for the widget
accordingly.
2019-11-11 17:16:39 +11:00
Iris Morelle
f4ca974cd1 Disambiguate uses of the Play button label
This extends to a few other button labels used for replay control. While
checking if commit 46dbbc06c967bfc8ee5acb6525e1f1bd96b53005 was fit for
backporting to 1.14 I found out that "Play" was already in use
exclusively for one of the replay control buttons (which means, no, it
can't be backported). This makes the disambiguation markers absolutely
necessary.

To give a more practical example of why this is a big deal, in Spanish,
"Play" would be translated as "Jugar" in the context of the Campaigns
menu, and "Reproducir" in the context of a replay (or movie). The
Spanish translation in fact already uses the latter in both 1.14 and
master.

[ci skip]
2019-11-10 23:43:05 -03:00
Iris Morelle
845a45da32 gui2/game_version: Increase maximum dialog height
I can see this dialog running out of vertical space on my Wine
configuration and winding up a victim of the dreaded Dialog-Wide
Scrollbar Syndrome.

[ci skip]
2019-11-10 23:43:05 -03:00
Charles Dang
b165925c55 Campaign Dialog: shifted Save Random Seed button (still needs to be removed)
[ci skip]
2019-11-06 08:00:19 +11:00
Charles Dang
fbc1126875 Game Load: really large button for you too
[ci skip]
2019-11-06 05:25:48 +11:00
Charles Dang
fe2d59dbbb Campaign Selection: all hail the Really Large Button
[ci skip]
2019-11-06 05:21:48 +11:00
Charles Dang
8cfc12bf99 Preferences: ignored -> blocked
[ci skip]
2019-11-06 05:15:15 +11:00
Iris Morelle
666c4d27ce gui2/game_load: Improve display of old versions selection
* Return paths from fs API in the native format, not the generic
   format. The generic format looks wholly out of place on Windows.

 * Move the versions selector to the row with the dialog caption and
   Search box as per d53ca602b8df5cc302cd1d5d502654823dc67415.

 * Relabel options to make the purpose of the combobox clearer even
   without the tooltip.

 * Fix markup not being taken into account for the combobox option
   labels, and protect against potential markup characters in paths
   (shouldn't happen on Windows but it can happen on POSIX platforms).
2019-11-05 12:34:52 -03:00
Iris Morelle
cd407be639 gui2/game_load: Give the OK button a custom label
[ci skip]
2019-11-05 11:28:00 -03:00
Charles Dang
a6ec345fc8 Loading Screen: removed hardcoded padding dimensions
Credit to @shikadiqueen for the idea. This fixes potential crashes if the padding can't fit on certain resolutions.
Also keeps the vertical spread consistent between resolutions (no more < 800 height handling).
2019-11-05 22:57:02 +11:00
Charles Dang
15bf3bb256 Removed scaling algorithm customization
We're going to be using NN scaling for the map, and that's already handled automatically
by SDL (and in the future, OGL). We don't need these settings for surface SCALED_TO_ZOOM
and SCALED_TO_HEX scaling. In any case, if we want to scale a surface to zoom or hex, it
will almost certainly be for map rendering (such scaling methods don't make sense in the
UI, for example), so just defaulting to NN is simplest.

This change drops the option to use Linear or xBRZ scaling for map zooming. This was already
the practical case due to me converting map rendering to use textures. NN was used for all
zoom levels, and it's fast and looks good.
2019-11-05 22:55:05 +11:00
Iris Morelle
46dbbc06c9 gui2: Use custom OK labels for the Campaign menu dialogs
[ci skip]
2019-11-04 20:48:12 -03:00
Iris Morelle
d53ca602b8 gui2: Reclaim vertical real estate from some Search boxes
Several dialogs have Search boxes accompanying a central element, with
the boxes taking up a whole row of their own. For both aesthetic and
space allocation purposes it turns out to be more convenient to relocate
these boxes to the top right corner of the dialog to share room with the
dialog's caption.

This only applies to the Campaigns menu, Load Game, Create Unit, and
Recall Unit dialogs. The Recruit Unit dialog, interestingly enough,
already used this approach (an accident?).

Chat Log and the Add-ons Manager *could*, in theory, use this same
change, but they are a bit trickier because of the additional controls
attached to the Search box -- especially so in the Add-ons Manager's
case.

[ci skip]
2019-11-04 20:35:03 -03:00
Charles Dang
5302711439 Forgot to actually remove the Core button from WML...
[ci skip]
2019-11-04 18:28:00 +11:00
Charles Dang
2f6addd4b1 Tighten up the loading screen positioning a bit
[ci skip]
2019-11-04 18:21:17 +11:00
Charles Dang
ab79fc672d Revert "Campaign filtering begone!"
This reverts commit c7f2d7a22b707573900b9319e581da1956e0d168.
2019-11-04 18:13:51 +11:00
Charles Dang
8309e4e150 Campaign Selection: made window bigger
[ci skip]
2019-11-04 17:25:43 +11:00
Charles Dang
cfd7d0e4e5 GUI2/Text Box: UI tweaks suggested by shadowm
[ci skip]
2019-11-04 17:25:25 +11:00
Wedge009
123b332aa5 Move tool-tips to below-right
Committing on behalf of @Landiss

Resolves #3274
2019-11-04 17:11:34 +11:00
Charles Dang
903739fd0b Campaign Selection: removed "sort by" text
[ci skip]
2019-11-04 04:34:16 +11:00
Charles Dang
c7f2d7a22b Campaign filtering begone! 2019-11-04 04:28:55 +11:00
Steve Cotton
b66bdb8a16 Add other versions of Wesnoth to the Load Game dialog
If a save directory from another version is found, a drop-down list of
directories is added below the filter box in the Load Game dialog.

Refactor save_index_class to allow instances for other directories.

Design idea: all new saves go in to the main save directory. Games can be
loaded from other directories, but those directories are treated as read-only.
When building an index for other directories, the index is kept in memory and
not written to disk - this results in some noticeable lag in the UI when
opening the other versions' directories, but not the usual save dir.
2019-11-03 12:11:51 +01:00
Charles Dang
b9e9d2f5e7 Disable Font Scaling preference 2019-11-03 19:22:35 +11:00
Wedge009
46739fcfaa Add translation notes.
[ci skip]
2019-09-30 04:07:05 +10:00
Charles Dang
5aaf179728 GUI2/Unit Preview Pane: tweaked attack display spacing
[ci skip]
2019-09-28 14:40:59 +11:00
josteph
942302f6e3 fixup! unit_recall: Add tooltip 2019-09-26 16:14:45 +00:00
josteph
26a710d6fb unit_recall: Move the image path back to the cfg file 2019-09-26 16:07:44 +00:00
josteph
581899b77e unit_recall: Add tooltip 2019-09-26 16:07:44 +00:00
josteph
a7fc184ccd unit_recall: Show unrecallable units grayed out.
Part of issue #1282.
2019-09-26 16:07:44 +00:00
josteph
f874a60034 fixup! statistics_dialog: Tweak the tooltip per @nemaara 2019-09-16 21:55:31 +00:00
josteph
d3db9237ac statistics_dialog: Tweak the tooltip per @nemaara 2019-09-16 21:29:14 +00:00
josteph
36c0016494 statistics_dialog: Add information to the p-value tooltip
Add less-simplified information, keep all the existing information,
and explain the colors.

See https://github.com/wesnoth/wesnoth/issues/1378#issuecomment-531564119
2019-09-16 04:19:44 +00:00
pentarctagon
2eccbab970 Add UI button to stop a game.
This adds a button along side the kick/kickban/ban buttons to stop the game the selected user is in.

Fixes #3635
2019-09-14 11:10:05 -05:00
ville
169cff9ec7 Adds a preference item for a sound being played and desktop notifications in the lobby when a new game is created.
Remove unnecessary blank lines and debugging comments

- Adds a preferences entry in the multiplayer/alerts menu so sounds and desktop notifications can be toggled.

Reformat a few points for consistency

Have desktop notification show name and scenario of new game

Have desktop notification show name and scenario of new game

Update desktop notifications to use VGETTEXT for translations

(cherry picked from commit af71dbf1b1caec0ac654180cca9c037955602301)
(cherry picked from commit a2d994328669499549a614753781ba9cabcfa41d)
2019-08-27 13:41:01 +10:00
Maximilian Fricke
eb5d5421ee Display settings: Adjust "Limit FPS" tooltip
Tooltip now mentions that the game must be restarted for the setting to
take effect. Also removed "to 100%" and "at high resolutions" as these
statements are not accurate.
2019-08-17 13:12:05 -05:00
josteph
bc90feedee statistics_dialog: Move a static tooltip from C++ to WML 2019-08-10 17:20:41 +00:00
josteph
14daf1c4f3 statistics_dialog: Clarify tooltip 2019-08-10 16:40:00 +00:00
josteph
6220f7106e statistics_dialog: Show the actual (empirical) CTH. 2019-07-09 16:51:05 +00:00