1742 Commits

Author SHA1 Message Date
Charles Dang
a3b6f57e4d Game Load: revamped design 2022-04-08 03:02:21 -04:00
Charles Dang
6b329a020a Loading Screen: added an (as-yet unused) image background layer 2022-04-08 02:59:11 -04:00
Pentarctagon
95aaac76a9 Store add-on passwords in the credentials file as well.
This allows storing add-on passwords for uploading in the same credentials file as is currently used by the client when connecting to a multiplayer server. For add-on authors that don't keep their passwords as plaintext in their _server.pbl, this removes the need for them to manually enter their password each time they upload an add-on.
2022-03-10 10:23:01 -06:00
Wedge009
0709145670 Resolve title-screen vs main menu inconsistency.
Discussed in #4390 and originally introduced in 7c8c3114.
2021-11-10 11:20:33 +11:00
Charles Dang
65b7baab64 Orb Colors: fixed lack of borders on a label
Also moved this row to the bottom for UI cleanliness
2021-11-05 02:56:07 -04:00
Hejnewar
4fe7751158
Increase the limits of timer values that players can set 2021-11-03 16:07:41 +01:00
Iris Morelle
76b83e623d
gui2/addon_manager: Move Search to the top right on small resolutions 2021-10-26 18:29:34 -03:00
Charles Dang
8fe95f2876 GUI2: increased listbox header toggle heights
Removed borders in the campaign dialog usage to compensate.
2021-10-26 02:14:29 -04:00
Iris Morelle
f96be0298e
Allow enabling the VSync hint on SDL's software renderer
Requires SDL 2.0.17 or later. If an earlier version of SDL 2 is
detected at runtime, the option in Preferences -> Display is hidden and
ignored entirely.

Requires restarting the game because it necessitates recreating the
window.

Closes #5018.
2021-09-25 18:06:33 -03:00
Iris Morelle
3fb9df3b8d
gui2/title_screen: Increase bottom row margins from 0px to 10px
This hopefully makes it seem a little tidier than having all of the
bottom row buttons and labels hugging the edges of the game screen.
2021-09-24 17:59:56 -03:00
Iris Morelle
6303d72806
gui2/title_screen: Give the Language button its label back
This makes the Language button use one of the new title screen button
definitions so it has an actual label in addition to its icon. However,
it also makes the label dynamic to reflect the current language choice.

More specifically, it reflects the current locale's language name, which
turns out requires a surprising amount of effort on our part to obtain.
2021-09-24 17:59:56 -03:00
Iris Morelle
a4054b0af6
gui2/button: Add definitions for special title screen buttons
These buttons have an icon like normal action buttons do, but they also
keep their text label and use a smaller font. Currently only one
instance is provided, for the Language button.
2021-09-24 17:59:35 -03:00
Iris Morelle
5c03595910
gui2/core_selection: Use a more apropos OK label
This is not a string freeze-violating change because the string already
exists in its textdomain.
2021-09-23 17:28:31 -03:00
Iris Morelle
25b7d3d8d0
gui2/core_selection: Allow links to be parsed in core descriptions 2021-09-23 16:27:23 -03:00
Charles Dang
6ca865c8c2 Addon Manager: refined details section design 2021-08-16 17:16:01 -04:00
Charles Dang
95893489f2 GUI2: added default_italic label and scroll_label definitions
This is not optimal, but I'll implement a better way of handling formatting later.
2021-08-16 17:15:31 -04:00
Charles Dang
ca77f7e3e8 GUI2/Faction Select: use an drawing widget for the leader display 2021-08-09 00:58:08 -04:00
Steve Cotton
62a8bad97c Allow the campaign selection to be bigger on HDPI screens
This doesn't scale the campaign image (and the campaign images are generally
350x350 images anyway), so it looks a bit wrong, but it's a lot more useable
on HDPI than putting a 1050x750 limit on a treeview with a text panel.
2021-08-08 19:59:42 +02:00
Charles Dang
b71fbc5946 MP Staging/Join Game: tweak button areas 2021-08-01 02:58:04 -04:00
Charles Dang
ceafd6faa3 MP/Lobby: some more player list-related cleanup
- Improved display
- Removed unused pointer member in helper
- Removed unnecessary extra tree clear step
2021-07-30 23:27:45 -04:00
Charles Dang
19645c0e6c Faction Select: one more tiny refinement 2021-07-23 14:03:22 -04:00
Charles Dang
15436b4c6d Faction Select: refined design 2021-07-23 13:49:18 -04:00
Charles Dang
e7efec907c Preferences: fixed border sizing in MP section 2021-07-20 14:25:53 -04:00
Pentarctagon
e5b4a39242
Add a prompt to migrate data from previous versions of wesnoth.
Currently migrated, if existing:
* Add-ons (redownloaded if present on new add-ons server)
* Preferences file
* Credentials file
2021-07-15 20:16:17 -05:00
Iris Morelle
02b4b5e44d
Merge branch 'feature/addon-ui-tls-indicator' 2021-06-19 13:10:15 -04:00
Iris Morelle
fc50458bb2
gui2/title_screen: Reserve a string for octalot 2021-06-19 11:35:04 -04:00
Iris Morelle
1e26269729
gui2/addon_manager: Add TLS status and server address indicator
This is displayed on the bottom left in "big GUI" mode and on the bottom
middle in "small GUI" mode. The hostname label's colour depends on
whether the connection is actually layered in TLS or not.

