+ Reply to Thread
Page 38 of 53 FirstFirst ... 28363738394048 ... LastLast
Results 371 to 380 of 526

Thread: Advanced HUD Tools

  1. #371
    Wire Sofaking d3cr1pt0r's Avatar
    Join Date
    Jul 2008
    Posts
    553

    Default Re: Advanced HUD Tools

    Can someone make an example code of how to create inputs so it can be used with E2?
    <3

  2. #372
    Master of Mars Magos Mechanicus's Avatar
    Join Date
    May 2008
    Posts
    852

    Default Re: Advanced HUD Tools

    A very basic example here, a speedo designed to show speeds in the kind of range players achieve.
    Code:
    <hml>
        <rect start={30%,5%}; end={(35+25*@Speed/500)%,15%}; color={255,255,255,255}; >    
        </rect>
    </hml>
    I tried getting a text in the rect as well, but for some reason or other it went wrong.
    I can wire anything directly into anything! I'm the Professor!
    -Professor Hubert Farnsworth

  3. #373
    Wire Sofaking d3cr1pt0r's Avatar
    Join Date
    Jul 2008
    Posts
    553

    Default

    Quote Originally Posted by Magos Mechanicus View Post
    A very basic example here, a speedo designed to show speeds in the kind of range players achieve.
    Code:
    <hml>
        <rect start={30%,5%}; end={(35+25*@Speed/500)%,15%}; color={255,255,255,255}; >    
        </rect>
    </hml>
    I tried getting a text in the rect as well, but for some reason or other it went wrong.
    I see. Is there any documentation on the sintax and commands? Because the pdf file in the repository isn't showing much

    Thank you for your help

    Oh Magos.....the text might work like this:

    Code:
    <hml>
        <rect start={30%,5%}; end={(35+25*@Speed/500)%,15%}; color={255,255,255,255}; >
            <text value="Speed...or something"; position={1%,1%}; />
        </rect>
    </hml>
    Can't test though. Must go to school soon
    Last edited by Magos Mechanicus; 11-10-2009 at 05:13 AM. Reason: Double post merge
    <3

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

    Default Re: Advanced HUD Tools

    Make a wiki with all available commands
    <3 wikis.
    SVN Tutorial
    My SVN:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

  5. #375
    Spucatum Tauri Bull's Avatar
    Join Date
    Jun 2008
    Location
    Finland
    Posts
    6,009

    Default Re: Advanced HUD Tools

    Moggie, I've been reading this thread a bit after someone said that it would be a great addition to Wired Worms. And indeed it's very interesting.

    Two questions:
    1: I wonder is there a way to check if a let's say string input actually contains a string?

    To explain as E2 code:
    Code:
    if ( String!="" ) {
        Draw rectangle and the string
    }
    else {
        Draw nothing
    }
    That could easily be achieved by creating inputs for alpha and simply use an E2 comparison to set alpha to 0 when it is an empty string.
    But then the hud2 would need to draw invisible items, that doesn't seem to efficient to me.

    2. Wirelink, I'm not sure if that is possible with hud2 having dynamic inputs?
    My signature has a point.
    Quote Originally Posted by Squeakyneb View Post
    when l3ulletje says do it, do it.
    That

    Quote Originally Posted by Anticept View Post
    By the way, Bull is in charge.

  6. #376
    Bug Buster TomyLobo's Avatar
    Join Date
    Feb 2009
    Posts
    2,796

    Default Re: Advanced HUD Tools

    what do you mean by wirelink?
    of course you can use the e2 wirelink tool on hud2 and then manipulate the inputs from within E2.
    "It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup

    L&#237;fi&#240; l&#230;&#240;ist l&#250;mskt &#225;fram

  7. #377
    Spucatum Tauri Bull's Avatar
    Join Date
    Jun 2008
    Location
    Finland
    Posts
    6,009

    Default Re: Advanced HUD Tools

    Well, my point was that I don't know how wirelink works internally.

    Let's say you start with a hud2 with 2 inputs called A and B and add a wirelink to that. Does the wirelink still work for C and D if you add those inputs later.

    Well, it works for expression2 too, so I think I was just thinking to difficult.
    Never mind about that question then
    My signature has a point.
    Quote Originally Posted by Squeakyneb View Post
    when l3ulletje says do it, do it.
    That

    Quote Originally Posted by Anticept View Post
    By the way, Bull is in charge.

  8. #378
    Master of Mars Magos Mechanicus's Avatar
    Join Date
    May 2008
    Posts
    852

    Default Re: Advanced HUD Tools

    AFAIK, wirelink inputting works out as WireLib.TriggerInput(), which is agnostic about whether or not the input given actually exists on the target entity. If it doesn't the entity simply doesn't respond.

    I've been reading the docs, and it's interesting stuff. I like the hispeed input plans, but I'm wondering how you plan to handle multiple tags that have memory inputs. Does each memory input create a separate address space, or do they come one after the other in the order they appear in the hml, or what?
    I can wire anything directly into anything! I'm the Professor!
    -Professor Hubert Farnsworth

  9. #379
    Wire Amateur Weatherman64's Avatar
    Join Date
    Sep 2009
    Posts
    39

    Default Re: Advanced HUD Tools

    Could someone please give me a working copy of the advanced hud? I have the latest UWSVN and I'm still getting the "default to zero" problem...

  10. #380
    I think I think too much -HP-'s Avatar
    Join Date
    Feb 2009
    Location
    Behind you with a very sharp knife.
    Posts
    2,466

    Default Re: Advanced HUD Tools

    Quote Originally Posted by Weatherman64 View Post
    Could someone please give me a working copy of the advanced hud? I have the latest UWSVN and I'm still getting the "default to zero" problem...
    This svn address: http://svn.dagamers.net/wiremodextras/dev/Adv%20HUD%20v2/

+ Reply to Thread
Page 38 of 53 FirstFirst ... 28363738394048 ... LastLast

LinkBacks (?)

  1. 02-14-2010, 12:00 AM
  2. 01-28-2010, 12:12 PM

Similar Threads

  1. Advanced Colourer (as opposed to LevyBreak's Advanced Colorer) :D
    By andy1976uk in forum Ideas & Suggestions
    Replies: 8
    Last Post: 07-10-2008, 03:16 AM
  2. Some code tools
    By CAANz in forum Off-Topic
    Replies: 0
    Last Post: 04-30-2008, 07:00 AM
  3. Replies: 16
    Last Post: 02-26-2008, 07:29 AM
  4. OMG! what happen to my tools
    By GhostBuster in forum Installation and Malfunctions Support
    Replies: 4
    Last Post: 10-11-2007, 07:31 AM
  5. better tools
    By kilroy in forum Ideas & Suggestions
    Replies: 7
    Last Post: 10-02-2007, 10:08 AM

Tags for this Thread

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