358 void addLoadedPart(
FreqPart *pPart);
366 void moveCursorDraw(
int nSteps);
368 std::list<FreqPart *> mParts;
380 unsigned char mTailPadding[0x8];
void bringForward()
Move the previewed or selected mesh one step later in the draw order.
void setColor(const Color &color, const Vector2 &palettePosition)
Record the current colour and apply it to the previewed or selected part.
void ensureCursorMesh()
Create the preview mesh if there is none, hanging it from mView, and clear three placement words.
void recentrePart(int nIndex)
Move one part and the cursor to the origin and bring the part to the front.
~FreqAppearanceDetail()
Discard every part and delete the view.
Rnd::View * mView
The avatar view the constructor allocates, 0x120 bytes.
Definition freqappearancedetail.h:377
void randomize()
Give each part that may be randomised a random change.
FreqPart * selectPart(int nIndex)
Start editing one part, retaining a copy to revert to.
int drawIndexOf(FreqPart *pPart)
Report where a part's mesh sits in the view's draw order.
void sendBackward()
Move the previewed or selected mesh one step earlier in the draw order.
void resetCursor()
Hide the preview mesh at the origin with no material and return the placement state to its unset valu...
void clear()
Delete every part, empty the view, and reset the placement state.
void deletePart(int nIndex)
Reset the placement state and delete one part.
FreqAppearanceDetail(const FreqAppearanceDetail &other)
Build a fresh avatar and copy another one's parts in.
std::list< FreqPart * > & parts()
Report the parts the avatar is built from.
Definition freqappearancedetail.h:127
void toggleMirror()
Mirror the previewed or selected part.
void save(OBStream &stream)
Write the avatar to a stream.
void pack(FreqPart::Packed *pOut, int *pCount)
Pack every part into consecutive 8-byte records.
void unpack(const FreqPart::Packed *pRecords, int nCount)
Append parts unpacked from consecutive 8-byte records.
void placeCursor()
Place the previewed part, or stop editing the selected one.
void selectTemplate(const HxStr &name)
Start placing a new part of one template.
void detachFrom(Rnd::View *pParent)
Unhang mView from a parent view.
void revertSelection()
Restore the selected part's colour, mirroring, draw position, and placement from the copy selectPart(...
void load(IBStream &stream)
Append the parts save() wrote.
void copyFrom(const FreqAppearanceDetail &other)
Append a copy of each of another avatar's parts, in the other view's draw order.
void nudgeCursor(int nStepX, int nStepZ)
Move the cursor one unit, moving the preview mesh or the selected part along with it.
void attachTo(Rnd::View *pParent)
Hang mView from a parent view.
FreqAppearanceDetail()
Start with an empty part list and a fresh view named by the FreQ maker asset manager.
FreqMakerCursor()
Start with no template selected, an unset scale, and the FreQ maker default colour.
One placed part of a FreQ avatar.
Definition freqpart.h:25
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Input half of the byte stream interface.
Definition ibstream.h:36
Output half of the byte stream interface.
Definition obstream.h:25
Root of a loadable scene.
Definition view.h:47
The rendering engine.
Definition animhelper.h:3
Linear colour with four float components.
Definition color.h:10
Eight-byte transfer form of a part that Pack() writes and Unpack() reads.
Definition freqpart.h:32
Two-component vector, used for texture coordinates.
Definition vector2.h:10