mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 06:13:36 +00:00
26 lines
716 B
C++
26 lines
716 B
C++
#pragma once
|
|
#include "../Screen.h"
|
|
|
|
class ConfirmScreen : public Screen {
|
|
private:
|
|
Screen* parent;
|
|
std::wstring title1;
|
|
std::wstring title2;
|
|
std::wstring yesButton;
|
|
std::wstring noButton;
|
|
int id;
|
|
|
|
public:
|
|
ConfirmScreen(Screen* parent, const std::wstring& title1,
|
|
const std::wstring& title2, int id);
|
|
ConfirmScreen(Screen* parent, const std::wstring& title1,
|
|
const std::wstring& title2, const std::wstring& yesButton,
|
|
const std::wstring& noButton, int id);
|
|
virtual void init() override;
|
|
|
|
protected:
|
|
virtual void buttonClicked(Button* button) override;
|
|
|
|
public:
|
|
virtual void render(int xm, int ym, float a) override;
|
|
}; |