forked from teamnwah/openmw-tes3coop
Don't care about the widget
This commit is contained in:
parent
03158f4b62
commit
a0ee11c51b
4 changed files with 22 additions and 22 deletions
|
@ -355,7 +355,7 @@ void InfoBoxDialog::onButtonClicked(MyGUI::WidgetPtr _sender)
|
||||||
if (*it == _sender)
|
if (*it == _sender)
|
||||||
{
|
{
|
||||||
currentButton = i;
|
currentButton = i;
|
||||||
eventButtonSelected(_sender, i);
|
eventButtonSelected(i);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
++i;
|
++i;
|
||||||
|
|
|
@ -34,12 +34,12 @@ namespace MWGui
|
||||||
int getChosenButton() const;
|
int getChosenButton() const;
|
||||||
|
|
||||||
// Events
|
// Events
|
||||||
typedef delegates::CDelegate2<MyGUI::WidgetPtr, int> EventHandle_WidgetInt;
|
typedef delegates::CDelegate1<int> EventHandle_Int;
|
||||||
|
|
||||||
/** Event : Button was clicked.\n
|
/** Event : Button was clicked.\n
|
||||||
signature : void method(MyGUI::WidgetPtr widget, int index)\n
|
signature : void method(MyGUI::WidgetPtr widget, int index)\n
|
||||||
*/
|
*/
|
||||||
EventHandle_WidgetInt eventButtonSelected;
|
EventHandle_Int eventButtonSelected;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void onButtonClicked(MyGUI::WidgetPtr _sender);
|
void onButtonClicked(MyGUI::WidgetPtr _sender);
|
||||||
|
|
|
@ -573,29 +573,29 @@ void WindowManager::onRaceDialogBack()
|
||||||
setGuiMode(GM_Name);
|
setGuiMode(GM_Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WindowManager::onClassChoice(MyGUI::WidgetPtr, int _index)
|
void WindowManager::onClassChoice(int _index)
|
||||||
{
|
{
|
||||||
if (classChoiceDialog)
|
if (classChoiceDialog)
|
||||||
{
|
{
|
||||||
removeDialog(classChoiceDialog);
|
removeDialog(classChoiceDialog);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_index == ClassChoiceDialog::Class_Generate)
|
switch(_index)
|
||||||
{
|
{
|
||||||
setGuiMode(GM_ClassGenerate);
|
case ClassChoiceDialog::Class_Generate:
|
||||||
}
|
setGuiMode(GM_ClassGenerate);
|
||||||
else if (_index == ClassChoiceDialog::Class_Pick)
|
break;
|
||||||
{
|
case ClassChoiceDialog::Class_Pick:
|
||||||
setGuiMode(GM_ClassPick);
|
setGuiMode(GM_ClassPick);
|
||||||
}
|
break;
|
||||||
else if (_index == ClassChoiceDialog::Class_Create)
|
case ClassChoiceDialog::Class_Create:
|
||||||
{
|
setGuiMode(GM_ClassCreate);
|
||||||
setGuiMode(GM_ClassCreate);
|
break;
|
||||||
}
|
case ClassChoiceDialog::Class_Back:
|
||||||
else if (_index == ClassChoiceDialog::Class_Back)
|
setGuiMode(GM_Race);
|
||||||
{
|
break;
|
||||||
setGuiMode(GM_Race);
|
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace MWGui
|
namespace MWGui
|
||||||
|
@ -786,7 +786,7 @@ void WindowManager::showClassQuestionDialog()
|
||||||
generateClassQuestionDialog->open();
|
generateClassQuestionDialog->open();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WindowManager::onClassQuestionChosen(MyGUI::Widget* _sender, int _index)
|
void WindowManager::onClassQuestionChosen(int _index)
|
||||||
{
|
{
|
||||||
if (generateClassQuestionDialog)
|
if (generateClassQuestionDialog)
|
||||||
removeDialog(generateClassQuestionDialog);
|
removeDialog(generateClassQuestionDialog);
|
||||||
|
|
|
@ -268,11 +268,11 @@ namespace MWGui
|
||||||
void onRaceDialogBack();
|
void onRaceDialogBack();
|
||||||
|
|
||||||
// Character generation: Choose class process
|
// Character generation: Choose class process
|
||||||
void onClassChoice(MyGUI::Widget* _sender, int _index);
|
void onClassChoice(int _index);
|
||||||
|
|
||||||
// Character generation: Generate Class
|
// Character generation: Generate Class
|
||||||
void showClassQuestionDialog();
|
void showClassQuestionDialog();
|
||||||
void onClassQuestionChosen(MyGUI::Widget* _sender, int _index);
|
void onClassQuestionChosen(int _index);
|
||||||
void onGenerateClassBack();
|
void onGenerateClassBack();
|
||||||
void onGenerateClassDone();
|
void onGenerateClassDone();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue