wavelength 1.0.0
Loading...
Searching...
No Matches
ovydialog.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/hideablepanel.h"
4#include "rnd/rndanimatable.h"
5#include "rnd/rndtext.h"
6#include "rnd/rndview.h"
7
13class OvyDialog : public HideablePanel {
14public:
22 explicit OvyDialog(RndView *pHudView);
23
30 ~OvyDialog() override = default;
31
39 void SetPosition(float fFrame) {
40 if (0.0f <= fFrame) {
41 mPosAnim->SetFrame(fFrame);
42 }
43 }
44
54 void Open(const char *pszText, float fSize, float fPosition);
55
62 void Close();
63
64private:
65 RndText *mText;
66 RndAnimatable *mSizeAnim;
67 RndAnimatable *mPosAnim;
68};
HideablePanel(const char *pszAnim, const char *pszDrawable, bool bShown)
Construct a panel and find its animation and drawable.
void Close()
Slide the panel out.
~OvyDialog() override=default
Destroy the panel.
void Open(const char *pszText, float fSize, float fPosition)
Fill the panel and slide it in.
OvyDialog(RndView *pHudView)
Construct a hidden panel and draw it into the letterboxed view of the head-up display.
void SetPosition(float fFrame)
Pose the place of the panel, unless the frame is negative.
Definition ovydialog.h:39
Mix-in for an object driven by a frame.
Definition rndanimatable.h:16
Text drawn with a bitmap font as a mesh of one quad per character.
Definition rndtext.h:27
View that shows the children of another view, its children owner, under its own transform and frame.
Definition rndview.h:27