mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 07:53:51 +00:00
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)
|
||||
{
|
||||
currentButton = i;
|
||||
eventButtonSelected(_sender, i);
|
||||
eventButtonSelected(i);
|
||||
return;
|
||||
}
|
||||
++i;
|
||||
|
|
|
@ -34,12 +34,12 @@ namespace MWGui
|
|||
int getChosenButton() const;
|
||||
|
||||
// Events
|
||||
typedef delegates::CDelegate2<MyGUI::WidgetPtr, int> EventHandle_WidgetInt;
|
||||
typedef delegates::CDelegate1<int> EventHandle_Int;
|
||||
|
||||
/** Event : Button was clicked.\n
|
||||
signature : void method(MyGUI::WidgetPtr widget, int index)\n
|
||||
*/
|
||||
EventHandle_WidgetInt eventButtonSelected;
|
||||
EventHandle_Int eventButtonSelected;
|
||||
|
||||
protected:
|
||||
void onButtonClicked(MyGUI::WidgetPtr _sender);
|
||||
|
|
|
@ -573,29 +573,29 @@ void WindowManager::onRaceDialogBack()
|
|||
setGuiMode(GM_Name);
|
||||
}
|
||||
|
||||
void WindowManager::onClassChoice(MyGUI::WidgetPtr, int _index)
|
||||
void WindowManager::onClassChoice(int _index)
|
||||
{
|
||||
if (classChoiceDialog)
|
||||
{
|
||||
removeDialog(classChoiceDialog);
|
||||
}
|
||||
|
||||
if (_index == ClassChoiceDialog::Class_Generate)
|
||||
switch(_index)
|
||||
{
|
||||
setGuiMode(GM_ClassGenerate);
|
||||
}
|
||||
else if (_index == ClassChoiceDialog::Class_Pick)
|
||||
{
|
||||
setGuiMode(GM_ClassPick);
|
||||
}
|
||||
else if (_index == ClassChoiceDialog::Class_Create)
|
||||
{
|
||||
setGuiMode(GM_ClassCreate);
|
||||
}
|
||||
else if (_index == ClassChoiceDialog::Class_Back)
|
||||
{
|
||||
setGuiMode(GM_Race);
|
||||
}
|
||||
case ClassChoiceDialog::Class_Generate:
|
||||
setGuiMode(GM_ClassGenerate);
|
||||
break;
|
||||
case ClassChoiceDialog::Class_Pick:
|
||||
setGuiMode(GM_ClassPick);
|
||||
break;
|
||||
case ClassChoiceDialog::Class_Create:
|
||||
setGuiMode(GM_ClassCreate);
|
||||
break;
|
||||
case ClassChoiceDialog::Class_Back:
|
||||
setGuiMode(GM_Race);
|
||||
break;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
namespace MWGui
|
||||
|
@ -786,7 +786,7 @@ void WindowManager::showClassQuestionDialog()
|
|||
generateClassQuestionDialog->open();
|
||||
}
|
||||
|
||||
void WindowManager::onClassQuestionChosen(MyGUI::Widget* _sender, int _index)
|
||||
void WindowManager::onClassQuestionChosen(int _index)
|
||||
{
|
||||
if (generateClassQuestionDialog)
|
||||
removeDialog(generateClassQuestionDialog);
|
||||
|
|
|
@ -268,11 +268,11 @@ namespace MWGui
|
|||
void onRaceDialogBack();
|
||||
|
||||
// Character generation: Choose class process
|
||||
void onClassChoice(MyGUI::Widget* _sender, int _index);
|
||||
void onClassChoice(int _index);
|
||||
|
||||
// Character generation: Generate Class
|
||||
void showClassQuestionDialog();
|
||||
void onClassQuestionChosen(MyGUI::Widget* _sender, int _index);
|
||||
void onClassQuestionChosen(int _index);
|
||||
void onGenerateClassBack();
|
||||
void onGenerateClassDone();
|
||||
|
||||
|
|
Loading…
Reference in a new issue