Posts ID:143539 Favorites Creations
ID:143539

Code:
 world mob = /mob/testmob test icon='test.dmi' icon_state="testing" Login() testproc() proc testproc() var/i=1 winset(src,"Vitals",{"current-cell="1,[i++]""}) src<","Vitals") 

Problem description: Image does not show in Grid. I am trying to get an image to show up on a grid, any suggestions?

 #1 Aug 14 2007, 8:26 pm Try \ref[src.icon] instead of [src.icon]. Lummox JR
 #2 Aug 14 2007, 10:11 pm In response to Lummox JR (#1) That didn't seem to work, either.
 #3 Aug 25 2007, 7:36 am In response to SpikeNeedle (#2) Having the same problem here. While trying to recreate a stat pannel in grid form I can't seem to place any type of icon inside which is weird because I have a fully functional inventory that works on the same principal. src<[src.icon]","stat") It just doesn't show up.
 #4 Aug 25 2007, 8:36 am In response to Body (#3) Body wrote: Having the same problem here. While trying to recreate a stat pannel in grid form I can't seem to place any type of icon inside which is weird because I have a fully functional inventory that works on the same principal. src<[src.icon]","stat") It just doesn't show up. That's because you need to be using the \icon text macro. Lummox JR
 #5 Aug 25 2007, 1:07 pm (Edited on Aug 25 2007, 2:46 pm) In response to Lummox JR (#4) Great, it works! Now on to my next problem. How do I size the icon to the correct proportions? I appreciate your help! Edit: I should probably mention that the script in the ref () doesn't seem to have an effect when I put it to use in the grid. I even tried putting it in the CSS box in the interface designer fo the particular gird I need it for, but nothing.
 #6 Aug 25 2007, 4:19 pm (Edited on Aug 25 2007, 7:03 pm) In response to Body (#5) Body wrote: Great, it works! Now on to my next problem. How do I size the icon to the correct proportions? I appreciate your help! Edit: I should probably mention that the script in the ref () doesn't seem to have an effect when I put it to use in the grid. I even tried putting it in the CSS box in the interface designer fo the particular gird I need it for, but nothing. The style should be applying okay in the grid's CSS box, but it definitely won't use the style from your .dms file. I'll test this and see if it works okay for me.  Yes, everything definitely works okay at my end. I'd double-check that the style you wanted got added okay to the grid. Lummox JR
 #7 Aug 25 2007, 7:15 pm In response to Lummox JR (#6) Lummox JR wrote: Body wrote: Great, it works! Now on to my next problem. How do I size the icon to the correct proportions? I appreciate your help! Edit: I should probably mention that the script in the ref () doesn't seem to have an effect when I put it to use in the grid. I even tried putting it in the CSS box in the interface designer fo the particular gird I need it for, but nothing. The style should be applying okay in the grid's CSS box, but it definitely won't use the style from your .dms file. I'll test this and see if it works okay for me.  Yes, everything definitely works okay at my end. I'd double-check that the style you wanted got added okay to the grid. Lummox JR You're right, it does work. My mistake was that I put the tags inside the box along with the script. Sorry to put you through the trouble, but thanks for your help!