ScummVM API documentation
Nancy::Action::TextScroll Class Reference
Inheritance diagram for Nancy::Action::TextScroll:
Nancy::Action::Autotext Nancy::Action::PeepholePuzzle Nancy::Action::ActionRecord Nancy::Misc::HypertextParser Nancy::Action::RenderActionRecord Nancy::Action::ActionRecord Nancy::RenderObject

Public Member Functions

 TextScroll (bool isEntryList)
 
void init () override
 
void execute () override
 
void handleInput (NancyInput &input) override
 
void readData (Common::SeekableReadStream &stream) override
 
- Public Member Functions inherited from Nancy::Action::ActionRecord
virtual CursorManager::CursorType getHoverCursor () const
 
- Public Member Functions inherited from Nancy::Misc::HypertextParser
bool hasBeenDrawn () const
 
- Public Member Functions inherited from Nancy::Action::RenderActionRecord
 RenderActionRecord (uint zOrder)
 
void onPause (bool pause) override
 
- Public Member Functions inherited from Nancy::RenderObject
 RenderObject (uint16 zOrder)
 
 RenderObject (uint16 zOrder, Graphics::ManagedSurface &surface, const Common::Rect &srcBounds, const Common::Rect &destBounds)
 
virtual void registerGraphics ()
 
virtual void updateGraphics ()
 
void moveTo (const Common::Point &position)
 
void moveTo (const Common::Rect &bounds)
 
void setVisible (bool visible)
 
void setTransparent (bool isTransparent)
 
bool isVisible () const
 
void grabPalette (byte *colors, uint paletteStart=0, uint paletteSize=256)
 
void setPalette (const Common::Path &paletteName, uint paletteStart=0, uint paletteSize=256)
 
void setPalette (const byte *colors, uint paletteStart=0, uint paletteSize=256)
 
bool hasMoved () const
 
Common::Rect getScreenPosition () const
 
Common::Rect getPreviousScreenPosition () const
 
Common::Rect convertToLocal (const Common::Rect &screen) const
 
Common::Rect convertToScreen (const Common::Rect &rect) const
 
Common::Rect getBounds () const
 
uint16 getZOrder () const
 

Protected Member Functions

Common::String getRecordTypeName () const override
 
void readExtraData (Common::SeekableReadStream &stream) override
 
- Protected Member Functions inherited from Nancy::Action::ActionRecord
void finishExecution ()
 
virtual bool canHaveHotspot () const
 
- Protected Member Functions inherited from Nancy::Misc::HypertextParser
void initSurfaces (uint width, uint height, const struct Graphics::PixelFormat &format, uint32 backgroundColor, uint32 highlightBackgroundColor)
 
void addTextLine (const Common::String &text)
 
void addImage (uint16 lineID, const Common::Rect &src)
 
void setImageName (const Common::Path &name)
 
void drawAllText (const Common::Rect &textBounds, uint leftOffsetNonNewline, uint fontID, uint highlightFontID)
 
virtual void clear ()
 
- Protected Member Functions inherited from Nancy::Action::PeepholePuzzle
bool isViewportRelative () const override
 
void drawInner ()
 
void checkButtons ()
 

Protected Attributes

bool _isEntryList
 
- Protected Attributes inherited from Nancy::Action::Autotext
uint16 _transparency = kPlayOverlayPlain
 
uint16 _surfaceID = 0
 
uint16 _fontID = 0
 
uint16 _textColor = 0
 
Common::Point _offset
 
uint16 _surfWidth = 0
 
uint16 _surfHeight = 0
 
bool _useAutotextChunk = false
 
Common::String _textKey
 
Common::String _embeddedText
 
uint16 _order = kListFIFO
 
bool _shouldDrawMarks = false
 
Common::Array< uint16 > _hotspotScenes
 
Graphics::ManagedSurface _image
 
- Protected Attributes inherited from Nancy::Misc::HypertextParser
Graphics::ManagedSurface _fullSurface
 
Graphics::ManagedSurface _textHighlightSurface
 
uint32 _backgroundColor
 
uint32 _highlightBackgroundColor
 
uint _defaultTextColor
 
int _imageVerticalOffset
 
Common::Array< Common::String_textLines
 
Common::Array< Common::Rect_hotspots
 
Common::Path _imageName
 
Common::Array< uint16 > _imageLineIDs
 
Common::Array< Common::Rect_imageSrcs
 
uint16 _numDrawnLines
 
uint16 _drawnTextHeight
 
bool _needsTextRedraw
 
- Protected Attributes inherited from Nancy::Action::PeepholePuzzle
Common::Path _innerImageName
 
Common::Path _buttonsImageName
 
uint16 _transparency = 0
 
Common::Rect _innerBounds
 
Common::Rect _startSrc
 
Common::Rect _dest
 
Common::Array< Common::Rect_buttonDests
 
Common::Array< Common::Rect_buttonSrcs
 
Common::Array< Common::Rect_buttonDisabledSrcs
 
byte _pixelsToScroll = 0
 
SceneChangeWithFlag _exitScene
 
Common::Rect _exitHotspot
 
Graphics::ManagedSurface _innerImage
 
Graphics::ManagedSurface _buttonsImage
 
Common::Rect _currentSrc
 
int _pressedButton = -1
 
uint32 _pressStart = 0
 
Common::Array< bool > _disabledButtons = Common::Array<bool>(4, false)
 
- Protected Attributes inherited from Nancy::RenderObject
bool _needsRedraw
 
bool _isVisible
 
bool _hasMoved
 
uint16 _z
 
Common::Rect _previousScreenPosition
 
Common::Rect _screenPosition
 

Additional Inherited Members

- Public Types inherited from Nancy::Action::ActionRecord
enum  ExecutionState { kBegin, kRun, kActionTrigger }
 
enum  ExecutionType { kOneShot = 1, kRepeating = 2 }
 
- Public Attributes inherited from Nancy::Action::ActionRecord
Common::String _description
 
byte _type
 
ExecutionType _execType
 
DependencyRecord _dependencies
 
bool _isActive
 
bool _isDone
 
bool _hasHotspot
 
Common::Rect _hotspot
 
ExecutionState _state
 
int16 _days
 
DependencyRecord_cursorDependency
 
- Public Attributes inherited from Nancy::RenderObject
Graphics::ManagedSurface _drawSurface
 

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