-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add in-game modal when Peacock l10n isn't detected
- Loading branch information
1 parent
d3722d6
commit 8b09cc5
Showing
6 changed files
with
108 additions
and
11 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
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,55 @@ | ||
{ | ||
"$datacontext": { | ||
"in": "$.", | ||
"datavalues": { | ||
"_comment": "this is shown if the user does not have the dynamic resources package", | ||
"Url": "https://thepeacockproject.org/wiki/troubleshooting/missing-strings" | ||
}, | ||
"do": { | ||
"show-modal": { | ||
"config": { | ||
"view": "menu3.modal.ModalDialogGeneric", | ||
"buttons": [ | ||
"Open the Peacock wiki", | ||
{ | ||
"label": "$loc UI_DIALOG_CANCEL", | ||
"type": "cancel" | ||
} | ||
], | ||
"data": { | ||
"dialogWidth": 768, | ||
"frameheightmax": 600, | ||
"information": [ | ||
{ | ||
"description": "Peacock's dynamic resource package has not been loaded. This will affect localisation across all of Peacock's changes.<br><br>Visit the wiki page to see how to fix this." | ||
} | ||
] | ||
} | ||
}, | ||
"onbutton": [ | ||
[ | ||
{ | ||
"open-url": { | ||
"url": "$.Url" | ||
} | ||
}, | ||
{ | ||
"set-value": { | ||
"target": "[email protected]", | ||
"value": true | ||
} | ||
} | ||
], | ||
[ | ||
{ | ||
"set-value": { | ||
"target": "[email protected]", | ||
"value": true | ||
} | ||
} | ||
] | ||
] | ||
} | ||
} | ||
} | ||
} |
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
8b09cc5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The modal is intentionally not using localisation lines! It wouldn't be able to find our custom ones since, well, it's not loaded!