22 #ifndef STARK_UI_MENU_DIALOG_H 23 #define STARK_UI_MENU_DIALOG_H 25 #include "engines/stark/ui/menu/locationscreen.h" 26 #include "engines/stark/visual/text.h" 30 class ChapterTitleText;
43 void close()
override;
46 void onDialogClick(uint logIndex);
50 void onRender()
override;
53 static const uint _dialogTitleWidgetOffset = 8;
64 uint _startTitleIndex, _nextTitleIndex, _startLineIndex, _nextLineIndex;
65 uint _curMaxChapter, _curLogIndex;
75 void indexBackHandler();
76 void indexNextHandler();
77 void logBackHandler();
78 void backIndexHandler();
79 void logNextHandler();
81 void freeLogTitleWidgets();
82 void freeChapterTitleTexts();
83 void freeDialogLineTexts();
96 uint getHeight() {
return _text.getRect().bottom - _text.getRect().top; }
98 void render() { _text.render(_pos); }
117 uint getHeight() {
return _nameHeight + _lineHeight + 4; }
120 _nameText.render(_namePos);
121 _lineText.render(_linePos);
136 uint _nameWidth, _nameHeight, _lineHeight, _boxWidth;
148 uint getHeight() {
return _height; }
149 uint getChapter() {
return _chapter; }
152 void render()
override { _text.render(_pos); }
154 void onClick()
override;
156 _text.setColor(
isMouseInside(mousePos) ? _textColorHovered : _textColorDefault);
164 uint _logIndex, _chapter;
174 #endif // STARK_UI_MENU_DIALOG_H
void render() override
Definition: screen.h:86
bool isMouseInside() const
Definition: dialogmenu.h:111
Definition: locationscreen.h:46
void onScreenChanged() override
Definition: dialogmenu.h:36
Definition: dialogmenu.h:90
Definition: renderentry.h:67