2016-03-10 03:47:37 +00:00
|
|
|
#ifndef __URDE_CGUIMODEL_HPP__
|
|
|
|
#define __URDE_CGUIMODEL_HPP__
|
|
|
|
|
|
|
|
#include "CGuiWidget.hpp"
|
2016-03-12 04:58:56 +00:00
|
|
|
#include "CToken.hpp"
|
|
|
|
#include "Graphics/CModel.hpp"
|
2016-03-10 03:47:37 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
2017-01-22 01:40:12 +00:00
|
|
|
class CSimplePool;
|
2016-03-10 03:47:37 +00:00
|
|
|
|
2016-03-12 04:58:56 +00:00
|
|
|
class CGuiModel : public CGuiWidget
|
|
|
|
{
|
2017-12-21 03:19:54 +00:00
|
|
|
TLockedToken<CModel> xb8_model;
|
|
|
|
CAssetId xc8_modelId;
|
|
|
|
u32 xcc_lightMask;
|
2016-03-12 04:58:56 +00:00
|
|
|
public:
|
2017-08-13 05:26:14 +00:00
|
|
|
CGuiModel(const CGuiWidgetParms& parms, CSimplePool* sp, CAssetId modelId, u32 lightMask, bool flag);
|
2017-01-29 03:58:16 +00:00
|
|
|
FourCC GetWidgetTypeID() const { return FOURCC('MODL'); }
|
2016-03-17 02:18:01 +00:00
|
|
|
|
2017-08-13 05:26:14 +00:00
|
|
|
std::vector<CAssetId> GetModelAssets() const;
|
2016-03-17 02:18:01 +00:00
|
|
|
bool GetIsFinishedLoadingWidgetSpecific() const;
|
|
|
|
void Touch() const;
|
|
|
|
void Draw(const CGuiWidgetDrawParms& parms) const;
|
|
|
|
|
2017-01-22 01:40:12 +00:00
|
|
|
static std::shared_ptr<CGuiWidget> Create(CGuiFrame* frame, CInputStream& in, CSimplePool* sp);
|
2016-03-12 04:58:56 +00:00
|
|
|
};
|
2016-03-10 03:47:37 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CGUIMODEL_HPP__
|