349 enum Mode { kModeNone = 0, kModeColor = 1, kModePart = 2, kModeInventory = 3 };
352 enum Highlight { kHighlightCanvas = 0, kHighlightInventory = 1, kHighlightNone = 2 };
360 void ShowPalette(
int nShowing);
371 void ShowInventory(
int nShowing);
381 void SetHighlight(
int nHighlight);
384 void ShowPartPage(Rnd::View *pView,
int nRowCount,
const HxStr &heading);
388 void ApplyPaletteToCurrentMesh();
396 void HideGridCursor();
404 void UpdateGridCursor();
413 void ShowDirections(
int nPage);
421 bool IsCurrentCellFilled();
429 std::vector<HxStr> *GetCurrentPageNames();
437 void PreviewCurrentTemplate();
445 void GetPalettePosition(Vector2 &position);
453 void MoveCrossOrigin(
const Vector2 &position);
463 void MoveCrossOrigin(
float flX,
float flY);
471 void UpdateCrossOrigin();
479 Color *PaletteColorAt(
const Vector2 &position);
487 void ApplyPaletteColor(Color &color);
496 void SetPaletteFromPart(FreqPart *pPart);
504 FreqPart *SelectCurrentPart();
512 void DeleteCurrentPart();
522 void OnGridTopReached();
532 void OnGridBottomReached();
540 float PartScale(FreqPart *pPart);
542 Rnd::View *mMainInventoryView;
543 Rnd::View *mBodyView;
544 Rnd::View *mHeadView;
545 Rnd::View *mFaceView;
546 Rnd::View *mDetailsView;
547 Rnd::View *mLogosView;
548 Rnd::View *mEditView;
549 Rnd::View *mCurrentView;
550 std::list<Rnd::Object *> mPartMeshes;
554 int mDetailsRowCount;
556 int mCurrentRowCount;
560 Rnd::Text *mLimitText;
561 std::vector<Rnd::Mesh *> mEditMeshes;
565 MetFreqMakerCanvasScreen *mCanvas;
566 Rnd::View *mCrossOrigin;
570 std::vector<HxStr> mFaceNames;
571 std::vector<HxStr> mHeadNames;
572 std::vector<HxStr> mBodyNames;
573 std::vector<HxStr> mDetailsNames;
574 std::vector<HxStr> mLogosNames;
One placed part of a FreQ avatar.
Definition freqpart.h:25
Canvas of the FreQ maker, the screen the avatar under edit is drawn on.
Definition metfreqmakercanvasscreen.h:37
static MetFreqMakerInventoryScreen * New(MetRenderer *pRenderer, int nPriority)
Build the screen on the heap.
virtual void PlayModeToggleSound()
Play SND_MET_FM_TOGGLE.
void HidePages()
Hide every page, the palette, and the inventory decorations, and clear the heading.
virtual int PollContainerLoad()
Report the container load finished once the FreQ maker assets and the directions screen's container a...
virtual void PlayMoveSound()
Play SND_MET_FM_COLOR_MOVE in the colour mode or SND_MET_FM_PART_MOVE in the part mode.
virtual void PlayLeaveSound(int nSelector)
Play the base leave sound while an editing mode is active.
virtual void PlayCycleLeftSound(int nSelector)
Play SND_MET_FM_PART_SELECT while the inventory is browsed.
virtual void OnRepeatingSoundFinished(Rnd::Button *pButton)
Make this screen the active panel again, through ActivateNamedPanel() with MetFreqMakerInventoryScree...
virtual void OnPanelActivated()
Start browsing the inventory.
virtual void ResolveContainerViews()
Resolve the base views, list every part template on its page, and resolve the screen's objects.
virtual void PlayFlipSound()
Play SND_MET_FM_FLIP_BUBBLE.
void ShowFacePage()
Show the face page.
void ShowDetailsPage()
Show the details page.
void ShowBodyPage()
Show the body page.
virtual void PlayCycleRightSound(int nSelector)
Play SND_MET_FM_PART_SELECT while the inventory is browsed.
MetFreqMakerInventoryScreen(MetRenderer *pRenderer, int nPriority)
Construct the screen.
void ShowEditPage()
Rebuild the edit page from the canvas's parts and show it.
virtual void PlayToggleSound()
Play SND_MET_FM_TOGGLE.
virtual void HandleCommand(const MetScreenCommand *pCommand)
Apply one command to the grid, the palette, or the part under edit, by editing mode.
virtual void PlayHighSound(int nSelector)
Play SND_MET_FM_PART_SELECT while the inventory is browsed.
virtual ~MetFreqMakerInventoryScreen()
Delete the seven views and every part mesh, and empty the five name lists.
virtual void EnterAndShow()
Show the screen with no editing mode active.
virtual void PlayDeleteSound()
Play SND_MET_FM_DELETE.
void ShowLogosPage()
Show the logos page.
virtual void OnEnterFinished()
Hide the palette and the inventory, and return the palette cursor to its starting cell and colour.
void ShowHeadPage()
Show the head page.
virtual void PlaySlideSound(int nSelector)
Play the base slide sound while an editing mode is active.
Front-end renderer that owns the screen stack and drives every MetScreen.
Definition metrenderer.h:68
MetScreen(MetRenderer *pRenderer, int nPriority, const HxStr &name, const HxStr &directory, const HxStr &file)
Construct a screen and start its container load.
Indexed triangle mesh with one material.
Definition mesh.h:46
Base of every object the renderer can load, resolve by name, and serialise.
Definition object.h:43
Run of text drawn as a quad per glyph.
Definition text.h:57
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
One navigation command delivered to a screen.
Definition metscreen.h:46
Two-component vector, used for texture coordinates.
Definition vector2.h:10