cellMsgDialog: improvements

This commit is contained in:
Megamouse 2018-06-07 13:20:09 +02:00 committed by kd-11
parent 00b31c27a3
commit 686d3eb1df
2 changed files with 29 additions and 11 deletions

View file

@ -2,7 +2,11 @@
#include "Utilities/BitField.h"
enum
{
CELL_MSGDIALOG_PROGRESSBAR_STRING_SIZE = 64,
CELL_MSGDIALOG_STRING_SIZE = 512,
};
enum
{
@ -49,6 +53,13 @@ enum : s32
CELL_MSGDIALOG_BUTTON_ESCAPE = 3,
};
enum CellMsgDialogProgressBarIndex
{
CELL_MSGDIALOG_PROGRESSBAR_INDEX_SINGLE = 0, // the only bar in a single bar dialog
CELL_MSGDIALOG_PROGRESSBAR_INDEX_DOUBLE_UPPER = 0, // the upper bar in a double bar dialog
CELL_MSGDIALOG_PROGRESSBAR_INDEX_DOUBLE_LOWER = 1, // the lower bar in a double bar dialog
};
using CellMsgDialogCallback = void(s32 buttonType, vm::ptr<void> userData);
union MsgDialogType