| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- cc.Class({
- extends: cc.BaseClass,
- properties: {
- },
- ctor: function () {
- },
- onLoad: function() {
- this.InitView();
- },
- start: function() {
- this.InitView();
- },
- OnShowView: function () {
- this.InitView();
- },
- InitView: function(){
- if (!this.m_Slider) this.m_Slider = this.$('Slider@CustomSlider');
- },
- OnSlider_Move: function (Tag) {
- window.SaveSetting(window.SetKey_Sound, Tag.progress.toFixed(1));
- },
- //////////////////////////////////////////////////
- SetGame: function (GameDef) {
- this.m_GameDef = GameDef;
- },
- Load: function() {
- this.InitView();
- this.m_Slider.SetProgress(window.g_Setting[window.SetKey_Sound]);
- },
- });
|