Ejemplo n.º 1
0
 private void SetInputFieldValueUnnotified(InputField field, string value)
 {
     InputField.OnChangeEvent eventBackup = field.onValueChanged;
     field.onValueChanged = null;
     field.text           = value;
     field.onValueChanged = eventBackup;
 }
Ejemplo n.º 2
0
	// Use this for initialization
	void Start () {
        gameOver = GetComponent<Canvas> ();
        gameOver.enabled = false;
        father = GameObject.Find("father");
        Text[] texts = GetComponentsInChildren<Text>();
        foreach (Text i in texts)
        {
            if (i.gameObject.name == "points")
            {
                score = i;
                break;
            }
        }


        Image [] images = GetComponentsInChildren<Image>();
        foreach (Image i in images)
        {
            if (i.gameObject.name == "VisualKeyboard")
            {
                visualKeyboard = i.gameObject;
                visualKeyboard.GetComponent<VisualKeyboardController>().interfaz = this;
                visualKeyboard.SetActive(false);
                break;
            }
        }


        input = GetComponentInChildren<InputField>();
        InputField.OnChangeEvent se = new InputField.OnChangeEvent();
        se.AddListener(EditInput);
        input.onValueChanged = se;
	}
Ejemplo n.º 3
0
 public static void SetValue(this UnityEngine.UI.InputField instance, string value)
 {
     InputField.OnChangeEvent originalEvent = instance.onValueChanged;
     instance.onValueChanged = emptyInputFieldEvent;
     instance.text           = value;
     instance.onValueChanged = originalEvent;
 }
    // Use this for initialization
    void Start()
    {
        gameOver         = GetComponent <Canvas> ();
        gameOver.enabled = false;
        father           = GameObject.Find("father");
        Text[] texts = GetComponentsInChildren <Text>();
        foreach (Text i in texts)
        {
            if (i.gameObject.name == "points")
            {
                score = i;
                break;
            }
        }


        Image [] images = GetComponentsInChildren <Image>();
        foreach (Image i in images)
        {
            if (i.gameObject.name == "VisualKeyboard")
            {
                visualKeyboard = i.gameObject;
                visualKeyboard.GetComponent <VisualKeyboardController>().interfaz = this;
                visualKeyboard.SetActive(false);
                break;
            }
        }


        input = GetComponentInChildren <InputField>();
        InputField.OnChangeEvent se = new InputField.OnChangeEvent();
        se.AddListener(EditInput);
        input.onValueChanged = se;
    }
Ejemplo n.º 5
0
    void Start()
    {
        var se = new InputField.OnChangeEvent();

        se.AddListener(UpdateLocation);
        this.input.onValueChanged = se;

        this.launchButton.onClick.AddListener(RunTrajectory);
    }
Ejemplo n.º 6
0
        /// <summary>
        /// 文本输入框监控文本输入,变化
        /// </summary>
        /// <param name="go"></param>
        /// <param name="lucfunc"></param>
        public void AddInputFieldChanged(GameObject go, LuaFunction luafunc)
        {
            var input = go.GetComponent <InputField>();

            if (input != null)
            {
                var changeEvent = new InputField.OnChangeEvent();
                changeEvent.AddListener((string txt) => luafunc.Call(input));
                input.onValueChanged = changeEvent;
            }
        }
Ejemplo n.º 7
0
 // Use this for initialization
 void Start()
 {
     ClickOutside = false;
     InputField.SubmitEvent se = new InputField.SubmitEvent();
     se.AddListener(InputWindowOnEndEdit);
     AInputField.onEndEdit = se;
     InputField.OnChangeEvent se2 = new InputField.OnChangeEvent();
     se2.AddListener(InputWindowOnValueChanged);
     AInputField.onValueChanged = se2;
     //Reset();
     gameObject.SetActive(false);
 }
Ejemplo n.º 8
0
 public static void SetValue(this InputField inputField, string v)
 {
     #if UNITY_2019_1_OR_NEWER
     inputField.SetTextWithoutNotify(v);
     #else
     InputField.OnChangeEvent origianlEvent       = inputField.onValueChanged;
     InputField.SubmitEvent   originalSubmitEvent = inputField.onEndEdit;
     inputField.onValueChanged = emptyInputFieldEvent;
     inputField.onEndEdit      = emptyInputFieldSubmitEvent;
     inputField.text           = v;
     inputField.onValueChanged = origianlEvent;
     inputField.onEndEdit      = originalSubmitEvent;
     #endif
 }
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            InputField.OnChangeEvent o = new InputField.OnChangeEvent();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 10
0
    private static int get_onValueChange(IntPtr L)
    {
        object obj = null;
        int    result;

        try
        {
            obj = ToLua.ToObject(L, 1);
            InputField inputField = (InputField)obj;
            InputField.OnChangeEvent onValueChange = inputField.onValueChange;
            ToLua.PushObject(L, onValueChange);
            result = 1;
        }
        catch (Exception ex)
        {
            result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index onValueChange on a nil value");
        }
        return(result);
    }
