Back-Background Image

Posted by Tseris on Mon 27 Dec 2010 11:42 PM — 6 posts, 27,862 views.

#0
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.
USA Global Moderator #1
It sounds like maybe you want a combination of SetBackgroundImage and TextRectangle, but I'm not entirely sure based on your description.
Australia Forum Administrator #2
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".
#3
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.
Germany #4
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.
#5
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.