Website Summary Files Commits Branches @commit @diff @stats
path: root / src / ConsoleInterface / Toolbox.cpp
blob: 81f452599d19e3bba449386180633c6cc1b79f5c (plain) (blame)
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 "Toolbox.hpp"

int orderedListIndex = 1;

void resetOrderedList(int starter) {
	orderedListIndex = starter;
}

void _printOrderedListBeginning() {
	std::cout << orderedListIndex << ". ";
}

void inputBoxLabel(const char* label) {
	std::cout << "+ " << label;
}

void inputLineBox(const char* label, char* output, unsigned maxWidth) {
	inputBoxLabel(label);
	std::cin.getline(output, maxWidth);
}

void printTitle(const char* title) {
	std::cout << "## " << title << " ##" << std::endl;
}

void printSuccess(const char* message) {
	std::cout << ") " << message << std::endl;
}

void printError(const char* message) {
	std::cout << "! Err: " << message << std::endl;
}