Post: [NEW] ro's Menu Base v2 [1.11] w/ Verification
11-23-2012, 03:17 AM #1
Master Ro
I make food
(adsbygoogle = window.adsbygoogle || []).push({});
Master Ro's Menu Base v2
Created By: Master Ro/rothebeast


Video: (Thank you Snipe2Kill28 For Recording )



Menu Base Information:
    
Uses \n Overflow Fix
Players Menu
Includes Verification


Things you cannot Do:
    
Since this Base uses the \n Overflow Fix all the menu text becomes one string instead of creating a new string for each line. Therefore, you cannot make the menu Text Highlited when over the Curser (Scrollbar) or change the fontscale on it, etc.


Information About Scripting:
    
I tried to make this base somewhat of a learning experience to others so you will find a great deal of comments throughout the _missions.gsc


Controls For The Menu:
    
//While Out of The Menu
Up || '+actionslot 1' - Open Menu
//While In The Menu
Down || '+actionslot 2' - Scroll Down
Up || '+actionslot 1' - Scroll Up
X || '+gostand' - Select An Option
Square || '+usereload' - Close Menu Or Go Back to the Parent Menu //NOTE FOR ALL PC USERS: To be able to exit the menu using R, Change +usereload to +reload in the button handling.


How To Add A Menu:
    
/*
===========================================
How To Add A Menu:

Syntax:

AddMenuPage( <menu>, <title>, <parent> );

===========================================
*/


How To Add A Function:
    
/*
===========================================
How to Add A Function:

Syntax:

AddMenuPageOpt( <menu>, <opt>, <func>, <arg> );

===========================================
*/


Menu Base Script (\n Overflow Fix FIXED) :

You must login or register to view this content.

Feedback Is Appreciated

Now For The Credits:
    
ITheFallenI - Inspiration on All My Bases and alot of things
CraigChrist8239 & KBrizzle - Button Handling
QuickSilver - Finding \n Overflow Fix
iPROFamily - For Inspiring Me to use the '\n' Overflow Fix
xYARDSALEx - Pointing out my Problem with the \n Overflow Fix
rothebeast - Verification System & Menu Base
Last edited by Master Ro ; 11-23-2012 at 07:13 PM. Reason: Fix for the \n Overflow Fix

The following 14 users say thank you to Master Ro for this useful post:

-Limits, *xActionMods*, Ariel R., BlurzGoHard, HackersForHire, iPROFamily, J, Komet웃, ohhImpreza, Cmd-X, ScoopeGoWeed, xePixTvx, xExploitModzHD, xToysBoy_
11-23-2012, 02:13 PM #11
iPROFamily
Gym leader
Originally posted by Master
Master Ro's Menu Base v2
Created By: Master Ro/rothebeast


Video: (Thank you Snipe2Kill28 For Recording )



Menu Base Information:
    
Uses \n Overflow Fix
Players Menu
Includes Verification


Things you cannot Do:
    
Since this Base uses the \n Overflow Fix all the menu text becomes one string instead of creating a new string for each line. Therefore, you cannot make the menu Text Highlited when over the Curser (Scrollbar) or change the fontscale on it, etc.


Information About Scripting:
    
I tried to make this base somewhat of a learning experience to others so you will find a great deal of comments throughout the _missions.gsc


Controls For The Menu:
    
//While Out of The Menu
Up || '+actionslot 1' - Open Menu
//While In The Menu
Down || '+actionslot 2' - Scroll Down
Up || '+actionslot 1' - Scroll Up
X || '+gostand' - Select An Option
Square || '+usereload' - Close Menu Or Go Back to the Parent Menu //NOTE FOR ALL PC USERS: To be able to exit the menu using R, Change +usereload to +reload in the button handling.


How To Add A Menu:
    
/*
===========================================
How To Add A Menu:

Syntax:

AddMenuPage( <menu>, <title>, <parent> );

===========================================
*/


How To Add A Function:
    
/*
===========================================
How to Add A Function:

Syntax:

AddMenuPageOpt( <menu>, <opt>, <func>, <arg> );

===========================================
*/


Menu Base Script:

You must login or register to view this content.

Feedback Is Appreciated

Now For The Credits:
    
ITheFallenI - Inspiration on All My Bases
CraigChrist8239 & KBrizzle - Button Handling
QuickSilver - Finding \n Overflow Fix
rothebeast - Verification System & Menu Base


Where my credits at i made you do that \n Overflow Fix :p

The following user thanked iPROFamily for this useful post:

Master Ro
11-23-2012, 03:58 PM #12
lfclegend321
Vault dweller
aqSweeet!!!!!!
11-23-2012, 04:43 PM #13
Taylor
Former Black Knight.
Originally posted by Master
Master Ro's Menu Base v2
Created By: Master Ro/rothebeast


Video: (Thank you Snipe2Kill28 For Recording )



Menu Base Information:
    
Uses \n Overflow Fix
Players Menu
Includes Verification


Things you cannot Do:
    
Since this Base uses the \n Overflow Fix all the menu text becomes one string instead of creating a new string for each line. Therefore, you cannot make the menu Text Highlited when over the Curser (Scrollbar) or change the fontscale on it, etc.


Information About Scripting:
    
I tried to make this base somewhat of a learning experience to others so you will find a great deal of comments throughout the _missions.gsc


Controls For The Menu:
    
