v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
41
source/frontend/StarStatusPane.hpp
Normal file
41
source/frontend/StarStatusPane.hpp
Normal file
|
@ -0,0 +1,41 @@
|
|||
#ifndef STAR_STATUSPANE_HPP
|
||||
#define STAR_STATUSPANE_HPP
|
||||
|
||||
#include "StarPane.hpp"
|
||||
#include "StarMainInterfaceTypes.hpp"
|
||||
|
||||
namespace Star {
|
||||
|
||||
STAR_CLASS(Player);
|
||||
STAR_CLASS(UniverseClient);
|
||||
STAR_CLASS(StatusPane);
|
||||
|
||||
class StatusPane : public Pane {
|
||||
public:
|
||||
StatusPane(MainInterfacePaneManager* paneManager, UniverseClientPtr client);
|
||||
|
||||
virtual PanePtr createTooltip(Vec2I const& screenPosition) override;
|
||||
|
||||
protected:
|
||||
virtual void renderImpl() override;
|
||||
virtual void update() override;
|
||||
|
||||
private:
|
||||
struct StatusEffectIndicator {
|
||||
String icon;
|
||||
Maybe<float> durationPercentage;
|
||||
String label;
|
||||
RectF screenRect;
|
||||
};
|
||||
|
||||
MainInterfacePaneManager* m_paneManager;
|
||||
UniverseClientPtr m_client;
|
||||
PlayerPtr m_player;
|
||||
|
||||
GuiContext* m_guiContext;
|
||||
List<StatusEffectIndicator> m_statusIndicators;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue