Added pages

This commit is contained in:
andreja6
2020-03-09 18:58:08 -07:00
parent 36ec6b1dc5
commit d36f9df272
6 changed files with 36 additions and 3 deletions

View File

@@ -20,7 +20,6 @@
#include <string>
#include "ax.h"
#include <cguid.h>
#include "IEBrowser.h"
#include "PropertyWindow.h"
#include <commctrl.h>
#include "StringFunctions.h"
@@ -135,10 +134,20 @@ Application::Application(HWND parentWindow) : _propWindow(NULL) { //: GApp(setti
SetWindowLongPtr(_hWndMain,GWL_USERDATA,(LONG)this);
SetWindowLongPtr(_hwndRenderer,GWL_USERDATA,(LONG)this);
_propWindow = new PropertyWindow(0, 0, 200, 640, hThisInstance);
IEBrowser* webBrowser = new IEBrowser(_hwndToolbox);
webBrowser->navigateSyncURL(L"http://androdome.com/res/ClientToolbox.php");
webBrowser = new IEBrowser(_hwndToolbox);
//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()
{

View File

@@ -4,6 +4,7 @@
#include "TextButtonInstance.h"
#include "ImageButtonInstance.h"
#include "CameraController.h"
#include "IEBrowser.h"
//#include "GuiRoot.h"
class TextButtonInstance;
@@ -25,6 +26,7 @@ class Application { // : public GApp {
virtual void onUserInput(UserInput* ui);
virtual void onCleanup();
void clearInstances();
void navigateToolbox(std::string);
PartInstance* makePart();
void drawButtons(RenderDevice* rd);
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;
GAppSettings _settings;
double lightProjX, lightProjY, lightProjNear, lightProjFar;
IEBrowser* webBrowser;
protected:
Stopwatch m_graphicsWatch;
Stopwatch m_logicWatch;

BIN
content/page/color.html Normal file

Binary file not shown.

View 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

Binary file not shown.

BIN
content/page/surface.html Normal file

Binary file not shown.