Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
228 changes: 92 additions & 136 deletions Minecraft.Client/Common/UI/UIControl_PlayerSkinPreview.cpp

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions Minecraft.Client/Common/UI/UIControl_PlayerSkinPreview.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

class ModelPart;
class EntityRenderer;
class HumanoidModel;

class UIControl_PlayerSkinPreview : public UIControl
{
Expand Down Expand Up @@ -51,8 +52,12 @@ class UIControl_PlayerSkinPreview : public UIControl
float m_swingTime;

ESkinPreviewAnimations m_currentAnimation;
//vector<Model::SKIN_BOX *> *m_pvAdditionalBoxes;
vector<ModelPart *> *m_pvAdditionalModelParts;

HumanoidModel *m_pPreviewModel;
int m_iPreviewModelType;
int m_iPreviewTexWidth;
int m_iPreviewTexHeight;
public:
enum ESkinPreviewFacing
{
Expand All @@ -62,6 +67,7 @@ class UIControl_PlayerSkinPreview : public UIControl
};

UIControl_PlayerSkinPreview();
virtual ~UIControl_PlayerSkinPreview();

virtual void tick();

Expand All @@ -87,4 +93,6 @@ class UIControl_PlayerSkinPreview : public UIControl
void render(EntityRenderer *renderer, double x, double y, double z, float rot, float a);
bool bindTexture(const wstring& urlTexture, int backupTexture);
bool bindTexture(const wstring& urlTexture, const wstring& backupTexture);
};
void RebuildPreviewModel();
void DestroyPreviewModel();
};
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Loading