Ejemplo n.º 11
0
        public override void HandleAxisX(float value)
        {
            // Get the current value from the text field:
            float curVal = float.Parse(_inputField.text);

            // Add / Sub the value from the controller input:
            curVal += value * valueMultiplicator;

            // Check for min and max borders:
            if (_hasMinValue && curVal < _minValue)
            {
                curVal = _minValue;
            }
            if (_hasMaxValue && curVal > _maxValue)
            {
                curVal = _maxValue;
            }

            // Write the value back to the text field.
            string curValStr = curVal.ToString();

            _inputField.text = curValStr;

            // This will trigger the OnEndEdit callback of this input field, if a method is connected, so that the new input is applied:
            InputField.SubmitEvent submitEvent = _inputField.onEndEdit;
            if (submitEvent.GetPersistentEventCount() > 0)
            {
                submitEvent.Invoke(curValStr);
            }
            // This will trigger the OnValueChanged callback of this input field, if a method is connected, so that the new input is applied:
            InputField.OnChangeEvent changeEvent = _inputField.onValueChanged;
            if (changeEvent.GetPersistentEventCount() > 0)
            {
                changeEvent.Invoke(curValStr);
            }
        }
Ejemplo n.º 12
0
    /**
     * Ajoute ou modifie un listener à chaque champ de la ligne row
     * @row ligne à modifier
     * @fieldChangeMethod méthode à appeler lors de la modification d'un champ de type texte
     * @removeRowMethod méthode à appeler pour le dernier champ qui est le bouton de suppression d'une ligne
     * @decallage mettre cette valeur valeur à -1 si cette méthode est appelée depuis la méthode de suppression d'une ligne (décallant les indexs de la table de 1)
     */
    public void addListenersToRow(Transform row, Action <int, int> fieldChangeMethod, Action <int> removeRowMethod, int decallage)
    {
        // Ajout du listener à chaque champs de type texte de la nouvelle ligne
        for (int i = 1; i < row.gameObject.transform.childCount - 1; i++)
        {
            int colnum = i;
            int rownum = row.GetSiblingIndex() + decallage;

            InputField.OnChangeEvent submitEvent = new InputField.OnChangeEvent();
            submitEvent.AddListener(delegate {
                fieldChangeMethod(rownum, colnum);
            });
            row.gameObject.transform.GetChild(i).gameObject.transform.GetChild(0).GetComponent <InputField> ().onValueChange = submitEvent;
        }

        //Ajout du listener du bouton de suppression d'une ligne
        int rownumButton = row.GetSiblingIndex() + decallage;

        UnityEngine.UI.Button.ButtonClickedEvent onclickEvent = new UnityEngine.UI.Button.ButtonClickedEvent();
        onclickEvent.AddListener(delegate {
            removeRowMethod(rownumButton);
        });
        row.gameObject.transform.GetChild(row.gameObject.transform.childCount - 1).gameObject.transform.GetChild(0).GetComponent <UnityEngine.UI.Button> ().onClick = onclickEvent;
    }
