84739 Commits

Author SHA1 Message Date
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
Subhraman Sarkar
6a38fdb394 units dialog: drop static inside anonymous namespace 2025-01-05 22:29:33 +05:30
Thewodoros
75fbf3002e
EI S06a: improve death and endlevel events (#9700)
* Don't trigger event after Dolburras is rescued
* Merge unneeded duplicate events
* Don't trigger retreat if leader is killed
* Fix bug with dwarf death triggering undead retreat
* Remove unnecessary variable
* Use standard [endlevel] instead of [fire_event]
* Fix bug when former jailer death shows objectives
* Move events for readability
2025-01-05 08:53:21 -06:00
Subhraman Sarkar
102a1b2c78 improve preprocess-string cli option description 2025-01-05 20:19:30 +05:30
Charles Dang
bde4c213c6 GUI2/Window: clean up exit hook code
We no longer need to pass a window reference to the hook since dialogs are themselves windows.
2025-01-05 01:24:32 -05:00
Charles Dang
649d17dbef GUI2/Window: clean up the linked group code a bit 2025-01-05 01:22:40 -05:00
Charles Dang
b54ffe705f GUI2/Window: minor code cleanup 2025-01-04 13:52:28 -05:00
Charles Dang
092403e2e2 GUI2/Widget: remove set_hidden
This just ended up making code more confusing and less readable. And the logic was backwards.
2025-01-04 10:43:20 -05:00
Charles Dang
20f3a37028 GUI2: remove unnecessary calls to get_window
Since dialogs are windows now
2025-01-04 10:41:06 -05:00
Charles Dang
b9d67848ae Markup: doc cleanup, take arguments by string_view when possible 2025-01-04 09:31:32 -05:00
Charles Dang
8dbeb12231 t_string: allow implicit conversion to string_view
Since we already have implicit conversion to string *reference*, this functionality should be equivalent.
2025-01-04 09:31:32 -05:00
newfrenchy83
3c38baa8cb fix bug in compilation for gcc
fix f3835fac61 issue
2025-01-03 12:21:34 -05:00
Nils Kneuper
37a4d9e9cd updated Bengali translation 2025-01-03 14:44:49 +01:00
Subhraman Sarkar
956efc3cac titlescreen, game_launcher: code simplification 2025-01-03 08:31:43 +05:30
Charles Dang
f3835fac61 GUI2/Outro: reimplemented fade mechanism
Muuuuuch simpler now. No longer uses timers.
2025-01-02 21:32:42 -05:00
Charles Dang
dce17a3ba7 GUI2/Outro: reduced text size 2025-01-02 21:31:59 -05:00
Nils Kneuper
7bc03d59af updated Hungarian translation 2025-01-02 14:03:20 +01:00
gfgtdf
7c0edadc1d
cleanup team::gold (#9685)
previously there were team::gold_ and team::team_info::gold
doing the same thing, now we just have one gold variable
team::team_info::gold, we also removed some related unused code
2025-01-02 01:27:16 +01:00
loonycyborg
15b0bfcdcd Change boost download link in flatpak to archive.boost.io
because artifactory is down too much and they plan to move away from it
anyway. Fixes issue #9690
2025-01-01 22:26:03 +03:00
Dalas121
01439c6cd8
EI S05 prose: Galdren and the sylph (#9689)
Fix some EI dialogue inconsistencies
2025-01-01 09:45:37 -06:00
Thewodoros
cbeb4e4d34
Clear dangling variables (#9688)
These variables are not used later, so they may be cleared.
2025-01-01 07:37:21 -06:00
Subhraman Sarkar
a59c4fa80b update some tips based on recent changes
* Unit Description has been renamed to Unit Type Description recently.
* Introduction of vision cost means that how many hexes units can see vs how many hexes units can go is not same.
2025-01-01 15:21:34 +05:30
Subhraman Sarkar
7704c4ce8d remove unnecessary get_window() calls 2025-01-01 10:45:30 +05:30
Elvish_Hunter
2583d9ae80 Fixed a flag description in wmllint and GUI.pyw
The description for the -m flag now correctly says 'warn' instead of 'don't warn'.
2024-12-31 15:07:15 +01:00
gfgtdf
ce262e9275 WC: use [leader] 2024-12-31 01:09:06 +01:00
Subhraman Sarkar
6f23b967b6 update changelog: mention new lua api functions
info about new lua api functions gui.show_recruit_dialog and gui.show_recall_dialog from #9499.
2024-12-30 16:20:03 +05:30
Subhraman Sarkar
8fcdccfbd3 lua: api for units dialog
introduces the gui.show_recrui_dialog and gui.show_recall_dialog functions.
2024-12-29 22:00:00 +05:30
Subhraman Sarkar
bab3dd6e35 unified units dialog with configurable options
instead of having multiple dialogs with similar UI, we use only one dialog to which multiple configurations and data can be set.
2024-12-29 22:00:00 +05:30
Dalas121
8cccfb15cc
Move custom AMLAs from EI to core (#9635)
EI contains a basic custom set of AMLAs, replacing the default +3hp for all player units. Units gain a +8hp AMLA option, and units with 1/2/3+ melee/ranged strikes gain options for +4/+2/+1 melee/ranged damage, respectively. Investing XP into these AMLAs remains much weaker than leveling a new unit.
2024-12-28 07:07:14 -06:00
Charles Dang
2bbcd5f814 Clean up and expand ranges compat layer 2024-12-26 22:11:34 -05:00
Charles Dang
6d97ac494e GUI2/Dispatcher: remove connect_signal_on_draw
We no longer use the GUI2 draw events. We should implement the appropriate interface provided by top_level_drawable instead. DRAW is still a valid event for now, but would probably be removed in the future.
2024-12-26 16:27:11 -05:00
gfgtdf
5b63155a23
Update changelog.md 2024-12-26 20:25:48 +01:00
gfgtdf
392b8dc9fb
Use [leader] in the c++ code (#9660)
Added code to convert all  `[side]type=` to `[side][leader]` when the `[scenario]` is read, and the rest of the engine code to only work with [leader], this should fix all possible problems with `[leader]` and also simplify the code a bit

Fixes #7985
Fixes #3742
2024-12-26 20:22:09 +01:00
Subhraman Sarkar
ec0e0992b6 help topic generator: fix typo
also make the help browser a bit wider, otherwise images overlap with text
2024-12-26 12:21:09 +05:30
Wedge009
f360e781c7 Replace non-standard spacing.
[ci skip]
2024-12-26 17:02:14 +11:00