I am trying to make a new UI set for the game.
I have changed the HUD for target civ in civilizations.json and
-
added the entries for the new HUD UI in morematerials.json in widgetui but it doesn’t work:
-
added the same entries for the new HUD UI in materials.json in widgetui, it works but partially, the game becomes extremely laggy, top right UI not appearing, if i try to go to settings using escape button and rescale UI mid game then everything vanishes:
Used the following code to define HUD in morematerials / materials json (As you can see in screenshot I am using Huns civ and SEAS panel texture for test purpose):
{
"Materials": [
{
"MaterialDef": {
"Name": "CivIndiBottombar",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiBottombar"
}
},
{
"MaterialDef": {
"Name": "CivIndiCommandPanelCollapsed",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiCommandPanelCollapsed"
}
},
{
"MaterialDef": {
"Name": "CivIndiCommandPanelExtended",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiCommandPanelExtended"
}
},
{
"MaterialDef": {
"Name": "CivIndiMapPanel",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiMapPanel"
}
},
{
"MaterialDef": {
"Name": "CivIndiMenuPanel",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiMenuPanel"
}
},
{
"MaterialDef": {
"Name": "CivIndiResourcePanel",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiResourcePanel"
}
},
{
"MaterialDef": {
"Name": "CivIndiShieldCastleAgeActive",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiShieldCastleAgeActive"
}
},
{
"MaterialDef": {
"Name": "CivIndiShieldCastleAgeHover",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiShieldCastleAgeHover"
}
},
{
"MaterialDef": {
"Name": "CivIndiShieldCastleAgeNormal",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiShieldCastleAgeNormal"
}
},
{
"MaterialDef": {
"Name": "CivIndiShieldDarkAgeActive",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiShieldDarkAgeActive"
}
},
{
"MaterialDef": {
"Name": "CivIndiShieldDarkAgeHover",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiShieldDarkAgeHover"
}
},
{
"MaterialDef": {
"Name": "CivIndiShieldDarkAgeNormal",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiShieldDarkAgeNormal"
}
},
{
"MaterialDef": {
"Name": "CivIndiShieldFeudalAgeActive",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiShieldFeudalAgeActive"
}
},
{
"MaterialDef": {
"Name": "CivIndiShieldFeudalAgeHover",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiShieldFeudalAgeHover"
}
},
{
"MaterialDef": {
"Name": "CivIndiShieldFeudalAgeNormal",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiShieldFeudalAgeNormal"
}
},
{
"MaterialDef": {
"Name": "CivIndiShieldImperialAgeActive",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiShieldImperialAgeActive"
}
},
{
"MaterialDef": {
"Name": "CivIndiShieldImperialAgeHover",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiShieldImperialAgeHover"
}
},
{
"MaterialDef": {
"Name": "CivIndiShieldImperialAgeNormal",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiShieldImperialAgeNormal"
}
},
{
"MaterialDef": {
"Name": "CivIndiSingleSelectionPanel",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiSingleSelectionPanel"
}
},
{
"MaterialDef": {
"Name": "CivIndiTopbar",
"Type": "Atlas",
"Blend": "InverseAlpha",
"AtlasRef": "CivIndi",
"TextureRef": "CivIndiTopbar"
}
}
],
"AtlasTextures": [
{
"AtlasDef": {
"Name": "CivIndi",
"MaxWidth": 2048,
"MaxHeight": 2304,
"Cached": "none",
"Textures": [
{
"RefName": "CivIndiBottombar",
"FileName": "textures/ingame/panels/INDIAN/bottombar.png",
"imageTLX": "0.000244",
"imageTLY": "0.893446",
"imageBRX": "0.937256",
"imageBRY": "0.924696"
},
{
"RefName": "CivIndiCommandPanelCollapsed",
"FileName": "textures/ingame/panels/INDIAN/command-panel_collapsed.png",
"imageTLX": "0.000244",
"imageTLY": "0.000217",
"imageBRX": "0.322021",
"imageBRY": "0.179036"
},
{
"RefName": "CivIndiCommandPanelExtended",
"FileName": "textures/ingame/panels/INDIAN/command-panel_extended.png",
"imageTLX": "0.322510",
"imageTLY": "0.000217",
"imageBRX": "0.644287",
"imageBRY": "0.179036"
},
{
"RefName": "CivIndiMapPanel",
"FileName": "textures/ingame/panels/INDIAN/map-panel.png",
"imageTLX": "0.000244",
"imageTLY": "0.179470",
"imageBRX": "0.419678",
"imageBRY": "0.358290"
},
{
"RefName": "CivIndiMenuPanel",
"FileName": "textures/ingame/panels/INDIAN/menu-panel.png",
"imageTLX": "0.420166",
"imageTLY": "0.179470",
"imageBRX": "0.788818",
"imageBRY": "0.298828"
},
{
"RefName": "CivIndiResourcePanel",
"FileName": "textures/ingame/panels/INDIAN/resource-panel.png",
"imageTLX": "0.000244",
"imageTLY": "0.717231",
"imageBRX": "0.854248",
"imageBRY": "0.836589"
},
{
"RefName": "CivIndiShieldCastleAgeActive",
"FileName": "textures/ingame/panels/INDIAN/shield_castle_age_indian_active.png",
"imageTLX": "0.420166",
"imageTLY": "0.299262",
"imageBRX": "0.492920",
"imageBRY": "0.355252"
},
{
"RefName": "CivIndiShieldCastleAgeHover",
"FileName": "textures/ingame/panels/INDIAN/shield_castle_age_indian_hover.png",
"imageTLX": "0.493408",
"imageTLY": "0.299262",
"imageBRX": "0.566162",
"imageBRY": "0.355252"
},
{
"RefName": "CivIndiShieldCastleAgeNormal",
"FileName": "textures/ingame/panels/INDIAN/shield_castle_age_indian_normal.png",
"imageTLX": "0.566650",
"imageTLY": "0.299262",
"imageBRX": "0.639404",
"imageBRY": "0.355252"
},
{
"RefName": "CivIndiShieldDarkAgeActive",
"FileName": "textures/ingame/panels/INDIAN/shield_dark_age_indian_active.png",
"imageTLX": "0.639893",
"imageTLY": "0.299262",
"imageBRX": "0.712646",
"imageBRY": "0.355252"
},
{
"RefName": "CivIndiShieldDarkAgeHover",
"FileName": "textures/ingame/panels/INDIAN/shield_dark_age_indian_hover.png",
"imageTLX": "0.713135",
"imageTLY": "0.299262",
"imageBRX": "0.785889",
"imageBRY": "0.355252"
},
{
"RefName": "CivIndiShieldDarkAgeNormal",
"FileName": "textures/ingame/panels/INDIAN/shield_dark_age_indian_normal.png",
"imageTLX": "0.786377",
"imageTLY": "0.299262",
"imageBRX": "0.859131",
"imageBRY": "0.355252"
},
{
"RefName": "CivIndiShieldFeudalAgeActive",
"FileName": "textures/ingame/panels/INDIAN/shield_feudal_age_indian_active.png",
"imageTLX": "0.859619",
"imageTLY": "0.299262",
"imageBRX": "0.932373",
"imageBRY": "0.355252"
},
{
"RefName": "CivIndiShieldFeudalAgeHover",
"FileName": "textures/ingame/panels/INDIAN/shield_feudal_age_indian_hover.png",
"imageTLX": "0.000244",
"imageTLY": "0.837023",
"imageBRX": "0.072998",
"imageBRY": "0.893012"
},
{
"RefName": "CivIndiShieldFeudalAgeNormal",
"FileName": "textures/ingame/panels/INDIAN/shield_feudal_age_indian_normal.png",
"imageTLX": "0.073486",
"imageTLY": "0.837023",
"imageBRX": "0.146240",
"imageBRY": "0.893012"
},
{
"RefName": "CivIndiShieldImperialAgeActive",
"FileName": "textures/ingame/panels/INDIAN/shield_imperial_age_indian_active.png",
"imageTLX": "0.146729",
"imageTLY": "0.837023",
"imageBRX": "0.219482",
"imageBRY": "0.893012"
},
{
"RefName": "CivIndiShieldImperialAgeHover",
"FileName": "textures/ingame/panels/INDIAN/shield_imperial_age_indian_hover.png",
"imageTLX": "0.219971",
"imageTLY": "0.837023",
"imageBRX": "0.292725",
"imageBRY": "0.893012"
},
{
"RefName": "CivIndiShieldImperialAgeNormal",
"FileName": "textures/ingame/panels/INDIAN/shield_imperial_age_indian_normal.png",
"imageTLX": "0.293213",
"imageTLY": "0.837023",
"imageBRX": "0.365967",
"imageBRY": "0.893012"
},
{
"RefName": "CivIndiSingleSelectionPanel",
"FileName": "textures/ingame/panels/INDIAN/single-selection-panel.png",
"imageTLX": "0.000244",
"imageTLY": "0.358724",
"imageBRX": "0.667725",
"imageBRY": "0.537543"
},
{
"RefName": "CivIndiTopbar",
"FileName": "textures/ingame/panels/INDIAN/topbar.png",
"imageTLX": "0.000244",
"imageTLY": "0.925130",
"imageBRX": "0.937256",
"imageBRY": "0.948134"
},
{
"RefName": "CivIndiRecordPanelTableFull",
"FileName": "textures/ingame/recordedgames/INDIAN/record_panel_table_full.png",
"imageTLX": "0.000244",
"imageTLY": "0.537977",
"imageBRX": "0.667725",
"imageBRY": "0.716797"
}
],
"DefaultSource": "textures/atlas/HD/CivIndi.dds",
"UHDSource": "textures/atlas/UHD/CivIndi.dds",
"HDSource": "textures/atlas/HD/CivIndi.dds"
}
}
],
"GlobalTextures": []
}
Build #96976