2#include <game/bases/d_2d.hpp>
3#include <game/bases/d_lyttextBox.hpp>
4#include <game/bases/d_tag_processor.hpp>
5#include <game/mLib/m_2d.hpp>
25 bool ReadResourceEx(
const char *name,
int allocDirection,
bool isLocalized);
50 void NPaneRegister(
const char **paneNames, nw4r::lyt::Pane **panes,
int count);
56 void WPaneRegister(
const char **windowPaneNames, nw4r::lyt::Window **panes,
int count);
62 void PPaneRegister(
const char **picPaneNames, nw4r::lyt::Picture **panes,
int count);
75 void TPaneNameRegister(
const char **textboxNames,
const int *messageIDs,
int messageGroup,
int count);
86 void GroupRegister(
const char **groupNames,
const int *animeIdxs,
int count);
LytTextBox_c * findTextBox(const char *name)
Finds a text box by name.
bool isAnime(int animeIdx)
Returns whether the specified animation is currently playing.
bool ReadResource3(const char *name, int allocDirection)
Reads an .arc file which contains the layout.
void AnimeResRegister(const char **animeNames, int count)
Loads animation resources given by their names.
bool ReadResourceEx(const char *name, int allocDirection, bool isLocalized)
Reads an .arc file which contains the layout.
void NPaneRegister(const char **paneNames, nw4r::lyt::Pane **panes, int count)
Finds null panes by name and registers them to the list.
bool * mpEnabledAnims
A list of the enabled animations.
void TPaneNameRegister(const char **textboxNames, const int *messageIDs, int messageGroup, int count)
Finds text boxes by name, sets their messages, and registers them to the list.
void GroupRegister(const char **groupNames, const int *animeIdxs, int count)
Registers animation groups to the layout.
void TPaneRegister(const char **textboxNames, LytTextBox_c **panes, int count)
Finds text boxes by name and registers them to the list.
static TagProcessor_c s_TagPrc
The tag processor for layouts.
void AnimePlay()
Starts playing all enabled animations.
bool ReadResource(const char *name, bool isLocalized)
Reads an .arc file which contains the layout.
int mAnimGroupCount
The number of animation groups used by the layout.
bool isAllAnime()
Returns whether any animation is currently playing.
void LoopAnimeStartSetup(int animeIdx)
Prepares a looping animation to be played.
int mAnimCount
The number of animations used by the layout.
m2d::AnmResV2_c * mpAnimRes
The animations used by the layout.
m2d::AnmGroup_c * mpAnimGroup
The animation groups used by the layout.
void WPaneRegister(const char **windowPaneNames, nw4r::lyt::Window **panes, int count)
Finds windows by name and registers them to the list.
void allocStringBuffer(nw4r::lyt::Pane *pane)
Recursively allocates string buffers for all text boxes in the layout.
void SetScissorMask(const nw4r::lyt::Pane *pane, d2d::ScissorMask &scissorMask)
void ReverseAnimeStartSetup(int animeIdx, bool startAtEnd)
Prepares a reverse animation to be played.
virtual ~LytBase_c()
Destroys the layout.
virtual bool build(const char *name, d2d::ResAccMult_c *resAcc)
Builds the layout from a binary layout file.
LytBase_c()
Constructs a new layout.
void PPaneRegister(const char **picPaneNames, nw4r::lyt::Picture **panes, int count)
Finds picture panes by name and registers them to the list.
void AllAnimeEndSetup()
Prepares all animations to be stopped.
bool ReadResource2(const char *name, int allocDirection)
Reads an .arc file which contains the layout.
bool doDelete()
Cleans up all resources used by the layout.
d2d::ResAccMultLoader_c mResAccessorLoader
The resource loader used to load the layout's resources.
void AnimeEndSetup(int animeIdx)
Prepares an animation to be stopped.
void AnimeStartBaseSetup(int animeIdx)
Base setup for starting an animation.
int mLastStartedAnimNum
The number of the most recently started animation.
void AnimeStartSetup(int animeIdx, bool startAtEnd)
Prepares an animation to be played.
A text box class with BMG message support.
Stores clipping settings for a layout.