-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathInterface.cpp
More file actions
33 lines (26 loc) · 802 Bytes
/
Copy pathInterface.cpp
File metadata and controls
33 lines (26 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "Interface.h"
#include "ConsoleWindow.h"
#include "ProcessWindow.h"
#include "MappingsWindow.h"
bool MainInterface::showConsole = true;
bool MainInterface::showProcWindow = false;
bool MainInterface::showMappingWindow = false;
MainInterface MainInterface::mainUI;
ConsoleWindow MainInterface::console;
ProcessWindow MainInterface::procWindow;
MappingsWindow MainInterface::mappingWindow;
MainInterface::MainInterface()
{
}
MainInterface::~MainInterface()
{
}
void MainInterface::Update()
{
console.RegisterWindow(&mainUI);
procWindow.RegisterWindow(&mainUI);
mappingWindow.RegisterWindow(&mainUI);
if (showConsole) console.Draw(showConsole);
if (showProcWindow) procWindow.Draw(showProcWindow);
if (showMappingWindow) mappingWindow.Draw(showMappingWindow);
}