Browse Source

Align party panel with other overlay text

pull/8206/head
Trihedraf 5 months ago committed by Anders Jenbo
parent
commit
c3cd5a8fbb
  1. 7
      Source/panels/partypanel.cpp

7
Source/panels/partypanel.cpp

@ -15,6 +15,7 @@
#include "engine/render/primitive_render.hpp"
#include "engine/size.hpp"
#include "inv.h"
#include "options.h"
#include "pfile.h"
#include "playerdat.hpp"
#include "qol/monhealthbar.h"
@ -43,7 +44,7 @@ const PartySpriteOffset ClassSpriteOffsets[] = {
OptionalOwnedClxSpriteList PartyMemberFrame;
OptionalOwnedClxSpriteList PlayerTags;
Point PartyPanelPos = { 5, 5 };
Point PartyPanelPos = { 8, 8 };
Rectangle PortraitFrameRects[MAX_PLRS];
int RightClickedPortraitIndex = -1;
constexpr int HealthBarHeight = 7;
@ -170,7 +171,9 @@ void DrawPartyMemberInfoPanel(const Surface &out)
Point pos = PartyPanelPos;
if (AutomapActive)
pos.y += PortraitFrameSize.height + FrameGap;
pos.y += 60;
if (*GetOptions().Graphics.showFPS)
pos.y += 15;
int currentLongestNameWidth = PortraitFrameSize.width;
bool portraitUnderCursor = false;

Loading…
Cancel
Save