aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI/UIControl_EnchantmentBook.h
blob: cbe2cf2bf0ecc598947e6693bcf8c07fe1fd1a2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#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;
	shared_ptr<ItemInstance> last;

	//float m_fScreenWidth,m_fScreenHeight;
	//float m_fRawWidth,m_fRawHeight;

	void tickBook();

public:
	UIControl_EnchantmentBook();

	void render(IggyCustomDrawCallbackRegion *region);
};