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 Color _aprilColor = Color(0xFF, 0xC0, 0x00)
static const Color _otherColor = Color(0xFF, 0x40, 0x40)
static const uint32 _optionsTop = 4
static const uint32 _optionsLeft = 30
static const uint32 _optionsHeight = 80

Detailed Description

Definition at line 45 of file dialogpanel.h.


Constructor & Destructor Documentation

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

Definition at line 46 of file dialogpanel.cpp.

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

Definition at line 74 of file dialogpanel.cpp.


Member Function Documentation

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

Definition at line 79 of file dialogpanel.cpp.

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

Definition at line 91 of file dialogpanel.cpp.

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

Definition at line 86 of file dialogpanel.cpp.

void Stark::DialogPanel::focusNextOption (  ) 

Select the next or previous option.

Definition at line 292 of file dialogpanel.cpp.

void Stark::DialogPanel::focusPrevOption (  ) 

Definition at line 305 of file dialogpanel.cpp.

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

Reimplemented from Stark::Window.

Definition at line 239 of file dialogpanel.cpp.

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

Reimplemented from Stark::Window.

Definition at line 123 of file dialogpanel.cpp.

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

Reimplemented from Stark::Window.

Definition at line 201 of file dialogpanel.cpp.

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

Implements Stark::Window.

Definition at line 151 of file dialogpanel.cpp.

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

Reimplemented from Stark::Window.

Definition at line 255 of file dialogpanel.cpp.

void Stark::DialogPanel::onScreenChanged (  ) 

The screen resolution changed, rebuild the text textures accordingly.

Definition at line 332 of file dialogpanel.cpp.

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

Definition at line 98 of file dialogpanel.cpp.

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

Definition at line 113 of file dialogpanel.cpp.

void Stark::DialogPanel::reset (  ) 

Abort the currently playing dialog.

Definition at line 262 of file dialogpanel.cpp.

void Stark::DialogPanel::scrollDown (  ) 

Definition at line 281 of file dialogpanel.cpp.

void Stark::DialogPanel::scrollUp (  ) 

Scroll up and down the panel.

Definition at line 270 of file dialogpanel.cpp.

void Stark::DialogPanel::selectFocusedOption (  ) 

Select the focused option.

Definition at line 318 of file dialogpanel.cpp.

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

Select an option by index.

Definition at line 325 of file dialogpanel.cpp.

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

Definition at line 182 of file dialogpanel.cpp.

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

Definition at line 340 of file dialogpanel.cpp.

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

Definition at line 365 of file dialogpanel.cpp.

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

Definition at line 168 of file dialogpanel.cpp.


Member Data Documentation

Definition at line 106 of file dialogpanel.h.

const Color Stark::DialogPanel::_aprilColor = Color(0xFF, 0xC0, 0x00) [static, private]

Definition at line 108 of file dialogpanel.h.

Definition at line 103 of file dialogpanel.h.

Definition at line 104 of file dialogpanel.h.

Definition at line 103 of file dialogpanel.h.

Definition at line 105 of file dialogpanel.h.

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

Definition at line 112 of file dialogpanel.h.

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

Definition at line 111 of file dialogpanel.h.

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

Definition at line 110 of file dialogpanel.h.

const Color Stark::DialogPanel::_otherColor = Color(0xFF, 0x40, 0x40) [static, private]

Definition at line 109 of file dialogpanel.h.

Definition at line 96 of file dialogpanel.h.

Definition at line 95 of file dialogpanel.h.

Definition at line 93 of file dialogpanel.h.


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


Generated on Sat Mar 16 2019 05:06:56 for ResidualVM by doxygen 1.7.1
curved edge   curved edge