Palettes::AdvancedItemViewer class

Base classes

class ItemViewer

Public types

struct Message

Public static variables

static const uint32_t TYPE

Constructors, destructors, conversion operators

AdvancedItemViewer()

Public functions

auto AddRef() -> int override
auto Release() -> int override
auto Cast(uint32_t type) const -> void* override
void SetAutoRotate(bool enabled)
void SetZoom(float zoom)
void Initialize(const ResourceKey& nameKey, IWindow* pWindow, IWindow* pParentWindow, uint32_t messageID, PaletteItem* pItem, PaletteInfo* pPaletteInfo, bool)
void Unload() override
void Update(int time) override
void Load(const ResourceKey& fileName) override
void SetName(const ResourceKey& fileName) override
void func2Ch(bool) override
auto func30h() const -> bool override
auto GetWindow() const -> IWindow* override
void Set3dPreview(bool enabled) override
auto GetAnimatedCreature() const -> Anim::AnimatedCreature* override
void func40h() override
auto func44h() -> bool override
void func48h() override
void func4Ch() override
void func50h() override
void func54h(int) override
auto func58h() -> float override
auto IsOutside() -> bool override
void OnOutside() override
void func64h() override
void RotateModel() override
auto func6Ch() -> bool virtual
void func70h() virtual
auto func74h() -> int virtual
void func78h(int) virtual
void func7Ch() virtual
auto GetEventFlags() const -> int override
Gets the flags that represent which type of messages this IWinProc can handle.
auto HandleUIMessage(IWindow* pWindow, const UTFWin::Message& message) -> bool override
Method called every time a message is received on a window that has this IWinProc added.
auto HandleMessage(uint32_t messageID, void* pMessage) -> bool override
Called every time a message is received.

Public variables

DefaultRefCountedPtr field_17C
PaletteItemPtr mpItem
bool field_184
float field_188
ObjectPtr field_18C
int field_190
ObjectPtr field_194
bool field_198
bool field_199
bool field_19A
Clock field_1A0
ObjectPtr field_1B8
ObjectPtr field_1BC
int field_1C0
int field_1C4

Function documentation

int Palettes::AdvancedItemViewer::GetEventFlags() const override

Gets the flags that represent which type of messages this IWinProc can handle.

This allows for better performance, since generally a procedure only needs to listen specific events. The flags are in the kEventFlag... values.

bool Palettes::AdvancedItemViewer::HandleUIMessage(IWindow* pWindow, const UTFWin::Message& message) override

Method called every time a message is received on a window that has this IWinProc added.

Parameters
pWindow The window that received this message.
message The message received.
Returns Whether the message was handled or not.

This method is responsible of handling (or not) the message. This method receives the IWindow that is currently receiving the message; this way, the same IWinProc can be listening for more than one window. This method returns whether the message was handled or not; if it was handled, no other IWinProcs will be called on that window.

bool Palettes::AdvancedItemViewer::HandleMessage(uint32_t messageID, void* pMessage) override

Called every time a message is received.

Parameters
messageID The ID of the message received.
pMessage
Returns Whether the message was handled or not.

Only the messages with an ID this listened signed up for will call this event.