-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdrawing.cpp
More file actions
69 lines (65 loc) · 2.53 KB
/
Copy pathdrawing.cpp
File metadata and controls
69 lines (65 loc) · 2.53 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
// Drawing module — simulation state variable definitions and init
#include "drawing.h"
#include "strings.h"
// =====================================================================
// Language setting definition
// =====================================================================
Language g_language = LANG_CN;
// =====================================================================
// Simulation state variable definitions
// =====================================================================
int Water_in_boiler = 0;
float Temperature = 17;
float Pressure = 0;
int water_alarm = 0;
int air_alarm = 0;
int temperature_alarm = 0;
int stove_open = 0;
int valve_1_open = 0;
int valve_2_open = 0;
int valve_air_open = 0;
int _auto = 0;
int manual_mode = 0;
int percent_of_fire_V = 0;
int percent_of_air_V = 0;
int ii = 1, jj = 1;
int kk = 1, ff = 1;
// =====================================================================
// mian_interface_initialize (from _PROJECT.CPP)
// =====================================================================
void mian_interface_initialize() {
draw_a_background();
draw_air_valve_close(338, 81, 0);
draw_alarm_of_water(141, 118, 0);
draw_alarm_of_air(560, 30, 0);
draw_alarm_of_temperature(280, 118, 0);
draw_barometer(508, 85);
draw_boiler(110, 175);
draw_close_stove_button(210, 360);
draw_controlpanel(370, 190);
draw_grad(110, 175);
draw_pipe_in(110, 175);
draw_open_stove_button(60, 360);
draw_pipe_out(110, 175);
draw_steam_pipe(110, 175);
draw_stove(95, 320);
draw_thermograph(284, 150);
draw_valve_close(110, 175);
outhzxy3(12, 12, get_string(STR_BOILER), 1, 1, 0, 0, 0);
outhzxy3(11, 11, get_string(STR_BOILER), 1, 1, 0, 0, 15);
outhzxy3(12, 32, get_string(STR_SIMULATION), 1, 1, 0, 0, 0);
outhzxy3(11, 31, get_string(STR_SIMULATION), 1, 1, 0, 0, 15);
outhzxy3(12, 52, get_string(STR_SYSTEM), 1, 1, 0, 0, 0);
outhzxy3(11, 51, get_string(STR_SYSTEM), 1, 1, 0, 0, 15);
outhzxy3(15, 78, get_string(STR_SOFTWARE), 0.8, 0.8, 0, 0, 0);
outhzxy3(14, 77, get_string(STR_SOFTWARE), 0.8, 0.8, 0, 0, 15);
outhzxy3(7, 95, get_string(STR_VERSION_4), 0.8, 0.8, 0, 0, 0);
outhzxy3(6, 94, get_string(STR_VERSION_4), 0.8, 0.8, 0, 0, 15);
settextstyle(2, 0, 4);
setcolor(0); outtextxy(12, 112, "Ver 1.1");
setcolor(15); outtextxy(11, 111, "Ver 1.1");
setcolor(0); outtextxy(23, 125, "sp2");
setcolor(15); outtextxy(22, 124, "sp2");
settextstyle(0, 0, 0);
draw_lang_toggle(575, 216);
}