How to modify menus button?

Started by PieroSgri, December 27, 2016, 06:57:58 AM

Previous topic - Next topic

PieroSgri

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...

Telefonmast

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.
Telefonmast - Ready to give you good phone connection!
- My mod project

PieroSgri

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?

Telefonmast

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.
Telefonmast - Ready to give you good phone connection!
- My mod project

PieroSgri

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.

BlackSmokeDMax

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.

SubZeroBricks

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
"The only time you have too much fuel on board is when you are on fire."

BlackSmokeDMax

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

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

Sadly, I must not have been logged in while watching that video.

BlackSmokeDMax

#8
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

PieroSgri

Thanks a lot for the video, I'll check it.