add OK/Cancel functionality dialogue

This commit is contained in:
flash 2016-12-11 00:13:40 +01:00
parent 537776f0c5
commit 9c28638fa7
3 changed files with 10 additions and 2 deletions

View file

@ -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);

View file

@ -4,6 +4,7 @@ namespace Sakura
{
Yes,
No,
Ok
Ok,
Cancel
}
}

View file

@ -4,6 +4,7 @@ namespace Sakura
{
Info,
Confirm,
ConfirmNegative
ConfirmNegative,
OKCancel
}
}