mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-09 02:00:46 +00:00
renamed 'timer' to duration; minimal doxygen comments
svn-id: r11040
This commit is contained in:
parent
c62e33b10a
commit
2d7eef223e
@ -148,9 +148,9 @@ void MessageDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TimedMessageDialog::TimedMessageDialog(NewGui *gui, const Common::String &message, uint32 timer)
|
TimedMessageDialog::TimedMessageDialog(NewGui *gui, const Common::String &message, uint32 duration)
|
||||||
: MessageDialog(gui, message, 0, 0) {
|
: MessageDialog(gui, message, 0, 0) {
|
||||||
_timer = _gui->get_time() + timer;
|
_timer = _gui->get_time() + duration;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TimedMessageDialog::handleTickle() {
|
void TimedMessageDialog::handleTickle() {
|
||||||
|
@ -28,6 +28,9 @@ namespace Common {
|
|||||||
class StringList;
|
class StringList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Simple message dialog ("alert box"): presents a text message in a dialog with up to two buttons.
|
||||||
|
*/
|
||||||
class MessageDialog : public Dialog {
|
class MessageDialog : public Dialog {
|
||||||
typedef Common::String String;
|
typedef Common::String String;
|
||||||
typedef Common::StringList StringList;
|
typedef Common::StringList StringList;
|
||||||
@ -40,9 +43,12 @@ protected:
|
|||||||
int addLine(Common::StringList &lines, const char *line, int size);
|
int addLine(Common::StringList &lines, const char *line, int size);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Timed message dialog: displays a message to the user for brief time period.
|
||||||
|
*/
|
||||||
class TimedMessageDialog : public MessageDialog {
|
class TimedMessageDialog : public MessageDialog {
|
||||||
public:
|
public:
|
||||||
TimedMessageDialog(NewGui *gui, const Common::String &message, uint32 timer);
|
TimedMessageDialog(NewGui *gui, const Common::String &message, uint32 duration);
|
||||||
|
|
||||||
void handleTickle();
|
void handleTickle();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user