Help page inserted by addon. How?
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Help page inserted by addon. How?
How can I insert a section (with my own subsections) at the end of the help manual with an addon? I can't find any usage examples, and the documentation refers to how [help] is built into the main game.
- Celtic_Minstrel
- Developer
- Posts: 2211
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: Help page inserted by addon. How?
This isn't supported currently. I believe there's even an open issue requesting it, though I can't seem to find it.
- Lord-Knightmare
- Discord Moderator
- Posts: 2361
- Joined: May 24th, 2010, 5:26 pm
- Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
- Contact:
Re: Help page inserted by addon. How?
https://github.com/wesnoth/wesnoth/issues/1155
I don't think this will be supported anytime soon.
I don't think this will be supported anytime soon.
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
- lhybrideur
- Posts: 369
- Joined: July 9th, 2019, 1:46 pm
Re: Help page inserted by addon. How?
But you can add a "Help" section in the right-click menu
Copy-pasted from LotI
Code: Select all
[set_menu_item]
id=9help
description=_"Campaign help"
[command]
[message]
speaker=narrator
message=_"What do you need help with?"
side_for=$side_number
image="wesnoth-icon.png"
[option]
label=_"Interface"
[command]
[fire_event]
name=help_interface
[/fire_event]
[/command]
[/option]
[option]
label=_"Walkthroughs"
[command]
[fire_event]
name=help_walkthroughs_check
[/fire_event]
[/command]
[/option]
[option]
label=_"Frequently Asked Questions"
[command]
[fire_event]
name=help_faq
[/fire_event]
[/command]
[/option]
[option]
label=_"Exit"
[command]
[/command]
[/option]
[/message]
[/command]
[/set_menu_item]
Re: Help page inserted by addon. How?
Thanks!! I don't miss that feature anymore. Although of course in the future it would be very useful to allow the use of a HelpWML for addons.
- lhybrideur
- Posts: 369
- Joined: July 9th, 2019, 1:46 pm
Re: Help page inserted by addon. How?
Maybe you can add some submenus to make it less crowded.