Crop icons

This commit is contained in:
henriquenakashima 2021-03-28 15:22:34 -04:00
parent f6b0f860f7
commit e568a06872
13 changed files with 15 additions and 15 deletions

View file

@ -3,18 +3,18 @@ from map.quest_map import MapEncounter, QuestMap, EncounterType
from typing import List, Dict, Optional
_ICONS = {
EncounterType.BATTLE_REGULAR: 'noun_Battle_3647629.png',
EncounterType.BATTLE_ELITE: 'noun_Shield_3806325.png',
EncounterType.BATTLE_BOSS: 'noun_dragon_3820621.png',
EncounterType.TOWN_TAVERN: 'noun_Beer_3054928.png',
EncounterType.TOWN_DOCKS: 'noun_Caravel_2421659.png',
EncounterType.TOWN_MARKET: 'noun_Store_786819.png',
EncounterType.TOWN_LIBRARY: 'noun_Library_3820590.png',
EncounterType.TOWN_WORKSHOP: 'noun_cogs_442166.png',
EncounterType.TOWN_TOWN_HALL: 'noun_brussels town hall_3284349.png',
EncounterType.TOWN_TEMPLE: 'noun_temple_2382601.png',
EncounterType.TOWN_REST: 'noun_Tent_3814999.png',
EncounterType.TOWN_ROAD: 'noun_Hiking Trail_2686687.png',
EncounterType.BATTLE_REGULAR: 'noun_Battle_3647629_cropped.png',
EncounterType.BATTLE_ELITE: 'noun_Shield_3806325_cropped.png',
EncounterType.BATTLE_BOSS: 'noun_dragon_3820621_cropped.png',
EncounterType.TOWN_TAVERN: 'noun_Beer_3054928_cropped.png',
EncounterType.TOWN_DOCKS: 'noun_Caravel_2421659_cropped.png',
EncounterType.TOWN_MARKET: 'noun_Store_786819_cropped.png',
EncounterType.TOWN_LIBRARY: 'noun_Library_3820590_cropped.png',
EncounterType.TOWN_WORKSHOP: 'noun_cogs_442166_cropped.png',
EncounterType.TOWN_TOWN_HALL: 'noun_brussels town hall_3284349_cropped.png',
EncounterType.TOWN_TEMPLE: 'noun_temple_2382601_cropped.png',
EncounterType.TOWN_REST: 'noun_Tent_3814999_cropped.png',
EncounterType.TOWN_ROAD: 'noun_Hiking Trail_2686687_cropped.png',
}
@ -36,10 +36,10 @@ def _render_encounter(r: int, c: int, encounter: MapEncounter) -> Optional[Dict]
return None
icon = f'map/{_ICONS[encounter.type]}'
x = 200 * c
x = 120 * c
y = 100 * r
w = 90
h = 90
w = 40
h = 40
return {
'description': encounter.description,
'src': icon,

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB