mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-05-21 22:55:04 +00:00
Implement Book & Quill: - IUIScene_WritingBookMenu and UIScene_BookAndQuillMenu for UI - Edited UIControl_Label to add direct editing (quite hardcoded to my needs right now) - Reimplement scrapped custom payload packets for books and signing - Other misc changes TODO: - Coloured and scambled text - Book copying - Clean up code
18 lines
621 B
C++
18 lines
621 B
C++
#pragma once
|
|
|
|
#include "Item.h"
|
|
|
|
class WrittenBookItem : public Item
|
|
{
|
|
public:
|
|
|
|
wstring authorName = L"Unknown";
|
|
|
|
WrittenBookItem(int id);
|
|
bool isFoil(shared_ptr<ItemInstance> itemInstance);
|
|
const Rarity* getRarity(shared_ptr<ItemInstance> itemInstance) override;
|
|
void appendHoverText(shared_ptr<ItemInstance> itemInstance, shared_ptr<Player> player, vector<HtmlString>* lines, bool advanced);
|
|
|
|
virtual shared_ptr<ItemInstance> use(shared_ptr<ItemInstance> instance, Level* level, shared_ptr<Player> player);
|
|
virtual bool TestUse(shared_ptr<ItemInstance> itemInstance, Level* level, shared_ptr<Player> player);
|
|
}; |