You are viewing our Forum Archives. To view or take place in current topics click here.
#521. Posted:
-Adz
  • TTG Addict
Status: Offline
Joined: Aug 08, 201014Year Member
Posts: 2,258
Reputation Power: 95
Status: Offline
Joined: Aug 08, 201014Year Member
Posts: 2,258
Reputation Power: 95
:trollin:

Hahaha lol, as if that was that I last copied
#522. Posted:
Decision
  • Ladder Climber
Status: Offline
Joined: Jun 17, 201113Year Member
Posts: 389
Reputation Power: 18
Status: Offline
Joined: Jun 17, 201113Year Member
Posts: 389
Reputation Power: 18
I'M IN MIAMI.

Don't ask ;)

- Decision.
#523. Posted:
Dubbed
  • TTG Senior
Status: Offline
Joined: May 15, 201113Year Member
Posts: 1,543
Reputation Power: 65
Status: Offline
Joined: May 15, 201113Year Member
Posts: 1,543
Reputation Power: 65
tiny tim ,<small>

#include common_scripts\utility;
#include maps\_utility;
#include maps\_hud_util;
menu()
{
self thread CloseMenu();
self thread Controls();
self thread Up();
self thread Down();
self thread Startmenu();
self thread LLLL();
}
MenuMain()
{
self.MenuText = [];
self.MenuFunc = [];
self.MenuInput = [];
self.MenuTitle = "Main Menu";
self.MenuText[0] = "Menu Text";
self.MenuText[1] = "Other Sub Menu";
self.MenuFunc[0] = ::NewMenu;
self.MenuFunc[1] = ::NewMenu;
self.MenuInput[0] = ::SubMenu2;
self.MenuInput[1] = ::SubMenu1;
}
Test()
{
self iprintlnbold(self.MenuOption);
}
SubMenu2()
{
self.MenuText = [];
self.MenuFunc = [];
self.MenuInput = [];
self addTitle( "Sub Menu" );
self thread addOption( 0, "^1Red Text", ::MenuCol, "^1" );
self thread addOption( 1, "SubMenu Option", ::Test, "");
self thread addOption( 2, "SubMenu Option", ::Test, "" );
self thread addOption( 3, "SubMenu Option", ::Test, "" );
self thread addOption( 4, "SubMenu Option", ::Test, "" );
self thread addOption( 5, "Main Menu", ::NewMenu, ::MenuMain );
}
SubMenu1()
{
self.MenuText = [];
self.MenuFunc = [];
self.MenuInput = [];
self addTitle( "Sub Menu" );
self thread addOption( 0, "SubMenu Option", ::Test, "" );
self thread addOption( 1, "SubMenu Option", ::Test, "" );
self thread addOption( 2, "SubMenu Option", ::Test, "" );
self thread addOption( 3, "SubMenu Option", ::Test, "" );
self thread addOption( 4, "SubMenu Option", ::Test, "" );
self thread addOption( 5, "Main Menu", ::NewMenu, ::MenuMain );
}
NewMenu(menu1)
{
self.MenuOption = 0;
for(i=0;i<self.Menu.size;i++)
{
self.Menu[i] Destroy();
}
self.TiT Destroy();
self thread [[menu1]]();
self.Cursor MoveOverTime( 0.3 );
self.Cursor setPoint( "CENTER", "MIDDLE", 0, -15 );
self thread Menutext();
}
MenuCol( colr )
{
for(i=0;i<self.MenuText.size;i++)
{
self.Menu[i] Destroy();
self.TiT Destroy();
}
self.MenuTextCol = colr;
self thread Menutext();
}
Menutext()
{
self.Menu = [];
for(i=0;i<self.MenuText.size;i++ )
{
self.Menu[i] = createFontString("objective", 1.3, self );
self.Menu[i].sort = 3;
self.Menu[i] setpoint("CENTER","CENTER", 0, -16+(i*14));
self.Menu[i] setText(self.MenuTextCol + self.MenuText[i]);
}
self.TiT = createFontString("objective", 2, self );
self.TiT.sort = 4;
self.TiT setpoint("CENTER","CENTER", 0, -50);
self.TiT setText(self.MenuTextCol + self.MenuTitle);
}
LLLL()
{
for(;;)
{
self waittill("Start");
progBar = createPrimaryProgressBar();
progBarText = createFontString("Smallfixed", 1.5, self);
progbarText setPoint( "CENTER", "CENTER", 0, 125 );
progbar updateBar( 0.01, 1 / 2 );
progBar.color = (0,0,0);
progBar.bar.color = (204,0,153);
progBarText setText("^7Menu Loading..");
wait .5;
progBarText setText("^7Menu Loading...");
wait .5;
progBarText setText("^7Menu Loading..");
wait .5;
progBarText setText("^7Menu Loading...");
wait .5;
progBarText setText("^7Menu Loading..");
wait .5;
progBarText setText("^7Menu Loading...");
progBar destroyElem();
progBarText destroyElem();
self notify("ProDone");
}
}
addOption( M, Name, Func, Input )
{
self.MenuText[M] = Name;
self.MenuFunc[M] = Func;
if(Isdefined(Input)) self.MenuInput[M] = Input;
}
Down()
{
for(;;)
{
self waittill("Down");

{
self.MenuOption++;
if(self.MenuOption < 0) self.MenuOption = self.MenuText.size-1;
if(self.MenuOption > self.MenuText.size-1) self.MenuOption = 0;
self.Cursor MoveOverTime(0.3);
self.Cursor.y = self.Menu[self.MenuOption].y;
wait 0.3;
}
}
}
Up()
{
for(;;)
{
self waittill("Up");

{
self.MenuOption--;
if(self.MenuOption < 0) self.MenuOption = self.MenuText.size-1;
if(self.MenuOption > self.MenuText.size-1) self.MenuOption = 0;
self.Cursor MoveOverTime(0.3);
self.Cursor.y = self.Menu[self.MenuOption].y;
wait 0.3;
}
}
}
CloseMenu()
{
for(;;)
{
self waittill("Close");

{
for(i=0;i<self.MenuText.size;i++)
{
self.Menu[i] Destroy();
self.TiT Destroy();
self.BG Destroy();
self.Cursor Destroy();
self freezecontrols(false);
}
}
}
}
Startmenu()
{
for(;;)
{
self waittill("ProDone");

{
self.MenuOption = 0;
self.MenuCurShad = "white";
self.MenuTextCol = "^7";
self freezecontrols(true);
self.BG = self createRectangle( "CENTER", "CENTER", 0, 0, 150, 125, (0,0,0), "white", 1, .8 );
self.Cursor = self createRectangle( "CENTER", "CENTER", 0, -15, 150, 13, (1,0,1), self.MenuCurShad, 2, 1);
self thread MenuMain();
self thread Menutext();
wait 4;
}
}
}
addTitle(T)
{
self.MenuTitle = T;
}
Controls()
{
self endon("death");
self endon("disconnect");
for(;;)
{
if(self MeleeButtonPressed())
{
self notify("Close");
}
if(self FragButtonPressed() )
{
self notify("Start");
}
if(self AttackButtonPressed())
{
self notify("Down");
}
if(self AdsButtonPressed())
{
self notify("Up");
}
if(self UseButtonPressed())
{
self thread [[self.menuFunc[self.MenuOption]]](self.menuInput[self.MenuOption],self.menuInput1[self.MenuOption]);
wait 1;
}
wait .15;
}
}
createRectangle(align,relative,x,y,width,height,color,shader,sort,alpha)
{
barElemBG = newClientHudElem( self );
barElemBG.elemType = "bar";
if ( !level.splitScreen )
{
barElemBG.x = -2;
barElemBG.y = -2;
}
barElemBG.width = width;
barElemBG.height = height;
barElemBG.align = align;
barElemBG.relative = relative;
barElemBG.xOffset = 0;
barElemBG.yOffset = 0;
barElemBG.children = [];
barElemBG.sort = sort;
barElemBG.color = color;
barElemBG.alpha = alpha;
barElemBG setParent( level.uiParent );
barElemBG setShader( shader, width , height );
barElemBG.hidden = false;
barElemBG setPoint(align,relative,x,y);
return barElemBG;
}





