-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconst.py
67 lines (52 loc) · 1.36 KB
/
const.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
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
configName = "dgConf.txt"
#currently only Graphics Resolution
modSettingsName = "dgSettings.txt"
#edit mode enums
EDIT_TILE = 0
EDIT_ENTITY = 1
#paint modes
PAINT_NORMAL = 0
PAINT_ERASE = 1
PAINT_COPY = 3
PAINT_FILL = 4
PAINT_REPLACE = 5
PAINT_RECTANGLE = 6
#Entities which can only be spawned from parents
#used to determine if they crash the game or not
entityCrashIds = [12, 16, 17, 33, 34, 36, 50, 51, 52, 53, 55, 57, 62, 71, 77, 78, 79, 80, 82, 89, 95, 101, 103, 109, 110, 112, 113]
#total entity ids
entityFuncCount = 250
#for a green title color
entityGoodIds = [1, 2, 3, 4, 7, 37, 45, 47, 60, 61, 64, 74, 75, 91, 92, 96, 116, 119, 121]
#utility invisible entities for orange
entityUtilIds = [6, 19, 22, 38, 46, 56, 70, 73, 87, 93, 99, 106, 107, 117, 118]
#window types
WINDOW_NONE = 0
WINDOW_TILEPALETTE = 1
WINDOW_ENTITYPALETTE = 2
WINDOW_TOOLS = 3
WINDOW_TOOLTIP = 4
WINDOW_ENTITYEDIT = 5
PARAM_TYPE1 = 0
PARAM_BITS = 1
PARAM_PARAM2 = 2
PARAM_STRING = 3
PARAM_FLAG = 4
STYLE_TOOLTIP_BLACK = 0
STYLE_TOOLTIP_YELLOW = 1
TEXTINPUTTYPE_NORMAL = 0
TEXTINPUTTYPE_NUMBER = 1
#TODO... really gotta find somewhere good to put this
tileScale = 1
tileWidth = 8 * tileScale
tileWidth2 = 16 * tileScale
ENTITY_SCALE = 1
#undo thing
UNDO_TILE = 0
UNDO_ENTITY_ADD = 1
UNDO_ENTITY_REMOVE = 2
UNDO_ENTITY_MOVE = 3
#multi
MULTIPLAYER_NONE = 0
MULTIPLAYER_HOST = 1
MULTIPLAYER_CLIENT = 2