Ejemplo n.º 13
0
        private void Start()
        {
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.SoundVolume, (UnityEngine.Object)null))
            {
                this.SoundVolume.set_value(GameUtility.Config_SoundVolume);
                Slider.SliderEvent onValueChanged = this.SoundVolume.get_onValueChanged();
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache1E == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache1E = new UnityAction <float>((object)null, __methodptr(\u003CStart\u003Em__2E0));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <float> fAmCache1E = ConfigWindow.\u003C\u003Ef__am\u0024cache1E;
                ((UnityEvent <float>)onValueChanged).AddListener(fAmCache1E);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.MusicVolume, (UnityEngine.Object)null))
            {
                this.MusicVolume.set_value(GameUtility.Config_MusicVolume);
                Slider.SliderEvent onValueChanged = this.MusicVolume.get_onValueChanged();
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache1F == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache1F = new UnityAction <float>((object)null, __methodptr(\u003CStart\u003Em__2E1));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <float> fAmCache1F = ConfigWindow.\u003C\u003Ef__am\u0024cache1F;
                ((UnityEvent <float>)onValueChanged).AddListener(fAmCache1F);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.VoiceVolume, (UnityEngine.Object)null))
            {
                this.VoiceVolume.set_value(GameUtility.Config_VoiceVolume);
                Slider.SliderEvent onValueChanged = this.VoiceVolume.get_onValueChanged();
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache20 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache20 = new UnityAction <float>((object)null, __methodptr(\u003CStart\u003Em__2E2));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <float> fAmCache20 = ConfigWindow.\u003C\u003Ef__am\u0024cache20;
                ((UnityEvent <float>)onValueChanged).AddListener(fAmCache20);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.UseAssetBundle, (UnityEngine.Object)null))
            {
                this.UseAssetBundle.set_isOn(GameUtility.Config_UseAssetBundles.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UseAssetBundle.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache21 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache21 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__2E3));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache21 = ConfigWindow.\u003C\u003Ef__am\u0024cache21;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache21);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.UseDevServer, (UnityEngine.Object)null))
            {
                this.UseDevServer.set_isOn(GameUtility.Config_UseDevServer.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UseDevServer.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache22 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache22 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__2E4));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache22 = ConfigWindow.\u003C\u003Ef__am\u0024cache22;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache22);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.UseAwsServer, (UnityEngine.Object)null))
            {
                this.UseAwsServer.set_isOn(GameUtility.Config_UseAwsServer.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UseAwsServer.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache23 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache23 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__2E5));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache23 = ConfigWindow.\u003C\u003Ef__am\u0024cache23;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache23);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.UseAutoPlay, (UnityEngine.Object)null))
            {
                this.UseAutoPlay.set_isOn(GameUtility.Config_UseAutoPlay.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UseAutoPlay.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache24 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache24 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__2E6));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache24 = ConfigWindow.\u003C\u003Ef__am\u0024cache24;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache24);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.UsePushStamina, (UnityEngine.Object)null))
            {
                this.UsePushStamina.set_isOn(GameUtility.Config_UsePushStamina.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UsePushStamina.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache25 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache25 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__2E7));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache25 = ConfigWindow.\u003C\u003Ef__am\u0024cache25;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache25);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.UsePushNews, (UnityEngine.Object)null))
            {
                this.UsePushNews.set_isOn(GameUtility.Config_UsePushNews.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UsePushNews.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache26 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache26 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__2E8));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache26 = ConfigWindow.\u003C\u003Ef__am\u0024cache26;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache26);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.MultiInvitationFlag, (UnityEngine.Object)null))
            {
                bool multiInvitaionFlag = MonoSingleton <GameManager> .Instance.Player.MultiInvitaionFlag;
                GlobalVars.MultiInvitaionFlag = multiInvitaionFlag;
                this.MultiInvitationFlag.set_isOn(multiInvitaionFlag);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.MultiInvitationFlag.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache27 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache27 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__2E9));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache27 = ConfigWindow.\u003C\u003Ef__am\u0024cache27;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache27);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.MultiInvitationComment, (UnityEngine.Object)null))
            {
                string invitaionComment = MonoSingleton <GameManager> .Instance.Player.MultiInvitaionComment;
                GlobalVars.MultiInvitaionComment = invitaionComment;
                if (!string.IsNullOrEmpty(invitaionComment))
                {
                    this.MultiInvitationComment.SetText(invitaionComment);
                }
                InputField.OnChangeEvent onValueChanged = this.MultiInvitationComment.get_onValueChanged();
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache28 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache28 = new UnityAction <string>((object)null, __methodptr(\u003CStart\u003Em__2EA));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <string> fAmCache28 = ConfigWindow.\u003C\u003Ef__am\u0024cache28;
                ((UnityEvent <string>)onValueChanged).AddListener(fAmCache28);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.ToggleChatState, (UnityEngine.Object)null))
            {
                this.ToggleChatState.set_isOn(GameUtility.Config_ChatState.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.ToggleChatState.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache29 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache29 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__2EB));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache29 = ConfigWindow.\u003C\u003Ef__am\u0024cache29;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache29);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.ToggleMultiState, (UnityEngine.Object)null))
            {
                this.ToggleMultiState.set_isOn(GameUtility.Config_MultiState.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.ToggleMultiState.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache2A == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache2A = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__2EC));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache2A = ConfigWindow.\u003C\u003Ef__am\u0024cache2A;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache2A);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.NewGame, (UnityEngine.Object)null))
            {
                this.NewGame.set_isOn(GameUtility.Config_NewGame.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.NewGame.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache2B == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache2B = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__2ED));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache2B = ConfigWindow.\u003C\u003Ef__am\u0024cache2B;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache2B);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.MultiUserSetting, (UnityEngine.Object)null))
            {
                // ISSUE: method pointer
                ((UnityEvent <bool>) this.MultiUserSetting.onValueChanged).AddListener(new UnityAction <bool>((object)this, __methodptr(\u003CStart\u003Em__2EE)));
                ((Component)this.MultiUserSetting).get_gameObject().SetActive(false);
                ((Component)this.MultiUserName).get_gameObject().SetActive(false);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.UseLocalMasterData, (UnityEngine.Object)null))
            {
                this.UseLocalMasterData.set_isOn(GameUtility.Config_UseLocalData.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UseLocalMasterData.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache2C == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache2C = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__2EF));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache2C = ConfigWindow.\u003C\u003Ef__am\u0024cache2C;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache2C);
                ((Component)this.UseLocalMasterData).get_gameObject().SetActive(false);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.VoiceCopyButton, (UnityEngine.Object)null))
            {
                // ISSUE: method pointer
                ((UnityEvent)this.VoiceCopyButton.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__2F0)));
                ((Component)((Component)this.VoiceCopyButton).get_gameObject().get_transform().get_parent()).get_gameObject().SetActive(false);
            }
            for (int index = 0; index < this.InputMethods.Length; ++index)
            {
                if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.InputMethods[index], (UnityEngine.Object)null))
                {
                    // ISSUE: method pointer
                    ((UnityEvent <bool>) this.InputMethods[index].onValueChanged).AddListener(new UnityAction <bool>((object)this, __methodptr(OnInputMethodChange)));
                }
            }
            MoveInputMethods configInputMethod = GameUtility.Config_InputMethod;

            if (configInputMethod < (MoveInputMethods)this.InputMethods.Length && UnityEngine.Object.op_Inequality((UnityEngine.Object) this.InputMethods[(int)configInputMethod], (UnityEngine.Object)null))
            {
                this.InputMethods[(int)configInputMethod].set_isOn(true);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.LoginBonus, (UnityEngine.Object)null))
            {
                this.LoginBonus.SetActive(MonoSingleton <GameManager> .Instance.Player.LoginBonus != null);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.LoginBonus28days, (UnityEngine.Object)null))
            {
                this.LoginBonus28days.SetActive(MonoSingleton <GameManager> .Instance.Player.LoginBonus28days != null);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.MasterCheckButton, (UnityEngine.Object)null))
            {
                ((Component)this.MasterCheckButton).get_gameObject().SetActive(false);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.AwardState, (UnityEngine.Object)null))
            {
                PlayerData player = MonoSingleton <GameManager> .Instance.Player;
                if (player != null)
                {
                    DataSource.Bind <PlayerData>(this.AwardState, player);
                }
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.SupportIcon, (UnityEngine.Object)null))
            {
                UnitData unitDataByUniqueId = MonoSingleton <GameManager> .Instance.Player.FindUnitDataByUniqueID((long)GlobalVars.SelectedSupportUnitUniqueID);

                if (unitDataByUniqueId != null)
                {
                    DataSource.Bind <UnitData>(this.SupportIcon, unitDataByUniqueId);
                }
            }
            ConfigWindow.SetupTreasureList(this.TreasureList, this.TreasureListNode, this.Prefab_NewItemBadge, ((Component)this).get_gameObject(), this.mTreasureListNodes);
            GameParameter.UpdateAll(((Component)this).get_gameObject());
        }
