My first attempt
obj/screen
Test
icon = '000.png'
screen_loc = "1,10"
New(client/C)
C.screen += src
client/New()
..()
new/obj/screen/Test(src)
This created a small image in the corner of the screen, rather than a 64x64 image.
Second attempt:
obj/screen
Test
icon = '000.png'
screen_loc = "1,10 to 2,9" //tried to make it show in 4 tiles
New(client/C)
C.screen += src
Click()
var/SX = rand(1,10)
var/SY = rand(1,10)
screen_loc = "[SX],[SY]"
client/New()
..()
new/obj/screen/Test(src)
This created 4 very small icons in the corner of the screen, side by side (2 rows & 2 columns)
Am I missing somthing in the code? Or is there a different way of doing this, without cutting the image into a bunch of small parts and calling each piece individually?
Also: Is there a tutorial on using screen objects? (One more in depth than "Nadrew's How-To's: Screen Objects and Code Tree Reorganization" )
Thanks in advanced for any help
Oh and Merry Christmas to all!
Your problem is the fact that you're trying to create large objects straight from an icon. You just can't do that at runtime for now, though it's possible it may happen in a distant update.