Commit graph

1566 commits

Author SHA1 Message Date
josteph
9abdc20841 MP Create Game: Increase slider step size
Requested on the forums https://forums.wesnoth.org/viewtopic.php?t=48680
2018-09-23 17:02:42 +03:00
josteph
3809b64cf4 WML [message]: Limit the text width for messages with portraits on both sides as already done for messages with one portrait. 2018-09-14 13:36:18 -05:00
josteph
fc9e5f0484 WML [message]: Add left padding when the portrait is shown on the right.
The text is now shown at exactly the same place regardless of which side
the portrait is on.

Fixes #1938.
2018-09-14 13:36:18 -05:00
jostephd
6f670556a1 Game Load: Show list of enabled modifications (#3495) 2018-08-27 19:46:35 +03:00
Martin Hrubý
be0bd05ab0 Fix localised Multiplayer causes preferences window use scrollbar #2855 2018-08-09 22:13:33 +02:00
gfgtdf
936516c83b fix game crashing when showing a too large tooltip
previously the game would go into an infinite loop at
https://github.com/wesnoth/wesnoth/blob/1.14.4/src/gui/widgets/window.cpp#L1046
when a tooltip doesn't fit on screen, this could in particular happen in
the mp lobby when hovering over the 'i' of a game that uses a ridiculous
amount of modifications.

I currently don't see any case where the game is actually able to 'fix'
a bad height that was reported from reevaluate_best_size. so i just
disable reevaluate_best_size for floating tooltips.

If there exists such a case, an alternative fix could be to change the
reevaluate loop in window::layout to also stop when a new iteration
returned the same size as the previous iteration.
2018-07-31 22:58:45 +02:00
Łukasz Hryniuk
349b18b216 gui2: allow renaming units in the Recall dialog 2018-07-16 08:16:51 +11:00
Iris Morelle
b8b403185e gui2/preferences: Use curly quotes in quoted text in tooltips
[ci skip]
2018-07-08 04:49:33 -04:00
gfgtdf
5ba389111e 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.
2018-06-30 01:07:30 +02:00
Charles Dang
98ddc311fc Preferences: added a mention of the in-game accelerated speed toggle
[ci skip]
2018-06-29 18:21:55 +11:00
Charles Dang
10e663ed6c Preferences: shifted the Skip AI Moves button around
[ci skip]

Makes it clear it's not intrinsically tied to the Accelerated Speed factor.
2018-06-29 18:21:55 +11:00
Charles Dang
cb7a679142 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.
2018-06-29 18:10:02 +11:00
Charles Dang
893860321a Unit Advance: left-align header
[ci skip]
2018-06-25 21:59:45 +11:00
Charles Dang
dd69107c9b 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.

As for why I've decided to stick with nearest-neighbor scaling for zoom, it happens to look
a lot better when done on the GPU than on the CPU for some reason (perhaps having to do with
the old rendering pipeline in which we were doing surface scaling), and it's better to have
a consistent scaling look as you zoom in, especially if we wanted to do animated zoom-ins.

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.
2018-06-25 16:37:27 +11:00
josteph
a8f83f6e68 MP Faction Select dialog: Show leader unit details.
If the leader hasn't been discovered, the "Unknown Unit" topic will be shown.

Fixes #1491
2018-06-21 06:30:20 +03:00
josteph
8481927a5a GUI: Fix the direction of the arrow on a listbox sort column header.
This affects the files list in the the "Load Game" dialog.
2018-06-20 18:47:11 +11:00
Charles Dang
c5d6f695dd GUI2/Chatbox: limit input to 256 characters (fixes #3267)
[ci skip]
2018-06-18 20:28:33 +11:00
josteph
d95efd3409 Preferences: Improve label and tooltip of 'Accelerated speed' slider. 2018-06-17 10:42:48 +11:00
Charles Dang
01d37ca795 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. >_<
2018-06-15 13:21:11 +11:00
Charles Dang
142a2f20ca 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.
2018-06-10 12:57:37 +11:00
Charles Dang
b5f1e1a48a Statistics Dialog: remove mode toggle in favor of an All Scenarios menu entry
Closes #2886.
2018-06-10 12:57:35 +11:00
Charles Dang
bf92dbbfd2 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.
2018-06-03 05:18:42 +11:00
Charles Dang
f72f89f4d5 Campaign Difficulty: consolidated both lines into a single label 2018-05-29 21:00:34 +11:00
Charles Dang
67530c4375 Campaign Difficulty: rearranged entry layout 2018-05-25 11:46:58 +11:00
Charles Dang
e754e64987 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.
2018-05-25 11:16:40 +11:00
Charles Dang
c48a8e7edd Fixup 9bf7a4c (WFL comment syntax)
[ci skip]
2018-05-24 11:16:34 +11:00
Iris Morelle
f30634842e gui2/preferences: Add margin around the version info button
[ci skip]
2018-05-23 19:50:32 -04:00
Iris Morelle
e8c803d426 gui2/preferences: Add version info button
Also simplifies the layout of the bottom-most row of the dialog a bit.
2018-05-23 19:39:55 -04:00
Charles Dang
9bf7a4c8fb GUI2/Message: tweaked Magic Numbers to fix layout failure with large portraits
[ci skip]

Fixes #2912
2018-05-24 10:26:31 +11:00
Charles Dang
26c8860b6c Preferences Dialog: fixed inconsistent label sizes in hotkeys list 2018-05-07 13:56:45 +11:00
Charles Dang
58ebc064e9 MP Lobby: bunch of small UI and text formatting tweaks 2018-05-07 11:42:11 +11:00
Charles Dang
fe10bc0315 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.
2018-05-06 22:59:17 +11:00
Charles Dang
851b28e24b * 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++.
2018-05-06 16:39:31 +11:00
Charles Dang
2f565b8e90 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.
2018-05-05 12:35:27 +11:00
Charles Dang
08d0f6983f MP Lobby: decreased size of scenario/era name label
[ci skip]

Will slightly mitigate the issue of it potentially getting too long...
2018-05-05 12:35:04 +11:00
Charles Dang
0db17bbcf1 MP Lobby: shifted game info icon to the left
[ci skip]
2018-05-05 12:35:03 +11:00
Charles Dang
b17e9fa9b1 MP Lobby: restored Era info to main game display
Includes some slight spacing tweaks.
2018-05-05 12:35:00 +11:00
Charles Dang
d9e3983e97 MP Create Game: cap custom game names at 50 characters
[ci skip]
2018-05-05 12:34:00 +11:00
Charles Dang
195eb0ce73 MP Lobby: improved low-resolution layout
[ci skip]

* Removed unnecessary spacer line.
* Increased chat area height by 10% .
2018-05-04 17:17:53 +11:00
Charles Dang
ffe71c5157 MP Lobby: removed individual Join/Observe buttons for each game 2018-05-04 13:09:30 +11:00
Charles Dang
eacc1e0f6b Ditch the "titlescreen" nomenclature for player-visible strings 2018-05-03 05:24:27 +11:00
Charles Dang
6f057d8b02 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.
2018-05-02 12:33:35 +11:00
Charles Dang
e17b79cbee Repair 7db83e3 in the upwards direction
[ci skip]
2018-04-30 22:23:45 +11:00
Charles Dang
7db83e3a0e 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.
2018-04-30 22:20:40 +11:00
Charles Dang
604dcd8008 MP Create Game: keep background image width proportional to its height
[ci skip]
2018-04-30 21:21:19 +11:00
Iris Morelle
ae5ab22b1a gui2/log_settings: Permit disabling logdomains (log level -1) 2018-04-27 01:52:40 -03:00
Celtic Minstrel
ceea173eb4 Remove redundant unused column in stats 2018-04-15 14:04:31 -04:00
Celtic Minstrel
ddd3222b3d Swap count and name columns in statistics (fixes #2893) 2018-04-15 13:58:01 -04:00
Charles Dang
802bbe8cdc Game Load: added a convenient button in Load Game to open your saves folder 2018-04-13 18:21:35 +11:00
Charles Dang
dba3d409fc 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.
2018-04-09 00:22:42 +11:00