예제 #1
0
파일: inventory.cpp 프로젝트: nadult/FreeFT
	HudItemButton::HudItemButton(const FRect &rect) :HudButton(rect), m_drop_count(-1) {
		setClickSound(HudSound::none);
	}
예제 #2
0
	HudWeapon::HudWeapon(const FRect &target_rect)
		:HudButton(target_rect), m_attack_mode(AttackMode::undefined), m_ammo_count(0) {
		setClickSound(HudSound::none);
	}
예제 #3
0
MenuItem::MenuItem() : _hasTouchRectInited(false), _touchRect(CCRectZero), _touched(false), _clickSound(""), _clickSoundEnabled(true), _touchMovedCheckEnabled(false) {
    setUITouchEnabled(true);
    setCascadeOpacityEnabled(true);
    setClickSound(ResourceName::AUDIO_1_1);
}