2022-11-07 17:06:11 +00:00
|
|
|
#ifndef _CGUITEXTPANE
|
|
|
|
#define _CGUITEXTPANE
|
|
|
|
|
|
|
|
#include "GuiSys/CGuiPane.hpp"
|
|
|
|
|
|
|
|
#include "GuiSys/CGuiTextSupport.hpp"
|
|
|
|
|
|
|
|
#include "Kyoto/SObjectTag.hpp"
|
|
|
|
|
|
|
|
class CSimplePool;
|
|
|
|
class CColor;
|
|
|
|
class CGuiTextProperties;
|
|
|
|
|
|
|
|
class CGuiTextPane : public CGuiPane {
|
|
|
|
public:
|
|
|
|
CGuiTextPane(const CGuiWidgetParms& parms, CSimplePool* sp, const CVector2f& dim, const CVector3f& vec,
|
|
|
|
CAssetId fontId, const CGuiTextProperties& props, const CColor& col1, const CColor& col2,
|
|
|
|
int padX, int padY, CAssetId jpFontId, int jpExtentX, int jpExtentY);
|
|
|
|
|
|
|
|
CGuiTextSupport& TextSupport() { return xd4_textSupport; }
|
|
|
|
const CGuiTextSupport& GetTextSupport() const { return xd4_textSupport; }
|
2023-02-06 07:21:28 +00:00
|
|
|
void Update(float dt);
|
|
|
|
bool GetIsFinishedLoadingWidgetSpecific() const;
|
|
|
|
void SetDimensions(const CVector2f& dim, bool initVBO);
|
|
|
|
void ScaleDimensions(const CVector3f& scale);
|
|
|
|
void Draw(const CGuiWidgetDrawParms& parms) const;
|
|
|
|
// bool TestCursorHit(const CMatrix4f& vp, const CVector2f& point) const;
|
2022-11-07 17:06:11 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
CGuiTextSupport xd4_textSupport;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _CGUITEXTPANE
|