1742 Commits

Author SHA1 Message Date
Iris Morelle
34545ba9e4 gui2/preferences: Use curly quotes in quoted text in tooltips
[ci skip]

(cherry-picked from commit b8b403185eb81a239b5ab130fcf32698ac3de1d1)
2018-10-07 03:23:15 +00:00
gfgtdf
5a39a62118 allow non hosts to change factions later.
previously players had to leave an rejoin the game to change their faction.
this was most annoying in coop games where you want might want to choose
your faction in consultation with the other players. Also you previously could
not even checkout the different available factions again after you joined
the game.

(cherry-picked from commit 5ba389111eaa5d08f55d60c1b437c250a329bc58)
2018-10-07 03:23:03 +00:00
Charles Dang
39edd7c0c6 Preferences: added a mention of the in-game accelerated speed toggle
[ci skip]

(cherry-picked from commit 98ddc311fc1cfec3c95c2c24cc1e3e48603643a8)
2018-10-07 03:23:02 +00:00
Charles Dang
ff7f3c06a0 Preferences: shifted the Skip AI Moves button around
[ci skip]

Makes it clear it's not intrinsically tied to the Accelerated Speed factor.

(cherry-picked from commit 10e663ed6ce49974e22d4dab5211716210ead6e9)
2018-10-07 03:23:02 +00:00
Charles Dang
4c8788f62a Preferences Dialog: drop characters_per_line from hotkey list
[ci skip]

For some reason, this made the entire page stack thinner than it should be. I have
no idea why, and I'm not sure wrap= here instead does anything (namely, wrap if it
gets too long), but it's better than what was happening before.

(cherry-picked from commit cb7a6791421511f4251f2d1cb31a894fa8de90cf)
2018-10-07 03:23:02 +00:00
Charles Dang
92b95d7a44 Unit Advance: left-align header
[ci skip]

(cherry-picked from commit 893860321a8da181164782b13a931b6c61f5febd)
2018-10-07 03:22:56 +00:00
josteph
9f2cbad96f MP Faction Select dialog: Show leader unit details.
If the leader hasn't been discovered, the "Unknown Unit" topic will be shown.

Fixes #1491

(cherry-picked from commit a8f83f6e687abe997d33a028f841c0bdd5495a11)
2018-10-07 03:22:50 +00:00
josteph
bf8cd9f90b GUI: Fix the direction of the arrow on a listbox sort column header.
This affects the files list in the the "Load Game" dialog.

