obj/Book/icon='Book.dmi'
mob/verb/Test()
var/obj/Book/B=new
winset(src,"Main Grid.Selected","image=[B.icon]")
Main Grid.Selected is a Label. I want Selected to show B's Icon.
How do I do that properly? This doesn't work
ID:158189
Oct 14 2009, 2:50 am (Edited on Oct 14 2009, 5:43 am)
|
|
I'm not sure how to do this. Here is what I have so far:
obj/Book/icon='Book.dmi' Main Grid.Selected is a Label. I want Selected to show B's Icon. How do I do that properly? This doesn't work |
Oct 14 2009, 5:47 am
|
|
Using spaces in the control's name messes it up. Use _ instead, or enclose the control name in single quotes.
|
In response to Jeff8500
|
|
Jeff8500 wrote:
Using spaces in the control's name messes it up. Use _ instead, or enclose the control name in single quotes. Seems like they would want to fix or disable that. Anyway I have another problem. mob/P=src mob/P=src Help please? The label won't show the icon if I color it. |
In response to Dragonn
|
|
Dragonn wrote:
Seems like they would want to fix or disable that. There's nothing to fix there, that's just how it is, it's not a bug or problem. If any value you use in that kind of place contains any complex characters (non-alphanumeric), then you need to enclose it in quotes for it to be correctly interpreted. Anyway I have another problem. [link], see the last block of text. |