FAQ Search Memberlist Usergroups
Jolt Country Forum Index
Register Profile Log in to check your private messages Log in
Log in Log in

Newmenu update includes main_menu?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Jolt Country Forum Index -> Hugo's House of Horrors
View previous topic :: View next topic  
Author Message
Bainespal



Joined: 09 Jul 2010
Posts: 151

PostPosted: Wed Mar 13, 2013 3:01 pm    Post subject: Newmenu update includes main_menu? Reply with quote

I downloaded the new version of Roodylib from the IF Archive as mentioned on Not Dead Hugo, and I saw that there were new versions of newmenu.h and beta.h, so I grabbed them too.

Tree and Star wasn't compiling with the latest version of newmenu, due to the lines where I defined "menu category main_menu". It said that main_menu was already defined.

I see that main_menu is defined on line 1156 of newmenu.h, so I simply commented out my version, and it compiles. I believe the commented documentation needs updating, because it still says this:

Quote:
This extension *expects* a menu_category object named main_menu. Add the following to your code.

menu_category main_menu "TITLE OF YOUR MAIN MENU"
{}


I like the change, in general. Before, I kind of felt that the main_menu object could be part of the library. I'm fine with the default heading as the game title, but is there a way to change it?
Back to top
View user's profile Send private message
Roody_Yogurt



Joined: 29 Apr 2002
Posts: 1993
Location: Milwaukee

PostPosted: Wed Mar 13, 2013 4:57 pm    Post subject: Reply with quote

Thanks for this. Hidden in the changelog, I mention the change to newmenu-including-a-main_menu-object, but you're right, it should be changed there, too. In the future, that section will read:
Quote:
This extension *expects* a menu_category object named main_menu. One is provided by newmenu.h, but if you need to replace it, do the following:

replace main_menu "TITLE OF YOUR MAIN MENU"
{
inherits menu_category
}


To answer your question, to change the menu title, you can either do the above or have a line like the following in init or SetGlobalsAndFillArrays:
Code:
main_menu.name = "Your New Name"
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Jolt Country Forum Index -> Hugo's House of Horrors All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001 phpBB Group

Theme by Kage Musha - RPG Garden

Copyrights and trademarks are all of the belonging company. No copyright Infringement intended