From 4d91cf75bae91a34f3ee1e61b347823c84473ce7 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 18 Feb 2018 16:41:00 -0500 Subject: XEEN: Cleanup of new CreateCharacterDialog class --- engines/xeen/dialogs_create_char.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'engines/xeen/dialogs_create_char.h') diff --git a/engines/xeen/dialogs_create_char.h b/engines/xeen/dialogs_create_char.h index 6a33bcf06c..b3232271e6 100644 --- a/engines/xeen/dialogs_create_char.h +++ b/engines/xeen/dialogs_create_char.h @@ -32,6 +32,7 @@ class CreateCharacterDialog : public ButtonContainer { private: SpriteResource _icons; SpriteResource _dice; + Common::Point _diceSize; int _diceFrame[3]; Common::Point _dicePos[3]; Common::Point _diceInc[3]; @@ -47,9 +48,19 @@ private: void loadButtons(); /** - * Print the dice animation + * Draws on-screen icons */ - void drawDice(SpriteResource &dice); + void drawIcons(); + + /** + * Draws on-screen icons + */ + void drawIcons2(); + + /** + * Animate the dice rolling around + */ + void drawDice(); /** * Executes the dialog @@ -77,7 +88,7 @@ private: /** * Print the selection arrow to indicate the selected class */ - void printSelectionArrow(SpriteResource &icons, int selectedClass); + void printSelectionArrow(int selectedClass); /** * Saves the rolled character into the roster -- cgit v1.2.3