add OK/Cancel functionality dialogue
This commit is contained in:
parent
537776f0c5
commit
9c28638fa7
3 changed files with 10 additions and 2 deletions
|
@ -40,6 +40,12 @@ namespace Sakura
|
|||
}
|
||||
break;
|
||||
|
||||
case DialogueType.OKCancel:
|
||||
modifiers.push('ok-cancel');
|
||||
buttons.push(DialogueButton.Cancel);
|
||||
buttons.push(DialogueButton.Ok);
|
||||
break;
|
||||
|
||||
default:
|
||||
modifiers.push('info');
|
||||
buttons.push(DialogueButton.Ok);
|
||||
|
|
|
@ -4,6 +4,7 @@ namespace Sakura
|
|||
{
|
||||
Yes,
|
||||
No,
|
||||
Ok
|
||||
Ok,
|
||||
Cancel
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ namespace Sakura
|
|||
{
|
||||
Info,
|
||||
Confirm,
|
||||
ConfirmNegative
|
||||
ConfirmNegative,
|
||||
OKCancel
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue