@@ -555,6 +555,7 @@ friend class Drawable; // for selection/deselection transactions
555555 virtual void refreshRenderFpsResources (void );
556556 virtual void refreshSystemTimeResources ( void );
557557 virtual void refreshGameTimeResources ( void );
558+ virtual void refreshPlayerInfoListResources ( void );
558559
559560 virtual void disableTooltipsUntil (UnsignedInt frameNum);
560561 virtual void clearTooltipsDisabled ();
@@ -579,6 +580,7 @@ friend class Drawable; // for selection/deselection transactions
579580 void drawRenderFps (Int &x, Int &y);
580581 void drawSystemTime (Int &x, Int &y);
581582 void drawGameTime ();
583+ void drawPlayerInfoList ();
582584
583585public:
584586 void registerWindowLayout (WindowLayout *layout); // register a layout for updates
@@ -777,6 +779,55 @@ friend class Drawable; // for selection/deselection transactions
777779 Color m_gameTimeColor;
778780 Color m_gameTimeDropColor;
779781
782+ struct PlayerInfoList
783+ {
784+ PlayerInfoList ();
785+ void init (const AsciiString &fontName, Int pointSize, Bool bold);
786+ void clear ();
787+
788+ enum LabelType
789+ {
790+ LabelType_Team,
791+ LabelType_Money,
792+ LabelType_Rank,
793+ LabelType_Xp,
794+
795+ LabelType_Count
796+ };
797+
798+ enum ValueType
799+ {
800+ ValueType_Team,
801+ ValueType_Money,
802+ ValueType_Rank,
803+ ValueType_Xp,
804+ ValueType_Name,
805+
806+ ValueType_Count
807+ };
808+
809+ struct LastValues
810+ {
811+ LastValues ();
812+ UnsignedInt values[LabelType_Count][MAX_PLAYER_COUNT ];
813+ UnicodeString name[MAX_PLAYER_COUNT ];
814+ };
815+
816+ DisplayString *labels[LabelType_Count];
817+ DisplayString *values[ValueType_Count][MAX_PLAYER_COUNT ];
818+ LastValues lastValues;
819+ };
820+
821+ PlayerInfoList m_playerInfoList;
822+ AsciiString m_playerInfoListFont;
823+ Int m_playerInfoListPointSize;
824+ Bool m_playerInfoListBold;
825+ Coord2D m_playerInfoListPosition;
826+ Color m_playerInfoListLabelColor;
827+ Color m_playerInfoListValueColor;
828+ Color m_playerInfoListDropColor;
829+ UnsignedInt m_playerInfoListBackgroundAlpha;
830+
780831 // message data
781832 UIMessage m_uiMessages[ MAX_UI_MESSAGES ];/* *< messages to display to the user, the
782833 array is organized with newer messages at
0 commit comments