Minor style fixes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11164 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
c197356f86
commit
71d4cc1d70
@ -44,7 +44,8 @@ MessageDialog::MessageDialog(irr::core::stringw msg) :
|
|||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
void MessageDialog::doInit(irr::core::stringw msg, MessageDialogType type, IConfirmDialogListener* listener, bool own_listener)
|
void MessageDialog::doInit(irr::core::stringw msg, MessageDialogType type,
|
||||||
|
IConfirmDialogListener* listener, bool own_listener)
|
||||||
{
|
{
|
||||||
loadFromFile("confirm_dialog.stkgui");
|
loadFromFile("confirm_dialog.stkgui");
|
||||||
|
|
||||||
@ -56,7 +57,8 @@ void MessageDialog::doInit(irr::core::stringw msg, MessageDialogType type, IConf
|
|||||||
|
|
||||||
// If the dialog is a simple 'OK' dialog, then hide the "Yes" button and
|
// If the dialog is a simple 'OK' dialog, then hide the "Yes" button and
|
||||||
// change "Cancel" to "OK"
|
// change "Cancel" to "OK"
|
||||||
if (type == MessageDialog::MESSAGE_DIALOG_OK) {
|
if (type == MessageDialog::MESSAGE_DIALOG_OK)
|
||||||
|
{
|
||||||
ButtonWidget* yesbtn = getWidget<ButtonWidget>("confirm");
|
ButtonWidget* yesbtn = getWidget<ButtonWidget>("confirm");
|
||||||
yesbtn->setVisible(false);
|
yesbtn->setVisible(false);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user