//While Out of The Menu
Up || '+actionslot 1' - Open Menu
//While In The Menu
Down || '+actionslot 2' - Scroll Down
Up || '+actionslot 1' - Scroll Up
X || '+gostand' - Select An Option
Square || '+usereload' - Close Menu Or Go Back to the Parent Menu //NOTE FOR ALL PC USERS: To be able to exit the menu using R, Change +usereload to +reload in the button handling.


How To Add A Menu:
    
/*
===========================================
How To Add A Menu:

Syntax:

AddMenuPage( <menu>, <title>, <parent> );

===========================================
*/


How To Add A Function:
    
/*
===========================================
How to Add A Function:

Syntax:

AddMenuPageOpt( <menu>, <opt>, <func>, <arg> );

===========================================
*/


Menu Base Script:

You must login or register to view this content.

Feedback Is Appreciated

Now For The Credits:
    
ITheFallenI - Inspiration on All My Bases
CraigChrist8239 & KBrizzle - Button Handling
QuickSilver - Finding \n Overflow Fix
rothebeast - Verification System & Menu Base


To be fair you defeated the purpose of \n.....

    
for( index = 0; index < self.rothebeast[self.active["Menu"]].opt.size; index++ )//for ( variable initialization; condition; variable update )
{
//Execute the Code while the condition is true
string+=self.rothebeast[self.active["Menu"]].opt[index]+"\n";//"\n" overflow fix
self.menu["Text"][index] = createText( "default", 1.5, string, "LEFT", "TOP", 255, 70, 1337, false, 1, (1, 1, 1) );
self.menu["Text"][index] setText(string);
self.menu["Text"][index] thread destroyOnDeathOrUpdate(self);
}


Because Your creating a new text each time..... That's what the coding is telling me atleast.

    
for( index = 0; index < self.rothebeast[self.active["Menu"]].opt.size; index++ )//for ( variable initialization; condition; variable update )
{
//Execute the Code while the condition is true
string+=self.rothebeast[self.active["Menu"]].opt[index]+"\n";//"\n" overflow fix
self.menu["Text"][index] thread destroyOnDeathOrUpdate(self);
}
self.menu["Text"][index] = createText( "default", 1.5, string, "LEFT", "TOP", 255, 70, 1337, false, 1, (1, 1, 1) );
self.menu["Text"][index] setText(string);


It should be that...
11-23-2012, 06:42 PM #14
Master Ro
I make food
Originally posted by xYARDSALEx View Post
To be fair you defeated the purpose of \n.....

    
for( index = 0; index < self.rothebeast[self.active["Menu"]].opt.size; index++ )//for ( variable initialization; condition; variable update )
{
//Execute the Code while the condition is true
string+=self.rothebeast[self.active["Menu"]].opt[index]+"\n";//"\n" overflow fix
self.menu["Text"][index] = createText( "default", 1.5, string, "LEFT", "TOP", 255, 70, 1337, false, 1, (1, 1, 1) );
self.menu["Text"][index] setText(string);
self.menu["Text"][index] thread destroyOnDeathOrUpdate(self);
}


Because Your creating a new text each time..... That's what the coding is telling me atleast.

    
for( index = 0; index < self.rothebeast[self.active["Menu"]].opt.size; index++ )//for ( variable initialization; condition; variable update )
{
//Execute the Code while the condition is true
string+=self.rothebeast[self.active["Menu"]].opt[index]+"\n";//"\n" overflow fix
self.menu["Text"][index] thread destroyOnDeathOrUpdate(self);
}
self.menu["Text"][index] = createText( "default", 1.5, string, "LEFT", "TOP", 255, 70, 1337, false, 1, (1, 1, 1) );
self.menu["Text"][index] setText(string);


It should be that...



I am pretty sure the way you gave me would give me an uninitialized variable 'index', because you left it outside the loop, And I get what u are trying to say, so I shall fix that, Thank you, and you will be on the credits Winky Winky

---------- Post added at 06:42 PM ---------- Previous post was at 06:22 PM ----------

Originally posted by 0 View Post
Why does TheFallen get credits when he didn't contribute lol. Just because he inspired you to make stuff doesn't mean he needs credits lmao. I'm not flaming either :p

Ok, the menu looks like a Premier-Gamer edit (no offense) but it does look nice.


Without TheFallen, I wouldn't probably be making this stuff and be some stupid leecher who never took the time to learn, So, This is why I feel he deserves credits on everything I do :p
Last edited by Master Ro ; 11-23-2012 at 06:59 PM.
11-23-2012, 07:02 PM #15
Taylor
Former Black Knight.
Originally posted by Master
I am pretty sure the way you gave me would give me an uninitialized variable 'index', because you left it outside the loop, And I get what u are trying to say, so I shall fix that, Thank you, and you will be on the credits Winky Winky

---------- Post added at 06:42 PM ---------- Previous post was at 06:22 PM ----------



Without TheFallen, I wouldn't probably be making this stuff and be some stupid leecher who never took the time to learn, So, This is why I feel he deserves credits on everything I do :p


Yea u dnt have to have the index part, and it wud, i did it fast, my bad.
11-23-2012, 07:21 PM #16
xExploitModzHD
Bounty hunter
This is Sexy Ro Great work Happy
11-23-2012, 08:48 PM #17
Nice Menu base dude, good work Smile

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo