forked from Jorixon/JASM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Removed old legacy character details page (Jorixon#327)
fix: When navigating back from the character details page to the character overview, it will now correctly scroll the character into view (Jorixon#327) feat: Added two new context items to the character overview right click menu. "Disable all mods" and "Open Folder..." (Jorixon#327) chore(Genshin): Updated some existing character's images (Jorixon#327) chore: Added a button to open the cached download folder that JASM uses on the settings page (Jorixon#327)
- Loading branch information
Showing
31 changed files
with
344 additions
and
3,540 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-335 KB
(7.8%)
src/GIMI-ModManager.WinUI/Assets/Games/Genshin/Images/Characters/Chevreuse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-96.4 KB
(21%)
src/GIMI-ModManager.WinUI/Assets/Games/Genshin/Images/Characters/Citlali.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-76 KB
(26%)
src/GIMI-ModManager.WinUI/Assets/Games/Genshin/Images/Characters/Clorinde.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-22.5 KB
(59%)
src/GIMI-ModManager.WinUI/Assets/Games/Genshin/Images/Characters/Mavuika.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-140 KB
(15%)
src/GIMI-ModManager.WinUI/Assets/Games/Genshin/Images/Characters/Sethos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.3 KB
src/GIMI-ModManager.WinUI/Assets/Games/Genshin/Images/Characters/Sigewinne.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-26.5 KB
src/GIMI-ModManager.WinUI/Assets/Games/Genshin/Images/Characters/Sigewinne.webp
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
src/GIMI-ModManager.WinUI/Assets/Games/Genshin/fixImages.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import json | ||
import os | ||
|
||
|
||
charactersJson = json.load(open('characters.json')) | ||
|
||
for character in charactersJson: | ||
character['Image'] = character['Image'].replace("Character_", "").replace("_Thumb", "") | ||
if (character['InGameSkins']): | ||
for skin in character['InGameSkins']: | ||
skin['Image'] = skin['Image'].replace("Character_", "").replace("_Thumb", "").replace("Skin_", "") | ||
|
||
json.dump(charactersJson, open('characters.json', 'w'), indent=2) | ||
|
||
|
||
# Update image files in Images folder | ||
images_folder = os.path.abspath(os.path.join(os.path.dirname(__file__), 'Images', 'Characters')) | ||
|
||
for filename in os.listdir(images_folder): | ||
new_filename = filename.replace("Character_", "").replace("_Thumb", "") | ||
os.rename(os.path.join(images_folder, filename), os.path.join(images_folder, new_filename)) | ||
|
||
|
||
images_folder = os.path.abspath(os.path.join(os.path.dirname(__file__), 'Images', 'AltCharacterSkins')) | ||
|
||
for filename in os.listdir(images_folder): | ||
new_filename = filename.replace("Character_Skin_", "").replace("_Thumb", "").replace("Skin_", "") | ||
os.rename(os.path.join(images_folder, filename), os.path.join(images_folder, new_filename)) | ||
|
||
|
||
weaponsJson = json.load(open('weapons.json')) | ||
|
||
for weapon in weaponsJson: | ||
if (weapon['Image']): | ||
weapon['Image'] = weapon['Image'].replace("Weapon_", "") | ||
|
||
json.dump(weaponsJson, open('weapons.json', 'w'), indent=2) | ||
|
||
images_folder = os.path.abspath(os.path.join(os.path.dirname(__file__), 'Images', 'Weapons')) | ||
|
||
for filename in os.listdir(images_folder): | ||
new_filename = filename.replace("Weapon_", "") | ||
os.rename(os.path.join(images_folder, filename), os.path.join(images_folder, new_filename)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.