- CreateContainer ( mContainerInfo , mLayoutSize );
- CreateContainer ( mContainer2Info , mLayoutSize );
- CreateContainer ( mContainer3Info , mLayoutSize );
- mContainerInfo.SetParentOrigin( ParentOrigin::TOP_RIGHT );
- mContainer2Info.SetParentOrigin( ParentOrigin::TOP_RIGHT );
- mContainer3Info.SetParentOrigin( ParentOrigin::TOP_RIGHT );
- mContainer.Add( mContainerInfo );
- mContainer2.Add( mContainer2Info );
- mContainer3.Add( mContainer3Info );
- CreateTextLabel ( mLabelInfo, "system free", Color::BLACK, true );
- CreateTextLabel ( mLabel2Info, "json fixed", Color::BLACK, true );
- CreateTextLabel ( mLabel3Info, "SetProp fixed", Color::BLACK, true );
- mContainerInfo.Add( mLabelInfo );
- mContainer2Info.Add( mLabel2Info );
- mContainer3Info.Add( mLabel3Info );
-
- stage.Add( mContainer );
- stage.Add( mContainer2 );
- stage.Add( mContainer3 );
-
- CreateTextLabel ( mLabel, LABEL_TEXT, Color::WHITE );
-
- CreateTextLabel ( mLabel2, LABEL_TEXT, Color::WHITE );
- mLabel2.SetStyleName("textlabel-Rosemary");
-
- CreateTextLabel ( mLabel3, LABEL_TEXT, Color::WHITE );
- mLabel3.SetProperty( TextLabel::Property::FONT_FAMILY, "SamsungOneUI" );
-
- mContainer.SetPosition( 0, 0 );
- mContainer2.SetPosition( 0, stageSize.height*0.25f );
- mContainer3.SetPosition( 0, stageSize.height*0.25f*2 );
-
- mContainer.Add( mLabel );
- mContainer2.Add( mLabel2 );
- mContainer3.Add( mLabel3 );
+ CreateContainer(mContainerInfo, mLayoutSize);
+ CreateContainer(mContainer2Info, mLayoutSize);
+ CreateContainer(mContainer3Info, mLayoutSize);
+ mContainerInfo.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_RIGHT);
+ mContainer2Info.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_RIGHT);
+ mContainer3Info.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_RIGHT);
+ mContainer.Add(mContainerInfo);
+ mContainer2.Add(mContainer2Info);
+ mContainer3.Add(mContainer3Info);
+ CreateTextLabel(mLabelInfo, "system free", Color::BLACK, true);
+ CreateTextLabel(mLabel2Info, "json fixed", Color::BLACK, true);
+ CreateTextLabel(mLabel3Info, "SetProp fixed", Color::BLACK, true);
+ mContainerInfo.Add(mLabelInfo);
+ mContainer2Info.Add(mLabel2Info);
+ mContainer3Info.Add(mLabel3Info);
+
+ window.Add(mContainer);
+ window.Add(mContainer2);
+ window.Add(mContainer3);
+
+ CreateTextLabel(mLabel, LABEL_TEXT, Color::WHITE);
+
+ CreateTextLabel(mLabel2, LABEL_TEXT, Color::WHITE);
+ mLabel2.SetStyleName("TextLabelRosemary");
+
+ CreateTextLabel(mLabel3, LABEL_TEXT, Color::WHITE);
+ mLabel3.SetProperty(TextLabel::Property::FONT_FAMILY, "SamsungOneUI");
+
+ mContainer.SetProperty(Actor::Property::POSITION, Vector2(0, 0));
+ mContainer2.SetProperty(Actor::Property::POSITION, Vector2(0, windowSize.height * 0.25f));
+ mContainer3.SetProperty(Actor::Property::POSITION, Vector2(0, windowSize.height * 0.25f * 2));
+
+ mContainer.Add(mLabel);
+ mContainer2.Add(mLabel2);
+ mContainer3.Add(mLabel3);