From 9380a280c54977b0796fe3ac1bb8166618ae8394 Mon Sep 17 00:00:00 2001 From: Richard Huang Date: Mon, 13 Jul 2015 14:41:05 +0100 Subject: [PATCH] Change DrawMode::OVERLAY to DrawMode::OVERLAY_2D Change-Id: If79d262a37658ab3de84e98abc399c20e135a391 --- examples/item-view/item-view-example.cpp | 6 +++--- examples/text-label/text-label-example.cpp | 2 +- resources/scripts/animated-colors.json | 2 +- resources/scripts/background-color.json | 2 +- resources/scripts/table-view.json | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/item-view/item-view-example.cpp b/examples/item-view/item-view-example.cpp index f9998834..24b78a4a 100644 --- a/examples/item-view/item-view-example.cpp +++ b/examples/item-view/item-view-example.cpp @@ -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 ) ); diff --git a/examples/text-label/text-label-example.cpp b/examples/text-label/text-label-example.cpp index 9d12f7d9..c7e8555e 100644 --- a/examples/text-label/text-label-example.cpp +++ b/examples/text-label/text-label-example.cpp @@ -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 diff --git a/resources/scripts/animated-colors.json b/resources/scripts/animated-colors.json index e60b7abd..bcb61330 100644 --- a/resources/scripts/animated-colors.json +++ b/resources/scripts/animated-colors.json @@ -18,7 +18,7 @@ "stage": [ { "type": "Control", - "draw-mode": "OVERLAY", + "draw-mode": "OVERLAY_2D", "actors": [ { "type": "Control", diff --git a/resources/scripts/background-color.json b/resources/scripts/background-color.json index 09591799..9895e128 100644 --- a/resources/scripts/background-color.json +++ b/resources/scripts/background-color.json @@ -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", diff --git a/resources/scripts/table-view.json b/resources/scripts/table-view.json index 6934759c..28a370c6 100644 --- a/resources/scripts/table-view.json +++ b/resources/scripts/table-view.json @@ -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, -- 2.34.1