4jcraft/Minecraft.Client/Platform/Common/UI/UIControl_EnchantmentBook.h
2026-03-30 00:16:26 -05:00

33 lines
627 B
C++

#pragma once
#include "UIControl.h"
class UIScene_EnchantingMenu;
class BookModel;
class UIControl_EnchantmentBook : public UIControl {
private:
BookModel* model;
Random random;
// 4J JEV: Book animation variables.
int time;
float flip, oFlip, flipT, flipA;
float open, oOpen;
// bool m_bDirty;
// float m_fScale,m_fAlpha;
// int m_iPad;
std::shared_ptr<ItemInstance> last;
// float m_fScreenWidth,m_fScreenHeight;
// float m_fRawWidth,m_fRawHeight;
void tickBook();
public:
UIControl_EnchantmentBook();
void render(IggyCustomDrawCallbackRegion* region);
};