forked from Zygahedron/Parabox-Editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstate.py
35 lines (35 loc) · 1.06 KB
/
state.py
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
class UIstate:
focused = False
class Design:
thick = 200
grid = False
gridstyle = (0,0,0,.2)
gridwidth = 1
placedebug = False
true_dupe = False
hub = False
class UsefulMod:
def __init__(self):
self.warn = False
# Do not modify directly. Call self.enable or self.disable.
self.enabled = False
self.purge = False
def enable(self, floor_types, state=True):
self.enabled = state
if state:
for tag in ["Buttont", "PlayerButtont"]:
if tag not in floor_types:
floor_types.append(tag)
else:
for tag in ["Buttont", "PlayerButtont"]:
floor_types.remove(tag)
def disable(self, floor_types, state=True):
self.enabled = not state
if state:
for tag in ["Buttont", "PlayerButtont"]:
floor_types.remove(tag)
else:
for tag in ["Buttont", "PlayerButtont"]:
if tag not in floor_types:
floor_types.append(tag)
usefulmod = UsefulMod()