axmol/tests/cpp-tests/Classes/CocosDenshionTest/CocosDenshionTest.h

40 lines
791 B
C
Raw Normal View History

#ifndef __COCOS_DENSHION_TEST__
#define __COCOS_DENSHION_TEST__
#include "../testBasic.h"
class AudioSlider;
class CocosDenshionTest : public Layer
2011-01-19 16:00:19 +08:00
{
public:
CocosDenshionTest(void);
~CocosDenshionTest(void);
2011-01-19 16:00:19 +08:00
virtual void onExit() override;
2011-01-19 16:00:19 +08:00
private:
void addButtons();
void addSliders();
void addChildAt(Node *node, float percentageX, float percentageY);
void updateVolumes(float);
unsigned int _soundId;
float _musicVolume;
float _effectsVolume;
AudioSlider *_sliderPitch;
AudioSlider *_sliderPan;
AudioSlider *_sliderGain;
AudioSlider *_sliderEffectsVolume;
AudioSlider *_sliderMusicVolume;
};
2011-01-19 16:00:19 +08:00
class CocosDenshionTestScene : public TestScene
{
public:
virtual void runThisTest();
};
#endif //__COCOS_DENSHION_TEST__