forked from Kolyah35/minecraft-pe-0.6.1
39 lines
857 B
C++
Executable File
39 lines
857 B
C++
Executable File
#pragma once
|
|
|
|
//package net.minecraft.client.gui;
|
|
|
|
#include "client/gui/Screen.hpp"
|
|
#include <string>
|
|
|
|
class ConfirmScreen: public Screen
|
|
{
|
|
typedef Screen super;
|
|
public:
|
|
ConfirmScreen(Screen* parent_, const std::string& title1_, const std::string& title2_, int id_);
|
|
ConfirmScreen(Screen* parent_, const std::string& title1_, const std::string& title2_, const std::string& yesButton, const std::string& noButton, int id_);
|
|
~ConfirmScreen();
|
|
|
|
void init();
|
|
void setupPositions();
|
|
|
|
bool handleBackEvent(bool isDown);
|
|
void render(int xm, int ym, float a);
|
|
protected:
|
|
void buttonClicked(Button* button);
|
|
|
|
virtual void postResult(bool isOk);
|
|
|
|
Screen* parent;
|
|
int id;
|
|
private:
|
|
std::string title1;
|
|
std::string title2;
|
|
|
|
std::string yesButtonText;
|
|
std::string noButtonText;
|
|
|
|
Button* yesButton; // 0
|
|
Button* noButton; // 1
|
|
};
|
|
|