Change DrawMode::OVERLAY to DrawMode::OVERLAY_2D 52/43752/1
authorRichard Huang <r.huang@samsung.com>
Mon, 13 Jul 2015 13:41:05 +0000 (14:41 +0100)
committerRichard Huang <r.huang@samsung.com>
Mon, 13 Jul 2015 13:41:05 +0000 (14:41 +0100)
Change-Id: If79d262a37658ab3de84e98abc399c20e135a391

examples/item-view/item-view-example.cpp
examples/text-label/text-label-example.cpp
resources/scripts/animated-colors.json
resources/scripts/background-color.json
resources/scripts/table-view.json

index f999883..24b78a4 100644 (file)
@@ -250,7 +250,7 @@ public:
     mDeleteButton.SetParentOrigin(ParentOrigin::BOTTOM_RIGHT);
     mDeleteButton.SetAnchorPoint(AnchorPoint::BOTTOM_RIGHT);
     mDeleteButton.SetPosition( BUTTON_BORDER, BUTTON_BORDER );
-    mDeleteButton.SetDrawMode( DrawMode::OVERLAY );
+    mDeleteButton.SetDrawMode( DrawMode::OVERLAY_2D );
     mDeleteButton.SetButtonImage( ResourceImage::New( DELETE_IMAGE ) );
     mDeleteButton.SetSelectedImage( ResourceImage::New( DELETE_IMAGE_SELECTED ) );
     mDeleteButton.SetBackgroundImage( ResourceImage::New( TOOLBAR_IMAGE ) );
@@ -265,7 +265,7 @@ public:
     mInsertButton.SetParentOrigin(ParentOrigin::BOTTOM_RIGHT);
     mInsertButton.SetAnchorPoint(AnchorPoint::BOTTOM_RIGHT);
     mInsertButton.SetPosition( BUTTON_BORDER, BUTTON_BORDER );
-    mInsertButton.SetDrawMode( DrawMode::OVERLAY );
+    mInsertButton.SetDrawMode( DrawMode::OVERLAY_2D );
     mInsertButton.SetButtonImage( ResourceImage::New( INSERT_IMAGE ) );
     mInsertButton.SetSelectedImage( ResourceImage::New( INSERT_IMAGE_SELECTED ) );
     mInsertButton.SetBackgroundImage( ResourceImage::New( TOOLBAR_IMAGE ) );
@@ -280,7 +280,7 @@ public:
     mReplaceButton.SetParentOrigin(ParentOrigin::BOTTOM_RIGHT);
     mReplaceButton.SetAnchorPoint(AnchorPoint::BOTTOM_RIGHT);
     mReplaceButton.SetPosition( BUTTON_BORDER, BUTTON_BORDER );
-    mReplaceButton.SetDrawMode( DrawMode::OVERLAY );
+    mReplaceButton.SetDrawMode( DrawMode::OVERLAY_2D );
     mReplaceButton.SetButtonImage( ResourceImage::New( REPLACE_IMAGE ) );
     mReplaceButton.SetSelectedImage( ResourceImage::New( REPLACE_IMAGE_SELECTED ) );
     mReplaceButton.SetBackgroundImage( ResourceImage::New( TOOLBAR_IMAGE ) );
index 9d12f7d..c7e8555 100644 (file)
@@ -107,7 +107,7 @@ public:
     mContainer.SetParentOrigin( ParentOrigin::CENTER );
     mLayoutSize = Vector2(stageSize.width*0.6f, stageSize.width*0.6f);
     mContainer.SetSize( mLayoutSize );
-    mContainer.SetDrawMode( DrawMode::OVERLAY );
+    mContainer.SetDrawMode( DrawMode::OVERLAY_2D );
     stage.Add( mContainer );
 
     // Resize the center layout when the corner is grabbed
index e60b7ab..bcb6133 100644 (file)
@@ -18,7 +18,7 @@
   "stage": [
     {
       "type": "Control",
-      "draw-mode": "OVERLAY",
+      "draw-mode": "OVERLAY_2D",
       "actors": [
         {
           "type": "Control",
index 0959179..9895e12 100644 (file)
@@ -19,7 +19,7 @@
     // A TextLabel with a red background
     {
       "type": "TextLabel",
-      "draw-mode": "OVERLAY",
+      "draw-mode": "OVERLAY_2D",
       "text": "Hello World",
       "parent-origin": "TOP_CENTER",
       "anchor-point": "TOP_CENTER",
index 6934759..28a370c 100644 (file)
@@ -44,7 +44,7 @@
       "type":"TableView",
       "background-color": [0.5,0.5,0,1],
       "parent-origin": "CENTER",
-      "draw-mode": "OVERLAY",
+      "draw-mode": "OVERLAY_2D",
       "size":[400,400,1],
       "rows": 4,
       "columns": 4,