Commit graph

1878 commits

Author SHA1 Message Date
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 46dbbc06c9 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 d53ca602b8.

 * 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 c7f2d7a22b.
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 af71dbf1b1)
(cherry picked from commit a2d9943286)
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
josteph
84c6467c56 statistics_dialog: Rename column id and struct member after last commit 2019-07-09 16:45:13 +00:00
josteph
a3efd28010 statistics_dialog: Change the hits table format to "+2% (1703.2 + 42) | 93.6"
This is a mix of "Option B" and "Option C" from
https://forums.wesnoth.org/viewtopic.php?f=12&t=49785&p=643513#p643495
2019-07-09 16:42:05 +00:00
josteph
7b78a8c019 statistics_dialog: Change the hits table format to "1703.2 + 42 | 93.6"
This is "Option B" from
https://forums.wesnoth.org/viewtopic.php?f=12&t=49785&p=643513#p643495
2019-07-09 16:33:48 +00:00
josteph
9e0000a021 statistics_dialog: Show a single value for the quantile. 2019-06-14 13:23:48 +00:00
josteph
a4da90f921 statistics_dialog: Hide the "This Turn" header when no data is shown in that column 2019-06-13 10:54:52 +00:00
josteph
68f8e5fb16 fixup! statistics_dialog: Attempt to fix missing left padding before the first column
Fixes validation errors: "Invalid value '-5' in key 'border_size=' in tag [column]"
2019-06-11 08:36:15 +00:00
josteph
111cb0f188 statistics_dialog: Use uppercase for macro arguments.
https://github.com/wesnoth/wesnoth/pull/4070#discussion_r290086918
2019-06-05 10:31:10 +00:00
josteph
e64c7ed591 statistics_dialog: Attempt to fix missing left padding before the first column
Currently warns: "error validation: Invalid value '-5' in key 'border_size=' in tag [column]"

... but it looks correct.
2019-06-05 10:31:10 +00:00
josteph
e2638c9d84 statistics_dialog: Don't show probability of the actual result
To simplify the stats dialog, show two percentages, instead of three
percentages that add up to 100%.

https://github.com/wesnoth/wesnoth/pull/4070#discussion_r285874571
2019-06-05 10:31:10 +00:00
josteph
a932ebee58 statistics_dialog: Change the percentages in the "Hits" table
Make the contents of the table cell the same regardless of whether
actual<expected or actual>expected.  For example, 2 hits out of
4 strikes at 70% now shows "8.4%, 26.5%, 65.1%", which are the
probabilities of hitting less than twice, exactly twice, and more than
twice, respectively.

Color has been temporarily removed, will be restored in the next commit.
2019-06-05 10:31:09 +00:00