JustJinxed Posted December 21, 2020 Share Posted December 21, 2020 Maybe my lua is just rusty, but I'm having a heck of a time trying to decode how to add a button to the title screen. I'd perfer to insert it above manage mods if possible. I don't think me calling MainMenu:PushMenu is how I go about this? Link to comment Share on other sites More sharing options...
RageLeague Posted December 21, 2020 Share Posted December 21, 2020 The code seems really complicated. Best not touch it. The thing is, the function Main is local, so you can't modify the result of that function easily. Link to comment Share on other sites More sharing options...
JustJinxed Posted December 22, 2020 Author Share Posted December 22, 2020 alrighty then, so now way of modding a button onto the main menu? Isn't that's something that should be alterable? In my case I'm creating a deck builder mod, which I'm sure I can manage from within the game, but I was thinking would be more appropriate from outside a run. I guess either way works, honestly lol Link to comment Share on other sites More sharing options...
RageLeague Posted December 22, 2020 Share Posted December 22, 2020 Actually, what you maybe can do is modify the last item of MainMenu.menu_stack and call MainMenu:RefreshMenu(). Perhaps, you can modify MainMenu:doStart() so that after it is execulted, you insert your thing into MainMenu.menu_stack[1] at the correct position(a set position or search for the mod button), and call MainMenu:RefreshMenu() to update your button. I assume you know what I'm talking about, right? Link to comment Share on other sites More sharing options...
JustJinxed Posted December 24, 2020 Author Share Posted December 24, 2020 A bit, I'll look into it and get back to ya, the hint alone is usually enough for me to figure it out. Thanks Rage! <3 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.