22 #ifndef NANCY_UI_NOTEBOOKPOPUP_H 23 #define NANCY_UI_NOTEBOOKPOPUP_H 25 #include "engines/nancy/commontypes.h" 26 #include "engines/nancy/renderobject.h" 27 #include "engines/nancy/misc/hypertext.h" 44 void registerGraphics()
override;
45 void updateGraphics()
override;
50 void toggle() {
if (_isVisible) close();
else open(); }
55 int16 getPrepSceneID()
const;
60 void refreshContent();
63 static const uint kNumTabs = 2;
72 void drawBackground();
74 void drawTab(uint index,
bool drawHover =
false);
86 void paintVisibleText();
92 void drawForeground();
93 void drawCloseButton(
bool hovered);
94 void drawScrollbar(UIButtonState state);
110 uint16 notebookJournalTabId()
const;
113 void clearActiveTabNotification();
117 void buildTextLines();
121 void buildCheckboxRects(
const Common::Rect &localTextRect,
int scrollY,
int visibleH);
124 void toggleCheckbox(uint entryIndex);
127 void playCheckboxSound(
bool actionable);
129 const UINB *_uinbData;
134 bool _closeButtonHovered =
false;
135 bool _tabHovered =
false;
139 float _scrollPos = 0.0f;
140 bool _scrollbarDragging =
false;
141 bool _scrollbarHovered =
false;
142 int _scrollbarGrabOffset = 0;
146 uint32 _completeVoiceTime = 0;
159 kNotebookTabTasks = 3,
160 kNotebookTabJournal = 4
167 #endif // NANCY_UI_NOTEBOOKPOPUP_H Definition: managed_surface.h:51
Definition: soundequalizerpuzzle.h:27
Definition: hypertext.h:32
Definition: renderobject.h:36
Definition: actionmanager.h:32
Definition: enginedata.h:788