Image in Miniwindow

Posted by WizardsEye on Fri 20 Feb 2009 09:25 AM — 3 posts, 17,970 views.

#0
I wanted to personalize my things a bit by putting an image for each of my characters in the upper right hand screen. Here's what I tried using the Cntr+I

WindowLoadImage win, "im1", "C:\Program Files\MUSHclient\worlds\New Worlds\lykan.bmp"
WindowDrawImage win, "im", 100, 100, 0, 0, 6, 3

When I try to run it. The following error shows up:

Argument not optional: 'WindowDrawImage'

Am I doing something wrong here?
Australia Forum Administrator #1
If you look at the documentation for WindowDrawImage it actually takes 11 arguments. You have supplied 8. Hence the error message.


http://www.gammon.com.au/scripts/doc.php?function=WindowDrawImage

However if all you want to do is display a character image, this isn't the easiest way. Images drawn with WindowDrawImage have to be displayed inside a miniwindow, the code to create which, you haven't shown.

See this:

http://www.gammon.com.au/mushclient/mw_other.htm#SetForegroundImage

With a single line of shorter code, you can display an image in the corner.
#2
GAH I must be an idiot some days. I was looking at the the images and not seeing the code for it. Just one minor thing I had to do was remove the parenthesis. Apparently the system didn't like it. Thank you for your patience.