Commit Graph

84623 Commits

Author SHA1 Message Date
Subhraman Sarkar
f4e0a7bd14
UtBS S1: make Kaleh's dialog a bit more emotional (#9734)
Adds a couple of exclaimation marks to better emphasize the shock.
2025-01-12 13:56:32 -06:00
Subhraman Sarkar
50fe386aa7 celes theme: listbox header definition 2025-01-12 14:09:31 +05:30
Charles Dang
35071f38d5 GUI2/Group: cleanup 2025-01-11 23:15:28 -05:00
Dalas121
6282ef5499
update_copyrights - list any removed files 2025-01-11 19:38:18 -06:00
Charles Dang
e8a29976cf Chrono: add helper to get normalized progress over a duration 2025-01-11 15:18:20 -05:00
Charles Dang
3bc9708cd0 Fixup ccdc34c 2025-01-11 15:12:43 -05:00
Charles Dang
ccdc34cd6b GUI2/Units Dialog: continue to refine implementation 2025-01-11 14:05:52 -05:00
Dalas121
3de627e704
Stronger AMLAs Resource: fix filter not being applied to help message
The use_stronger_amlas resources includes a modifiable filter to choose which units are affected.

Formerly, that filter did not apply to a help message, resulting in the ANKA help message appearing even for units that weren't eligible for the AMLAs.
2025-01-11 11:07:31 -06:00
Subhraman Sarkar
bb34d5350b celes theme: radio and checkbox definitions for advanced prefs 2025-01-11 13:38:10 +05:30
Subhraman Sarkar
442200e1fc celes theme: fix slider warning when disabled 2025-01-11 13:03:07 +05:30
Charles Dang
000357ac3e GUI2/Main Menu: minor spacing and wording tweak 2025-01-11 01:48:14 -05:00
Charles Dang
c44ce3d711 GUI2/Modal Dialog: don't cache window retval (fixes #9703)
Since modal_dialog is now a window, we don't need to cache the value since the window object by definition will exist as long as the dialog object.
2025-01-11 01:32:47 -05:00
Dalas121
18434cb48f
Move Weather effects into a separate resource
These weather effects are used TSG, TDG, and other WIP campaign revisions. Duplicating them across each campaign seems pointless, so I've moved them into a resource here, following the precedent set by #9669.
2025-01-10 19:52:42 -06:00
Nils Kneuper
2323153973 updated Czech translation 2025-01-11 00:35:01 +01:00
Nils Kneuper
6825c5ca79 updated Finnish translation 2025-01-11 00:33:45 +01:00
Charles Dang
86b36d16fc GUI2/Main Menu: minor tweaks 2025-01-10 16:31:47 -05:00
Charles Dang
9326f02e18 GUI2/Main Menu: attempt to reduce sidebar height on low res 2025-01-10 16:28:19 -05:00
Charles Dang
ddcf5aef17 GUI2: strip trailing whitespace 2025-01-10 15:58:01 -05:00
Charles Dang
0a59879cd7 GUI2: remove a couple unneeded grow_factor keys
This is only required in the columns of the first row, else it does nothing.
2025-01-10 15:43:00 -05:00
Charles Dang
bb465c97e5 GUI2: remove GUI_SCALE_RESOLUTION macro 2025-01-10 15:40:52 -05:00
Gunter Labes
ccd3d2d236
Explain that this tracker is not for translations 2025-01-10 19:01:19 +01:00
Thewodoros
382343e882 Make scenario end when northern undead arrive
Otherwise they can kill Izziasch and win the scenario for us.
2025-01-10 09:39:37 -06:00
Thewodoros
94500787d3 Remove clearing unknown variable
This variable is not created anywhere, must be a remnant from earlier
development.
2025-01-10 09:39:37 -06:00
Thewodoros
872266b631 Replace last breath with die for undead leaders
They already have last breath events imported through ENEMYDEATH_SORADOC
macro.
2025-01-10 09:39:37 -06:00
Thewodoros
5135511756 Avoid using manual KILL in last breath event
This is error-prone, better to just have separate last breath and die
events.
2025-01-10 09:39:37 -06:00
Thewodoros
bec750c98e Avoid having two last breath events for Izziasch
This is to avoid behavior depending on the order of the events in the
scenario.
2025-01-10 09:39:37 -06:00
Thewodoros
4adf905f5a Simplify code for limiting undead moves
Use nested events instead of variables and conditions.
2025-01-10 09:39:37 -06:00
Thewodoros
4972b265e2 Fix bug with non-working scroll
We can't scroll to location outside map boundaries.
2025-01-10 09:39:37 -06:00
Thewodoros
409d92b321
EI S07b: fix contradiction about Plague Staff origins (#9717)
We can finish the previous scenario without killing any enemy leaders (this is even encouraged by the achievement requirements), but the Plague Staff origin dialogue states it's from a dead necromancer. Resolve the contradiction here. Fixes #9709.
2025-01-10 07:24:57 -06:00
Dalas121
10dae03b01
Move "Urban Jungle" terrain from EI into a separate resource (#9669)
These terrains are used in EI, TSG, TDG, and other WIP campaign revisions. Duplicating them across each campaign seems pointless, so I've moved them into a resource here.
2025-01-10 07:06:09 -06:00
Thewodoros
d8d98860e7
EI: Remove death events for heroes before they join (#9716)
Remove HERODEATH_* macros for heroes who ahave not appeared in the
campaign yet. Also edit a comment to only mentioned the heroes who could
have appeared in the campaign by that point.
2025-01-10 06:07:21 -06:00
Subhraman Sarkar
fd1f9b6500 titlescreen: disable spacer
without this, wesnoth fails to load at 1366x768 resolution
2025-01-10 14:23:08 +05:30
Charles Dang
85ba287d4f GUI2: Refine new mein menu design even further 2025-01-10 02:20:00 -05:00
Charles Dang
d3b25fed55
GUI2/Units Dialog: simplify the column generator code (#9714) 2025-01-10 02:01:58 -05:00
Subhraman Sarkar
f43a24640b celes theme: resize copy button to 30px, fix slider missing image 2025-01-10 10:57:56 +05:30
Subhraman Sarkar
f9e59b0d7a celes theme: button definition updates
1. adds repeating button definitions
2. default icon button size changed to 30x30 to better align with text buttons and menu buttons
3. code simplification
2025-01-10 09:57:24 +05:30
Charles Dang
a3eeed5704 GUI2/Story Screen: use script font for scenario title 2025-01-09 22:29:49 -05:00
Subhraman Sarkar
ebac8bd6da correctly initialize units dialog in editor 2025-01-10 08:13:47 +05:30
Subhraman Sarkar
abb90d309f celes theme: fix copy button graphics 2025-01-09 19:28:34 +05:30
Subhraman Sarkar
a47a4d1fc4 titlescreen: preference and button for closing tips panel 2025-01-09 09:02:42 +05:30
Subhraman Sarkar
6b8c2e15e7 theme update for modern and rename themes
include new definitions and updated versions of existing definitions
"default/classic" and "modern" has been renamed to "Parchment" and "Celes" to avoid confusion
2025-01-09 09:02:42 +05:30
Subhraman Sarkar
7d7716edff modal dialog: fix documentation typo 2025-01-08 18:44:06 +05:30
Thewodoros
f83f5533d6
EI S06b: fix a couple of small bugs, code improvements (#9707)
* Simplify Owaec/Yannic meet event
* Simplify meeting event after enemy leaders deaths
* Use correct variable in Yannic's last_breath event
* Fix bug with victory message
* Make scenario-ending event non-repeatable
* Simplify time-over event
2025-01-08 06:35:54 -06:00
Dalas121
f05b6e32b7
LoW S10: fix impossible win condition
Resolves #9705
2025-01-07 18:57:51 -06:00
Thewodoros
576985c51a
EI S07a: Init variables in prestart (#9704)
So we don't need to check for their existence afterwards.
2025-01-07 07:18:34 -06:00
Subhraman Sarkar
db8873e2aa mp method selection: improve accessibility
tab ordering has been added to the username textbox and the list of methods.
this serves two purposes:
1. the listbox is initially selected, so the user can select entries using keyboard.
2. navigation between the listbox and the username textbox can be done using TAB.

additionally,
3. the message and control layout has been tweaked to hopefully make it a bit user friendly.
4. the last selected method is remembered via a preference key.
5. a [X] button has been added on top-right so that the window can be
   closed via mouse. (previously, it was only possible with the keyboard
   Esc option or by clicking on one of the methods.)
2025-01-07 00:46:40 -05:00
Subhraman Sarkar
fd3b872f48 listbox: use ranged for loop, fix doc typo 2025-01-06 08:48:51 +05:30
Subhraman Sarkar
86940adbf0 units dialog (recruit): use image_icon instead of image 2025-01-05 21:19:18 -05:00
Charles Dang
33f8dfd7a1 GUI2/Outro: fix text not wrapping (resolves #6041)
Part of what's unusual about this dialog is we use canvas shapes to draw the text rather than actual widgets. I want to look into doing so, but it makes alpha fading more difficult.

Nonetheless, this problem also arose because text wrapping is handled differently from other text shape keys. Instead of evaluating a formula taken from the config (for instance `"(text_wrap_mode)"`), the value is queried from the WFL variables set on the canvas directly before being passed to the text rendering code. The value set for said variable is controlled by the wrap=true/value key, which is set per widget *instance*.

Making the canvas handle this key like any other would mean making sure most text shapes have the appropriate config key set, even if (as the example above shows) the key only spit out the formula variable anyway.

Also made it so text doesn't go all the way to the edge in the event that it stretches that long.
2025-01-05 19:44:21 -05:00
Charles Dang
858d8b8ce1 GUI2: remove open_window_stack
This was only ever needed for is_in_dialog (and one thing in text_box_base), and we can use the dispatcher list for the former, since windows are the only dispatchers that register themselves to receive events.
2025-01-05 17:45:55 -05:00