forked from patadeloso/pypboy
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.py
185 lines (162 loc) · 4.22 KB
/
config.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
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
import pygame
WIDTH = 480
HEIGHT = 320
minSwipe = 50
maxClick = 15
longPressTime = 200
touchScale = 1
invertPosition = False
# OUTPUT_WIDTH = 320
# OUTPUT_HEIGHT = 240
#MAP_FOCUS = (-5.9347681, 54.5889076)
#MAP_FOCUS = (-102.3016145, 21.8841274) #Old Default?
#MAP_FOCUS = (-118.5723894,34.3917171)#CodeNinjasValencia
#MAP_FOCUS = (32.7157, 117.1611)
MAP_FOCUS = (-92.1943197, 38.5653437)
WORLD_MAP_FOCUS = 0.07 #Needed to handle the 50k node limit from OSM
LOAD_CACHED_MAP = True
EVENTS = {
'SONG_END': pygame.USEREVENT + 1
}
MODULES = {
0: "stats",
1: "items",
2: "data"
}
ACTIONS = {
pygame.K_F1: "module_stats",
pygame.K_F2: "module_items",
pygame.K_F3: "module_data",
pygame.K_1: "knob_1",
pygame.K_2: "knob_2",
pygame.K_3: "knob_3",
pygame.K_4: "knob_4",
pygame.K_5: "knob_5",
pygame.K_UP: "dial_up",
pygame.K_DOWN: "dial_down",
pygame.K_PLUS: "zoom_in",
pygame.K_MINUS: "zoom_out",
pygame.K_KP_PLUS: "zoom_in",
pygame.K_KP_MINUS: "zoom_out"
}
# Using GPIO.BCM as mode
#GPIO 23 pin16 reboot
#GPIO 25 pin 22 blank screen do not use
GPIO_ACTIONS = {
# 19: "module_stats", #GPIO 4
# 26: "module_items", #GPIO 14
# 16: "module_data", #GPIO 15
# 18: "knob_1", #GPIO 18 Do Not enable messes with the screen.
# 18: "knob_2", #GPIO 18 Turns screen off do not use
# 7: "knob_3", #GPIO 7
# 22: "knob_1", #GPIO 22
# 22: "dial_down", #GPIO 22
# 25: "dial_up", #GPIO 25
# 20: "knob_2", #GPIO 24
# 25: "knob_3" #GPIO 23
}
MAP_ICONS = {
"camp": pygame.image.load('images/map_icons/camp.png'),
"factory": pygame.image.load('images/map_icons/factory.png'),
"metro": pygame.image.load('images/map_icons/metro.png'),
"misc": pygame.image.load('images/map_icons/misc.png'),
"monument": pygame.image.load('images/map_icons/monument.png'),
"vault": pygame.image.load('images/map_icons/vault.png'),
"settlement": pygame.image.load('images/map_icons/settlement.png'),
"ruin": pygame.image.load('images/map_icons/ruin.png'),
"cave": pygame.image.load('images/map_icons/cave.png'),
"landmark": pygame.image.load('images/map_icons/landmark.png'),
"city": pygame.image.load('images/map_icons/city.png'),
"office": pygame.image.load('images/map_icons/office.png'),
"sewer": pygame.image.load('images/map_icons/sewer.png'),
}
AMENITIES = {
'pub': MAP_ICONS['vault'],
'nightclub': MAP_ICONS['vault'],
'bar': MAP_ICONS['vault'],
'fast_food': MAP_ICONS['settlement'],
'cafe': MAP_ICONS['settlement'],
# 'drinking_water': MAP_ICONS['sewer'],
'restaurant': MAP_ICONS['settlement'],
'cinema': MAP_ICONS['office'],
'pharmacy': MAP_ICONS['office'],
'school': MAP_ICONS['office'],
'bank': MAP_ICONS['monument'],
'townhall': MAP_ICONS['monument'],
# 'bicycle_parking': MAP_ICONS['misc'],
# 'place_of_worship': MAP_ICONS['misc'],
'theatre': MAP_ICONS['office'],
# 'bus_station': MAP_ICONS['misc'],
# 'parking': MAP_ICONS['misc'],
# 'fountain': MAP_ICONS['misc'],
# 'marketplace': MAP_ICONS['misc'],
# 'atm': MAP_ICONS['misc'],
'misc': MAP_ICONS['misc']
}
INVENTORY_OLD = [
"Ranger Sequoia",
"Anti-Materiel Rifle ",
"Deathclaw Gauntlet",
"Flamer",
"NCR dogtag",
".45-70 Gov't(20)",
".44 Magnum(20)",
"Pulse Grenade (2)"
]
WEAPONS = [
"10mm Pistol",
"Combat Knife",
"Fragmentation Grenade (2)",
"Laser Pistol",
"Plasma Mine (3)"
]
ARMOR = [
"Eyeglasses",
"Vault 111 Jumpsuit",
"Wedding Ring"
]
AID = [
"Purified Water (3)",
"Rad Away (2)",
"Stim Pack (2)"
]
MISC = [
"Pencil",
"Pre-War Money (250)",
"Super Glue",
"Toy Mini-Nuke"
]
AMMO = [
"10mm Rounds (15)",
"Fusion Cells (28)"
]
QUESTS = [
"Cosplacon",
"Cosplay Royale",
"Drink n Draw",
"Queens of Cosplay"
]
SKILLS = [
"Action Boy",
"Animal Friend",
"Awareness",
"Gunslinger"
"Hacker",
"Mysterious Stranger",
"Rifleman",
"Science"
]
PERKS = [
"Action Boy",
"Animal Friend",
"Awareness",
"Gunslinger"
"Hacker",
"Mysterious Stranger",
"Rifleman",
"Science"
]
pygame.font.init()
FONTS = {}
for x in range(10, 28):
FONTS[x] = pygame.font.Font('monofonto.ttf', x)