4jcraft/targets/app/common/UI/Controls/UIControl_EnchantmentBook.h

44 lines
942 B
C++

#pragma once
#include <memory>
#include "app/common/UI/Controls/UIControl.h"
#include "app/common/UI/Controls/UIControl_EnchantmentBook.h"
#include "app/common/UI/UIScene.h"
#include "app/linux/Iggy/include/iggy.h"
#ifndef _ENABLEIGGY
#include "app/linux/Stubs/iggy_stubs.h"
#endif
#include "UIControl.h"
#include "java/Random.h"
class UIScene_EnchantingMenu;
class BookModel;
class ItemInstance;
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);
};