-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathmenuutils.h
More file actions
49 lines (37 loc) · 1.23 KB
/
menuutils.h
File metadata and controls
49 lines (37 loc) · 1.23 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#pragma once
#include <string>
#include <vector>
/*
* Misc utilities that don't use natives and would clutter the main
* classes.
*/
namespace NativeMenu {
struct Color {
int R;
int G;
int B;
int A;
};
struct Sprite {
std::string Dictionary;
std::string Name;
};
const Color solidWhite = { 255, 255, 255, 255 };
const Color solidBlack = { 0, 0, 0, 255 };
const Color solidRed = { 255, 0, 0, 255 };
const Color solidGreen = { 0, 255, 0, 255 };
const Color solidBlue = { 0, 0, 255, 255 };
const Color solidPink = { 255, 0, 255, 255 };
const Color solidYellow = { 255, 255, 0, 255 };
const Color solidCyan = { 0, 255, 255, 255 };
const Color solidOrange = { 255, 127, 0, 255 };
const Color solidLime = { 127, 255, 0, 255 };
const Color solidPurple = { 127, 0, 255, 255 };
const Color transparentGray = { 75, 75, 75, 75 };
unsigned numZeroes(unsigned number);
unsigned behindDec(float f);
// https://stackoverflow.com/questions/236129/split-a-string-in-c
std::vector<std::string> split(const std::string &s, char delim);
//std::string makeCaps(std::string input);
float lerp(float a, float b, float f);
}