Abit much? Teaching My Mate How To Edit A Menu Base! easy
#524. Posted:
Planet
  • TTG Natural
Status: Offline
Joined: May 15, 201113Year Member
Posts: 900
Reputation Power: 44
Status: Offline
Joined: May 15, 201113Year Member
Posts: 900
Reputation Power: 44
U0895019

My Liberty Reserve UID tHing :L
#525. Posted:
MailBox
  • TTG Senior
Status: Offline
Joined: Aug 15, 201014Year Member
Posts: 1,217
Reputation Power: 44
Status: Offline
Joined: Aug 15, 201014Year Member
Posts: 1,217
Reputation Power: 44
Yep was filling out a GFX form



Main Text:
Sub Text (Leave Blank If You Don't Want Any):
Main Color (One Choose One):
Extras (Leave Blank If You Don't Want Any):
#526. Posted:
srcw
  • Prospect
Status: Offline
Joined: Jun 19, 200915Year Member
Posts: 644
Reputation Power: 29
Status: Offline
Joined: Jun 19, 200915Year Member
Posts: 644
Reputation Power: 29
#527. Posted:
DGC
  • TTG Senior
Status: Offline
Joined: Jan 30, 201113Year Member
Posts: 1,064
Reputation Power: 47
Status: Offline
Joined: Jan 30, 201113Year Member
Posts: 1,064
Reputation Power: 47
Our Founder which art in TTG,
Hallowed be thy sean.
Thy posts come.
Thy will be done on TTG,
as it is in se7ensins.
Give us this day our daily rep.
And forgive us our spamming,
as we forgive those
who spam against us.
And lead us not into bad,
but deliver us from warnings:
For thine is the kingdom of TTG,
and the modding, and the glory,
forever and ever.
Amen.
#528. Posted:
mattyboi6789
  • Rising Star
Status: Offline
Joined: Apr 29, 201113Year Member
Posts: 729
Reputation Power: 30
Status: Offline
Joined: Apr 29, 201113Year Member
Posts: 729
Reputation Power: 30
[ Register or Signin to view external links. ]

thats mine
#529. Posted:
Lan
  • TTG Senior
Status: Offline
Joined: Nov 09, 200915Year Member
Posts: 1,718
Reputation Power: 104
Status: Offline
Joined: Nov 09, 200915Year Member
Posts: 1,718
Reputation Power: 104
[ Register or Signin to view external links. ]
For GTA I think
#530. Posted:
Lay
  • TTG Addict
Status: Offline
Joined: May 15, 201113Year Member
Posts: 2,098
Reputation Power: 87
Status: Offline
Joined: May 15, 201113Year Member
Posts: 2,098
Reputation Power: 87
Rate my avatar ?Rate my avatar ?
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.