+ Reply to Thread
Page 36 of 42 FirstFirst ... 263435363738 ... LastLast
Results 351 to 360 of 419
Like Tree11Likes

Thread: [E2] Derma

  1. #351
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,657
    Blog Entries
    1

    Default Re: [E2] Derma

    Quote Originally Posted by blade32232 View Post
    do you need to have this on the server to run it or what cause I put it into garrysmod\garrysmod\addons\wire\lua\entities\gmod_ wire_expression2\core\custom but when I go onto a server it don't work? any help will be appreciated
    Yes, All E2 addons need to be on the server in order to use them.

  2. #352
    Wire Noob blade32232's Avatar
    Join Date
    Feb 2010
    Posts
    3

    Default Re: [E2] Derma

    how will i know if the server has derma

  3. #353
    No u Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    4,582

    Default Re: [E2] Derma

    Quote Originally Posted by blade32232 View Post
    how will i know if the server has derma
    Open the E2Helper and type "d" and see if all the derma functions appear.
    SVN Tutorial
    My SVN:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

  4. #354
    Wire Amateur JulioGee's Avatar
    Join Date
    Sep 2009
    Posts
    63

    Default Re: [E2] Derma

    what the heck is string parent. It seems to not be working. I have been searching my ass off for a answer

    I Found out, nevermind, Copying code that was exactly the same as mine. weird
    Last edited by JulioGee; 03-14-2010 at 03:13 AM.
    this account sucks balls

  5. #355
    Wire Noob 88Phoenix's Avatar
    Join Date
    Oct 2009
    Posts
    11

    Default Re: [E2] Derma

    Not sure if anyone else has encountered this, I'm not sure if it has to do with teams or ULX groups or for whatever reason, but another admin and I on our server were using the enable mouse f3, and every time either one of us used it the other would be forced into the enable mouse. kind of annoying while trying to do stuff and they keep making me use my mouse and drop what I was physgunning. -snip-

    edit: I got the pod working ok, but the enableMouseF3() I still can't figure out if it's me or your addon. Thanks for this addon though, it's awesome =)
    Code:
    @name Derma Test
    @inputs E:entity
    runOnTick(1)
    dPod(E)
    if(changed(E:driver())&E:driver()){
        dPanel("Main",vec2(scrW()/2,scrH()/2),vec2(scrW()/3,scrH()/3))
        dButton("SomeButton","Main",vec2(50,50),vec2(50,20))
        enableMouseF3(1)
    }
    if(dClk("SomeButton")){
        concmd("say Hello!")    
    }
    Last edited by 88Phoenix; 03-16-2010 at 12:25 AM.

  6. #356
    Wire Sofaking feha's Avatar
    Join Date
    Sep 2009
    Location
    Here
    Posts
    1,154

    Default Re: [E2] Derma

    How to deselect whatever is selected in a listbox?
    Why do it get stuck on my screen when I exit pod sometimes?
    Why cant I do dArray("listbox",array())?

    Would be good if there was a concmd for removing any e2 derma that migth be on your screen.

  7. #357
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,657
    Blog Entries
    1

    Default Re: [E2] Derma

    Just use:

    Code:
    enableMouse(owner():keyUse())
    It will only allow you to use the derma panel when you press 'E'.

  8. #358
    Wire Sofaking feha's Avatar
    Join Date
    Sep 2009
    Location
    Here
    Posts
    1,154

    Default Re: [E2] Derma

    I assume that was not directed to me, as my problem had nothign to do with the mouse.

    Altough I wonder, how will that work without makign you exit the pod drunkie (not that I need that code, I use the enableMouseF3())?

  9. #359
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,657
    Blog Entries
    1

    Default Re: [E2] Derma

    Quote Originally Posted by feha View Post
    I assume that was not directed to me, as my problem had nothign to do with the mouse.

    Altough I wonder, how will that work without makign you exit the pod drunkie (not that I need that code, I use the enableMouseF3())?
    It was directed at the post above, 88Phoenix's post. I should have quoted it, my bad.
    He could use keyAttack2() instead, to focus the mouse onto the frame.

  10. #360
    Wire Noob 88Phoenix's Avatar
    Join Date
    Oct 2009
    Posts
    11

    Default Re: [E2] Derma

    Solved my issues, but thanks anyhow Drunkie.

    Feha, deselecting something in a list box, I don't think can be done, unless you did something like if(dClk("listbox")){ if selection is same as what was clicked last time, clear? }
    if(changed(Pod["Active",number])&Pod["Active",number]==0){dShow("Main",0)} or something like this will disable your panel when you get out of the pod. (Note that I'm not ingame when I wrote this, but I'm pretty sure it will work for you in regards to getting out of a pod.)

    also, dArray only works with strings, so I'm assuming you're using an array of players?

    try this,

    Code:
    @name Derma Test
    @inputs E:entity Pod:wirelink
    @persist [Plrs Players]:array Player:string
    if(changed(E)){
        dPod(E)
    }
    if(first()|changed(numPlayers())){
        findByClass("Player")
        dArray("Players",array())
        Players = array()
        Plrs = findToArray()
        for(I=1,Plrs:count()){
            Players[I,string] = Plrs[I,entity]:name()
        }
    }
    if(changed(E:driver())){
        dPanel("Main",vec2(scrW()/3,scrH()/3),vec2(scrW()/2,scrH()/2))
        dShow("Main",0)
        dListBox("Players","Main",vec2(100,40),vec2(200,200))
        dArray("Players",Players)
    }
    if(changed(Pod["Active",number])&Pod["Active",number]==0){
        DShow = 0
    }
    elseif(changed(Pod["Active",number])&Pod["Active",number]){
        DShow = 1
    }
    if(DShow){
        Player = dSval("Players")
        PlayerPos = floor(findPlayerByName(Player):pos())
        dText("PlayerSelect",dSval("Players"))
    }
    if(changed(DShow)){
        dShow("Main",DShow)
        enableMouse(DShow)
    }
    if (Pod["Active",number]==0){DShow=0,dArray("Players",array())}

+ Reply to Thread
Page 36 of 42 FirstFirst ... 263435363738 ... 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