|
|
|
|
@@ -280,13 +280,13 @@ GuiRootInstance::GuiRootInstance() : _message(""), _messageTime(0)
|
|
|
|
|
button->setButtonListener(menuListener);
|
|
|
|
|
|
|
|
|
|
ImageButtonInstance* instance = new ToggleImageButtonInstance(
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/Run.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/Run_ovr.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/Run_dn.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/Run.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/Run_ovr.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/Run_dn.png")),
|
|
|
|
|
NULL,
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/Stop.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/Stop_ovr.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/Stop_dn.png"))
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/Stop.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/Stop_ovr.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/Stop_dn.png"))
|
|
|
|
|
);
|
|
|
|
|
instance->setButtonListener(menuListener);
|
|
|
|
|
instance->name = "go";
|
|
|
|
|
@@ -296,17 +296,17 @@ GuiRootInstance::GuiRootInstance() : _message(""), _messageTime(0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
instance = makeImageButton(
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/ArrowTool.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/ArrowTool_ovr.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/ArrowTool_dn.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/ArrowTool_ds.png")));
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/ArrowTool.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/ArrowTool_ovr.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/ArrowTool_dn.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/ArrowTool_ds.png")));
|
|
|
|
|
instance->size = Vector2(50,50);
|
|
|
|
|
instance->position = Vector2(15, 90);
|
|
|
|
|
instance->setParent(this);
|
|
|
|
|
instance->name = "Cursor";
|
|
|
|
|
instance->setButtonListener(msl);
|
|
|
|
|
|
|
|
|
|
instance = makeImageButton(Texture::fromFile(GetFileInPath("/content/images/ScaleTool.png")),Texture::fromFile(GetFileInPath("/content/images/ScaleTool_ovr.png")),Texture::fromFile(GetFileInPath("/content/images/ScaleTool_dn.png")),Texture::fromFile(GetFileInPath("/content/images/ScaleTool_ds.png")));
|
|
|
|
|
instance = makeImageButton(Texture::fromFile(&GetFileInPath("/content/images/ScaleTool.png")),Texture::fromFile(&GetFileInPath("/content/images/ScaleTool_ovr.png")),Texture::fromFile(&GetFileInPath("/content/images/ScaleTool_dn.png")),Texture::fromFile(&GetFileInPath("/content/images/ScaleTool_ds.png")));
|
|
|
|
|
instance->size = Vector2(40,40);
|
|
|
|
|
instance->position = Vector2(0, 140);
|
|
|
|
|
instance->setParent(this);
|
|
|
|
|
@@ -315,10 +315,10 @@ GuiRootInstance::GuiRootInstance() : _message(""), _messageTime(0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
instance = makeImageButton(
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/MoveTool.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/MoveTool_ovr.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/MoveTool_dn.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/MoveTool_ds.png")));
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/MoveTool.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/MoveTool_ovr.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/MoveTool_dn.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/MoveTool_ds.png")));
|
|
|
|
|
instance->size = Vector2(40,40);
|
|
|
|
|
instance->position = Vector2(40, 140);
|
|
|
|
|
instance->setParent(this);
|
|
|
|
|
@@ -326,10 +326,10 @@ GuiRootInstance::GuiRootInstance() : _message(""), _messageTime(0)
|
|
|
|
|
instance->setButtonListener(msl);
|
|
|
|
|
|
|
|
|
|
instance = makeImageButton(
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/SelectionRotate.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/SelectionRotate_ovr.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/SelectionRotate.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/SelectionRotate_ovr.png")),
|
|
|
|
|
NULL,
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/SelectionRotate_ds.png")));
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/SelectionRotate_ds.png")));
|
|
|
|
|
instance->size = Vector2(30,30);
|
|
|
|
|
instance->position = Vector2(10, 175);
|
|
|
|
|
instance->setParent(this);
|
|
|
|
|
@@ -337,10 +337,10 @@ GuiRootInstance::GuiRootInstance() : _message(""), _messageTime(0)
|
|
|
|
|
instance->setButtonListener(rbl);
|
|
|
|
|
|
|
|
|
|
instance = makeImageButton(
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/SelectionTilt.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/SelectionTilt_ovr.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/SelectionTilt.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/SelectionTilt_ovr.png")),
|
|
|
|
|
NULL,
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/SelectionTilt_ds.png")));
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/SelectionTilt_ds.png")));
|
|
|
|
|
instance->size = Vector2(30,30);
|
|
|
|
|
instance->position = Vector2(40, 175);
|
|
|
|
|
instance->setParent(this);
|
|
|
|
|
@@ -349,10 +349,10 @@ GuiRootInstance::GuiRootInstance() : _message(""), _messageTime(0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
instance = makeImageButton(
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/Delete.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/Delete_ovr.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/Delete_dn.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/Delete_ds.png")));
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/Delete.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/Delete_ovr.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/Delete_dn.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/Delete_ds.png")));
|
|
|
|
|
instance->size = Vector2(40,46);
|
|
|
|
|
instance->position = Vector2(20, 284);
|
|
|
|
|
instance->setParent(this);
|
|
|
|
|
@@ -360,9 +360,9 @@ GuiRootInstance::GuiRootInstance() : _message(""), _messageTime(0)
|
|
|
|
|
instance->setButtonListener(delet);
|
|
|
|
|
|
|
|
|
|
instance = makeImageButton(
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraZoomIn.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraZoomIn_ovr.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraZoomIn_dn.png")));
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraZoomIn.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraZoomIn_ovr.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraZoomIn_dn.png")));
|
|
|
|
|
instance->size = Vector2(34,25);
|
|
|
|
|
instance->floatBottom = true;
|
|
|
|
|
instance->floatRight = true;
|
|
|
|
|
@@ -372,9 +372,9 @@ GuiRootInstance::GuiRootInstance() : _message(""), _messageTime(0)
|
|
|
|
|
instance->setButtonListener(cam);
|
|
|
|
|
|
|
|
|
|
instance = makeImageButton(
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraZoomOut.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraZoomOut_ovr.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraZoomOut_dn.png")));
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraZoomOut.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraZoomOut_ovr.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraZoomOut_dn.png")));
|
|
|
|
|
instance->size = Vector2(34,26);
|
|
|
|
|
instance->floatBottom = true;
|
|
|
|
|
instance->floatRight = true;
|
|
|
|
|
@@ -384,9 +384,9 @@ GuiRootInstance::GuiRootInstance() : _message(""), _messageTime(0)
|
|
|
|
|
instance->setButtonListener(cam);
|
|
|
|
|
|
|
|
|
|
instance = makeImageButton(
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraPanLeft.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraPanLeft_ovr.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraPanLeft_dn.png")));
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraPanLeft.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraPanLeft_ovr.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraPanLeft_dn.png")));
|
|
|
|
|
instance->size = Vector2(34,34);
|
|
|
|
|
instance->floatBottom = true;
|
|
|
|
|
instance->floatRight = true;
|
|
|
|
|
@@ -396,9 +396,9 @@ GuiRootInstance::GuiRootInstance() : _message(""), _messageTime(0)
|
|
|
|
|
instance->setButtonListener(cam);
|
|
|
|
|
|
|
|
|
|
instance = makeImageButton(
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraPanRight.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraPanRight_ovr.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraPanRight_dn.png")));
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraPanRight.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraPanRight_ovr.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraPanRight_dn.png")));
|
|
|
|
|
instance->size = Vector2(34,34);
|
|
|
|
|
instance->floatBottom = true;
|
|
|
|
|
instance->floatRight = true;
|
|
|
|
|
@@ -408,9 +408,9 @@ GuiRootInstance::GuiRootInstance() : _message(""), _messageTime(0)
|
|
|
|
|
instance->setButtonListener(cam);
|
|
|
|
|
|
|
|
|
|
instance = makeImageButton(
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraCenter.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraCenter_ovr.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraCenter_dn.png")));
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraCenter.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraCenter_ovr.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraCenter_dn.png")));
|
|
|
|
|
instance->size = Vector2(34,20);
|
|
|
|
|
instance->floatBottom = true;
|
|
|
|
|
instance->floatRight = true;
|
|
|
|
|
@@ -420,9 +420,9 @@ GuiRootInstance::GuiRootInstance() : _message(""), _messageTime(0)
|
|
|
|
|
instance->setButtonListener(cam);
|
|
|
|
|
|
|
|
|
|
instance = makeImageButton(
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraTiltUp.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraTiltUp_ovr.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraTiltUp_dn.png")));
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraTiltUp.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraTiltUp_ovr.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraTiltUp_dn.png")));
|
|
|
|
|
instance->size = Vector2(24,24);
|
|
|
|
|
instance->floatBottom = true;
|
|
|
|
|
instance->floatRight = true;
|
|
|
|
|
@@ -432,9 +432,9 @@ GuiRootInstance::GuiRootInstance() : _message(""), _messageTime(0)
|
|
|
|
|
instance->setButtonListener(cam);
|
|
|
|
|
|
|
|
|
|
instance = makeImageButton(
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraTiltDown.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraTiltDown_ovr.png")),
|
|
|
|
|
Texture::fromFile(GetFileInPath("/content/images/CameraTiltDown_dn.png")));
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraTiltDown.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraTiltDown_ovr.png")),
|
|
|
|
|
Texture::fromFile(&GetFileInPath("/content/images/CameraTiltDown_dn.png")));
|
|
|
|
|
instance->size = Vector2(24,24);
|
|
|
|
|
instance->floatBottom = true;
|
|
|
|
|
instance->floatRight = true;
|
|
|
|
|
|