Commit graph

84212 commits

Author SHA1 Message Date
Subhraman Sarkar
f318ac0d11 various rich_label bugfixes 2024-09-23 19:49:44 -04:00
Charles Dang
03e11a62e1 Removed GUI1 Help interface code
Not needed anymore since we're moving to GUI2 for this dialog.
2024-09-23 19:49:44 -04:00
Charles Dang
e6c0064755 Help: removed code to show old GUI1 help browser
Attempting to launch it crashes the game (probably to do with a null video surface),
and since it's being replaced there's no point in restoring it to functionality.

The implementation details (help_menu, etc) have been left for now. Will remove soon.

This also means the GUI2 help browser is shown by default now.
2024-09-23 19:49:44 -04:00
Charles Dang
ee82387c3d Some build fixups to reflect changes since the help commits were originally made 2024-09-23 19:49:44 -04:00
Charles Dang
1b20d04d07 Help Browser: removed help topic padding 2024-09-23 19:49:44 -04:00
Charles Dang
b3babea922 Help Browser: fixup topic title layout 2024-09-23 19:49:44 -04:00
Celtic Minstrel
0480131fd6 Help Browser: Support arbitrary initial topic
Hidden topics still untested.
2024-09-23 19:49:44 -04:00
Celtic Minstrel
5996cba135 Help Browser: Don't double-list a section's root topic 2024-09-23 19:49:44 -04:00
Celtic Minstrel
ada7b50403 Help Browser: Show topic title 2024-09-23 19:49:44 -04:00
Celtic Minstrel
bbf6df2ddf Help Browser: Fix back button being visible when dialog opens 2024-09-23 19:49:44 -04:00
Charles Dang
6144b5e778 Help Browser: properly implement toggling by clicking the book icons 2024-09-23 19:49:44 -04:00
Celtic Minstrel
f96aa94e03 Fix GUI1 help topics not showing 2024-09-23 19:49:44 -04:00
Celtic Minstrel
5fffe8539f Help Browser: Implement history 2024-09-23 19:49:44 -04:00
Charles Dang
f52bb4f098 Moved new help entry point to a common location 2024-09-23 19:49:44 -04:00
Charles Dang
28dd0f8a68 Help Browser: implemented viewing of sub-sections/topics 2024-09-23 19:49:44 -04:00
Celtic Minstrel
bf4f02bdcf Help Viewer: Parse help markup to Pango markup... mostly.
The help parser now outputs a config rather than a vector of strings of
which some should be taken literally and others parsed as WML.
2024-09-23 19:49:44 -04:00
Charles Dang
b6079891a8 Help Browser: improved layout stability and added next/back buttons (non-functional, of course) 2024-09-23 19:49:44 -04:00
Celtic Minstrel
3aa6993a32 Help: That parameter isn't really needed 2024-09-23 19:49:44 -04:00
Celtic Minstrel
63ad2f4875 Help Viewer: Show topics with generated text 2024-09-23 19:49:44 -04:00
Celtic Minstrel
38bfb1838a Help Browser: Actually show the correct topics with the correct icons
This also fixes the lag when opening help and makes the topic text appear.
(The topic text is not parsed at the moment, though.)
2024-09-23 19:49:44 -04:00
pentarctagon
815e3fe90b add clang-tidy 2024-09-23 17:44:02 -05:00
Pentarctagon
bd8322a40b
add code documentation for the tokenizer (#9354)
Also clean up/simplify the code a bit.
2024-09-23 13:29:43 -05:00
newfrenchy83
feef53d4ab
Add an 'alignment' attribute to attacks
This attribute, when set to a valid value of lawful|neutral|chaotic|liminal, will assign to the weapon a different alignment than the unit alignment used by default. This alignment is then used when attacking with this weapon.

The attribute is not accessible from lua so far since the fallback to unit alignment does not work.
2024-09-23 17:11:46 +02:00
Charles Dang
363241faf9 GUI2/Tab Container: set members from builder 2024-09-23 10:02:32 -04:00
Charles Dang
12d4a11959 Halo: simplify effect::set_location 2024-09-23 10:01:47 -04:00
Charles Dang
09e7ed97e8 Further deploy display::get_location_rect 2024-09-23 09:55:53 -04:00
Charles Dang
85309bd93c
Display: simplify add_overlay interface (#9371)
Instead of passing all the arguments for an overlay to display::add_overlay, just take an rvalue-reference to an existing overlay object.

The overlay ctor was adjusted. It no longer takes a halo::handle argument, and the display class sets that manually.
2024-09-23 01:47:42 -04:00
Nils Kneuper
8a35469a05 updated Italian translation 2024-09-22 20:10:16 +02:00
spixi
6f15150d99
DW S9: Improve event handling of undead and bats on the players' side
Add dialog for the cases of a bat or undead entering Caladon's house
that does not lead to victory to prevent the scenario from being too easy.
2024-09-22 18:36:57 +02:00
Jonathan-Kelly
a8d68165ec
UtBS: Cut duplicate stun weapon special remnants
Cut extra icon and lua code for 'stun' weapon special.
An identical copy was already moved to core by #7323 and stun in UtBS was removed long ago anyway.
2024-09-21 18:42:19 +02:00
Charles Dang
fe7d94a2f2 Don't manually specify default predicate for config::remove_children 2024-09-21 11:51:28 -04:00
Charles Dang
0664724c99 Editor/Context: don't copy config in lambda... 2024-09-21 11:47:36 -04:00
pentarctagon
615855ebb5 fixup indentation 2024-09-21 10:38:24 -05:00
Nils Kneuper
6836af62a6 updated British English translation 2024-09-21 00:05:23 +02:00
Nils Kneuper
d5d1820286 updated Finnish translation 2024-09-21 00:04:28 +02:00
Nils Kneuper
c7baa6025c updated Turkish translation 2024-09-21 00:03:27 +02:00
Charles Dang
7380885226 Display: add get_location_rect 2024-09-19 15:03:22 -04:00
Gothyoba
7bd657e2a5 Increased text size for UMC Author note in terrain elevation help page 2024-09-19 11:15:02 -04:00
Subhraman Sarkar
b6dead682b clipboard: remove redundant methods 2024-09-18 23:01:46 -04:00
Subhraman Sarkar
355ed849ee scroll_text: make components look more integrated 2024-09-18 23:01:46 -04:00
Subhraman Sarkar
54535fca3b scroll_text: markup and link awareness support
support for copying and partial editing only.
this does not make multiline_text a rich text editor.
2024-09-18 23:01:46 -04:00
Subhraman Sarkar
6023eb338c chatbox: use scroll_text so text can be copied 2024-09-18 23:01:46 -04:00
Subhraman Sarkar
a682adb264 text_renderer: markup support in insert_text and some refactoring 2024-09-18 23:01:46 -04:00
Charles Dang
1011c0f58a GUI2/Tab Container: clean up unnecessary grid 2024-09-18 20:13:32 -04:00
Charles Dang
3b07a7c76e MP/Method Selection: new design 2024-09-18 19:42:45 -04:00
Charles Dang
05f4e21951 Display: clean up the FPS counter implementation
* Makes it more type-safe by using chrono types more directly.
* Fixes a few design issues, such as the current time point being taken multiple times when updating the data.
* Fixes min and max FPS times being swapped
* Improved display
2024-09-18 18:15:22 -04:00
Charles Dang
fc1409e2d1 MP/Staging, Join Game: improve sidebar layout 2024-09-18 16:09:07 -04:00
Charles Dang
02cbdc83aa GUI2/Tree View Node: doc typo fixes 2024-09-18 16:08:13 -04:00
Charles Dang
1803cb6d54 Config: fold over one-liner packs 2024-09-18 15:42:21 -04:00
Charles Dang
4d086b6db4 Config: attempt to reenable append_children optimization 2024-09-18 15:42:21 -04:00