Ludeon Forums

RimWorld => Mods => Help => Topic started by: PieroSgri on December 27, 2016, 06:57:58 AM

Title: How to modify menus button?
Post by: PieroSgri on December 27, 2016, 06:57:58 AM
Hi guys, I would like to know how I can modify a menu button.

ie. I mean make a button (like credits or whatever) disappear from the menu, not only graphically, but in a way that you can't click on it anymore.

I'm really going mad finding a way to do it...
Title: Re: How to modify menus button?
Post by: Telefonmast on December 27, 2016, 07:14:24 AM
Have you tried looking in the game's source code?
You can't change the menu in xml.

The class "MainMenuDrawer" might be a place to look at.
Title: Re: How to modify menus button?
Post by: PieroSgri on December 27, 2016, 07:27:37 AM
Well, that's exactly what I wanted to avoid!
In that class you're talking about is it possible to make a menu button smaller/larger?
This way I can make a button 0x0 pixels so its un-clickable, what do you think?
Title: Re: How to modify menus button?
Post by: Telefonmast on December 27, 2016, 09:07:30 AM
Instead of making it smaller it would be smarter to just completely remove it.
This is risky though as it is an core entity and would probably either break the game, make it incompatible with other mods or just not work.

There is no way around besides having some basic coding knowledge and reading through the source code yourself.
Title: Re: How to modify menus button?
Post by: PieroSgri on December 27, 2016, 09:55:56 AM
I decompiled the source code, deleted a bool referring to devmode (Ye, i was trying to delete devmode) but dont know how to recompile the whole thing... Tried with msbuild but without success.

I think I will give up with this.
Title: Re: How to modify menus button?
Post by: BlackSmokeDMax on December 27, 2016, 12:41:22 PM
Somewhere on the forums is a link to a youtube video someone did showing how to mod Rimworld. His example was taking the tutorial button out of the main menu. Don't know if I can search my youtube history, but I'll give it a look and see if I can find it, else just search the whole forums and you may come across the posts talking about posting the video.
Title: Re: How to modify menus button?
Post by: SubZeroBricks on December 27, 2016, 07:22:02 PM
Quote from: BlackSmokeDMax on December 27, 2016, 12:41:22 PM
Don't know if I can search my youtube history, but I'll give it a look and see if I can find it, else just search the whole forums and you may come across the posts talking about posting the video.

Youtube history is quite extensive as long as the user doesn't delete it.

https://www.youtube.com/feed/history (https://www.youtube.com/feed/history)
Title: Re: How to modify menus button?
Post by: BlackSmokeDMax on December 28, 2016, 01:18:06 PM
Quote from: SubZeroBricks on December 27, 2016, 07:22:02 PM
Quote from: BlackSmokeDMax on December 27, 2016, 12:41:22 PM
Don't know if I can search my youtube history, but I'll give it a look and see if I can find it, else just search the whole forums and you may come across the posts talking about posting the video.

Youtube history is quite extensive as long as the user doesn't delete it.

https://www.youtube.com/feed/history (https://www.youtube.com/feed/history)

Yes, the youtube history is actually pretty good, and searchable!

Sadly, I must not have been logged in while watching that video.
Title: Re: How to modify menus button?
Post by: BlackSmokeDMax on December 28, 2016, 01:28:07 PM
Now for the good news... I did find the post with a link to the youtube video of the twitch stream.

https://ludeon.com/forums/index.php?topic=26784.msg271616#msg271616

Hopefully this will help the OP.

Here is the link to the mod he made in the video: https://ludeon.com/forums/index.php?topic=26850.0
Title: Re: How to modify menus button?
Post by: PieroSgri on December 29, 2016, 06:28:41 AM
Thanks a lot for the video, I'll check it.