Help page inserted by addon. How?

The place to post your WML questions and answers.

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.
Post Reply
User avatar
Toranks
Translator
Posts: 168
Joined: October 21st, 2022, 8:59 pm
Location: Sevilla
Contact:

Help page inserted by addon. How?

Post by Toranks »

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.
User avatar
Celtic_Minstrel
Developer
Posts: 2158
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: Help page inserted by addon. How?

Post by Celtic_Minstrel »

This isn't supported currently. I believe there's even an open issue requesting it, though I can't seem to find it.
Author of The Black Cross of Aleron campaign and Default++ era.
Former maintainer of Steelhive.
User avatar
Lord-Knightmare
Discord Moderator
Posts: 2337
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?

Post by Lord-Knightmare »

https://github.com/wesnoth/wesnoth/issues/1155
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
User avatar
lhybrideur
Posts: 355
Joined: July 9th, 2019, 1:46 pm

Re: Help page inserted by addon. How?

Post by lhybrideur »

But you can add a "Help" section in the right-click menu

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]
Copy-pasted from LotI
User avatar
Toranks
Translator
Posts: 168
Joined: October 21st, 2022, 8:59 pm
Location: Sevilla
Contact:

Re: Help page inserted by addon. How?

Post by Toranks »

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.
Sin título.png
User avatar
lhybrideur
Posts: 355
Joined: July 9th, 2019, 1:46 pm

Re: Help page inserted by addon. How?

Post by lhybrideur »

Maybe you can add some submenus to make it less crowded.
Post Reply