Sunday, 6 February 2011

Mudlet GUI: 06-Feb-2011

As Mudlet doesn't support MSP, I've added sound triggers to the MSDP package for my psuedo-ATCP.  It generally works, although as far as I can tell Mudlet doesn't support playing multiple sounds simultaneously.  This means that combat sounds tend to cut off the (longer) weather and terrain sounds.

I've also added the target avatar and associated health bar in the bottom left, although the icons below it still need their text labels.

Finally, I've added energy bars below the miniavatars on the right (below the two maps), and here I've run into a problem - it seems that while hideWindow() hides labels, when used on a gauge it instead displays it as if it were empty:

(click image to enlarge)

Hopefully I'll be able to find a workaround for this - perhaps by shrinking them, or moving them behind something else.

4 comments:

  1. Are you hiding the gauge background as well? Given that the createGauge() functions makes two (possibly 3?) Labels, if you're only hiding one Label, then there will be some leftover.

    If I remember correctly (I haven't looked at the createGauge() stuff closely since I've been using my own), createGauge() appends "_back" to the given Gauge name.

    ...

    A quick trip through GUIUtils.lua confirms this.

    So, in order to remove the Gauge completely, you should use hideWindow("_back") also.

    -- Oneymus

    ReplyDelete
  2. Thanks - Vadi suggested that as well (as I also asked on the forums), so I'll give it a try tonight. I couldn't find anything about it in the manual, so I'm trying to document my stumbling blocks in the hope that it may be useful to anyone else who decides to create something similar.

    ReplyDelete
  3. I'll see about adding a hideGauge function for this.

    ReplyDelete
  4. Thanks Vadi, however hideWindow( win.."_back" ) did the job. Might be worth updating the manual though - I'd never have guessed this on my own.

    ReplyDelete