summaryrefslogtreecommitdiff
path: root/src/interface/ControlFactory.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-01-14 18:51:24 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-14 18:51:24 (GMT)
commit2c9295007a287dc01ff63fcf7b3da141f7474e37 (patch)
treee8065e920ca45686a40e41fd46513e13d46f47b0 /src/interface/ControlFactory.cpp
parentfc2f52099c0bbb2412046252bf7b5e4113bbe8e4 (diff)
downloadpowder-2c9295007a287dc01ff63fcf7b3da141f7474e37.zip
powder-2c9295007a287dc01ff63fcf7b3da141f7474e37.tar.gz
Various things, also IEF UI
Diffstat (limited to 'src/interface/ControlFactory.cpp')
-rw-r--r--src/interface/ControlFactory.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interface/ControlFactory.cpp b/src/interface/ControlFactory.cpp
index 300ceba..25822cd 100644
--- a/src/interface/ControlFactory.cpp
+++ b/src/interface/ControlFactory.cpp
@@ -1,11 +1,12 @@
+#include "interface/Point.h"
#include "interface/ControlFactory.h"
#include "interface/Button.h"
#include "interface/Panel.h"
-#include "interface/Window.h"
+#include "interface/Engine.h"
ui::Panel * ControlFactory::MainMenu(GameSession * session, int x, int y, int width, int height)
{
- ui::Panel * mainMenu = new ui::Panel(x, y, width, height);
+ ui::Panel * mainMenu = new ui::Panel(ui::Point(x, y), ui::Point(width, height));
//mainMenu->Add(new ui::Button(0, 0, 20, 20, "Turd"));
return mainMenu;
}