-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDisplayLuaCallback.h
More file actions
89 lines (68 loc) · 1.55 KB
/
DisplayLuaCallback.h
File metadata and controls
89 lines (68 loc) · 1.55 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#pragma once
#include <Ogre.h>
using namespace Ogre;
class DisplayLuaCallback : public Singleton<DisplayLuaCallback> {
public:
DisplayLuaCallback();
~DisplayLuaCallback();
void setWriteLnText(String text) { wrtLn = text; }
String getWriteLnText(void) {
String twrt = wrtLn;
wrtLn = "";
return twrt;
}
void setFirstChar(String text) { fChar = text; }
String getFirstChar(void) {
String twrt = fChar;
fChar = "";
return twrt;
}
void setDTex(String tex) { dtex = tex; }
void setDimensions(Real x1, Real y1, Real x2, Real y2);
void resetDimensions();
void setFont(String font) { dfont = font; }
void setLines(String tex) { lines = StringConverter::parseInt(tex); }
void shutdown();
int getLines(void) {
Real lines2 = lines;
lines = -1;
return lines2;
}
String getFont(void) {
String dfont2 = dfont;
dfont = "";
return dfont2;
}
void setNewLine(void) { newLine = true; }
bool getNewLine(void) {
bool newLine2 = newLine;
newLine = false;
return newLine2;
}
void setFontSize(String font) { fontSize = font; }
String getFontSize(void) {
String dfont2 = fontSize;
fontSize = "";
return dfont2;
}
void setClear() { doClear = true; }
String getDTex(void) {
String twrt = dtex;
dtex = "";
return twrt;
}
bool getClear(void) {
bool dClear = doClear;
doClear = false;
return dClear;
}
private:
bool doClear;
bool newLine;
Real lines;
String wrtLn;
String fontSize;
String dtex;
String fChar;
String dfont;
};