Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Expression 2 v
« Previous 1 2 3 4 5 6 … 8 Next »
SG Dialing Computer?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
SG Dialing Computer?
23-08-2015, 01:47 PM,
#6
The_Doctor Offline
Testing... is this thing on?
***
Posts: 249
Threads: 25
Joined: Jul 2014
RE: SG Dialing Computer?
(23-08-2015, 11:36 AM)Destinys Player Wrote: There's this old thing I made a long time ago. I don't know if it's optimized or anything, but it works allright.
Code:
@name EGP Stargate @inputs E:wirelink Gate:wirelink User:entity @outputs @persist Page Add Cursor=E:egpCursor(User) Addresses=Gate:stargateAddressList() if(Addresses[Add,string]:explode(" ")[1,string]=="1") { DialAdd=Addresses[Add,string]:explode(" ")[2,string] } else { DialAdd=Addresses[Add,string]:explode(" ")[1,string] } if(Add>Addresses:count() | Add==0) { Add=1 } Gate["Dial String",string]=DialAdd interval(500) function number wirelink:button(Cursor:vector2,ID:number){ local BPos = This:egpPos(ID) local BSize = This:egpSize(ID) local Pressed = inrange(Cursor,BPos-BSize,BPos+BSize) return Pressed } if(first() | dupefinished()) { Page=1 E:egpClear() #E:mainmenu(0) #STARGATE E:egpRoundedBox(90,vec2(256,256),vec2(285,285)) E:egpColor(90,vec(100,100,100)) E:egpCircle(11,vec2(256,240),vec2(100,100)) E:egpColor(11,vec(50,50,100)) E:egpCircle(12,vec2(256,240),vec2(80,80)) E:egpColor(12,vec(50,50,50)) E:egpCircleOutline(13,vec2(256,240),vec2(100,100)) E:egpCircleOutline(14,vec2(256,240),vec2(80,80)) #ButForw E:egpCircle(20,vec2(342,350),vec2(20,20)) E:egpColor(20,vec(70,70,70)) E:egpCircleOutline(21,vec2(342,350),vec2(20,20)) E:egpText(24,">",vec2(342,350)) E:egpAlign(24,1,1) E:egpSize(24,30) #ButBack E:egpCircle(22,vec2(170,350),vec2(20,20)) E:egpColor(22,vec(70,70,70)) E:egpCircleOutline(23,vec2(170,350),vec2(20,20)) E:egpText(25,"<",vec2(170,350)) E:egpAlign(25,1,1) E:egpSize(25,30) #Address E:egpBox(26,vec2(256,365),vec2(100,30)) E:egpColor(26,vec(70,70,70)) E:egpBoxOutline(27,vec2(256,365),vec2(100,30)) E:egpLine(28,vec2(190,355),vec2(207,365)) E:egpLine(29,vec2(322,355),vec2(305,365)) E:egpText(30,"ADDRESS01",vec2(256,365)) E:egpAlign(30,1,1) E:egpSize(30,18) E:egpRoundedBoxOutline(100,vec2(256,256),vec2(285,285)) } if(Page==1) { if(Gate["Open",number]==1) { Tint=random(150,200) E:egpColor(11,vec(20,20,Tint)) E:egpColor(12,vec(30,Tint,Tint)) } elseif(Gate["Active",number]==1 & Gate["Open",number]==0) { E:egpColor(11,vec(20,20,random(100,150))) } else { E:egpColor(11,vec(50,50,100)) E:egpColor(12,vec(50,50,50)) } BPlu=E:button(Cursor,20) BMin=E:button(Cursor,22) GDial=E:button(Cursor,12) if(changed(BPlu) & BPlu==1) { E:egpColor(20,vec(120,120,120)) Add=Add+1 } else { E:egpColor(20,vec(70,70,70)) } if(changed(BMin) & BMin==1) { E:egpColor(22,vec(120,120,120)) Add=Add-1 } else { E:egpColor(22,vec(70,70,70)) } if(changed(GDial) & GDial==1 & Gate["Open",number]==0) { E:egpColor(26,vec(120,120,120)) Gate["Start String Dial",number]=1 } elseif(changed(GDial) & GDial==1 & Gate["Open",number]==1) { Gate["Close",number]=1 } else { E:egpColor(26,vec(70,70,70)) Gate["Start String Dial",number]=0 Gate["Close",number]=0 } E:egpSetText(30,DialAdd) }

It does not seem to work alright. The EGP stays at the "EGP 3" screen, nothing happens.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
SG Dialing Computer? - by The_Doctor - 21-08-2015, 11:56 PM
RE: SG Dialing Computer? - by LocInt - 22-08-2015, 09:43 AM
RE: SG Dialing Computer? - by The_Doctor - 22-08-2015, 01:07 PM
RE: SG Dialing Computer? - by Blackhawk - 23-08-2015, 12:12 AM
RE: SG Dialing Computer? - by Destiny's Player - 23-08-2015, 11:36 AM
RE: SG Dialing Computer? - by The_Doctor - 23-08-2015, 01:47 PM
RE: SG Dialing Computer? - by Destiny's Player - 23-08-2015, 02:26 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.