Initial commit
This commit is contained in:
59
engines/ultima/nuvie/gui/gui_yes_no_dialog.h
Normal file
59
engines/ultima/nuvie/gui/gui_yes_no_dialog.h
Normal file
@@ -0,0 +1,59 @@
|
||||
/* ScummVM - Graphic Adventure Engine
|
||||
*
|
||||
* ScummVM is the legal property of its developers, whose names
|
||||
* are too numerous to list here. Please refer to the COPYRIGHT
|
||||
* file distributed with this source distribution.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef NUVIE_GUI_GUI_YES_NO_DIALOG_H
|
||||
#define NUVIE_GUI_GUI_YES_NO_DIALOG_H
|
||||
|
||||
#include "ultima/nuvie/gui/gui_dialog.h"
|
||||
|
||||
namespace Ultima {
|
||||
namespace Nuvie {
|
||||
|
||||
class GUI;
|
||||
class GUI_CallBack;
|
||||
class GUI_Button;
|
||||
|
||||
// Callback message types
|
||||
|
||||
#define YESNODIALOG_CB_YES 0x1
|
||||
#define YESNODIALOG_CB_NO 0x2
|
||||
|
||||
class GUI_YesNoDialog : public GUI_Dialog {
|
||||
private:
|
||||
sint8 b_index_num;
|
||||
GUI_Button *yes_button, *no_button;
|
||||
CallBack *yes_callback_object, *no_callback_object;
|
||||
GUI_Button *button_index[2];
|
||||
|
||||
public:
|
||||
GUI_YesNoDialog(GUI *gui, int x, int y, int w, int h, const char *msg,
|
||||
CallBack *yesCallback, CallBack *noCallback);
|
||||
~GUI_YesNoDialog() override;
|
||||
|
||||
GUI_status KeyDown(const Common::KeyState &key) override;
|
||||
|
||||
GUI_status callback(uint16 msg, GUI_CallBack *caller, void *data) override;
|
||||
};
|
||||
|
||||
} // End of namespace Nuvie
|
||||
} // End of namespace Ultima
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user