this is storage slots 190, protection 100
this is storage slots 190+, protection 96
I have my storage set to
"ProtectionPercent": 100.0,
"ProtectionPercentMinimum": 0.0,
"ProtectionSlotsWithoutPenalty": 190.0,
the /hq.check looks great.
this is storage slots 190, protection 100
this is storage slots 190+, protection 96
I have my storage set to
"ProtectionPercent": 100.0,
"ProtectionPercentMinimum": 0.0,
"ProtectionSlotsWithoutPenalty": 190.0,
the /hq.check looks great.
ok I found it changed .85 to .80
hear are my changes marked with //<--
CuiElementContainer protection = Container(ProtectionContainer, "0 0 0 0.1", new Anchor(c.UIAnchorMin.X + .001f, c.UIAnchorMin.Y), c.UIAnchorMax);
Element("Title_Element", ProtectionContainer, ref protection, new Anchor(.2f, 0f), new Anchor(1f, 1f), Rgba.Format(PrimaryColor));
Element("Title_Padded", "Title_Element", ref protection, new Anchor(0.05f, 0.05f), new Anchor(0.95f, 0.95f), "0 0 0 0");
Text("Title_Protection", "Title_Padded", ref protection, TextAnchor.MiddleLeft, Rgba.Format(TextColor), 10, titleText, new Anchor(0f, .2f),
new Anchor(1f, .5f), "robotocondensed-bold.ttf");
Text("Amount_Protection", "Title_Padded", ref protection, TextAnchor.MiddleLeft, Rgba.Format(TextColor), 10, titleAmount, new Anchor(.80f, .2f),//<--
new Anchor(1f, .5f), "robotocondensed-bold.ttf");
Text("Title_Slots", "Title_Padded", ref protection, TextAnchor.MiddleLeft, Rgba.Format(TextColor), 10, instance.Lang("Headquarter_UI_Storage_Slots", player.UserIDString), new Anchor(0f, .5f),
new Anchor(1f, .8f), "robotocondensed-bold.ttf");
Text("Amount_Slots", "Title_Padded", ref protection, TextAnchor.MiddleLeft, Rgba.Format(TextColor), 10, hq.StorageSlots.ToString(), new Anchor(.80f, .5f),//<--
new Anchor(1f, .8f), "robotocondensed-bold.ttf");
return protection;
}
}
#endregion
}
#endregion
one of my players did not like overlay so I changed it to Hud.
string parent = "Hud", float fadeOut = 0f, float fadeIn = 0f)
Awesome, thanks for pointing this out. I didnt think about this before but we should suppor tripple digits. I added your changes to the plugin to support this. I also updated it to Hud instead of overlay.