Remove Win32 state types from player skin preview

This commit is contained in:
notmatthewbeshay 2026-03-10 23:02:42 +11:00
parent 305d5f0812
commit 12bc5aa597
2 changed files with 6 additions and 4 deletions

View file

@ -16,7 +16,7 @@
UIControl_PlayerSkinPreview::UIControl_PlayerSkinPreview()
{
UIControl::setControlType(UIControl::ePlayerSkinPreview);
m_bDirty = FALSE;
m_bDirty = false;
m_fScale = 1.0f;
m_fAlpha = 1.0f;

View file

@ -1,5 +1,7 @@
#pragma once
#include <cstdint>
#include "UIControl.h"
#include "../../Minecraft.Client/Textures/Textures.h"
@ -23,7 +25,7 @@ private:
e_SkinPreviewAnimation_Count,
};
BOOL m_bDirty;
bool m_bDirty;
float m_fScale,m_fAlpha;
std::wstring m_customTextureUrl;
@ -43,7 +45,7 @@ private:
float m_walkAnimPos;
bool m_bAutoRotate, m_bRotatingLeft;
BYTE m_rotateTick;
std::uint8_t m_rotateTick;
float m_fTargetRotation, m_fOriginalRotation;
int m_framesAnimatingRotation;
bool m_bAnimatingToFacing;
@ -87,4 +89,4 @@ private:
void render(EntityRenderer *renderer, double x, double y, double z, float rot, float a);
bool bindTexture(const std::wstring& urlTexture, int backupTexture);
bool bindTexture(const std::wstring& urlTexture, const std::wstring& backupTexture);
};
};