Website Summary Files Commits Branches @commit @diff @stats
path: root / src / VenueConsoleUI.cpp
blob: 49654e10affe84192d97540a2569914d99f51d65 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "VenueConsoleUI.h"
#include "String/String.h"
#include "ConsoleInterface/Menu.h"
#include "ConsoleInterface/Toolbox.hpp"

Venue v;

void command_newEvent() {
	unsigned hallIndex;
	inputBox("Enter hall index: ", &hallIndex);
	char name[MAX_LINE_WIDTH];
	inputLineBox("Enter event name: ", name, MAX_LINE_WIDTH);
	
	v.es.createEvent();
}

void runUI(Venue& venue) {
	v = venue;
}