private void DrawExperience(ImDrawListPtr drawList, int experience, int maxExp) { int size = (int)Math.Ceiling(256 * Ui.Configuration.Scale); var drawPosition = ImGui.GetItemRectMin() + new Vector2(0, (int)HealthY); ExperienceRingBg.Draw(drawList, 1, drawPosition, 4, Ui.Configuration.Scale); ExperienceRing.Draw(drawList, experience / (float)maxExp, drawPosition, 4, Ui.Configuration.Scale); drawList.PushClipRect(drawPosition, drawPosition + new Vector2(size, size)); drawList.AddImage(RingExperienceBgTexture.ImGuiHandle, drawPosition, drawPosition + new Vector2(size, size)); drawList.PopClipRect(); int iconSize = 64; ImageDrawing.DrawIcon(Pi, drawList, (ushort)(62000 + Pi.ClientState.LocalPlayer.ClassJob.Id), new Vector2(iconSize, iconSize), new Vector2((int)(size / 2f - iconSize / 2f), (int)(size / 2f - iconSize / 2f)) + new Vector2(0, (int)HealthY)); }