- label.SetAnchorPoint( ParentOrigin::TOP_LEFT );
- label.SetAnchorPoint( AnchorPoint::TOP_LEFT );
- label.SetProperty( TextLabel::Property::TEXT_COLOR, Color::BLACK );
- label.SetProperty( TextLabel::Property::POINT_SIZE, 12.0f );
- label.SetProperty( TextLabel::Property::SHADOW_COLOR, Color::YELLOW );
- label.SetProperty( TextLabel::Property::ENABLE_MARKUP, true );
-
- Vector2 stageSize = Stage::GetCurrent().GetSize();
- label.SetPosition( Vector3( Random::Range( 0.0f, stageSize.x ), Random::Range( 0.0f, stageSize.y ), 0.0f) );
-
- switch ( type )
+ label.SetProperty(Actor::Property::ANCHOR_POINT, ParentOrigin::TOP_LEFT);
+ label.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);
+ label.SetProperty(TextLabel::Property::TEXT_COLOR, Color::BLACK);
+ label.SetProperty(TextLabel::Property::POINT_SIZE, 12.0f);
+ Property::Map shadowMap;
+ shadowMap.Insert("color", Color::YELLOW);
+ label.SetProperty(TextLabel::Property::SHADOW, shadowMap);
+ label.SetProperty(TextLabel::Property::ENABLE_MARKUP, true);
+
+ Vector2 windowSize = mApplication.GetWindow().GetSize();
+ label.SetProperty(Actor::Property::POSITION, Vector3(Random::Range(0.0f, windowSize.x), Random::Range(0.0f, windowSize.y), 0.0f));
+
+ switch(type)