Ejemplo n.º 14
0
        private void Start()
        {
            this.IsModeSentaku = true;
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.SoundVolume, (UnityEngine.Object)null))
            {
                this.SoundVolume.set_value(GameUtility.Config_SoundVolume);
                Slider.SliderEvent onValueChanged = this.SoundVolume.get_onValueChanged();
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache28 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache28 = new UnityAction <float>((object)null, __methodptr(\u003CStart\u003Em__340));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <float> fAmCache28 = ConfigWindow.\u003C\u003Ef__am\u0024cache28;
                ((UnityEvent <float>)onValueChanged).AddListener(fAmCache28);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.MusicVolume, (UnityEngine.Object)null))
            {
                this.MusicVolume.set_value(GameUtility.Config_MusicVolume);
                Slider.SliderEvent onValueChanged = this.MusicVolume.get_onValueChanged();
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache29 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache29 = new UnityAction <float>((object)null, __methodptr(\u003CStart\u003Em__341));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <float> fAmCache29 = ConfigWindow.\u003C\u003Ef__am\u0024cache29;
                ((UnityEvent <float>)onValueChanged).AddListener(fAmCache29);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.VoiceVolume, (UnityEngine.Object)null))
            {
                this.VoiceVolume.set_value(GameUtility.Config_VoiceVolume);
                Slider.SliderEvent onValueChanged = this.VoiceVolume.get_onValueChanged();
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache2A == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache2A = new UnityAction <float>((object)null, __methodptr(\u003CStart\u003Em__342));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <float> fAmCache2A = ConfigWindow.\u003C\u003Ef__am\u0024cache2A;
                ((UnityEvent <float>)onValueChanged).AddListener(fAmCache2A);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.UseAssetBundle, (UnityEngine.Object)null))
            {
                this.UseAssetBundle.set_isOn(GameUtility.Config_UseAssetBundles.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UseAssetBundle.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache2B == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache2B = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__343));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache2B = ConfigWindow.\u003C\u003Ef__am\u0024cache2B;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache2B);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.UseDevServer, (UnityEngine.Object)null))
            {
                this.UseDevServer.set_isOn(GameUtility.Config_UseDevServer.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UseDevServer.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache2C == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache2C = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__344));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache2C = ConfigWindow.\u003C\u003Ef__am\u0024cache2C;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache2C);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.UseAwsServer, (UnityEngine.Object)null))
            {
                this.UseAwsServer.set_isOn(GameUtility.Config_UseAwsServer.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UseAwsServer.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache2D == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache2D = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__345));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache2D = ConfigWindow.\u003C\u003Ef__am\u0024cache2D;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache2D);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.UseAutoPlay, (UnityEngine.Object)null))
            {
                this.UseAutoPlay.set_isOn(GameUtility.Config_UseAutoPlay.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UseAutoPlay.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache2E == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache2E = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__346));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache2E = ConfigWindow.\u003C\u003Ef__am\u0024cache2E;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache2E);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.UsePushStamina, (UnityEngine.Object)null))
            {
                this.UsePushStamina.set_isOn(GameUtility.Config_UsePushStamina.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UsePushStamina.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache2F == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache2F = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__347));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache2F = ConfigWindow.\u003C\u003Ef__am\u0024cache2F;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache2F);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.UsePushNews, (UnityEngine.Object)null))
            {
                this.UsePushNews.set_isOn(GameUtility.Config_UsePushNews.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UsePushNews.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache30 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache30 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__348));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache30 = ConfigWindow.\u003C\u003Ef__am\u0024cache30;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache30);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.MultiInvitationFlag, (UnityEngine.Object)null))
            {
                bool multiInvitaionFlag = MonoSingleton <GameManager> .Instance.Player.MultiInvitaionFlag;
                GlobalVars.MultiInvitaionFlag = multiInvitaionFlag;
                this.MultiInvitationFlag.set_isOn(multiInvitaionFlag);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.MultiInvitationFlag.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache31 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache31 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__349));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache31 = ConfigWindow.\u003C\u003Ef__am\u0024cache31;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache31);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.MultiInvitationComment, (UnityEngine.Object)null))
            {
                string invitaionComment = MonoSingleton <GameManager> .Instance.Player.MultiInvitaionComment;
                GlobalVars.MultiInvitaionComment = invitaionComment;
                if (!string.IsNullOrEmpty(invitaionComment))
                {
                    this.MultiInvitationComment.SetText(invitaionComment);
                }
                InputField.OnChangeEvent onValueChanged = this.MultiInvitationComment.get_onValueChanged();
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache32 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache32 = new UnityAction <string>((object)null, __methodptr(\u003CStart\u003Em__34A));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <string> fAmCache32 = ConfigWindow.\u003C\u003Ef__am\u0024cache32;
                ((UnityEvent <string>)onValueChanged).AddListener(fAmCache32);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.ToggleChatState, (UnityEngine.Object)null))
            {
                this.ToggleChatState.set_isOn(GameUtility.Config_ChatState.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.ToggleChatState.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache33 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache33 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__34B));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache33 = ConfigWindow.\u003C\u003Ef__am\u0024cache33;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache33);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.ToggleMultiState, (UnityEngine.Object)null))
            {
                this.ToggleMultiState.set_isOn(GameUtility.Config_MultiState.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.ToggleMultiState.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache34 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache34 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__34C));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache34 = ConfigWindow.\u003C\u003Ef__am\u0024cache34;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache34);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.NewGame, (UnityEngine.Object)null))
            {
                this.NewGame.set_isOn(GameUtility.Config_NewGame.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.NewGame.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache35 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache35 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__34D));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache35 = ConfigWindow.\u003C\u003Ef__am\u0024cache35;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache35);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.MultiUserSetting, (UnityEngine.Object)null))
            {
                // ISSUE: method pointer
                ((UnityEvent <bool>) this.MultiUserSetting.onValueChanged).AddListener(new UnityAction <bool>((object)this, __methodptr(\u003CStart\u003Em__34E)));
                ((Component)this.MultiUserSetting).get_gameObject().SetActive(false);
                ((Component)this.MultiUserName).get_gameObject().SetActive(false);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.UseLocalMasterData, (UnityEngine.Object)null))
            {
                this.UseLocalMasterData.set_isOn(GameUtility.Config_UseLocalData.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UseLocalMasterData.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache36 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache36 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__34F));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache36 = ConfigWindow.\u003C\u003Ef__am\u0024cache36;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache36);
                ((Component)this.UseLocalMasterData).get_gameObject().SetActive(false);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.VoiceCopyButton, (UnityEngine.Object)null))
            {
                // ISSUE: method pointer
                ((UnityEvent)this.VoiceCopyButton.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__350)));
                ((Component)((Component)this.VoiceCopyButton).get_gameObject().get_transform().get_parent()).get_gameObject().SetActive(false);
            }
            for (int index = 0; index < this.InputMethods.Length; ++index)
            {
                if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.InputMethods[index], (UnityEngine.Object)null))
                {
                    // ISSUE: method pointer
                    ((UnityEvent <bool>) this.InputMethods[index].onValueChanged).AddListener(new UnityAction <bool>((object)this, __methodptr(OnInputMethodChange)));
                }
            }
            MoveInputMethods configInputMethod = GameUtility.Config_InputMethod;

            if (configInputMethod < (MoveInputMethods)this.InputMethods.Length && UnityEngine.Object.op_Inequality((UnityEngine.Object) this.InputMethods[(int)configInputMethod], (UnityEngine.Object)null))
            {
                this.InputMethods[(int)configInputMethod].set_isOn(true);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.LoginBonus, (UnityEngine.Object)null))
            {
                this.LoginBonus.SetActive(MonoSingleton <GameManager> .Instance.Player.LoginBonus != null);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.LoginBonus28days, (UnityEngine.Object)null))
            {
                this.LoginBonus28days.SetActive(MonoSingleton <GameManager> .Instance.Player.LoginBonus28days != null);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.DevServer, (UnityEngine.Object)null))
            {
                string devServerSetting = GameUtility.DevServerSetting;
                if (!string.IsNullOrEmpty(devServerSetting))
                {
                    this.DevServer.set_text(devServerSetting);
                    if (devServerSetting == "http://dev01-app.alcww.gumi.sg/")
                    {
                        this.devServerSetting = 0;
                    }
                    if (devServerSetting == "http://dev02-app.alcww.gumi.sg/")
                    {
                        this.devServerSetting = 1;
                    }
                    if (devServerSetting == "http://dev03-app.alcww.gumi.sg/")
                    {
                        this.devServerSetting = 2;
                    }
                    if (devServerSetting == "http://dev04-app.alcww.gumi.sg/")
                    {
                        this.devServerSetting = 3;
                    }
                    if (devServerSetting == "http://dev05-app.alcww.gumi.sg/")
                    {
                        this.devServerSetting = 4;
                    }
                    if (devServerSetting == "http://stg-app.alcww.gumi.sg/")
                    {
                        this.devServerSetting = 5;
                    }
                    if (devServerSetting == "http://stg02-app.alcww.gumi.sg/")
                    {
                        this.devServerSetting = 6;
                    }
                    if (devServerSetting == "http://dev06-app.alcww.gumi.sg/")
                    {
                        this.devServerSetting = 7;
                    }
                    if (devServerSetting == "http://stg03-app.alcww.gumi.sg/")
                    {
                        this.devServerSetting = 8;
                    }
                }
                InputField.OnChangeEvent onValueChanged = this.DevServer.get_onValueChanged();
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache37 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache37 = new UnityAction <string>((object)null, __methodptr(\u003CStart\u003Em__351));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <string> fAmCache37 = ConfigWindow.\u003C\u003Ef__am\u0024cache37;
                ((UnityEvent <string>)onValueChanged).AddListener(fAmCache37);
                if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.SwitchServer, (UnityEngine.Object)null))
                {
                    // ISSUE: method pointer
                    ((UnityEvent)this.SwitchServer.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__352)));
                }
                if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.CrashButton, (UnityEngine.Object)null))
                {
                    Button.ButtonClickedEvent onClick = this.CrashButton.get_onClick();
                    // ISSUE: reference to a compiler-generated field
                    if (ConfigWindow.\u003C\u003Ef__am\u0024cache38 == null)
                    {
                        // ISSUE: reference to a compiler-generated field
                        // ISSUE: method pointer
                        ConfigWindow.\u003C\u003Ef__am\u0024cache38 = new UnityAction((object)null, __methodptr(\u003CStart\u003Em__353));
                    }
                    // ISSUE: reference to a compiler-generated field
                    UnityAction fAmCache38 = ConfigWindow.\u003C\u003Ef__am\u0024cache38;
                    ((UnityEvent)onClick).AddListener(fAmCache38);
                }
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.LangSetting, (UnityEngine.Object)null) && ((Component)this.LangSetting).get_gameObject().GetActive())
            {
                string configLanguage = GameUtility.Config_Language;
                if (configLanguage == "english")
                {
                    this.devLangSetting = 0;
                }
                if (configLanguage == "french")
                {
                    this.devLangSetting = 1;
                }
                if (configLanguage == "german")
                {
                    this.devLangSetting = 2;
                }
                if (configLanguage == "spanish")
                {
                    this.devLangSetting = 3;
                }
                this.LangSetting.set_text(configLanguage);
                InputField.OnChangeEvent onValueChanged = this.LangSetting.get_onValueChanged();
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache39 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache39 = new UnityAction <string>((object)null, __methodptr(\u003CStart\u003Em__354));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <string> fAmCache39 = ConfigWindow.\u003C\u003Ef__am\u0024cache39;
                ((UnityEvent <string>)onValueChanged).AddListener(fAmCache39);
                if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.SwitchLanguage, (UnityEngine.Object)null))
                {
                    // ISSUE: method pointer
                    ((UnityEvent)this.SwitchLanguage.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__355)));
                }
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.MasterCheckButton, (UnityEngine.Object)null))
            {
                ((Component)this.MasterCheckButton).get_gameObject().SetActive(false);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.AwardState, (UnityEngine.Object)null))
            {
                PlayerData player = MonoSingleton <GameManager> .Instance.Player;
                if (player != null)
                {
                    DataSource.Bind <PlayerData>(this.AwardState, player);
                }
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.SupportIcon, (UnityEngine.Object)null))
            {
                UnitData unitDataByUniqueId = MonoSingleton <GameManager> .Instance.Player.FindUnitDataByUniqueID((long)GlobalVars.SelectedSupportUnitUniqueID);

                if (unitDataByUniqueId != null)
                {
                    DataSource.Bind <UnitData>(this.SupportIcon, unitDataByUniqueId);
                }
            }
            ConfigWindow.SetupTreasureList(this.TreasureList, this.TreasureListNode, this.Prefab_NewItemBadge, ((Component)this).get_gameObject(), this.mTreasureListNodes);
            GameParameter.UpdateAll(((Component)this).get_gameObject());
        }