(cherry-picked from commit 8481927a5a630165c98a7c81c5cf5556ccfc9e35)
2018-10-07 03:22:49 +00:00
Charles Dang
8137e9a454 GUI2/Chatbox: limit input to 256 characters (fixes #3267)
[ci skip]

(cherry-picked from commit c5d6f695dd712c9a33fd3a5c12f98e19e2b393fd)
2018-10-07 03:22:47 +00:00
josteph
01bd2af9ae Preferences: Improve label and tooltip of 'Accelerated speed' slider.
(cherry-picked from commit d95efd3409f75614c48732dc3532e6fd2f166dd4)
2018-10-07 03:22:44 +00:00
Charles Dang
98299d56ef End Credits: reduced text surface size by 42%
[ci skip]

Really no reason for the text area to grow since the text is set in pre_show and
therefor the widget is always the right size. >_<

(cherry-picked from commit 01d37ca7953f3efdd143f7265ecc94dc01791ebb)
2018-10-07 03:22:36 +00:00
Charles Dang
1e1839de3d Statistics Dialog: merge unit name and count labels
Makes it easier for translators to do something specific with this label if needs
be. I remember the reason the count (NUMx) label was moved prior to the name had
to do with language conventions too, so this should alleviate any other such issues.

Also made the name label default size instead of small.

(cherry-picked from commit 142a2f20ca70deaf4d6a71c918de47aef366fc47)
2018-10-07 03:22:30 +00:00
Charles Dang
1871a32995 Statistics Dialog: remove mode toggle in favor of an All Scenarios menu entry
Closes #2886.

(cherry-picked from commit b5f1e1a48a9d817d1d68a5868903bb3e518cba3d)
2018-10-07 03:22:30 +00:00
Charles Dang
a5b8053340 Campaign Dialog: renamed Deterministic Mode label to "Save random seed"
[ci skip]

This better conveys its behavior, especially with the introduction of the hidden PRNG
preference.

(cherry-picked from commit bf92dbbfd2c1699a9af11e6ddc1b850e154d16f9)
2018-10-07 03:22:11 +00:00
Charles Dang
075d793539 Campaign Difficulty: consolidated both lines into a single label
(cherry-picked from commit f72f89f4d562231f831793b3719a115a79cc102c)
2018-10-07 03:21:57 +00:00
Charles Dang
886156b0fe Campaign Difficulty: rearranged entry layout
(cherry-picked from commit 67530c437527d525af90b484b9797dad84837d16)
2018-10-07 03:21:45 +00:00
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
b67fd6d96d Fixup 9bf7a4c (WFL comment syntax)
[ci skip]

(cherry-picked from commit c48a8e7edd4f982d1633521ad3c3e12fbbeb91ad)
2018-10-07 03:21:41 +00:00
Iris Morelle
34c9a2aedc gui2/preferences: Add margin around the version info button
[ci skip]

(cherry-picked from commit f30634842eb92ce31a5d35badec3ae97f4550eac)
2018-10-07 03:21:40 +00:00
Iris Morelle
bcf56aac3a gui2/preferences: Add version info button
Also simplifies the layout of the bottom-most row of the dialog a bit.

(cherry-picked from commit e8c803d4267aa0fb5d8693fb02dca7e6d2e7a0e8)
2018-10-07 03:21:40 +00:00
Charles Dang
ef09c1d10a GUI2/Message: tweaked Magic Numbers to fix layout failure with large portraits
[ci skip]

Fixes #2912

(cherry-picked from commit 9bf7a4c8fb4cf4c0ace3e745c855a26fcdf04626)
2018-10-07 03:21:39 +00:00
Charles Dang
e0653e7d54 Preferences Dialog: fixed inconsistent label sizes in hotkeys list
(cherry-picked from commit 26c8860b6c122b9affeaca870d1c5a1f83ed5613)
2018-10-07 03:20:36 +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
d90c6d9d34 * MP Method Selection: clarified the account requirement for the official server
Also sets the tooltip type for this dialog back to bottom-of-the-screen ones instead
of floating ones. And some formatting cleanup to the C++.

(cherry-picked from commit 851b28e24bfefd068069aa9ac2eaada6593718b4)
2018-10-07 03:20:28 +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
74d5891ad0 MP Create Game: cap custom game names at 50 characters
[ci skip]

(cherry-picked from commit d9e3983e976b7b3ace600a48e79342f5b80a05d5)
2018-10-07 03:20:19 +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
015b1891cf Ditch the "titlescreen" nomenclature for player-visible strings
(cherry-picked from commit eacc1e0f6b1f0ef372a34f65be137c2f1f527aa6)
2018-10-07 03:20:08 +00:00
Charles Dang
324588e484 MP Method Selection: removed text saying registered nicknames are optional
[ci skip]

This is currently only the case on the 1.14 server, but it's easiest just to
remove the line completely rather than constantly adding or re-adding it based
on whether you're using a or dev series.

(cherry-picked from commit 6f057d8b02572172209afdf718cbd1bfe50d1016)
2018-10-07 03:20:06 +00:00
Charles Dang
e2592c9d6a GUI2: removed unnecessary spaces and newlines from color macros
[ci skip]

Since these are usually used inline or as key values, we don't need the extra padding.

(cherry-picked from commit 7db83e3a0e5de45b3e64eb1da784a8ce334a49c6)
2018-10-07 03:20:03 +00:00
Charles Dang
2924495299 MP Create Game: keep background image width proportional to its height
[ci skip]

(cherry-picked from commit 604dcd80081b87c16ea7b84eb3e4e5b68d1f4c50)
2018-10-07 03:20:03 +00:00
Iris Morelle
450092033a gui2/log_settings: Permit disabling logdomains (log level -1)
(cherry-picked from commit ae5ab22b1a1652aa22cc53077cc32967c45a8d64)
2018-10-07 03:19:55 +00:00
Celtic Minstrel
b3b3a3c53d Remove redundant unused column in stats
(cherry-picked from commit ceea173eb488cbb124ff15c4ae19fa7fc00708a1)
2018-10-07 03:19:20 +00:00
Celtic Minstrel
558b9809e9 Swap count and name columns in statistics (fixes #2893)
(cherry-picked from commit ddd3222b3da26ec0cf6dd82adcd7d640ddc3b157)
2018-10-07 03:19:20 +00:00
Charles Dang
1dd00c3441 Game Load: added a convenient button in Load Game to open your saves folder
(cherry-picked from commit 802bbe8cdccacb225ea02a8f8b4240b7172549ed)
2018-10-07 03:19:09 +00:00
Charles Dang
b6991ced4d MP Staging: made the faction select button about as prominent as you can get
[ci skip]

Thanks to grzywacz for pointing out the possible use of the unit icon.

(cherry-picked from commit dba3d409fcf64b356f34ad82a32fa762cc5dfb8c)
2018-10-07 03:18:57 +00:00
Charles Dang
72d3f15dc6 MP Staging: make Faction Select button's purpose more clear
[ci skip]

(cherry-picked from commit 1f0588883cdb9158caff7f9bbceda01e0774f27f)
2018-10-07 03:18:56 +00:00
Iris Morelle
99d2919f5d gui2/log_settings: Make log options tooltips translatable
Fixes #2837.

(cherry-picked from commit 3967fd190e60b59cb9017bf4013a177dfcb44fdd)
2018-10-07 03:18:52 +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
3f5d554f8c GUI2/Label: tweaked link color
[ci skip]

(cherry-picked from commit 1903b05ab11107fad80a38733a1af2bf1d00727b)
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
31320923bf GUI2/Canvas: allow formula values for [text] font_size=
(cherry-picked from commit 2b9c7b1abd7f881953552dac49d68f2aa5cf2525)
2018-10-07 03:18:19 +00:00
Charles Dang
717511a428 MP Login: removed Password Reminder functionality
Resolves #2748.

Essentially, all this did was tell users to go use the forum, so it wasn't worth
it to keep it and solve the infinite loading screen issues it was causing.

The server backend still needs to be cleaned up.

Also removed a dead reference to some "Change Username" button in the Login dialog's
code.

(cherry-picked from commit ebec4d6ce8fd8e46ce1d8a4bb4f5d04fddd87c72)
2018-10-07 03:18:17 +00:00
Charles Dang
d5227d8fab Added two missing textdomain headers
[ci skip]

Should fix two of the issues mentioned in 2709.

(cherry-picked from commit 8d1ec6216bb336f29f5e213df5b1418703cdc0a0)
2018-10-07 03:18:03 +00:00
Charles Dang
a43623ff2d Screenshot Notification: cleaned up and tweaked a few things
* Added textdomain closure missing from 267510ea076ce317d323da54bb81ccd255b93284
* Avoid use of invalidate_layout by having an em dash in the size field prior to
  saving. That's needed since GUI2 doesn't expand the label's canvas if its text
  is initially empty.
* Use a better button definition for the View button.
* Grouped Save and Close buttons together
2018-03-18 17:01:26 +11:00