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; break;
case DialogueType.OKCancel:
modifiers.push('ok-cancel');
buttons.push(DialogueButton.Cancel);
buttons.push(DialogueButton.Ok);
break;
default: default:
modifiers.push('info'); modifiers.push('info');
buttons.push(DialogueButton.Ok); buttons.push(DialogueButton.Ok);

View file

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

View file

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