added house text toggle
This commit is contained in:
6
UI.pde
6
UI.pde
@@ -1,5 +1,5 @@
|
||||
|
||||
Button buttons[] = new Button[4];
|
||||
Button buttons[] = new Button[5];
|
||||
|
||||
|
||||
int i_uiTransparency = 200;
|
||||
@@ -13,6 +13,7 @@ void initUI() {
|
||||
buttons[1] = new Button(15, 70, 100, i_debugTextSize, 5, "Lock Camera", 1);
|
||||
buttons[2] = new Button(15, 90, 100, i_debugTextSize, 5, "Debug", 2);
|
||||
buttons[3] = new Button(15, 110, 100, i_debugTextSize, 5, "Control Eyes", 3);
|
||||
buttons[4] = new Button(15, 130, 100, i_debugTextSize, 5, "Houses Texts", 4);
|
||||
}
|
||||
|
||||
|
||||
@@ -122,6 +123,9 @@ void buttonFunctions(int s) {
|
||||
case(3):
|
||||
b_controlEyeWithMouse = !b_controlEyeWithMouse;
|
||||
break;
|
||||
case(4):
|
||||
b_housesTexts = !b_housesTexts;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ boolean b_controlEyeWithMouse;
|
||||
|
||||
boolean b_debug = true;
|
||||
boolean b_drawNodes = false;
|
||||
boolean b_housesTexts = false;
|
||||
|
||||
float f_nodeResolution = 0.2; //defines density of path-finding nodes, multiplied with resolution
|
||||
int i_pathAlgorithm = 3;
|
||||
@@ -85,7 +86,7 @@ void draw() {
|
||||
pg_map.textSize(7);
|
||||
pg_map.textAlign(CENTER);
|
||||
|
||||
if (b_debug) {
|
||||
if (b_debug && b_housesTexts) {
|
||||
for (House house : houses) {
|
||||
house.display();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user