ID:155090
 
Is it possible to display a 32x64 player on a grid? I'm not talking about using "\icon[src]"(which I used to do on an output but changed it since it had no overlay support) but I'd like it to actually show the player along with his overlays.

I tried
usr<<output(usr,"Creation.Character")


and it sorta did what I wanted. It displayed the player with his overlays but it scaled it to 32x32..

I also tried changing the style of the grid to:
IMG.icon {width: 32px; height: 64px}

yet no difference? any ideas?
anyone know if this is possible?
I've tried to do this to no avail. Use a map element instead.
In response to AbdelJN
Nah it's not. Grids use the world's icon_size. It's not editable.
In response to Kyle_ZX
Yeah use a grid. And put this in the style part of it
BIG IMG.icon {width: 32px; height: 64px}

"<BIG><IMG CLASS=icon SRC=\ref[mob.icon] ICONSTATE='[mob.icon_state]'></BIG>"
In response to Duelmaster409
Duelmaster409 wrote:
I've tried to do this to no avail. Use a map element instead.

But if I use a map element, won't all players appear there while creating their characters overlaying each other? Do you a know of a way so that players can only see their own character? Also, I'm not too familiar with setting players on another map element. Can you explain how to do it?

Johan411 wrote:
Yeah use a grid. And put this in the style part of it
BIG IMG.icon {width: 32px; height: 64px}

> "<BIG><IMG CLASS=icon SRC=\ref[mob.icon] ICONSTATE='[mob.icon_state]'></BIG>"
>


Thanks, but no same effect-_-

Kyle_ZX wrote:
Nah it's not. Grids use the world's icon_size. It's not editable.

Ohh alright, that's unfortunate..
In response to AbdelJN
Do some research into client.screen, it does what you need.
In response to Robertbanks2
Robertbanks2 wrote:
Do some research into client.screen, it does what you need.

Yeah I know but for some reason it isn't showing up.

            var/A='Base.dmi'
src.icon=A
src.Base=A
var/obj/O=new/obj/HUD/Character(src.client)
/O.icon=usr.icon
O.overlays+=usr.overlays


obj
HUD
layer=100
Character
New(client/C)//When created
screen_loc = "Character:1,1"
C.screen+=src


That's what I'm currently using and it wont show up. I'm using a pane on the character creation interface that brings up the 'Character' map.
In response to AbdelJN
You're adding the object to client.screen BEFORE giving it an icon. Don't add it in New(), add it after you've adjusted its appearance.
In response to Robertbanks2
Robertbanks2 wrote:
You're adding the object to client.screen BEFORE giving it an icon. Don't add it in New(), add it after you've adjusted its appearance.

Tried, same result. Even before, I had a preset icon for the HUD and nothing would show up.
In response to Robertbanks2
Nevermind, my mistake. I found out that the name of the window and control were different. After changing it everything started working fine. Thanks :)
In response to AbdelJN
AbdelJN wrote:
Duelmaster409 wrote:
I've tried to do this to no avail. Use a map element instead.

But if I use a map element, won't all players appear there while creating their characters overlaying each other? Do you a know of a way so that players can only see their own character? Also, I'm not too familiar with setting players on another map element. Can you explain how to do it?

uhhhhhh

http://www.byond.com/members/ DreamMakers?command=view_post&post=75908
In response to Duelmaster409
Duelmaster409 wrote:
AbdelJN wrote:
Duelmaster409 wrote:
I've tried to do this to no avail. Use a map element instead.

But if I use a map element, won't all players appear there while creating their characters overlaying each other? Do you a know of a way so that players can only see their own character? Also, I'm not too familiar with setting players on another map element. Can you explain how to do it?

uhhhhhh

http://www.byond.com/members/ DreamMakers?command=view_post&post=75908

Yeah I know, I've used it before but I forgot about it. I got it completely work now though, thanks!