From 04adcc1ea3c9d1b1ff6037dcd5b74a1c373caed7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 9 Feb 2013 21:21:53 +0300 Subject: Impliment char selection for small resolution. --- src/gui/charselectdialog.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gui/charselectdialog.h') diff --git a/src/gui/charselectdialog.h b/src/gui/charselectdialog.h index c43bcca09..f9030d561 100644 --- a/src/gui/charselectdialog.h +++ b/src/gui/charselectdialog.h @@ -35,6 +35,7 @@ class Button; class CharacterDisplay; +class CharacterScroller; class Label; class LocalPlayer; class LoginData; @@ -93,6 +94,10 @@ class CharSelectDialog final : public Window, void close() override; + void focusCharacter(int i); + + void widgetResized(const gcn::Event &event) override; + private: void attemptCharacterDelete(const int index); @@ -119,6 +124,7 @@ class CharSelectDialog final : public Window, Button *mChangePasswordButton; Button *mUnregisterButton; Button *mChangeEmailButton; + CharacterScroller *mCharacterScroller; /** The player boxes */ std::vector mCharacterEntries; @@ -126,6 +132,7 @@ class CharSelectDialog final : public Window, Net::CharHandler *mCharHandler; TextDialog *mDeleteDialog; int mDeleteIndex; + bool mSmallScreen; }; #endif -- cgit v1.2.3-60-g2f50