sharpdev Posted June 30, 2019 Share Posted June 30, 2019 Is there a way to add a button to the main menu that executes a method when clicked? Link to comment Share on other sites More sharing options...
Rainbowdesign Posted June 30, 2019 Share Posted June 30, 2019 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. Link to comment Share on other sites More sharing options...
trevice Posted July 2, 2019 Share Posted July 2, 2019 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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.