forked from Adeptus-Dominus/ChapterMaster
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCreate_0.gml
More file actions
78 lines (69 loc) · 2.12 KB
/
Create_0.gml
File metadata and controls
78 lines (69 loc) · 2.12 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
yam = 0;
if (instance_exists(obj_controller)) {
obj_controller.cooldown = 8000;
yam = 999;
}
fading = 0;
effect = 0;
settings = 0;
ini_open("saves.ini");
master_volume = ini_read_real("Settings", "master_volume", 1);
effect_volume = ini_read_real("Settings", "effect_volume", 1);
music_volume = ini_read_real("Settings", "music_volume", 1);
large_text = ini_read_real("Settings", "large_text", 0);
settings_heresy = ini_read_real("Settings", "settings_heresy", 0);
settings_fullscreen = ini_read_real("Settings", "fullscreen", 1);
settings_window_data = ini_read_string("Settings", "window_data", "fullscreen");
ini_close();
// create the buttons
var butt;
if (room_get_name(room) != "Main_Menu") {
butt = instance_create(821, 256, obj_new_button);
butt.sprite_index = spr_ui_but_1;
butt.depth = -20010;
butt.button_text = "Save";
butt.button_id = 1;
butt.scaling = 1.5;
butt.target = 11;
butt = instance_create(821, 336, obj_new_button);
butt.sprite_index = spr_ui_but_1;
butt.depth = -20010;
butt.button_text = "Load";
butt.button_id = 1;
butt.scaling = 1.5;
butt.target = 12;
butt = instance_create(821, 416, obj_new_button);
butt.sprite_index = spr_ui_but_1;
butt.depth = -20010;
butt.button_text = "Options";
butt.button_id = 1;
butt.scaling = 1.5;
butt.target = 13;
// butt = instance_create(821, 496, obj_new_button);
// butt.sprite_index = spr_ui_but_1;
// butt.depth = -20010;
// butt.button_text = "Exit";
// butt.button_id = 1;
// butt.scaling = 1.5;
// butt.target = 14;
butt = instance_create(821, 666, obj_new_button);
butt.sprite_index = spr_ui_but_1;
butt.depth = -20010;
butt.button_text = "Return";
butt.button_id = 1;
butt.scaling = 1.5;
butt.target = 15;
}
if (room_get_name(room) = "Main_Menu") {
with(obj_new_button) {
instance_destroy();
}
settings = 1;
butt = instance_create(653, 664, obj_new_button);
butt.sprite_index = spr_ui_but_1;
butt.depth = -20010;
butt.button_text = "Exit";
butt.button_id = 1;
butt.scaling = 1.5;
butt.target = 25;
}