screen_loc = "1,0, 1:16,1:5"
How does this work? i read the help thing and it said for pixel offsets it uses the colon rather than pixel_x/y but im not sure how to put it in my code... any help? thanks
ID:144367
Dec 30 2006, 1:22 am
|
|
Code:
screen_loc = "1,0, 1:16,1:5"
How does this work? i read the help thing and it said for pixel offsets it uses the colon rather than pixel_x/y but im not sure how to put it in my code... any help? thanks |
In response to Jp
|
|
cheers mate! :D
i also have one small problem i cant seem to find mob mob the icons appear on the hud when i collect the dbs, and they change to the other 7 icons when i have all 7. however when i use the summon_shenron verb they dont disappear... i may have mised something small but i cant seem to find it... thanks |
In response to Ultimate165
|
|
You're subtracting a 'new' object, rather then the one that's currently there.
client.screen -= locate(/obj/HudBlue/db1) in client.screen may work, but I can't remember if client.screen works like a regular list, and I have a suspicion that it may not. If it doesn't work, you'll have to keep a reference to the HUD objects you're putting on their screen, and take them out that way. Alternately, you could clear the entire HUD by setting client.screen to a blank list. That is: client.screen=list() |
In response to Jp
|
|
You could use a for loop for this, because I'm pretty sure it doesn't work like a regular list. Something to the effect of
for(var/obj/dragonball/D in src.client.screen) should work. Note that I didn't use the exact parent type because I forgot it when I was looking at this. -Exophus |
In response to Jp
|
|
Jp wrote:
I can't remember if client.screen works like a regular list, and I have a suspicion that it may not. It does. The only strange ones I can think of are contents and overlays. At the very least, I know you can use locate() to search it (I do all the time). |
That puts something at x 1, y 1, pixel_x 16, pixel_y 16
screen_loc="4:35, 2:12"
That's x 4, y 2, pixel_x 35, pixel_y 12