mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-24 12:54:38 +01:00
"Autogenerate" data files with data fallbacks and moved keys folder into jar resources (#927)
* Autogenerate keys and data files * Update gacha html files Accidentally pushed with old html files * Keys no longer copied. No more manually retrieving listing files. Recursive directory creation Removed unused code from old GC as well. * Moved somethings and better errors * Fixed resources from loading twice * Data files fallback
This commit is contained in:
62
src/main/resources/defaults/data/GameAnnouncementList.json
Normal file
62
src/main/resources/defaults/data/GameAnnouncementList.json
Normal file
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"t": "{{SYSTEM_TIME}}",
|
||||
"list": [
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"ann_id": 1,
|
||||
"title": "<strong>Welcome to Grasscutter!</strong>",
|
||||
"subtitle": "Welcome!",
|
||||
"banner": "{{DISPATCH_PUBLIC}}/hk4e/announcement/assets/banner/1.jpg",
|
||||
"tag_icon": "{{DISPATCH_PUBLIC}}/hk4e/announcement/assets/tag_icon.png",
|
||||
"type": 2,
|
||||
"type_label": "System",
|
||||
"lang": "en-US",
|
||||
"start_time": "2020-09-25 04:05:30",
|
||||
"end_time": "2030-10-30 11:00:00",
|
||||
"content": "",
|
||||
"has_content": true
|
||||
},
|
||||
{
|
||||
"ann_id": 2,
|
||||
"title": "<strong>How to use announcements</strong>",
|
||||
"subtitle": "How to use announcements",
|
||||
"banner": "{{DISPATCH_PUBLIC}}/hk4e/announcement/assets/banner/2.jpg",
|
||||
"tag_icon": "{{DISPATCH_PUBLIC}}/hk4e/announcement/assets/tag_icon.png",
|
||||
"type": 2,
|
||||
"type_label": "System",
|
||||
"lang": "en-US",
|
||||
"start_time": "2020-09-25 04:05:30",
|
||||
"end_time": "2030-10-30 11:00:00",
|
||||
"content": "",
|
||||
"has_content": true
|
||||
}
|
||||
],
|
||||
"type_id": 2,
|
||||
"type_label": "System"
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{}
|
||||
],
|
||||
"type_id": 3,
|
||||
"type_label": "Events"
|
||||
}
|
||||
],
|
||||
"total": 2,
|
||||
"type_list": [
|
||||
{
|
||||
"id": 2,
|
||||
"name": "游戏系统公告",
|
||||
"mi18n_name": "System"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "活动公告",
|
||||
"mi18n_name": "Activity"
|
||||
}
|
||||
],
|
||||
"timezone": -5,
|
||||
"alert": false,
|
||||
"alert_id": 0
|
||||
}
|
||||
Reference in New Issue
Block a user