ID:169575
May 31 2005, 3:44 am
|
|
I wanted to add an image to the client's screen by using client.screen+, it's screen_loc is "5,5". The icon is about 100x100 pixel, but when i play the game it is only as big as a dmi. I tried "5,5 to 10,10" but this creates only 100 times the same icon. How to make it bigger?
|
In response to DarkView
|
|
Thanks. That's atleast better than cutting all the pics into 32x32 parts ^^
i did it :) i made it with a difficult proc, which i could make to a lib, to save other ppl the work |
In response to CIB
|
|
_> mob/verb/client_screen_thing(i as icon) |
In response to Hell Ramen
|
|
o.O ok lol this proc is better than mine
|
You'll just need to place x by x icons on the map (or in this case client screen) and set their icon_states manually.
The .png is cut up like it would be if you imported it as an icon. So it splits it into 32x32 pixel sections. I'm pretty sure the bottom left section would be icon_state "0,0".
So icon = 'image.png' icon_state = "0,0" would show the bottom left 32x32 pixels of the image.png file. If you leave it null it shows the entire image compressed into 32x32 pixels.