setBackgroundImage()

Share your scripts and packages with other Mudlet users.
Post Reply
Rurik
Posts: 12
Joined: Thu Dec 16, 2010 8:21 pm

setBackgroundImage()

Post by Rurik »

I can't figure out how to properly use this function. All I want to do is place a 16x16px .png image in the top right corner of my screen (I actually don't care where it goes, so long as it shows up!).

Could someone show me an example of how you'd place a simple image on the screen?

Sheia
Posts: 33
Joined: Tue Dec 01, 2009 4:40 am

Re: setBackgroundImage()

Post by Sheia »

Sure!
Code: [show] | [select all] lua
createLabel("NameofLabel", ScreenWidth-16,0,16,16,1)
setBackgroundImage("NameofLabel", [[locationofimage.png]])
Just need to copy that code into a script.
NameofLabel can be changed to anything you like.
ScreenWidth would need to be set to the width of your display.
locationofimage.png would need to be the full location and name of your image.

I would look at info in the forums on Geyser and Vyzor for other ways to do this.
The Wiki helps a lot too!

Rurik
Posts: 12
Joined: Thu Dec 16, 2010 8:21 pm

Re: setBackgroundImage()

Post by Rurik »

awesome. I figured it out. Thank you.

Post Reply