Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ MUSHclient
➜ General
➜ How do you dock the infobar above the command line?
How do you dock the infobar above the command line?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Boxknife
(19 posts) Bio
|
Date
| Thu 04 Dec 2008 02:13 PM (UTC) |
Message
| How do you dock the infobar above the command line?
I can get it to float there, but it covers the text from the MUD. | Top |
|
Posted by
| Worstje
Netherlands (899 posts) Bio
|
Date
| Reply #1 on Thu 04 Dec 2008 02:29 PM (UTC) |
Message
| You cannot place it there to my knowledge.
If you know how to script a little, you can use TextRectangle() to bump the mud-output up a number of pixels so you can hover the Infobar where you want it. Or you can skip the infobar alltogether and just move straight to a miniwindow to draw at the position in question. | Top |
|
Posted by
| WillFa
USA (525 posts) Bio
|
Date
| Reply #2 on Thu 04 Dec 2008 05:34 PM (UTC) |
Message
| |
Posted by
| Boxknife
(19 posts) Bio
|
Date
| Reply #3 on Thu 04 Dec 2008 07:55 PM (UTC) Amended on Thu 04 Dec 2008 08:02 PM (UTC) by Boxknife
|
Message
| I'm looking at the miniwindow tutorials, but I can't figure out where to start. Is that code invoking the miniwindow just a normal Lua script?
I tried running
"win = GetPluginID () -- get a unique name
WindowCreate (win, 0, 0, 200, 200, 12, 0, ColourNameToRGB("white")) -- create window
WindowShow (win, true) -- show it "
In the immediate window, but it says it can't find "WindowCreate" or something. | Top |
|
Posted by
| Worstje
Netherlands (899 posts) Bio
|
Date
| Reply #4 on Thu 04 Dec 2008 08:47 PM (UTC) |
Message
| What version do you have? Miniwindows are a rather recent addition - I'd update to version 4.37 if you haven't. A lot of bugs with them have been fixed in that version.
It may not show on the main download page since Nick is kind of conservative with introducing new features to all users of MUSHclient while there may be bugs remaining. But I have used miniwindows for over 3-4 months now and can pretty much garantuee there is nothing that will make it crash or really bugs it out. There's some minor problems, but they'll get fixed in due time. Look in the Announcements forum for the link. | Top |
|
Posted by
| WillFa
USA (525 posts) Bio
|
Date
| Reply #5 on Thu 04 Dec 2008 11:18 PM (UTC) Amended on Thu 04 Dec 2008 11:19 PM (UTC) by WillFa
|
Message
| Make sure you have Mushclient version 4.37. There's a link to download it in the announcements forum.
You can download a module that will help you do a lot of infobar type stuff from http://www.gammon.com.au/mushclient/plugins/InfoBox.zip
Copy the .lua file into you C:\Program Files\MushClient\Lua directory.
In your script file, put:
require "InfoBox"
myIB = InfoBox:New("info")
myIB:WindowPosition(myIB.windowPositions.S)
Stat = myIB:AddBar()
Stat.barStyle = 0
Stat.caption = "what ever you want goes here."
myIB:Update()
Those last 2 lines can be repeated in your prompt/hpbar trigger to keep it updated.
The InfoBox.lua module takes all the not knowing where to start out of the equation. :) | Top |
|
Posted by
| Boxknife
(19 posts) Bio
|
Date
| Reply #6 on Fri 05 Dec 2008 01:55 AM (UTC) |
Message
| Thanks.
Dang, I thought Mr. Gammon stopped making new versions as soon as he made it freeware. | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #7 on Fri 05 Dec 2008 04:18 AM (UTC) |
Message
| Why would he do that?
In fact the miniwindow stuff is a pretty major enhancement - it makes all sorts of exciting things possible.
For example, see this:
http://www.gammon.com.au/forum/?id=8936
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
26,437 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top