ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <dialogpanel.h>

Inheritance diagram for Stark::DialogPanel:
Collaboration diagram for Stark::DialogPanel:

List of all members.

Public Member Functions

 DialogPanel (Gfx::Driver *gfx, Cursor *cursor)
virtual ~DialogPanel ()
void reset ()
 Abort the currently playing dialog.
void onScreenChanged ()
 The screen resolution changed, rebuild the text textures accordingly.
void scrollUp ()
 Scroll up and down the panel.
void scrollDown ()
void focusNextOption ()
 Select the next or previous option.
void focusPrevOption ()
void selectFocusedOption ()
 Select the focused option.
void selectOption (uint index)
 Select an option by index.

Protected Member Functions

void onMouseMove (const Common::Point &pos) override
void onClick (const Common::Point &pos) override
void onRightClick (const Common::Point &pos) override
void onGameLoop () override
void onRender () override

Private Member Functions

void updateSubtitleVisual ()
void clearSubtitleVisual ()
void updateDialogOptions ()
void clearOptions ()
void renderOptions ()
void renderScrollArrows () const
void updateFirstVisibleOption ()
void updateLastVisibleOption ()
void abortCurrentSpeech ()

Private Attributes

VisualImageXMG_passiveBackGroundTexture
VisualImageXMG_activeBackGroundTexture
VisualImageXMG_scrollUpArrowImage
VisualImageXMG_scrollDownArrowImage
VisualImageXMG_dialogOptionBullet
VisualText_subtitleVisual
bool _scrollUpArrowVisible
bool _scrollDownArrowVisible
Common::Rect _scrollUpArrowRect
Common::Rect _scrollDownArrowRect
Resources::Speech_currentSpeech
uint32 _firstVisibleOption
uint32 _lastVisibleOption
uint32 _focusedOption
Common::Array< ClickText * > _options
bool _acceptIdleMousePos

Static Private Attributes

static const uint32 _aprilColor = 0xFF00C0FF
static const uint32 _otherColor = 0xFF4040FF
static const uint32 _optionsTop = 4
static const uint32 _optionsLeft = 30
static const uint32 _optionsHeight = 80

Detailed Description

Definition at line 44 of file dialogpanel.h.


Constructor & Destructor Documentation

Stark::DialogPanel::DialogPanel ( Gfx::Driver gfx,
Cursor cursor 
)

Definition at line 43 of file dialogpanel.cpp.

Stark::DialogPanel::~DialogPanel (  )  [virtual]

Definition at line 71 of file dialogpanel.cpp.


Member Function Documentation

void Stark::DialogPanel::abortCurrentSpeech (  )  [private]

Definition at line 76 of file dialogpanel.cpp.

void Stark::DialogPanel::clearOptions (  )  [private]

Definition at line 88 of file dialogpanel.cpp.

void Stark::DialogPanel::clearSubtitleVisual (  )  [private]

Definition at line 83 of file dialogpanel.cpp.

void Stark::DialogPanel::focusNextOption (  ) 

Select the next or previous option.

Definition at line 289 of file dialogpanel.cpp.

void Stark::DialogPanel::focusPrevOption (  ) 

Definition at line 302 of file dialogpanel.cpp.

void Stark::DialogPanel::onClick ( const Common::Point pos  )  [override, protected, virtual]

Reimplemented from Stark::Window.

Definition at line 236 of file dialogpanel.cpp.

void Stark::DialogPanel::onGameLoop (  )  [override, protected, virtual]

Reimplemented from Stark::Window.

Definition at line 120 of file dialogpanel.cpp.

void Stark::DialogPanel::onMouseMove ( const Common::Point pos  )  [override, protected, virtual]

Reimplemented from Stark::Window.

Definition at line 198 of file dialogpanel.cpp.

void Stark::DialogPanel::onRender (  )  [override, protected, virtual]

Implements Stark::Window.

Definition at line 148 of file dialogpanel.cpp.

void Stark::DialogPanel::onRightClick ( const Common::Point pos  )  [override, protected, virtual]

Reimplemented from Stark::Window.

Definition at line 252 of file dialogpanel.cpp.

void Stark::DialogPanel::onScreenChanged (  ) 

The screen resolution changed, rebuild the text textures accordingly.

Definition at line 329 of file dialogpanel.cpp.

void Stark::DialogPanel::renderOptions (  )  [private]

Definition at line 95 of file dialogpanel.cpp.

void Stark::DialogPanel::renderScrollArrows (  )  const [private]

Definition at line 110 of file dialogpanel.cpp.

void Stark::DialogPanel::reset (  ) 

Abort the currently playing dialog.

Definition at line 259 of file dialogpanel.cpp.

void Stark::DialogPanel::scrollDown (  ) 

Definition at line 278 of file dialogpanel.cpp.

void Stark::DialogPanel::scrollUp (  ) 

Scroll up and down the panel.

Definition at line 267 of file dialogpanel.cpp.

void Stark::DialogPanel::selectFocusedOption (  ) 

Select the focused option.

Definition at line 315 of file dialogpanel.cpp.

void Stark::DialogPanel::selectOption ( uint  index  ) 

Select an option by index.

Definition at line 322 of file dialogpanel.cpp.

void Stark::DialogPanel::updateDialogOptions (  )  [private]

Definition at line 179 of file dialogpanel.cpp.

void Stark::DialogPanel::updateFirstVisibleOption (  )  [private]

Definition at line 337 of file dialogpanel.cpp.

void Stark::DialogPanel::updateLastVisibleOption (  )  [private]

Definition at line 362 of file dialogpanel.cpp.

void Stark::DialogPanel::updateSubtitleVisual (  )  [private]

Definition at line 165 of file dialogpanel.cpp.


Member Data Documentation

Definition at line 105 of file dialogpanel.h.

const uint32 Stark::DialogPanel::_aprilColor = 0xFF00C0FF [static, private]

Definition at line 107 of file dialogpanel.h.

Definition at line 99 of file dialogpanel.h.

Definition at line 102 of file dialogpanel.h.

Definition at line 103 of file dialogpanel.h.

Definition at line 102 of file dialogpanel.h.

Definition at line 104 of file dialogpanel.h.

const uint32 Stark::DialogPanel::_optionsHeight = 80 [static, private]

Definition at line 111 of file dialogpanel.h.

const uint32 Stark::DialogPanel::_optionsLeft = 30 [static, private]

Definition at line 110 of file dialogpanel.h.

const uint32 Stark::DialogPanel::_optionsTop = 4 [static, private]

Definition at line 109 of file dialogpanel.h.

const uint32 Stark::DialogPanel::_otherColor = 0xFF4040FF [static, private]

Definition at line 108 of file dialogpanel.h.

Definition at line 95 of file dialogpanel.h.

Definition at line 94 of file dialogpanel.h.

Definition at line 92 of file dialogpanel.h.


The documentation for this class was generated from the following files:


Generated on Sat Jan 12 2019 05:05:12 for ResidualVM by doxygen 1.7.1
curved edge   curved edge