+ Reply to Thread
Page 1 of 42 12311 ... LastLast
Results 1 to 10 of 419
Like Tree11Likes

Thread: [E2] Derma

  1. #1
    Wirererer Snuffy's Avatar
    Join Date
    Jun 2009
    Location
    The Interwebz
    Posts
    144

    Default [E2] Derma

    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

    [E2] Derma-e2_derma.jpg

    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.
    fortifier42 likes this.
    Mind rape...Don't do it!

    ---------------Animated Dragon Servers----------------
    please come to my friends servers they 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.

  2. #2
    Banned Nicolai1's Avatar
    Join Date
    Nov 2008
    Location
    Denmark.
    Posts
    1,251

    Default Re: [E2] Derma

    H-H-H-H-Holy shi-i-i-i-t....
    AWESOME

  3. #3
    Wirererer Snuffy's Avatar
    Join Date
    Jun 2009
    Location
    The Interwebz
    Posts
    144

    Default Re: [E2] Derma

    Quote Originally Posted by Nicolai1 View Post
    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 servers they 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.

  4. #4
    Wiremod Helper Donkie's Avatar
    Join Date
    May 2008
    Location
    Sweden
    Posts
    1,660

    Default Re: [E2] Derma

    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.

  5. #5
    Wirererer Snuffy's Avatar
    Join Date
    Jun 2009
    Location
    The Interwebz
    Posts
    144

    Default Re: [E2] Derma

    Quote Originally Posted by donkan View Post
    If i understood it right. The buttons dont actually work? Cant you in some way make the button triggering a input?
    the buttons work :P they trigger an execution of the e2.
    you use buttonClk(string name) to tell if the button caused that execution
    Mind rape...Don't do it!

    ---------------Animated Dragon Servers----------------
    please come to my friends servers they 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.

  6. #6
    ◕␣◕ McLovin's Avatar
    Join Date
    Sep 2008
    Location
    Batman, Turkey
    Posts
    2,339
    Blog Entries
    3

    Default Re: [E2] Derma

    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.

  7. #7
    Wirererer Snuffy's Avatar
    Join Date
    Jun 2009
    Location
    The Interwebz
    Posts
    144

    Default Re: [E2] Derma

    Quote Originally Posted by IamMcLovin View Post
    I was going to make this but with panel types so you could later change them and add things to them easily... :/
    how are panels better than frames? I can change them and add stuff to them with no problem.
    Mind rape...Don't do it!

    ---------------Animated Dragon Servers----------------
    please come to my friends servers they 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.

  8. #8
    ◕␣◕ McLovin's Avatar
    Join Date
    Sep 2008
    Location
    Batman, Turkey
    Posts
    2,339
    Blog Entries
    3

    Default Re: [E2] Derma

    Quote Originally Posted by Snuffy View Post
    how are panels better than frames? I can change them and add stuff to them with no problem.
    -_- 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.

  9. #9
    goluch
    Guest goluch's Avatar

    Default Re: [E2] Derma

    Brilliant Idea.

  10. #10
    Wirererer Snuffy's Avatar
    Join Date
    Jun 2009
    Location
    The Interwebz
    Posts
    144

    Default Re: [E2] Derma

    Quote Originally Posted by IamMcLovin View Post
    -_- panel is a type... Panel - GMod Wiki

    frames are panels...
    u can use vgui.Create( "DPanel" ) and vgui.Create("DFrame") , i didnt know if they wear the same thing or not

    --edit--
    i tested and them seem to do the same thing but "DFrame" is a little bit easyer to work with
    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 servers they 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.

+ Reply to Thread
Page 1 of 42 12311 ... LastLast

LinkBacks (?)

  1. 06-16-2010, 01:26 PM
  2. 06-15-2010, 09:15 AM
  3. 02-24-2010, 02:02 PM
  4. 02-23-2010, 08:37 AM
  5. 02-18-2010, 06:53 AM
  6. 02-17-2010, 07:21 AM
  7. 02-15-2010, 11:20 PM
  8. 02-14-2010, 04:52 PM
  9. 02-11-2010, 05:18 AM
  10. 02-09-2010, 12:44 AM
  11. 01-27-2010, 07:07 AM

Similar Threads

  1. Q Menu Derma is different
    By adadr in forum Wiremod General Chat
    Replies: 3
    Last Post: 06-24-2009, 08:53 PM
  2. Seting a local variable with derma ?help?
    By Jarviar in forum Off-Topic
    Replies: 1
    Last Post: 10-24-2008, 05:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots