I want to make new resources that are shown on the top left UI. I am making a scenario and want to use fish storage and meat storage resources, but i want them to be visible on top UI without removing the existing 4 default resources.
I made the icons and added them in materials.json
however the resourcepanel.json doesn’t accept a new widget. I can replace current widget (ex: replace wood icon with new icon), but I can’t make a new widget.
when i add this in materials.json the game crashes. Please note i did define ResourceStability in materials.json and it worked perfectly when i replaced it instead of ResourceWood, the ingame icon did get replaced successfully. But adding a new widget doesn’t work.
{
“Widget”: {
“Type”: “Base”,
“Name”: “Stability”,
“ViewPort”: {
“xorigin”: 57,
“yorigin”: 150,
“width”: 84,
“height”: 84,
“alignment”: “CentreCentre”
},
“ZPlaneLocalOffset”: 1,
“Help”: 42011,
“StateMaterials”: {
“StateNormal”: {
“Material”: “ResourceStability”
}
},
}
},
{
“Widget”: {
“Type”: “Label”,
“Name”: “MeatStorage”,
“ViewPort”: {
“xorigin”: 108,
“yorigin”: 150,
“width”: 100,
“height”: 34,
“alignment”: “CentreLeft”
},
“Help”: 42202,
“StateMaterials”: {
“StateNormal”: {
“Font”: {
“FontIndex”: 0,
“PointSize”: 34,
“Style”: “Normal”,
“TextColor”: {
“r”: 1,
“g”: 1,
“b”: 1,
“a”: 1
}
}
}
},
“Text”: “10000”,
“TextAnchor”: “TopLeft”,
“ChildWidgets”:
}
},