Added pages
This commit is contained in:
@@ -20,7 +20,6 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include "ax.h"
|
#include "ax.h"
|
||||||
#include <cguid.h>
|
#include <cguid.h>
|
||||||
#include "IEBrowser.h"
|
|
||||||
#include "PropertyWindow.h"
|
#include "PropertyWindow.h"
|
||||||
#include <commctrl.h>
|
#include <commctrl.h>
|
||||||
#include "StringFunctions.h"
|
#include "StringFunctions.h"
|
||||||
@@ -135,10 +134,20 @@ Application::Application(HWND parentWindow) : _propWindow(NULL) { //: GApp(setti
|
|||||||
SetWindowLongPtr(_hWndMain,GWL_USERDATA,(LONG)this);
|
SetWindowLongPtr(_hWndMain,GWL_USERDATA,(LONG)this);
|
||||||
SetWindowLongPtr(_hwndRenderer,GWL_USERDATA,(LONG)this);
|
SetWindowLongPtr(_hwndRenderer,GWL_USERDATA,(LONG)this);
|
||||||
_propWindow = new PropertyWindow(0, 0, 200, 640, hThisInstance);
|
_propWindow = new PropertyWindow(0, 0, 200, 640, hThisInstance);
|
||||||
IEBrowser* webBrowser = new IEBrowser(_hwndToolbox);
|
webBrowser = new IEBrowser(_hwndToolbox);
|
||||||
webBrowser->navigateSyncURL(L"http://androdome.com/res/ClientToolbox.php");
|
//webBrowser->navigateSyncURL(L"http://androdome.com/res/ClientToolbox.php");
|
||||||
|
navigateToolbox(GetFileInPath("/content/page/controller.html"));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Application::navigateToolbox(std::string path)
|
||||||
|
{
|
||||||
|
int len = path.size() + 1;
|
||||||
|
wchar_t * nstr = new wchar_t[len];
|
||||||
|
MultiByteToWideChar(0, 0, path.c_str(), len, nstr, len);
|
||||||
|
webBrowser->navigateSyncURL(nstr);
|
||||||
|
delete[] nstr;
|
||||||
|
}
|
||||||
|
|
||||||
void Application::deleteInstance()
|
void Application::deleteInstance()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
#include "TextButtonInstance.h"
|
#include "TextButtonInstance.h"
|
||||||
#include "ImageButtonInstance.h"
|
#include "ImageButtonInstance.h"
|
||||||
#include "CameraController.h"
|
#include "CameraController.h"
|
||||||
|
#include "IEBrowser.h"
|
||||||
//#include "GuiRoot.h"
|
//#include "GuiRoot.h"
|
||||||
|
|
||||||
class TextButtonInstance;
|
class TextButtonInstance;
|
||||||
@@ -25,6 +26,7 @@ class Application { // : public GApp {
|
|||||||
virtual void onUserInput(UserInput* ui);
|
virtual void onUserInput(UserInput* ui);
|
||||||
virtual void onCleanup();
|
virtual void onCleanup();
|
||||||
void clearInstances();
|
void clearInstances();
|
||||||
|
void navigateToolbox(std::string);
|
||||||
PartInstance* makePart();
|
PartInstance* makePart();
|
||||||
void drawButtons(RenderDevice* rd);
|
void drawButtons(RenderDevice* rd);
|
||||||
void drawOutline(Vector3 from, Vector3 to, RenderDevice* rd, LightingParameters lighting, Vector3 size, Vector3 pos, CoordinateFrame c);
|
void drawOutline(Vector3 from, Vector3 to, RenderDevice* rd, LightingParameters lighting, Vector3 size, Vector3 pos, CoordinateFrame c);
|
||||||
@@ -72,6 +74,7 @@ class Application { // : public GApp {
|
|||||||
int _mode;
|
int _mode;
|
||||||
GAppSettings _settings;
|
GAppSettings _settings;
|
||||||
double lightProjX, lightProjY, lightProjNear, lightProjFar;
|
double lightProjX, lightProjY, lightProjNear, lightProjFar;
|
||||||
|
IEBrowser* webBrowser;
|
||||||
protected:
|
protected:
|
||||||
Stopwatch m_graphicsWatch;
|
Stopwatch m_graphicsWatch;
|
||||||
Stopwatch m_logicWatch;
|
Stopwatch m_logicWatch;
|
||||||
|
|||||||
BIN
content/page/color.html
Normal file
BIN
content/page/color.html
Normal file
Binary file not shown.
21
content/page/controller.html
Normal file
21
content/page/controller.html
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
<html>
|
||||||
|
<script>
|
||||||
|
function toolOvr(image)
|
||||||
|
{
|
||||||
|
if(image.src.indexOf("_dn.png") == -1)
|
||||||
|
image.src = image.src.replace(".png", "_dn.png");
|
||||||
|
}
|
||||||
|
function toolOut(image)
|
||||||
|
{
|
||||||
|
if(image.src.indexOf("_dn.png") != -1)
|
||||||
|
image.src = image.src.replace("_dn.png",".png");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<body style="background-color: ButtonFace; margin: 0; padding: 5px; overflow: hidden; border:0;">
|
||||||
|
<img src="../images/Controller1Tool.png" onclick="SetController(1)" onmousedown="toolOvr(this)" onmouseup="toolOut(this)"/>
|
||||||
|
<img src="../images/Controller2Tool.png" onclick="Insert(2)" onmousedown="toolOvr(this)" onmouseup="toolOut(this)"/>
|
||||||
|
<img src="../images/ControllerAI1Tool.png" onclick="SetController(3)" onmousedown="toolOvr(this)" onmouseup="toolOut(this)"/>
|
||||||
|
<img src="../images/ControllerAI2Tool.png" onclick="SetController(4)" onmousedown="toolOvr(this)" onmouseup="toolOut(this)"/>
|
||||||
|
<img src="../images/ControllerNoneTool.png" onclick="SetController(0)" onmousedown="toolOvr(this)" onmouseup="toolOut(this)"/>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
BIN
content/page/hopper.html
Normal file
BIN
content/page/hopper.html
Normal file
Binary file not shown.
BIN
content/page/surface.html
Normal file
BIN
content/page/surface.html
Normal file
Binary file not shown.
Reference in New Issue
Block a user