H-H-H-H-Holy shi-i-i-i-t....
AWESOME
I have made a full set of e2 derma functions.
BIG UPDATE!!!!
Ok, i have remade it all.
The biggest thing u will notice is that there is Pod functions now. Just to add that i had to remake everything. But it all works now so YAY.
Also I reduced the number of functions. It is now has a set of creation function and a set of modifier functions, this means no more dPanelSetPos() and dCheckBoxSetPos() and the like 10 other pos functions, it is now just dPos.
Other than the pod functions it doesn't have anything new but it runs allot better. Now it sends all the derma info all at once instead of before it sending stuff every time u called a derma function. This makes it cause a little less network traffic while on servers.
Pod Support
dPod(entity pod)-- sets the pod that the derma will show up on, if its not a valid pod then it will default to you.
Creation Functions
dPanel(string name, vector2 pos, vector2 size)
dButton(string name,string parent, vector2 pos, vector2 size)
dCheckBox(string name,string parent, vector2 pos)
dSlider(string name,string parent, vector2 pos, number length, number min , number max)
dTextBox(string name,string parent, vector2 pos, number length)
dImage(string name,string parent,string image, vector2 pos, vector2 size)
dDropBox(string name,string parent, vector2 pos, number length)
dLabel(string name,string parent, vector2 pos)
dTabHolder(string name,string parent, vector2 pos,vector2 size)
dTab(string name,string parent)
dListBox(string name,string parent, vector2 pos,vector2 size)
Modifier Functions
dPos(string name, vector2 pos)
dSize(string name, vector2 pos)
dText(string name, string text )
dShow(string name, number show ) -- only works on dPanel
dColor(string name, number r,number g,number b,number a)-- works on dPanel,dButton,dLabel,dCheckBox and dImage
dLength(string name, number length) -- like dSize except only in the X axis, Its for the derma controls that dont have a Y like dTextBoxes and dSliders
dSetImage(string name, string image) -- only works on dImage
dArray(string name, array tbl)-- This is to add contents to a dListBox or a dDropBox. The Array ,must contain only strings.
Get Value Functions
number = dClk(string name of button) -- returns 1 if the button caused the e2 to run
string = dClk() -- if u give it no string then it will return a string of the name of the button of that caused the run, returns "" if a button did not cause the run
number = dNval(string name) -- returns the number value of a derma control, so it would be used to get the value of a slider or checkbox
string = dSval(string name) -- dSval returns the string value of a control, so for text boxes and dropboxes
set Value Functions
dSetNval(string name, number value)
dSetSval(string name, string value)-- can be replaced with dText
dRunOnChange(string name, number bool) --will cause the e2 to run when a control sends a new value so if u have a slider named "slider" and do dRunOnChange("slider",1") then the e2 will run when u change the slider value
Screen Functions
scrH()-- returns the hight of screen in pixels
scrW()
enableMouse(number)-- enables the mouse like when you press C
enableMouseF3(number)-- makes it so if you press F3 the mouse will appear/disappear (recommended over enableMouse(number) because if you don't code in a way to shut it off it will be stuck until you delete the e2)
---Note---
Every thing MUST have a individual name, it is how you refer to it in code. Also all controls MUST have a parent panel to attach to.
---Note---
Modifier functions my not work on all derma, like using dSetImage on a panel will have no affect.
Please tell me if their are any problems and I hope u like ;D
Updates(since the remake)
added s=dClk() , if u give it no value then it will return a string of the button that caused the run
cl_e2derma.lua
e2derma.lua
Where to put?
garrysmod/addons/wire/lua/entities/gmod_wire_expression2/core/custom
Last edited by Snuffy; 11-22-2009 at 05:08 PM.
Mind rape...Don't do it!
---------------Animated Dragon Servers----------------
please come to my friends serversthey are at
AD#1 = 69.243.56.72:27016
AD#2 = 76.122.25.25:27016
its mostly furrys so if u are one then come down, but if u arent then please come too, it sucks being the only non furry in a almost completely furry server.
H-H-H-H-Holy shi-i-i-i-t....
AWESOME
Mind rape...Don't do it!
---------------Animated Dragon Servers----------------
please come to my friends serversthey are at
AD#1 = 69.243.56.72:27016
AD#2 = 76.122.25.25:27016
its mostly furrys so if u are one then come down, but if u arent then please come too, it sucks being the only non furry in a almost completely furry server.
If i understood it right. The buttons dont actually work? Cant you in some way make the button triggering a input?
Get out. Seriously, do it.
Mind rape...Don't do it!
---------------Animated Dragon Servers----------------
please come to my friends serversthey are at
AD#1 = 69.243.56.72:27016
AD#2 = 76.122.25.25:27016
its mostly furrys so if u are one then come down, but if u arent then please come too, it sucks being the only non furry in a almost completely furry server.
I was going to make this but with panel types so you could later change them and add things to them easily... :/
Anticept - HP you are terrible at trolling. Always have been. Leave it up to the pros like Jat.
Black Phoenix - Actually cunt goes into bullshit. Bullshit does not fit in cunt.
Drunkie - Logically, Jat Goodwin must be a fist pumping guido.
Mind rape...Don't do it!
---------------Animated Dragon Servers----------------
please come to my friends serversthey are at
AD#1 = 69.243.56.72:27016
AD#2 = 76.122.25.25:27016
its mostly furrys so if u are one then come down, but if u arent then please come too, it sucks being the only non furry in a almost completely furry server.
-_- panel is a type... Panel - GMod Wiki
frames are panels...
Anticept - HP you are terrible at trolling. Always have been. Leave it up to the pros like Jat.
Black Phoenix - Actually cunt goes into bullshit. Bullshit does not fit in cunt.
Drunkie - Logically, Jat Goodwin must be a fist pumping guido.
Last edited by Snuffy; 07-21-2009 at 06:06 PM.
Mind rape...Don't do it!
---------------Animated Dragon Servers----------------
please come to my friends serversthey are at
AD#1 = 69.243.56.72:27016
AD#2 = 76.122.25.25:27016
its mostly furrys so if u are one then come down, but if u arent then please come too, it sucks being the only non furry in a almost completely furry server.
Bookmarks