CMsgBox: add option to enable/disable button background

replaces var name btn_contour for better plausibility
This commit is contained in:
2016-08-18 10:27:33 +02:00
parent fc2eb68edc
commit be740c1552
4 changed files with 26 additions and 16 deletions

View File

@@ -112,6 +112,9 @@ class CMsgBox : public CHintBox
///assigned button captions
std::string BTN_TEXT(const int& showed_button);
///enables/disable button background
bool btn_enable_bg;
void initButtons();
public:
/* Constructor */
@@ -181,6 +184,11 @@ class CMsgBox : public CHintBox
*/
void setButtonText(const int& showed_button, const std::string& text);
///enables background of buttons, parameter bool show, default= true
void enableButtonBg(bool enable = true);
///disables background of buttons
void disableButtonBg(){enableButtonBg(false);}
// bool setText(const std::string* newText);
};