Jump to content

Adding buttons to the main menu


Recommended Posts

This might be rather hard i think.

Think on how to positioning it and how to give it the image.

There might be 2 approaches the first is more the "intended" way the second is more making a path through wilderness:

More reasonable is if you look into how the menu is generated and try to imitate it.

If you dont manage that maybe make a menu button with unity its self there you could attach onclick a delegate pointing to your function.

Or you wait for the tutorials and hope they describe it there.

On 30/6/2019 at 7:09 PM, sharpdev said:

Is there a way to add a button to the main menu that executes a method when clicked?

Check this mod. It adds a Postfix after OptionsMenuScreen.OnPrefabInit

https://github.com/javisar/ONI-Modloader-Mods/tree/Q3-Steam/Source/ExportDailyReports

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...