[kepler-users] Personal actor's icon...
Quentin BEY
quentin.bey at onera.fr
Tue Aug 19 05:21:51 PDT 2008
Hi all,
I'm facing a problem I can't solve. For all actors I create, I can't
change the default icon they have (the green rectangular icon). I
inserted the lines:
//----------------------------------------------------------
// Icon is a stop sign.
_attachText("_iconDescription", "<svg>\n"
+ "<polygon points=\"-8,-19 8,-19 19,-8 19,8 8,19 "
+ "-8,19 -19,8 -19,-8\" "
+ "style=\"fill:red\"/>\n"
+ "<text x=\"-15\" y=\"4\""
+ "style=\"font-size:11; fill:white;
font-family:SansSerif\">"
+ "STOP</text>\n"
+ "</svg>\n");
//------------------------------------------------------------
as told in the tutorial concerning the creation of a Stop actor, but
when I instantiate it with the Tools-Instantiate Component menu I only
got the green rectangle. The actor works properly.
I also tried copying the code of an existing actor and compile then
instantiate, it's the same.
Has anybody an idea?
Thanks in advance.
Quentin BEY -ONERA- France
More information about the Kepler-users
mailing list