22#ifndef ULTIMA8_GUMPS_SHAPEVIEWERGUMP_H
23#define ULTIMA8_GUMPS_SHAPEVIEWERGUMP_H
25#include "ultima/ultima8/gumps/modal_gump.h"
26#include "ultima/ultima8/misc/classtype.h"
41 DisposeAfterUse::Flag _disposeAfterUse;
44 : _name(name), _archive(archive), _disposeAfterUse(disposeAfterUse) {}
47 ENABLE_RUNTIME_CLASSTYPE()
52 uint32 flags = FLAG_PREVENT_SAVE, int32 layer = LAYER_MODAL);
57 bool OnKeyDown(
int key,
int mod) override;
62 static
void U8ShapeViewer();
64 bool loadData(
Common::ReadStream *rs);
65 void saveData(
Common::WriteStream *ws) override;
69 unsigned int _curArchive;
81 int32 _shapeW, _shapeH, _shapeX, _shapeY;
Definition: modal_gump.h:34
Definition: render_surface.h:37
Definition: shape_archive.h:34
Definition: shape_viewer_gump.h:36
uint32 _fontNo
The font used in the shape viewer.
Definition: shape_viewer_gump.h:76
void InitGump(Gump *newparent, bool take_focus=true) override
void PaintThis(RenderSurface *, int32 lerp_factor, bool scaled) override
Overloadable method to Paint just this Gump (RenderSurface is relative to this)
Definition: algorithm.h:29
Definition: shape_viewer_gump.h:38