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
|
|
|
|
{
|
|
|
|
|
2016-03-12 04:58:56 +00:00
|
|
|
class CGuiModel : public CGuiWidget
|
|
|
|
{
|
|
|
|
TLockedToken<CModel> xf8_model;
|
2016-04-14 21:42:47 +00:00
|
|
|
ResId x108_modelId;
|
2016-03-17 02:18:01 +00:00
|
|
|
u32 x10c_lightMask;
|
2016-03-12 04:58:56 +00:00
|
|
|
public:
|
2016-04-14 21:42:47 +00:00
|
|
|
CGuiModel(const CGuiWidgetParms& parms, ResId modelId, u32 lightMask, bool flag);
|
2016-03-17 02:18:01 +00:00
|
|
|
FourCC GetWidgetTypeID() const {return FOURCC('MODL');}
|
|
|
|
|
2016-04-14 21:42:47 +00:00
|
|
|
std::vector<ResId> GetModelAssets() const;
|
2016-03-17 02:18:01 +00:00
|
|
|
bool GetIsFinishedLoadingWidgetSpecific() const;
|
|
|
|
void Touch() const;
|
|
|
|
void Draw(const CGuiWidgetDrawParms& parms) const;
|
|
|
|
|
2016-03-12 04:58:56 +00:00
|
|
|
static CGuiModel* Create(CGuiFrame* frame, CInputStream& in, bool);
|
|
|
|
};
|
2016-03-10 03:47:37 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CGUIMODEL_HPP__
|