mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Various improvements toward getting high scores working again.
This commit is contained in:
@@ -16,6 +16,20 @@ struct Dialog;
|
||||
|
||||
typedef int16_t(*DialogFilterFunc_t)(Dialog *dialog, const TimeTaggedVOSEvent &evt);
|
||||
|
||||
struct DialogTextSubstitutions
|
||||
{
|
||||
Str255 m_strings[4];
|
||||
|
||||
DialogTextSubstitutions();
|
||||
explicit DialogTextSubstitutions(const PLPasStr& str0);
|
||||
DialogTextSubstitutions(const PLPasStr& str0, const PLPasStr& str1);
|
||||
DialogTextSubstitutions(const PLPasStr& str0, const PLPasStr& str1, const PLPasStr& str2);
|
||||
DialogTextSubstitutions(const PLPasStr& str0, const PLPasStr& str1, const PLPasStr& str2, const PLPasStr& str3);
|
||||
|
||||
private:
|
||||
void Init(size_t numItems, const PLPasStr *items);
|
||||
};
|
||||
|
||||
struct Dialog
|
||||
{
|
||||
virtual void Destroy() = 0;
|
||||
@@ -33,7 +47,6 @@ typedef Boolean(*ModalFilterUPP)(Dialog *dial, EventRecord *event, short *item);
|
||||
void DrawDialog(Dialog *dialog);
|
||||
DrawSurface *GetDialogPort(Dialog *dialog);
|
||||
|
||||
void GetDialogItem(Dialog *dialog, int index, short *itemType, THandle<Control> *itemHandle, Rect *itemRect);
|
||||
void GetDialogItemText(THandle<Control> handle, StringPtr str);
|
||||
|
||||
void SetDialogItem(Dialog *dialog, int index, short itemType, THandle<Control> itemHandle, const Rect *itemRect);
|
||||
|
Reference in New Issue
Block a user