Changeset View
Changeset View
Standalone View
Standalone View
source/gui/ObjectBases/IGUIButtonBehavior.h
/* Copyright (C) 2020 Wildfire Games. | /* Copyright (C) 2021 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | protected: | ||||
* you have to first press the button, and then release it... | * you have to first press the button, and then release it... | ||||
* in between those two steps you can actually leave the button | * in between those two steps you can actually leave the button | ||||
* area, as long as you release it within the button area... Anyway | * area, as long as you release it within the button area... Anyway | ||||
* this lets us know we are done with step one (clicking). | * this lets us know we are done with step one (clicking). | ||||
*/ | */ | ||||
bool m_Pressed; | bool m_Pressed; | ||||
bool m_PressedRight; | bool m_PressedRight; | ||||
// Settings | CGUISimpleSetting<CStrW> m_SoundDisabled; | ||||
CStrW m_SoundDisabled; | CGUISimpleSetting<CStrW> m_SoundEnter; | ||||
CStrW m_SoundEnter; | CGUISimpleSetting<CStrW> m_SoundLeave; | ||||
CStrW m_SoundLeave; | CGUISimpleSetting<CStrW> m_SoundPressed; | ||||
CStrW m_SoundPressed; | CGUISimpleSetting<CStrW> m_SoundReleased; | ||||
CStrW m_SoundReleased; | |||||
private: | private: | ||||
/** | /** | ||||
* Reference to the IGUIObject. | * Reference to the IGUIObject. | ||||
* Private, because we don't want to inherit it in multiple classes. | * Private, because we don't want to inherit it in multiple classes. | ||||
*/ | */ | ||||
IGUIObject& m_pObject; | IGUIObject& m_pObject; | ||||
}; | }; | ||||
#endif // INCLUDED_IGUIBUTTONBEHAVIOR | #endif // INCLUDED_IGUIBUTTONBEHAVIOR |
Wildfire Games · Phabricator