metaforce/Runtime/GuiSys/CGuiTextPane.hpp

34 lines
1.1 KiB
C++
Raw Normal View History

2016-03-10 03:47:37 +00:00
#ifndef __URDE_CGUITEXTPANE_HPP__
#define __URDE_CGUITEXTPANE_HPP__
#include "CGuiPane.hpp"
2016-03-18 03:35:16 +00:00
#include "CGuiTextSupport.hpp"
2016-03-10 03:47:37 +00:00
namespace urde
{
class CGuiTextPane : public CGuiPane
{
2016-03-22 02:27:46 +00:00
CGuiTextSupport x114_textSupport;
public:
2016-03-22 02:27:46 +00:00
CGuiTextPane(const CGuiWidgetParms& parms, float xDim, float zDim, const zeus::CVector3f& vec,
2016-04-14 21:42:47 +00:00
ResId fontId, const CGuiTextProperties& props, const zeus::CColor& col1,
2016-03-22 02:27:46 +00:00
const zeus::CColor& col2, s32 padX, s32 padY);
FourCC GetWidgetTypeID() const {return FOURCC('TXPN');}
CGuiTextSupport* TextSupport() {return &x114_textSupport;}
const CGuiTextSupport* GetTextSupport() const {return &x114_textSupport;}
void Update(float dt);
bool GetIsFinishedLoadingWidgetSpecific() const;
2016-04-14 21:42:47 +00:00
std::vector<ResId> GetFontAssets() const {return {x114_textSupport.x50_fontId};}
2016-03-22 02:27:46 +00:00
void SetDimensions(const zeus::CVector2f& dim, bool initVBO);
void ScaleDimensions(const zeus::CVector3f& scale);
void Draw(const CGuiWidgetDrawParms& parms) const;
static CGuiTextPane* Create(CGuiFrame* frame, CInputStream& in, bool);
};
2016-03-10 03:47:37 +00:00
}
#endif // __URDE_CGUITEXTPANE_HPP__