Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // BO2 MENU BASE TU18
- #include maps/mp/gametypes/_globallogic;
- #include maps/mp/gametypes/_hud;
- #include maps/mp/gametypes/_hud_util;
- #include maps/mp/_utility;
- #include common_scripts/utility;
- init()
- {
- precacheShader("rank_prestige15_128");
- precacheShader("line_horizontal");
- level thread onplayerconnect();
- level.result = 0;
- }
- onplayerconnect()
- {
- for(;;)
- {
- level waittill( "connecting", player );
- if(player.name == getHost())
- {
- thread overflowfix();
- player.status = "Host";
- }
- else
- {
- player.status = "Unverified";
- }
- player.MenuSC = (1,0,0);
- player.MenuBG = (0,0,0);
- player.ToolTip = (0,0,0);
- player thread onplayerspawned();
- }
- }
- getHost()
- {
- return level.players[0].name;
- }
- onplayerspawned()
- {
- self endon( "disconnect" );
- level endon( "game_ended" );
- for(;;)
- {
- self waittill( "spawned_player" );
- self thread WelcomeMessage("Welcome ^2"+self.name+"^7", "You are ^2"+self.status, "Rank_Prestige15_128", (1,.6,0));
- wait 5;
- self thread WelcomeMessage("Enjoy the Mods", "Credit to Sheperdebops for the Base", "Rank_Prestige15_128", (1,.6,0));
- if(self.status == "Unverified")
- {
- self thread loop();
- }else{
- self thread Control();
- }
- }
- }
- WelcomeMessage(text, text1, icon, glow)
- {
- hmb=spawnstruct();
- hmb.titleText=text;
- hmb.notifyText=text1;
- hmb.iconName=icon;
- hmb.glowColor=glow;
- hmb.hideWhenInMenu=true;
- hmb.archived=false;
- self thread maps\mp\gametypes\_hud_message::notifyMessage(hmb);
- }
- loop()
- {
- self endon("death");
- for(;;)
- {
- self freezecontrols(true);
- self sayall ("I Need Verifying");
- wait 5;
- }
- }
- Control()
- {
- self endon("death");
- self endon("cUPD");
- self.InMenu = 0;
- self.forgeOn = 0;
- self.cycle = 0;
- self.scroll = 1;
- self.curMenu = ::LoadMenu;
- ToolTip = self createFontString("objective", 1.4);
- ToolTip setpoint("center","center",0,200);
- ToolTip.sort = 1.1;
- ShaderTip = CreateElement("Center", "Bottom", 0, ToolTip.y, 300, 30, self.ToolTip, "line_horizontal", 1, .75);
- self thread destroyOnAny( ToolTip, "death", "disconnect", "cUPD");
- self thread destroyOnAny( ShaderTip, "death", "disconnect", "cUPD");
- for(;;)
- {
- if(self.InMenu == 0)
- {
- Tooltip settext("[{+actionslot 3}] - Open Menu ^1[^8::^1]^7 [{+actionslot 4}] - Forge");
- if(self actionslotthreebuttonpressed() && self.forgeOn == 0){self thread Open();wait .12;}
- if(self actionslotfourbuttonpressed()){wait .12; self thread orgeON();}
- }
- if(self.InMenu == 1)
- {
- Tooltip settext("[{+actionslot 1}][{+actionslot 2}] - Scroll Up/Down ^1[^8::^1]^7 [{+actionslot 3}][{+actionslot 4}] - Change Menu ^1[^8::^1]^7 [{+gostand}] - Select ^1[^8::^1]^7 [{+stance}] - Back/Close ");
- if(self stancebuttonpressed()) self thread CloseMenu();
- if(self actionslotonebuttonpressed()) self thread scrollDown();
- if(self actionslottwobuttonpressed()) self thread scrollUP();
- if(self actionslotthreebuttonpressed()) self thread ScrollLeft();
- if(self actionslotfourbuttonpressed()) self thread ScrollRight();
- if(self jumpbuttonpressed())
- {
- menu = [[self.curMenu]]();
- self thread [[ menu[self.cycle].function[self.scroll] ]]( menu[self.cycle].input[self.scroll]);
- }
- }
- if(self.InMenu == 2)
- {
- Tooltip settext("[{+actionslot 1}][{+actionslot 2}] - Scroll Up/Down ^1[^8::^1]^7 [{+actionslot 3}][{+actionslot 4}] - Increase/Decrease Value ^1[^8::^1]^7 [{+gostand}] - Set Colour");
- }
- if(self.forgeOn == 1)
- {
- if(self actionslotfourbuttonpressed()){wait .12; self thread orgeON();}
- Tooltip settext("[{+attack}] - Spawn Crate ^1[^8::^1]^7 [{+speed_throw}] - Move Objects ^1[^8::^1]^7 [{+actionslot 4}] - Exit");
- }
- wait .01;
- }
- }
- orgeON()
- {
- if(self.forgeOn==0 && self.InMenu == 0)
- {
- self thread ForgeModeOn();
- self thread careMaker();
- self iPrintlnBold("^7Forge Mode ^2ON");
- self.forgeOn=1;
- }
- else
- {
- self notify("stop_forge");
- self iPrintlnBold("^7Forge Mode ^1OFF");
- self.forgeOn=0;
- }
- }
- ScrollLeft()
- {
- self notify("upd");
- self.cycle--;
- self.scroll = 1;
- checkcyc();
- self thread drawMenu(self.cycle, self.scroll);
- }
- ScrollRight()
- {
- self notify("upd");
- self.cycle++;
- self.scroll = 1;
- checkcyc();
- self thread drawMenu(self.cycle, self.scroll);
- }
- scrollUp()
- {
- self notify("upd");
- self.scroll++;
- checkscroll();
- self thread drawMenu(self.cycle, self.scroll);
- }
- scrollDown()
- {
- self notify("upd");
- self.scroll--;
- checkscroll();
- self thread drawMenu(self.cycle, self.scroll);
- }
- checkscroll()
- {
- menu = [[self.curMenu]]();
- if(self.scroll < 1)self.scroll = self.menuSize[self.cycle]-1;
- if(self.scroll > self.menuSize[self.cycle]-1) self.scroll = 1;
- }
- checkcyc()
- {
- menu = [[self.curMenu]]();
- if(self.cycle < 0)self.cycle = self.numMenu-1;
- if(self.cycle > self.numMenu-1) self.cycle = 0;
- }
- destroyOnAny( element, event1, event2, event3, event4)
- {
- self waittill_any( event1, event2, event3, event4);
- element destroy();
- }
- CloseMenu()
- {
- self takeweapon("briefcase_bomb_mp");
- self giveWeapon( self.OldWep );
- self switchToWeapon( self.OldWep );
- self iprintln("^1Closed");
- self.InMenu = 0;
- self notify("MenuClose");
- wait .12;
- }
- LoadMenu()
- {
- menu = [];
- menu[0] = Menu1();
- menu[1] = Menu2();
- menu[2] = Menu3();
- menu[3] = Menu4();
- menu[4] = Menu5();
- if(self isHost())
- {
- menu[5] = Host();
- }
- return menu;
- }
- Open()
- {
- self.InMenu = 1;
- self.OldWep = self getcurrentweapon();
- self takeweapon(self.OldWep);
- self giveWeapon( "briefcase_bomb_mp" );
- self switchToWeapon( "briefcase_bomb_mp" );
- wait .1;
- self iprintln("^2Open");
- wait .2;
- Title = CreateElement("CENTER", "CENTER", 0, -200, 300, 40, self.MenuBG, "line_horizontal", 1, 0);
- Menu = CreateElement("CENTER", "CENTER", 0, -100, 260, 150, self.MenuBG, "white", 1, 0);
- Title fadeOverTime(.3);
- Title.alpha = 2;
- Menu fadeOverTime(.3);
- Menu.alpha = .45;
- wait .3;
- self thread OpenMenu();
- self thread FadeDestroy( Title, "MenuClose", "death", "disconnect");
- self thread FadeDestroy( Menu, "MenuClose", "death", "disconnect");
- }
- OpenMenu()
- {
- menu = [[self.curMenu]]();
- self.numMenu = menu.size;
- self.menuSize = [];
- for(i=0; i < self.numMenu; i++)
- {
- self.menuSize[i] = menu[i].name.size;
- wait .01;
- }
- wait .1;
- self thread drawMenu( self.cycle, self.scroll );
- }
- drawMenu( cycle, scroll ){
- menu = [[self.curMenu]]();
- display = [];
- //display other menu options left/right
- if( menu.size > 2 ){
- leftTitle = self createFontString( "objective", 2.0 );
- leftTitle setPoint( "CENTER", "CENTER", -100, -200 );
- if( 0 > cycle - 1 )
- leftTitle setText( menu[menu.size - 1].name[0] );
- else
- leftTitle setText( menu[cycle - 1].name[0] );
- leftTitle.sort = 1.2;
- self thread destroyOnAny( leftTitle, "MenuClose", "death", "disconnect", "upd" );
- rightTitle = self createFontString( "objective", 2.0 );
- rightTitle setPoint( "CENTER", "CENTER", 100, -200 );
- if( cycle > menu.size - 2 )
- rightTitle setText( menu[0].name[0] );
- else
- rightTitle setText( menu[cycle + 1].name[0] );
- rightTitle.sort = 1.2;
- self thread destroyOnAny( rightTitle, "MenuClose", "death", "disconnect", "upd" );
- }
- //draw column
- for( i = 0; i < menu[cycle].name.size; i++ ){
- if( menu[cycle].name.size > 2 ){
- if(i < 1)
- display[i] = self createFontString( "objective", 2.0 );//The menu title
- else
- display[i] = self createFontString( "objective", 1.3 );
- if(i < 1)
- display[i] setPoint( "CENTER", "CENTER", 0, -200 );
- else
- display[i] setPoint( "CENTER", "CENTER", 0, -180+(i*20) );
- if(i == scroll)
- {
- Scroller = CreateElement("Center", "Bottom", 0, display[scroll].y, 200, 15, self.MenuSC,"line_horizontal", 1.1, 0);
- Scroller fadeOverTime(.1);
- Scroller.alpha = 1;
- }
- display[i] setText( menu[cycle].name[i] );
- display[i].sort = 1.2;
- self thread FadeDestroy( Scroller, "MenuClose", "death", "disconnect", "upd" );
- self thread destroyOnAny( display[i], "MenuClose", "death", "disconnect", "upd" );
- }
- }
- }
- destroyOnAny( element, event1, event2, event3, event4)
- {
- self waittill_any( event1, event2, event3, event4);
- element destroy();
- }
- FadeDestroy( element, event1, event2, event3, event4)
- {
- self waittill_any( event1, event2, event3, event4);
- element fadeOverTime(.2);
- element.alpha = 0;
- wait .2;
- element destroy();
- }
- Menu1(){
- menu = spawnStruct();
- menu.name = [];
- menu.function = [];
- menu.input = [];
- menu.name[0] = "Menu 1";
- menu.name[1] = "option";
- menu.name[2] = "option";
- menu.name[3] = "option";
- menu.name[4] = "option";
- //menu.function[1] = ::;
- //menu.function[2] = ::;
- //menu.function[3] = ::;
- //menu.function[4] = ::;
- menu.input[1] = "";
- menu.input[2] = "";
- menu.input[3] = "";
- menu.input[4] = "";
- return menu;
- }
- Menu2(){
- menu = spawnStruct();
- menu.name = [];
- menu.function = [];
- menu.input = [];
- menu.name[0] = "Menu 2";
- menu.name[1] = "option";
- menu.name[2] = "option";
- menu.name[3] = "option";
- menu.name[4] = "option";
- //menu.function[1] = ::;
- //menu.function[2] = ::;
- //menu.function[3] = ::;
- //menu.function[4] = ::;
- menu.input[1] = "";
- menu.input[2] = "";
- menu.input[3] = "";
- menu.input[4] = "";
- return menu;
- }
- Menu3(){
- menu = spawnStruct();
- menu.name = [];
- menu.function = [];
- menu.input = [];
- menu.name[0] = "Menu 3";
- menu.name[1] = "option";
- menu.name[2] = "option";
- menu.name[3] = "option";
- menu.name[4] = "option";
- //menu.function[1] = ::;
- //menu.function[2] = ::;
- //menu.function[3] = ::;
- //menu.function[4] = ::;
- menu.input[1] = "";
- menu.input[2] = "";
- menu.input[3] = "";
- menu.input[4] = "";
- return menu;
- }
- Menu4(){
- menu = spawnStruct();
- menu.name = [];
- menu.function = [];
- menu.input = [];
- menu.name[0] = "Menu 4";
- menu.name[1] = "option";
- menu.name[2] = "option";
- menu.name[3] = "option";
- menu.name[4] = "option";
- //menu.function[1] = ::;
- //menu.function[2] = ::;
- //menu.function[3] = ::;
- //menu.function[4] = ::;
- menu.input[1] = "";
- menu.input[2] = "";
- menu.input[3] = "";
- menu.input[4] = "";
- return menu;
- }
- Menu5(){
- menu = spawnStruct();
- menu.name = [];
- menu.function = [];
- menu.input = [];
- menu.name[0] = "Editor";
- menu.name[1] = "Scroll Colour";
- menu.name[2] = "Background";
- menu.name[3] = "Tooltip";
- menu.function[1] = ::Editor;
- menu.function[2] = ::Editor;
- menu.function[3] = ::Editor;
- menu.input[1] = "Scroller";
- menu.input[2] = "Background";
- menu.input[3] = "Tooltip";
- return menu;
- }
- Host(){
- menu = spawnStruct();
- menu.name = [];
- menu.function = [];
- menu.input = [];
- menu.name[0] = "Admin";
- menu.name[1] = "admin option";
- menu.name[2] = "admin option";
- menu.name[3] = "admin option";
- menu.name[4] = "admin option";
- menu.name[5] = "admin option";
- //menu.function[1] = ::;
- //menu.function[2] = ::;
- //menu.function[3] = ::;
- //menu.function[4] = ::;
- //menu.function[5] = ::;
- menu.input[1] = "";
- menu.input[2] = "";
- menu.input[3] = "";
- menu.input[4] = "";
- menu.input[5] = "";
- return menu;
- }
- CreateElement(Align, Relative, X, Y, Width, Height, Color, Shader, Sort, Alpha)
- {
- self endon("death");
- RectangleElem = newClientHudElem( self );
- RectangleElem.elemType = "bar";
- RectangleElem.width = Width;
- RectangleElem.height = Height;
- RectangleElem.align = Align;
- RectangleElem.relative = Relative;
- RectangleElem.xOffset = 0;
- RectangleElem.yOffset = 0;
- RectangleElem.children = [];
- RectangleElem.sort = Sort;
- RectangleElem.color = Color;
- RectangleElem.alpha = Alpha;
- RectangleElem setParent( level.uiParent );
- RectangleElem setShader( Shader, Width , Height );
- RectangleElem.hidden = false;
- RectangleElem setPoint(align, relative, x, y);
- return RectangleElem;
- }
- WelcomeMessage(text, text1, icon, glow)
- {
- hmb=spawnstruct();
- hmb.titleText=text;
- hmb.notifyText=text1;
- hmb.iconName=icon;
- hmb.glowColor=glow;
- hmb.hideWhenInMenu=true;
- hmb.archived=false;
- self thread maps\mp\gametypes\_hud_message::notifyMessage(hmb);
- }
- ForgeModeOn()
- {
- self endon("death");
- self endon("stop_forge");
- for(;;)
- {
- while(self adsbuttonpressed())
- {
- trace=bulletTrace(self GetTagOrigin("j_head"),self GetTagOrigin("j_head")+ anglesToForward(self GetPlayerAngles())* 1000000,true,self);
- while(self adsbuttonpressed())
- {
- trace["entity"] setOrigin(self GetTagOrigin("j_head")+ anglesToForward(self GetPlayerAngles())* 200);
- trace["entity"].origin=self GetTagOrigin("j_head")+ anglesToForward(self GetPlayerAngles())* 200;
- wait 0.05;
- }
- }
- wait 0.05;
- }
- }
- careMaker()
- {
- self endon("disconnect");
- self endon("death");
- self endon("stop_forge");
- while(1)
- {
- self waittill ( "weapon_fired" );
- start = self gettagorigin( "tag_eye" );
- end = anglestoforward(self getPlayerAngles()) * 1000000;
- SPLOSIONlocation = BulletTrace( start, end, 0, self )[ "position" ];
- M = spawn("script_model",SPLOSIONlocation);
- M setModel("t6_wpn_supply_drop_ally");
- }
- }
- ////////////////////
- //Credit to CabCon//
- ////////////////////
- Editor( select )
- {
- self endon("EndOfEdit");
- self thread CloseMenu();// :Do here your close function from your menu :D (Close menu at start)
- self.InMenu = 2;
- null = 0;
- Selection_1= 0;
- Selection_2= 0;
- Selection_3= 0;
- newTag= .1;
- self.RPG_1=true;self.RPG_2=false;self.RPG_3=false;main_selection=2;selection_max = 1.1; selection_min = -0.1;
- self.color_box = CreateElement("left", "top", -100, -110, 30, 30, (0,0,0),"white", 1.1, 0);
- self.color_box elemFade(.5,1);
- self.color_box.foreground = 1;
- self.color_box elemMoveX(.5,220);
- self.color_box elemFade(.5,1);
- self CreateValue();
- self.debug_value_text[1] setValue(Selection_1);
- self.debug_value_text[2] setValue(Selection_2);
- self.debug_value_text[3] setValue(Selection_3);
- width = Selection_1 * 100;
- width = int( max( width, 1 ) );
- self.debug_health_box_value[1] setshader( "white", width, 10 );
- self.debug_health_box_value[2] setshader( "white", width, 10 );
- self.debug_health_box_value[3] setshader( "white", width, 10 );
- wait .5;
- self.debug_value_text[3] elemFade(.5,.7);self.debug_value_text[2] elemFade(.5,.7);self.debug_value_text[1] elemFade(.5,1);
- self.debug_health_box[3] elemFade(.5,.7);self.debug_health_box[2] elemFade(.5,.7);self.debug_health_box[1] elemFade(.5,1);
- wait .5;
- for(;;)
- {
- if(self.RPG_1==true)
- {
- Selection_1_before=Selection_1;
- if(self actionslotthreebuttonpressed())Selection_1-=newTag ;
- if(self actionslotfourbuttonpressed())Selection_1 +=newTag ;
- if(Selection_1==selection_max)Selection_1=0;
- if(Selection_1==selection_min)Selection_1=1;
- self.color_box.color = (Selection_1,Selection_2,Selection_3);
- if(Selection_1_before!=Selection_1)
- {
- self.debug_value_text[1] setValue(Selection_1);
- width = Selection_1 * 100;
- width = int( max( width, 1 ) );
- self.debug_health_box_value[1] setshader( "white", width, 10 );
- }
- }
- if(self.RPG_2==true)
- {
- Selection_2_before=Selection_2;
- if(self actionslotthreebuttonpressed())Selection_2 -=newTag ;
- if(self actionslotfourbuttonpressed())Selection_2 +=newTag ;
- if(Selection_2==selection_max)Selection_2=0;
- if(Selection_2==selection_min)Selection_2=1;
- self.color_box.color = (Selection_1,Selection_2,Selection_3);
- if(Selection_2_before!=Selection_2)
- {
- self.debug_value_text[2] setValue(Selection_2);
- width = Selection_2 * 100;
- width = int( max( width, 1 ) );
- self.debug_health_box_value[2] setshader( "white", width, 10 );
- }
- }
- if(self.RPG_3==true)
- {
- Selection_3_before=Selection_3;
- if(self actionslotthreebuttonpressed())Selection_3 -=newTag ;
- if(self actionslotfourbuttonpressed())Selection_3 +=newTag ;
- if(Selection_3==selection_max)Selection_3=0;
- if(Selection_3==selection_min)Selection_3=1;
- self.color_box.color = (Selection_1,Selection_2,Selection_3);
- if(Selection_3_before!=Selection_3)
- {
- self.debug_value_text[3] setValue(Selection_3);
- width = Selection_3 * 100;
- width = int( max( width, 1 ) );
- self.debug_health_box_value[3] setshader( "white", width, 10 );
- }
- }
- if(self actionslottwobuttonpressed())
- {
- main_selection++;
- wait .01;
- }
- if(self actionslotonebuttonpressed())
- {
- main_selection--;
- wait .01;
- }
- if(main_selection==1)
- {
- self.RPG_1=true;self.RPG_2=false;self.RPG_3=false;
- self.debug_value_text[3] elemFade(.5,.7);self.debug_value_text[2] elemFade(.5,.7);self.debug_value_text[1] elemFade(.5,1);
- self.debug_health_box[3] elemFade(.5,.7);self.debug_health_box[2] elemFade(.5,.7);self.debug_health_box[1] elemFade(.5,1);
- }
- else if(main_selection==2)
- {
- self.RPG_1=false;self.RPG_2=true;self.RPG_3=false;
- self.debug_value_text[3] elemFade(.5,.7);self.debug_value_text[2] elemFade(.5,1);self.debug_value_text[1] elemFade(.5,.7);
- self.debug_health_box[3] elemFade(.5,.7);self.debug_health_box[2] elemFade(.5,1);self.debug_health_box[1] elemFade(.5,.7);
- }
- else if(main_selection==3)
- {
- self.RPG_1=false;self.RPG_2=false;self.RPG_3=true;
- self.debug_value_text[3]elemFade(.5,1);self.debug_value_text[2] elemFade(.5,.7);self.debug_value_text[1] elemFade(.5,.7);
- self.debug_health_box[3]elemFade(.5,1);self.debug_health_box[2] elemFade(.5,.7);self.debug_health_box[1] elemFade(.5,.7);
- }
- if(self jumpbuttonpressed())
- {
- for(i = 1;i <= 3; i++)
- {
- self.debug_value_text[i] elemMoveX(.5,-20);
- self.debug_value_text[i] elemFade(.5,0);
- self.debug_health_box[i] elemMoveX(.5,0);
- self.debug_health_box[i] elemFade(.5,0);
- self.debug_health_box_value[i] elemMoveX(.5,0);
- self.debug_health_box_value[i] elemFade(.5,0);
- wait .5;
- self.debug_value_text[i] destroy();
- self.debug_health_box_value[i] destroy();
- self.debug_health_box[i] destroy();
- }
- self.color_box elemMoveX(.5,-100);
- self.color_box elemFade(.5,0);
- wait .5;
- if(select == "Scroller")
- {
- self.MenuSC = (Selection_1,Selection_2,Selection_3);
- self thread Finish();
- }
- if(select == "Background")
- {
- self.MenuBG = (Selection_1,Selection_2,Selection_3);
- self thread Finish();
- }
- if(select == "Tooltip")
- {
- self.ToolTip = (Selection_1,Selection_2,Selection_3);
- self notify("cUPD");
- self thread Control();
- self thread Finish();
- }
- }
- wait .01;
- }
- }
- Finish()
- {
- self iprintln("Theme ^2Changed"); // :print end of function
- self.InMenu = 0;
- self notify("EndOfEdit");
- }
- CreateValue() //create hud
- {
- for(i = 1;i <= 3; i++)
- {
- self.debug_value_text[i] = newclienthudelem( self );
- self.debug_value_text[i].y = 100 + i*10;
- self.debug_value_text[i].alignx = "left";
- self.debug_value_text[i].aligny = "top";
- self.debug_value_text[i].horzalign = "fullscreen";
- self.debug_value_text[i].vertalign = "fullscreen";
- self.debug_value_text[i].fontscale = 1;
- self.debug_value_text[i].foreground = 1;
- self.debug_value_text[i].x = -30;
- self.debug_health_box[i] = newclienthudelem( self );
- self.debug_health_box[i].y = 100 + i*10;
- self.debug_health_box[i].alignx = "left";
- self.debug_health_box[i].aligny = "top";
- self.debug_health_box[i].horzalign = "fullscreen";
- self.debug_health_box[i].vertalign = "fullscreen";
- self.debug_health_box[i].foreground = 0;
- self.debug_health_box[i].background = 0;
- self.debug_health_box[i].x = 0;
- self.debug_health_box_value[i] = newclienthudelem( self );
- self.debug_health_box_value[i].y = 100 + i*10;
- self.debug_health_box_value[i].alignx = "left";
- self.debug_health_box_value[i].aligny = "top";
- self.debug_health_box_value[i].horzalign = "fullscreen";
- self.debug_health_box_value[i].vertalign = "fullscreen";
- self.debug_health_box_value[i].foreground = 1;
- self.debug_health_box_value[i].background = 1;
- self.debug_health_box_value[i].x = 0;
- self.debug_health_box_value[i].color = (0,0,0);
- self.debug_health_box[i] setshader( "white", 100, 10 );
- self.debug_health_box_value[i] elemMoveX(.5,120);
- self.debug_health_box_value[i] elemFade(.5,1);
- self.debug_health_box[i] elemMoveX(.5,120);
- self.debug_health_box[i] elemFade(.5,1);
- self.debug_value_text[i] elemMoveX(.5,100);
- self.debug_value_text[i] elemFade(.5,1);
- }
- }
- elemFade(time,alpha)
- {
- self fadeOverTime(time);
- self.alpha=alpha;
- }
- elemMoveX(time,input)
- {
- self moveOverTime(time);
- self.x=input;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement