/// FillableBar() public static void FillableBar(Rect rect, float percent, Vital vital, Color fillColor) { WindowComponents.DrawTextureWithBorder(rect, Res.textures["fillable_border"]); rect = rect.Contract(2f); GUI.DrawTexture(rect.Width(rect.width * percent), Res.TextureUnicolor(fillColor)); GUI.Label(rect, Mathf.Round(vital.currentValue).ToString() + " / " + vital.value.ToString(), WindowComponents.vitalLabelStyle); }