Uses \n Overflow Fix
Players Menu
Includes Verification
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.
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
//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:
Syntax:
AddMenuPage( <menu>, <title>, <parent> );
===========================================
*/
/*
===========================================
How to Add A Function:
Syntax:
AddMenuPageOpt( <menu>, <opt>, <func>, <arg> );
===========================================
*/
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
Uses \n Overflow Fix
Players Menu
Includes Verification
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.
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
//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:
Syntax:
AddMenuPage( <menu>, <title>, <parent> );
===========================================
*/
/*
===========================================
How to Add A Function:
Syntax:
AddMenuPageOpt( <menu>, <opt>, <func>, <arg> );
===========================================
*/
ITheFallenI - Inspiration on All My Bases
CraigChrist8239 & KBrizzle - Button Handling
QuickSilver - Finding \n Overflow Fix
rothebeast - Verification System & Menu Base
Uses \n Overflow Fix
Players Menu
Includes Verification
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.
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
//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:
Syntax:
AddMenuPage( <menu>, <title>, <parent> );
===========================================
*/
/*
===========================================
How to Add A Function:
Syntax:
AddMenuPageOpt( <menu>, <opt>, <func>, <arg> );
===========================================
*/
ITheFallenI - Inspiration on All My Bases
CraigChrist8239 & KBrizzle - Button Handling
QuickSilver - Finding \n Overflow Fix
rothebeast - Verification System & Menu Base
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);
}
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);
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);
}
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);
Copyright © 2025, NextGenUpdate.
All Rights Reserved.