ModUI: Difference between revisions
Jump to navigation
Jump to search
Stlnegril9 (talk | contribs) swap resourceCategoriesDict to globalStorageUISpec |
Stlnegril9 (talk | contribs) No edit summary |
||
| Line 18: | Line 18: | ||
| globalStorageUISpec | | globalStorageUISpec | ||
| category<br>entries | | category<br>entries | ||
| Defines order | | Defines [[ResourceCatModIds|'''grouping''']], [[Resource_Categories|'''categorisation''']], and order of [[Resource|resources]] show in the bottom left menu | ||
|- | |- | ||
| '''OBSOLETE''' | | '''OBSOLETE''' | ||
| Line 29: | Line 29: | ||
|- | |- | ||
|} | |} | ||
* note | * note resourceCategoryId is used when resourceId=254 to refer to a [[Resource_Categories|category]] (e.g. "Food", "Luxury Food", "Fuel"), otherwise resourceCategoryId=0.<br> | ||
* note globalStorageUISpec superceded resourceCategoriesDict. Left in for history.<br> | * note globalStorageUISpec superceded resourceCategoriesDict. Left in for history.<br> | ||
=Example JSON= | =Example JSON= | ||
| Line 39: | Line 39: | ||
38 | 38 | ||
], | ], | ||
{ | |||
"globalStorageUISpec": { | |||
"groupSpecs": [ | |||
" | |||
{ | { | ||
" | "category": 0, | ||
" | "entries": [ | ||
{ | |||
"resourceId": 43, | |||
"resourceCategoryId": 0 | |||
}, | |||
{ | |||
"resourceId": 45, | |||
"resourceCategoryId": 0 | |||
}, | |||
{ | |||
"resourceId": 46, | |||
"resourceCategoryId": 0 | |||
} | |||
] | |||
}, | }, | ||
{ | { | ||
" | "category": 2, | ||
" | "entries": [ | ||
{ | |||
"resourceId": 12, | |||
"resourceCategoryId": 0 | |||
}, | |||
{ | |||
"resourceId": 254, // 254 = use Resource Group | |||
"resourceCategoryId": 2 // Simple Food Group | |||
}, | |||
{ | |||
"resourceId": 0, | |||
"resourceCategoryId": 0 | |||
}, | |||
{ | |||
"resourceId": 254, // 254 = use Resource Group | |||
"resourceCategoryId": 4 // Alcohol Group | |||
}, | |||
{ | |||
"resourceId": 9, | |||
"resourceCategoryId": 0 | |||
}, | |||
{ | |||
"resourceId": 10, | |||
"resourceCategoryId": 0 | |||
}, | |||
{ | |||
"resourceId": 48, | |||
"resourceCategoryId": 0 | |||
}, | |||
{ | |||
"resourceId": 49, | |||
"resourceCategoryId": 0 | |||
}, | |||
{ | |||
"resourceId": 254, // 254 = use Resource Group | |||
"resourceCategoryId": 3 // Luxury Food Group | |||
} | |||
] | |||
} | } | ||
] | ] | ||
} | } | ||
} | |||
"techCategoryOrderIds": [ | "techCategoryOrderIds": [ | ||
0, | 0, | ||
Revision as of 18:15, 11 January 2023
The ui.json file may be used to change the game interface.
pending change. resourceCategoriesDict obsolete and change to globalStorageUISpec.
JSON fields
| Name | Entry | Description |
|---|---|---|
| constructionGridBuildingIds | building ID | Defines order, not the menu, of buildings in the building selection (bottom right) |
| techCategoryOrderIds | Tech category | Defines order of research category panels in research window |
| globalStorageUISpec | category entries |
Defines grouping, categorisation, and order of resources show in the bottom left menu |
| OBSOLETE | OBSOLETE | OBSOLETE |
| resourceCategoriesDict | id itemTypeId itemCategory |
Defines grouping, categorisation, and order of resources show in the bottom left menu id should be unique from other resources in this file itemTypeId matches the value of typeId in resources.json |
- note resourceCategoryId is used when resourceId=254 to refer to a category (e.g. "Food", "Luxury Food", "Fuel"), otherwise resourceCategoryId=0.
- note globalStorageUISpec superceded resourceCategoriesDict. Left in for history.
Example JSON
{
"constructionGridBuildingIds": [
41,
19,
38
],
{
"globalStorageUISpec": {
"groupSpecs": [
{
"category": 0,
"entries": [
{
"resourceId": 43,
"resourceCategoryId": 0
},
{
"resourceId": 45,
"resourceCategoryId": 0
},
{
"resourceId": 46,
"resourceCategoryId": 0
}
]
},
{
"category": 2,
"entries": [
{
"resourceId": 12,
"resourceCategoryId": 0
},
{
"resourceId": 254, // 254 = use Resource Group
"resourceCategoryId": 2 // Simple Food Group
},
{
"resourceId": 0,
"resourceCategoryId": 0
},
{
"resourceId": 254, // 254 = use Resource Group
"resourceCategoryId": 4 // Alcohol Group
},
{
"resourceId": 9,
"resourceCategoryId": 0
},
{
"resourceId": 10,
"resourceCategoryId": 0
},
{
"resourceId": 48,
"resourceCategoryId": 0
},
{
"resourceId": 49,
"resourceCategoryId": 0
},
{
"resourceId": 254, // 254 = use Resource Group
"resourceCategoryId": 3 // Luxury Food Group
}
]
}
]
}
}
"techCategoryOrderIds": [
0,
6,
4,
]
}