Ejemplo n.º 15
0
 /// <summary>
 /// リスナーを設定します
 /// </summary>
 public static void SetListener(this InputField.OnChangeEvent self, UnityAction <string> call)
 {
     self.RemoveAllListeners();
     self.AddListener(call);
 }
 public static void AddListener(this InputField.OnChangeEvent valueChangedEvent, Function funcToExecute)
 {
     valueChangedEvent.AddListener(new Action <string>((str) => { funcToExecute(str); }));
 }
Ejemplo n.º 17
0
 /// <summary>
 /// <para>リスナーを設定します</para>
 /// <para>この関数は SetListener 関数の省略表記です</para>
 /// </summary>
 public static void Set(this InputField.OnChangeEvent self, UnityAction <string> call)
 {
     self.SetListener(call);
 }
Ejemplo n.º 18
0
 public static void Add(this InputField.OnChangeEvent changeEvent, Action action)
 {
     changeEvent.AddListener((index) => { action(); });
 }
Ejemplo n.º 19
0
        private void Start()
        {
            if (Object.op_Inequality((Object)this.SoundVolume, (Object)null))
            {
                this.SoundVolume.set_value(GameUtility.Config_SoundVolume);
                Slider.SliderEvent onValueChanged = this.SoundVolume.get_onValueChanged();
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache20 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache20 = new UnityAction <float>((object)null, __methodptr(\u003CStart\u003Em__25A));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <float> fAmCache20 = ConfigWindow.\u003C\u003Ef__am\u0024cache20;
                ((UnityEvent <float>)onValueChanged).AddListener(fAmCache20);
            }
            if (Object.op_Inequality((Object)this.MusicVolume, (Object)null))
            {
                this.MusicVolume.set_value(GameUtility.Config_MusicVolume);
                Slider.SliderEvent onValueChanged = this.MusicVolume.get_onValueChanged();
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache21 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache21 = new UnityAction <float>((object)null, __methodptr(\u003CStart\u003Em__25B));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <float> fAmCache21 = ConfigWindow.\u003C\u003Ef__am\u0024cache21;
                ((UnityEvent <float>)onValueChanged).AddListener(fAmCache21);
            }
            if (Object.op_Inequality((Object)this.VoiceVolume, (Object)null))
            {
                this.VoiceVolume.set_value(GameUtility.Config_VoiceVolume);
                Slider.SliderEvent onValueChanged = this.VoiceVolume.get_onValueChanged();
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache22 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache22 = new UnityAction <float>((object)null, __methodptr(\u003CStart\u003Em__25C));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <float> fAmCache22 = ConfigWindow.\u003C\u003Ef__am\u0024cache22;
                ((UnityEvent <float>)onValueChanged).AddListener(fAmCache22);
            }
            if (Object.op_Inequality((Object)this.UseAssetBundle, (Object)null))
            {
                this.UseAssetBundle.set_isOn(GameUtility.Config_UseAssetBundles.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UseAssetBundle.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache23 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache23 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__25D));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache23 = ConfigWindow.\u003C\u003Ef__am\u0024cache23;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache23);
            }
            if (Object.op_Inequality((Object)this.UseDevServer, (Object)null))
            {
                this.UseDevServer.set_isOn(GameUtility.Config_UseDevServer.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UseDevServer.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache24 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache24 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__25E));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache24 = ConfigWindow.\u003C\u003Ef__am\u0024cache24;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache24);
            }
            if (Object.op_Inequality((Object)this.UseStgServer, (Object)null))
            {
                this.UseStgServer.set_isOn(GameUtility.Config_UseStgServer.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UseStgServer.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache25 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache25 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__25F));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache25 = ConfigWindow.\u003C\u003Ef__am\u0024cache25;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache25);
            }
            if (Object.op_Inequality((Object)this.UseAwsServer, (Object)null))
            {
                this.UseAwsServer.set_isOn(GameUtility.Config_UseAwsServer.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UseAwsServer.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache26 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache26 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__260));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache26 = ConfigWindow.\u003C\u003Ef__am\u0024cache26;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache26);
            }
            if (Object.op_Inequality((Object)this.UseAutoPlay, (Object)null))
            {
                this.UseAutoPlay.set_isOn(GameUtility.Config_UseAutoPlay.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UseAutoPlay.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache27 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache27 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__261));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache27 = ConfigWindow.\u003C\u003Ef__am\u0024cache27;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache27);
            }
            if (Object.op_Inequality((Object)this.UsePushStamina, (Object)null))
            {
                this.UsePushStamina.set_isOn(GameUtility.Config_UsePushStamina.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UsePushStamina.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache28 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache28 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__262));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache28 = ConfigWindow.\u003C\u003Ef__am\u0024cache28;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache28);
            }
            if (Object.op_Inequality((Object)this.UsePushNews, (Object)null))
            {
                this.UsePushNews.set_isOn(GameUtility.Config_UsePushNews.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UsePushNews.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache29 == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache29 = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__263));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache29 = ConfigWindow.\u003C\u003Ef__am\u0024cache29;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache29);
            }
            if (Object.op_Inequality((Object)this.ToggleChatState, (Object)null))
            {
                this.ToggleChatState.set_isOn(GameUtility.Config_ChatState.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.ToggleChatState.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache2A == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache2A = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__264));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache2A = ConfigWindow.\u003C\u003Ef__am\u0024cache2A;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache2A);
            }
            if (Object.op_Inequality((Object)this.NewGame, (Object)null))
            {
                this.NewGame.set_isOn(GameUtility.Config_NewGame.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.NewGame.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache2B == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache2B = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__265));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache2B = ConfigWindow.\u003C\u003Ef__am\u0024cache2B;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache2B);
            }
            if (Object.op_Inequality((Object)this.MultiUserSetting, (Object)null))
            {
                // ISSUE: method pointer
                ((UnityEvent <bool>) this.MultiUserSetting.onValueChanged).AddListener(new UnityAction <bool>((object)this, __methodptr(\u003CStart\u003Em__266)));
                ((Component)this.MultiUserSetting).get_gameObject().SetActive(false);
                ((Component)this.MultiUserName).get_gameObject().SetActive(false);
            }
            if (Object.op_Inequality((Object)this.UseLocalMasterData, (Object)null))
            {
                this.UseLocalMasterData.set_isOn(GameUtility.Config_UseLocalData.Value);
                // ISSUE: variable of the null type
                __Null onValueChanged = this.UseLocalMasterData.onValueChanged;
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache2C == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache2C = new UnityAction <bool>((object)null, __methodptr(\u003CStart\u003Em__267));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <bool> fAmCache2C = ConfigWindow.\u003C\u003Ef__am\u0024cache2C;
                ((UnityEvent <bool>)onValueChanged).AddListener(fAmCache2C);
                ((Component)this.UseLocalMasterData).get_gameObject().SetActive(false);
            }
            for (int index = 0; index < this.InputMethods.Length; ++index)
            {
                if (Object.op_Inequality((Object)this.InputMethods[index], (Object)null))
                {
                    // ISSUE: method pointer
                    ((UnityEvent <bool>) this.InputMethods[index].onValueChanged).AddListener(new UnityAction <bool>((object)this, __methodptr(OnInputMethodChange)));
                }
            }
            MoveInputMethods configInputMethod = GameUtility.Config_InputMethod;

            if (configInputMethod < (MoveInputMethods)this.InputMethods.Length && Object.op_Inequality((Object)this.InputMethods[(int)configInputMethod], (Object)null))
            {
                this.InputMethods[(int)configInputMethod].set_isOn(true);
            }
            if (Object.op_Inequality((Object)this.LoginBonus, (Object)null))
            {
                this.LoginBonus.SetActive(MonoSingleton <GameManager> .Instance.Player.LoginBonus != null);
            }
            if (Object.op_Inequality((Object)this.LoginBonus28days, (Object)null))
            {
                this.LoginBonus28days.SetActive(MonoSingleton <GameManager> .Instance.Player.LoginBonus28days != null);
            }
            if (Object.op_Inequality((Object)this.DevServer, (Object)null))
            {
                string devServerSetting = GameUtility.DevServerSetting;
                if (!string.IsNullOrEmpty(devServerSetting))
                {
                    this.DevServer.set_text(devServerSetting);
                    if (devServerSetting == "http://dev01-app.alcww.gumi.sg/")
                    {
                        this.devServerSetting = 0;
                    }
                    if (devServerSetting == "http://dev02-app.alcww.gumi.sg/")
                    {
                        this.devServerSetting = 1;
                    }
                    if (devServerSetting == "http://dev03-app.alcww.gumi.sg/")
                    {
                        this.devServerSetting = 2;
                    }
                    if (devServerSetting == "http://dev04-app.alcww.gumi.sg/")
                    {
                        this.devServerSetting = 3;
                    }
                    if (devServerSetting == "http://dev05-app.alcww.gumi.sg/")
                    {
                        this.devServerSetting = 4;
                    }
                    if (devServerSetting == "http://stg-app.alcww.gumi.sg/")
                    {
                        this.devServerSetting = 5;
                    }
                    if (devServerSetting == "http://stg02-app.alcww.gumi.sg/")
                    {
                        this.devServerSetting = 6;
                    }
                }
                InputField.OnChangeEvent onValueChanged = this.DevServer.get_onValueChanged();
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache2D == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache2D = new UnityAction <string>((object)null, __methodptr(\u003CStart\u003Em__268));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <string> fAmCache2D = ConfigWindow.\u003C\u003Ef__am\u0024cache2D;
                ((UnityEvent <string>)onValueChanged).AddListener(fAmCache2D);
                if (Object.op_Inequality((Object)this.SwitchServer, (Object)null))
                {
                    // ISSUE: method pointer
                    ((UnityEvent)this.SwitchServer.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__269)));
                }
                if (Object.op_Inequality((Object)this.CrashButton, (Object)null))
                {
                    Button.ButtonClickedEvent onClick = this.CrashButton.get_onClick();
                    // ISSUE: reference to a compiler-generated field
                    if (ConfigWindow.\u003C\u003Ef__am\u0024cache2E == null)
                    {
                        // ISSUE: reference to a compiler-generated field
                        // ISSUE: method pointer
                        ConfigWindow.\u003C\u003Ef__am\u0024cache2E = new UnityAction((object)null, __methodptr(\u003CStart\u003Em__26A));
                    }
                    // ISSUE: reference to a compiler-generated field
                    UnityAction fAmCache2E = ConfigWindow.\u003C\u003Ef__am\u0024cache2E;
                    ((UnityEvent)onClick).AddListener(fAmCache2E);
                }
            }
            if (Object.op_Inequality((Object)this.LangSetting, (Object)null) && ((Component)this.LangSetting).get_gameObject().GetActive())
            {
                string configLanguage = GameUtility.Config_Language;
                if (configLanguage == "english")
                {
                    this.devLangSetting = 0;
                }
                if (configLanguage == "french")
                {
                    this.devLangSetting = 1;
                }
                if (configLanguage == "german")
                {
                    this.devLangSetting = 2;
                }
                if (configLanguage == "spanish")
                {
                    this.devLangSetting = 3;
                }
                this.LangSetting.set_text(configLanguage);
                InputField.OnChangeEvent onValueChanged = this.LangSetting.get_onValueChanged();
                // ISSUE: reference to a compiler-generated field
                if (ConfigWindow.\u003C\u003Ef__am\u0024cache2F == null)
                {
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    ConfigWindow.\u003C\u003Ef__am\u0024cache2F = new UnityAction <string>((object)null, __methodptr(\u003CStart\u003Em__26B));
                }
                // ISSUE: reference to a compiler-generated field
                UnityAction <string> fAmCache2F = ConfigWindow.\u003C\u003Ef__am\u0024cache2F;
                ((UnityEvent <string>)onValueChanged).AddListener(fAmCache2F);
                if (Object.op_Inequality((Object)this.SwitchLanguage, (Object)null))
                {
                    // ISSUE: method pointer
                    ((UnityEvent)this.SwitchLanguage.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__26C)));
                }
            }
            if (Object.op_Inequality((Object)this.MasterCheckButton, (Object)null))
            {
                ((Component)this.MasterCheckButton).get_gameObject().SetActive(false);
            }
            if (Object.op_Inequality((Object)this.AwardState, (Object)null))
            {
                PlayerData player = MonoSingleton <GameManager> .Instance.Player;
                if (player != null)
                {
                    DataSource.Bind <PlayerData>(this.AwardState, player);
                }
            }
            if (Object.op_Inequality((Object)this.SupportIcon, (Object)null))
            {
                UnitData unitDataByUniqueId = MonoSingleton <GameManager> .Instance.Player.FindUnitDataByUniqueID((long)GlobalVars.SelectedSupportUnitUniqueID);

                if (unitDataByUniqueId != null)
                {
                    DataSource.Bind <UnitData>(this.SupportIcon, unitDataByUniqueId);
                }
            }
            this.UpdateChargeDispText(GameUtility.Config_ChargeDisp.Value);
            GameParameter.UpdateAll(((Component)this).get_gameObject());
        }