-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditor.cfg
More file actions
143 lines (138 loc) · 5.07 KB
/
Copy patheditor.cfg
File metadata and controls
143 lines (138 loc) · 5.07 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
fun edit_mode {
bind mouse1 select_click;
bind mouse3 "cursor move_ent_to";
bind r "cursor rotate_ent_towards";
bind v "cursor kick_ent_towards 2000";
bind delete delete_ent;
show_borders 1;
show_position 1;
}
fun edit_menu {
show_menu "Edit:"
"Editing Options" options_menu
"Add planet..." planet_menu
"Add other..." other_menu
"Add powerup..." powerup_menu
"Spawn points..." spawn_menu
"Waypoints..." waypoint_menu
"Regions..." regions_menu
"Manipulate current entity" manipulate_menu
}
fun options_menu {
show_menu "Editing Options:"
"Enter editing mode" edit_mode
"Enable grid" "grid_enabled 1"
"Disable grid" "grid_enabled 0"
"Change grid size" gridsize_menu
}
fun gridsize_menu {
show_menu "Grid size:"
"16" "grid_size 16"
"32" "grid_size 32"
"64" "grid_size 64"
"128" "grid_size 128"
"256" "grid_size 256"
}
fun manipulate_menu {
show_menu "Manipulate entity:"
"Delete" delete_ent
"Move to cursor" move_ent_click
"Scale" "editline 'Size multiple:' rescale_ent"
"Rotate towards cursor" "cursor rotate_ent_towards"
"Set flag" flags_menu
}
fun flags_menu {
show_menu "Set entity flag:"
"No mass/gravity" "entflag nomass"
"No collision" "entflag nocollide"
"Ignores map boundaries" "entflag nobound"
"Wraps around" "entflag wraps"
}
fun spawn_menu {
show_menu "Spawn points:"
"Place spawn point" "cursor addspawn"
"Show spawn points" mark_spawnpoints
"Hide spawn points" unmark_spawnpoints
"Place red spawn point" "cursor addspawn 0 3"
"Place blue spawn point" "cursor addspawn 0 4"
"Back" edit_menu
}
fun planet_menu {
show_menu "Add Entity:"
"Add star" "cursor addent images/star1.png"
"Add Fire planet" "cursor addent images/planet-fire.png"
"Add Ice planet" "cursor addent images/planet-ice.png"
"Add Water planet" "cursor addent images/planet-water.png"
"Add Small moon" "cursor addent images/ast-med.png"
"Add Io" "cursor addent images/moon-io.png"
"Add Earth" "cursor addent images/planet-earth.png"
"Add Mars" "cursor addent images/planet-mars.png"
"Next Page" planet_menu2
"Back" edit_menu
}
fun planet_menu2 {
show_menu "Add Entity:"
"Add Neptune" "cursor addent images/planet-neptune.png"
"Add Jupiter" "cursor addent images/planet-jupiter.png"
"Add moon (Rhea)" "cursor addent images/moon-rhea.png"
"Add moon (Enceladus)" "cursor addent images/moon-enceladus.png"
"Previous Page" planet_menu
"Back" edit_menu
}
fun other_menu {
show_menu "Add Entity:"
"Beam" "cursor addent images/beam.png 1.0 0.0 ' ' rect"
"Large junction" "cursor addent images/junction-big.png 1.0 0.0 ' ' rect"
"Back" edit_menu
}
fun powerup_menu {
show_menu "Add Powerup:"
"Healing" "cursor powerup heal"
# "Lasers" "cursor powerup laser"
"Laser Number" "cursor powerup lasernum"
"Laser Level" "cursor powerup laserlevel"
"Shields" "cursor powerup shield"
"Missiles" "cursor powerup missiles"
"Homing Missiles" "cursor powerup homing"
"Fireballs" "cursor powerup fireballs"
"Gold" "cursor powerup gold"
"Silver" "cursor powerup silver"
"Back" edit_menu
}
fun waypoint_menu {
show_menu "Waypoints:"
"Place waypoint" "cursor addwaypoint"
"Show waypoints" mark_waypoints
"Hide waypoints" unmark_waypoints
}
fun regions_menu {
show_menu "Regions:"
"Place region" "place_region"
"Show regions" "show_rects 1"
"Hide regions" "show_rects 0"
}
fun place_region {
editline "Region name: " bind_region_name
}
fun bind_region_name {
let place_region_name = "$1";
show_menu "Define region boundaries:"
"First corner" "cursor place_region_corner1"
}
fun place_region_corner1 {
let place_region_x1 = $1;
let place_region_y1 = $2;
show_menu "Define region boundaries:"
"Second corner" "cursor place_region_corner2"
}
fun place_region_corner2 {
let place_region_x2 = $1;
let place_region_y2 = $2;
addregion $place_region_name $place_region_x1 $place_region_y1 $place_region_x2 $place_region_y2;
}
let edit_mode = {
bind mouse1 select_click;
bind mouse3 move_ent_click;
bind r rotate_ent_click;
bind d delete_entity;
}