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 ) );
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 ) );
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 ) );
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
// 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",
"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,