The tooltips are kind of a hack because we currently can't set a tooltip
on a grid so it triggers whenever the player mouses over any of its
children or the border/margin space between cells. Instead we set the
same tooltips for both widget pairs via preprocessor trickery and call
it a day.
2021-06-19 11:25:06 -04:00
Iris Morelle
4b40afe052
gui2/label: Add "bad" label variations
These are displayed in #FF0000 red currently.
2021-06-19 07:40:07 -04:00
Iris Morelle
a723cd2c17
gui2/addon_manager: Fix spelling on the Add-on Details button label 2021-06-18 20:50:36 -04:00
Celtic Minstrel
0c42cdc038
Enable translation mark validation by the schema (#5800)
- The t_string type is now a schema built-in type and no longer attempts a regex match.
- You can also specify that non-t_string types may be optionally-translatable; this case supports a regex match on the string (but note that the translation mark is not part of the match).
- Error messages involving keys with very large values ( > 128 characters) will now truncate the value.
- To account for occasional cases where the schema is intentionally violated, the --validate command-line option now automatically defines the SCHEMA_VALIDATION preprocessor define.

A key validates as type t_string if one of the following is true:
- The key is not present
- The key has at least one segment with a translation mark
- The key is blank (an empty string)

Any type other than t_string is not allowed to be translatable by default, unless you specify allow_translatable=yes in the [type] tag.

An optionally-translatable string could also be defined as a union of t_string and some other type.
2021-06-14 23:59:52 -04:00
Steve Cotton
f7f58613f6 Filtering by tags in the add-on manager
The existing PblWML specification includes a comma-separated list of tags.
Until now there are no official tag names, but some of the 1.14 add-ons already
have some unofficial ones. If this feature is included in 1.16 then I assume
many UMC authors will use the newly-official tags.

For a larger add-on list than the dev server has, use port 15014 which will
connect to the 1.14 server instead (in the connect dialog change the address to
addons.wesnoth.org:15014).
2021-05-16 00:53:20 +02:00
Steve Cotton
7f53aa08a5 Add-ons manager: show tags in the details panel
Show the contents of PblWML's "tags" attribute in the add-ons dialog. They're
shown at the bottom of the right-hand panel (only if the window size is large
enough to trigger that dialog's two-panel layout).
2021-05-15 17:18:18 +02:00
Steve Cotton
8120473254 Add-ons manager: Move feedback to the top of the details list 2021-05-15 17:18:18 +02:00
Steve Cotton
489d364cb6 Make the debug clock look right
This is the only widget in mainline using GUI2's [draw][circle] tag. I'm
currently working on a change to the C++ text_shape class, and want to
be able to regression-test the placement of [circle]s after that change.

I'd be okay with deprecating both [circle] and [round_rectangle] as neither
seems to be used elsewhere, but this close to feature-freeze I'd prefer to keep
them in 1.16 rather than suggest removing them now.

To see the widget, start the game with `wesnoth --clock`, and then click the
button underneath "Quit" on the main menu.
2021-04-05 12:59:10 +02:00
Pentarctagon
6b97a76109 Add a prompt to allow entering an add-on's password at upload time.
This is an alternative to needing to store the plaintext password in the _server.pbl.
2021-04-04 01:28:23 -05:00
Iris Morelle
847b70ab4c gui2: Refactor widget frame code used for buttons and comboboxes 2021-03-26 04:27:18 -03:00
Iris Morelle
00fbce5872 gui2/game_version: Add logs dir to the Game Version dialog on Windows 2021-03-25 21:21:59 -03:00
Iris Morelle
220c3f5752 gui2: Restyle comboboxes to look like buttons rather than textboxes 2021-03-20 01:55:45 -03:00
Iris Morelle
3cbe0a5ef7 gui2: Make GUI_LINE and GUI_POINT public macros
This detaches them from the GUI2 button definition.
2021-03-20 01:54:45 -03:00
Iris Morelle
2fac56c21f gui2/drop_down_menu: Make display of entry details more orderly
The primary target of this change is hotkey labels in game menus. This
aligns them all to the right of the menu and increases the space between
them and the menu item label proper to attain a cleaner appearance.
2021-03-20 01:33:43 -03:00
Iris Morelle
1f97941a33 gui2/lua_interpreter: Use monospaced textbox for code input 2021-03-13 19:24:35 -03:00
Iris Morelle
3ddbeb0b1e gui2/text_box: Add a monospace font variation
This requires communicating the font family to the internal renderer, so
it's not just a WML change.
2021-03-13 19:23:42 -03:00
Iris Morelle
3d7842c43e gui2/mp_faction_select: Use a disambiguator for the Random gender option
You just know sooner or later someone's going to try to use "random" for
something other than gender and some translations will end up looking
wrong as a result.
2021-03-12 20:01:52 -03:00
Iris Morelle
cb53d30799 gui2/label: Add a normal-sized gold label definition 2021-02-22 00:30:28 -03:00
Iris Morelle
b231306631 gui2: Drop trailing stops from tooltips 2021-02-20 14:43:56 -03:00
Iris Morelle
38af14f1a8 gui2/preferences: Streamline filter options on the Hotkeys page
Categories vs. Filter both deal with filtering -- the only difference is
that categories has a broader scope than the name-based filtering, with
the latter being applied to results for the selected categories. We
don't need two rows for both.
2021-02-20 14:37:13 -03:00
Iris Morelle
4d8cff6c40 gui2/preferences: Increase window height to accomodate the sidebar
This is specifically meant to address the sidebar gaining a short
vertical scrollbar at higher resolutions because of button sizes
increasing slightly.
2021-02-20 14:08:33 -03:00
Steve Cotton
09c8c506e1 Make the preferences window big enough for HDPI fonts
The hardcoded size of the window was too small for the large fonts on HDPI
displays, this changes to using the automatic width and calculated-based-on-dpi
height. On HDPI displays that does leave blank space on the General tab, but it's
better than not scaling.

Buttons that were placed at the bottom of pages move up so that they aren't
too far from the other controls. The sub-tab-selector buttons on the
multiplayer tab move above the sub-tabs themselves.

With HDPI text, the checkboxes are placed a little too high to align with
the font, but that's a cosmetic detail; this commit fixes the usability issue.
2021-02-19 15:52:47 +01:00
Iris Morelle
5d67c191ef gui2/statistics_dialog: Minor restyling
* Moved the combobox (sorry celmin) to the top right in a manner akin
   to the search boxes in dialogs with those.
 * Switched list headers to using the gold_small label variation.
2021-02-17 01:49:13 -03:00
Iris Morelle
f8d7969774 gui2/unit_list: Fix Status header's baseline being completely off 2021-02-17 01:28:30 -03:00