[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, 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.
[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Back-Background Image

Back-Background Image

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Tseris   (98 posts)  [Biography] bio
Date Mon 27 Dec 2010 11:42 PM (UTC)
Message
Ive seen threads talking about using images/colors/repeated textures not as "background" as in behind the command window text, but behind all miniwindows, but for the life of me I cant find those threads.

My question is, is it possible to use an image behind the miniwindows and have that image change based on what sector type your current room is? So for example you would have a forest image load while in a forest room, and it changes to a city image when moving into a town.

This concept of changing images based on game events is cropping up in alot of ideas Im starting to map out, such as having a miniwindow load the image of the mob you are fighting, with particle effects layered on it when you use spells and special attacks.
[Go to top] top

Posted by Fiendish   USA  (2,533 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Tue 28 Dec 2010 07:11 AM (UTC)
Message
It sounds like maybe you want a combination of SetBackgroundImage and TextRectangle, but I'm not entirely sure based on your description.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Nick Gammon   Australia  (23,042 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Tue 28 Dec 2010 08:29 AM (UTC)
Message
You could also put a miniwindow underneath the text. See:

http://www.gammon.com.au/mushclient/mw_creation.htm

In particular the flag "miniwin.create_underneath".

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Tseris   (98 posts)  [Biography] bio
Date Reply #3 on Tue 28 Dec 2010 09:27 AM (UTC)
Message
I actually found the thread I was looking for, it was here:

http://www.gammon.com.au/forum/bbshowpost.php?action=subscribe&bbsubject_id=10242

and Ive made my first semi successful attempts at working with miniwindows. My question now is, is there any way to call on in-game information to change the image that is displayed? i.e. "if sector type = forest, display forest.bmp". I thought maybe the GetInfo command was what I was looking for, but looking through that list it seems it gathers different info than what I need.
[Go to top] top

Posted by KaVir   Germany  (117 posts)  [Biography] bio
Date Reply #4 on Tue 28 Dec 2010 11:35 AM (UTC)
Message
Tseris said:
My question now is, is there any way to call on in-game information to change the image that is displayed? i.e. "if sector type = forest, display forest.bmp".

There are various ways, such as MXP, MSDP, GMCP, etc - but they need to be supported by the mud. If your mud doesn't support any such protocols, you'll need to try and work out the sector from the room title or description.
[Go to top] top

Posted by Tseris   (98 posts)  [Biography] bio
Date Reply #5 on Tue 28 Dec 2010 06:43 PM (UTC)
Message
Im working with tbaMUD, who incidentally got me connected to your pages KaVir and the work you had done with Godwars 2, which is the whole reason I ended up looking into mushclient. Im pretty sure tbaMUD can use both MXP and MSDP, but ill check into it. I tried looking at your Godwars 2 plugins, but when it came to the MSDP sections I couldnt really make heads or tails out of it.
[Go to top] 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.


19,620 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]