Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Gym Images Dynamically #2495

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
"updatePokemonLabels": true,

"getPokemonRarity": true,
"updatePokemonRarities": true
"updatePokemonRarities": true,

"WebFont": true
}
}
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ src/
_build
_build_html
beehive.*
static/images/raid/*.png
!static/images/raid/*_unknown.png
static/icons-sprite.png
static/icons-large-sprite.png
static/icons/*.png
Expand Down
Binary file removed static/images/gym/Instinct_1.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_1_1.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_1_2.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_1_3.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_1_4.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_1_5.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_2.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_2_1.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_2_2.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_2_3.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_2_4.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_2_5.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_3.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_3_1.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_3_2.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_3_3.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_3_4.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_3_5.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_4.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_4_1.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_4_2.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_4_3.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_4_4.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_4_5.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_5.png
Binary file not shown.
Binary file removed static/images/gym/Instinct_5_1.png
Diff not rendered.
Binary file removed static/images/gym/Instinct_5_2.png
Diff not rendered.
Binary file removed static/images/gym/Instinct_5_3.png
Diff not rendered.
Binary file removed static/images/gym/Instinct_5_4.png
Diff not rendered.
Binary file removed static/images/gym/Instinct_5_5.png
Diff not rendered.
Binary file removed static/images/gym/Instinct_6.png
Diff not rendered.
Binary file removed static/images/gym/Instinct_6_1.png
Diff not rendered.
Binary file removed static/images/gym/Instinct_6_2.png
Diff not rendered.
Binary file removed static/images/gym/Instinct_6_3.png
Diff not rendered.
Binary file removed static/images/gym/Instinct_6_4.png
Diff not rendered.
Binary file removed static/images/gym/Instinct_6_5.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_1.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_1_1.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_1_2.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_1_3.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_1_4.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_1_5.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_2.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_2_1.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_2_2.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_2_3.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_2_4.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_2_5.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_3.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_3_1.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_3_2.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_3_3.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_3_4.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_3_5.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_4.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_4_1.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_4_2.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_4_3.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_4_4.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_4_5.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_5.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_5_1.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_5_2.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_5_3.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_5_4.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_5_5.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_6.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_6_1.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_6_2.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_6_3.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_6_4.png
Diff not rendered.
Binary file removed static/images/gym/Mystic_6_5.png
Diff not rendered.
Binary file removed static/images/gym/Uncontested_0.png
Diff not rendered.
Binary file removed static/images/gym/Uncontested_0_1.png
Diff not rendered.
Binary file removed static/images/gym/Uncontested_0_2.png
Diff not rendered.
Binary file removed static/images/gym/Uncontested_0_3.png
Diff not rendered.
Binary file removed static/images/gym/Uncontested_0_4.png
Diff not rendered.
Binary file removed static/images/gym/Uncontested_0_5.png
Diff not rendered.
Binary file removed static/images/gym/Valor_1.png
Diff not rendered.
Binary file removed static/images/gym/Valor_1_1.png
Diff not rendered.
Binary file removed static/images/gym/Valor_1_2.png
Diff not rendered.
Binary file removed static/images/gym/Valor_1_3.png
Diff not rendered.
Binary file removed static/images/gym/Valor_1_4.png
Diff not rendered.
Binary file removed static/images/gym/Valor_1_5.png
Diff not rendered.
Binary file removed static/images/gym/Valor_2.png
Diff not rendered.
Binary file removed static/images/gym/Valor_2_1.png
Diff not rendered.
Binary file removed static/images/gym/Valor_2_2.png
Diff not rendered.
Binary file removed static/images/gym/Valor_2_3.png
Diff not rendered.
Binary file removed static/images/gym/Valor_2_4.png
Diff not rendered.
Binary file removed static/images/gym/Valor_2_5.png
Diff not rendered.
Binary file removed static/images/gym/Valor_3.png
Diff not rendered.
Binary file removed static/images/gym/Valor_3_1.png
Diff not rendered.
Binary file removed static/images/gym/Valor_3_2.png
Diff not rendered.
Binary file removed static/images/gym/Valor_3_3.png
Diff not rendered.
Binary file removed static/images/gym/Valor_3_4.png
Diff not rendered.
Binary file removed static/images/gym/Valor_3_5.png
Diff not rendered.
Binary file removed static/images/gym/Valor_4.png
Diff not rendered.
Binary file removed static/images/gym/Valor_4_1.png
Diff not rendered.
Binary file removed static/images/gym/Valor_4_2.png
Diff not rendered.
Binary file removed static/images/gym/Valor_4_3.png
Diff not rendered.
Binary file removed static/images/gym/Valor_4_4.png
Diff not rendered.
Binary file removed static/images/gym/Valor_4_5.png
Diff not rendered.
Binary file removed static/images/gym/Valor_5.png
Diff not rendered.
Binary file removed static/images/gym/Valor_5_1.png
Diff not rendered.
Binary file removed static/images/gym/Valor_5_2.png
Diff not rendered.
Binary file removed static/images/gym/Valor_5_3.png
Diff not rendered.
Binary file removed static/images/gym/Valor_5_4.png
Diff not rendered.
Binary file removed static/images/gym/Valor_5_5.png
Diff not rendered.
Binary file removed static/images/gym/Valor_6.png
Diff not rendered.
Binary file removed static/images/gym/Valor_6_1.png
Diff not rendered.
Binary file removed static/images/gym/Valor_6_2.png
Diff not rendered.
Binary file removed static/images/gym/Valor_6_3.png
Diff not rendered.
Binary file removed static/images/gym/Valor_6_4.png
Diff not rendered.
Binary file removed static/images/gym/Valor_6_5.png
Diff not rendered.
Binary file added static/images/raid/Egg_1.png
Binary file added static/images/raid/Egg_1s.png
Binary file added static/images/raid/Egg_2.png
Binary file added static/images/raid/Egg_2s.png
Binary file added static/images/raid/Egg_3.png
Binary file added static/images/raid/Egg_3s.png
Binary file removed static/images/raid/Instinct_1_unknown.png
Diff not rendered.
Binary file removed static/images/raid/Instinct_2_unknown.png
Diff not rendered.
Binary file removed static/images/raid/Instinct_3_unknown.png
Diff not rendered.
Binary file removed static/images/raid/Instinct_4_unknown.png
Diff not rendered.
Binary file removed static/images/raid/Instinct_5_unknown.png
Diff not rendered.
Binary file removed static/images/raid/Mystic_1_unknown.png
Diff not rendered.
Binary file removed static/images/raid/Mystic_2_unknown.png
Diff not rendered.
Binary file removed static/images/raid/Mystic_3_unknown.png
Diff not rendered.
Binary file removed static/images/raid/Mystic_4_unknown.png
Diff not rendered.
Binary file removed static/images/raid/Mystic_5_unknown.png
Diff not rendered.
Binary file removed static/images/raid/Uncontested_1_unknown.png
Diff not rendered.
Binary file removed static/images/raid/Uncontested_2_unknown.png
Diff not rendered.
Binary file removed static/images/raid/Uncontested_3_unknown.png
Diff not rendered.
Binary file removed static/images/raid/Uncontested_4_unknown.png
Diff not rendered.
Binary file removed static/images/raid/Uncontested_5_unknown.png
Diff not rendered.
Binary file removed static/images/raid/Valor_1_unknown.png
Diff not rendered.
Binary file removed static/images/raid/Valor_2_unknown.png
Diff not rendered.
Binary file removed static/images/raid/Valor_3_unknown.png
Diff not rendered.
Binary file removed static/images/raid/Valor_4_unknown.png
Diff not rendered.
Binary file removed static/images/raid/Valor_5_unknown.png
Diff not rendered.
18 changes: 16 additions & 2 deletions static/js/map.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,14 @@ var StoreOptions = {
'isSearchMarkerMovable': {
default: false,
type: StoreTypes.Boolean
},
'cacheGymImages': {
default: true,
type: StoreTypes.Boolean
},
'gymImageCache': {
default: {},
type: StoreTypes.JSON
}
}

Expand All @@ -1078,21 +1086,27 @@ var Store = {
},
get: function (key) {
var option = this.getOption(key)
var optionType = option.type
if (option.value !== undefined) {
return option.value
}
var rawValue = localStorage[key]
if (rawValue === null || rawValue === undefined) {
return option.default
}
var value = optionType.parse(rawValue)
var value = option.type.parse(rawValue)
option.value = value
return value
},
set: function (key, value) {
var option = this.getOption(key)
var optionType = option.type || StoreTypes.String
var rawValue = optionType.stringify(value)
localStorage[key] = rawValue
option.value = value
},
reset: function (key) {
var option = this.getOption(key)
delete option.value
localStorage.removeItem(key)
}
}
Expand Down
Loading