ResourceCatModIds: Difference between revisions

From The Colonists
Jump to navigation Jump to search
No edit summary
clear up "Resource Menu Label", remove erroneous links
Line 2: Line 2:


The top level values under '''resourceCategoriesDict''' in the '''[[ModUI|ui.json]]''' file for a mod specifies in which menu the resource should appear.<br>
The top level values under '''resourceCategoriesDict''' in the '''[[ModUI|ui.json]]''' file for a mod specifies in which menu the resource should appear.<br>
"Resource Menu Label" values taken from corresponding translation.csv entries, e.g. '''UICategory_1_Name,Text,,Construction'''.<br>
Note the difference from [[Resource_Categories]]
Note the difference from [[Resource_Categories]]


Line 11: Line 12:
|-
|-
| 0
| 0
| [[Resource | Energy]]
| Energy
| [[File:Resource_EnergyL1.png|64px|Energy L1]] [[File:Resource_EnergyL2.png|64px|Energy L2]] [[File:Resource_EnergyL3.png|64px|Energy L3]]
| [[File:Resource_EnergyL1.png|64px|Energy L1]] [[File:Resource_EnergyL2.png|64px|Energy L2]] [[File:Resource_EnergyL3.png|64px|Energy L3]]
|-
|-
| 1
| 1
| [[Resource | Construction ]]
| Construction
| [[File:Fir.png|64px|Trees]] [[File:Resource_Logs.png|64px|Logs]] [[File:Resource_Stone.png|64px|Stone]][[File:Resource_Planks.png|64px|{Planks]][[File:Resource_Bricks.png|64px|Bricks]][[File:Resource_Steel.png|64px|Steel]][[File:Resource_Glass.png|64px|Glass]]
| [[File:Fir.png|64px|Trees]] [[File:Resource_Logs.png|64px|Logs]] [[File:Resource_Stone.png|64px|Stone]][[File:Resource_Planks.png|64px|{Planks]][[File:Resource_Bricks.png|64px|Bricks]][[File:Resource_Steel.png|64px|Steel]][[File:Resource_Glass.png|64px|Glass]]
|-
|-
| 2
| 2
| [[Water]] & [[Food]]
| Water & Food
|  [[File:Resource_Water.png|64px|Water]][[File:Resource_Category_Food.png|64px|Food]][[File:Resource_Apples.png|64px|Apples]][[File:Resource_Category_Alcohol.png|64px|Alcohol]][[File:Resource_Wheat.png|64px|Wheat]][[File:Resource_Flour.png|64px|Flour]][[File:Resource_Milk.png|64px|Milk]][[File:Resource_Cocoa_Beans.png|64px|Cocoa Beans]][[File:Resource_Category_Luxury_Food.png|64px|Luxury Food]]
|  [[File:Resource_Water.png|64px|Water]][[File:Resource_Category_Food.png|64px|Food]][[File:Resource_Apples.png|64px|Apples]][[File:Resource_Category_Alcohol.png|64px|Alcohol]][[File:Resource_Wheat.png|64px|Wheat]][[File:Resource_Flour.png|64px|Flour]][[File:Resource_Milk.png|64px|Milk]][[File:Resource_Cocoa_Beans.png|64px|Cocoa Beans]][[File:Resource_Category_Luxury_Food.png|64px|Luxury Food]]
|-
|-
| 3
| 3
| [[Resource | Ores ]]
| Ores
| [[File:Resource_IronOre.png|64px|Iron Ore]][[File:Resource_Coal.png|64px|Coal]][[File:Resource_Clay.png|64px|Clay]][[File:Resource_Salt.png|64px|Salt]][[File:Resource_Quartz.png|64px|Quartz]][[File:Resource_Gold.png|64px|Gold]]
| [[File:Resource_IronOre.png|64px|Iron Ore]][[File:Resource_Coal.png|64px|Coal]][[File:Resource_Clay.png|64px|Clay]][[File:Resource_Salt.png|64px|Salt]][[File:Resource_Quartz.png|64px|Quartz]][[File:Resource_Gold.png|64px|Gold]]
|-
|-
| 4
| 4
| [[Resource | Goods ]]
| Goods
| [[File:Resource_Hide.png|64px|Hide]][[File:Resource_Leather.png|64px|Leather]][[File:Resource_Paper.png|64px|Paper]] [[File:Resource_Books.png|64px|Books]][[File:Resource_Iron.png|64px|Iron]][[File:Resource_Tools.png|64px|Tools]]
| [[File:Resource_Hide.png|64px|Hide]][[File:Resource_Leather.png|64px|Leather]][[File:Resource_Paper.png|64px|Paper]] [[File:Resource_Books.png|64px|Books]][[File:Resource_Iron.png|64px|Iron]][[File:Resource_Tools.png|64px|Tools]]
|-
|-
| 5
| 5
| [[Fuel]]
| Fuel
| [[File:Resource_Category_Fuel.png|64px|Fuel]]
| [[File:Resource_Category_Fuel.png|64px|Fuel]]
|-
|-
| 6
| 6
| [[Resource | Military]]
| Military
| [[File:Resource_Arrows.png|64px|Arrows]][[File:Resource_Cannonballs.png|64px|Cannonballs]]
| [[File:Resource_Arrows.png|64px|Arrows]][[File:Resource_Cannonballs.png|64px|Cannonballs]]
|}
|}

Revision as of 15:40, 20 December 2022

These are the menu groupings of Resources in the lower left menu.

The top level values under resourceCategoriesDict in the ui.json file for a mod specifies in which menu the resource should appear.
"Resource Menu Label" values taken from corresponding translation.csv entries, e.g. UICategory_1_Name,Text,,Construction.
Note the difference from Resource_Categories

ID Resource Menu Label Includes
0 Energy Energy L1 Energy L2 Energy L3
1 Construction Trees Logs Stone{PlanksBricksSteelGlass
2 Water & Food WaterFoodApplesAlcoholWheatFlourMilkCocoa BeansLuxury Food
3 Ores Iron OreCoalClaySaltQuartzGold
4 Goods HideLeatherPaper BooksIronTools
5 Fuel Fuel
6 Military ArrowsCannonballs