Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/CDropDown.h
Show All 22 Lines | --Overview-- | ||||
Works just like a list-box, but it hides | Works just like a list-box, but it hides | ||||
all the elements that aren't selected. They | all the elements that aren't selected. They | ||||
can be brought up by pressing the control. | can be brought up by pressing the control. | ||||
*/ | */ | ||||
#ifndef INCLUDED_CDROPDOWN | #ifndef INCLUDED_CDROPDOWN | ||||
#define INCLUDED_CDROPDOWN | #define INCLUDED_CDROPDOWN | ||||
#include "gui/CGUISprite.h" | |||||
#include "gui/CList.h" | #include "gui/CList.h" | ||||
#include <string> | #include <string> | ||||
/** | /** | ||||
* Drop Down | * Drop Down | ||||
* | * | ||||
* The control can be pressed, but we will not inherent | * The control can be pressed, but we will not inherent | ||||
▲ Show 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | protected: | ||||
// Stores any text entered by the user for quick access to an element | // Stores any text entered by the user for quick access to an element | ||||
// (ie if you type "acro" it will take you to acropolis). | // (ie if you type "acro" it will take you to acropolis). | ||||
std::string m_InputBuffer; | std::string m_InputBuffer; | ||||
// used to know if we want to restart anew or add to m_inputbuffer. | // used to know if we want to restart anew or add to m_inputbuffer. | ||||
double m_TimeOfLastInput; | double m_TimeOfLastInput; | ||||
// Settings | |||||
float m_ButtonWidth; | |||||
float m_DropDownSize; | |||||
float m_DropDownBuffer; | |||||
u32 m_MinimumVisibleItems; | |||||
CStrW m_SoundClosed; | |||||
CStrW m_SoundEnter; | |||||
CStrW m_SoundLeave; | |||||
CStrW m_SoundOpened; | |||||
CGUISpriteInstance m_SpriteDisabled; | |||||
CGUISpriteInstance m_SpriteList; | |||||
CGUISpriteInstance m_Sprite2; | |||||
CGUISpriteInstance m_Sprite2Over; | |||||
CGUISpriteInstance m_Sprite2Pressed; | |||||
CGUISpriteInstance m_Sprite2Disabled; | |||||
CGUIColor m_TextColorDisabled; | |||||
EVAlign m_TextVAlign; | |||||
}; | }; | ||||
#endif // INCLUDED_CDROPDOWN | #endif // INCLUDED_CDROPDOWN |
Wildfire Games · Phabricator