コード例 #1
0
        internal InputOption(GameObject parentGO, ModSettingString modSettingString) : this(parentGO, (ModSetting)modSettingString)
        {
            InputField.SetText(modSettingString.GetValue().ToString());

            InputField.characterValidation = modSettingString.GetValidation();
            InputField.AddSubmitEvent(modSettingString.SetValue);
            modSettingString.OnInitialized.InvokeAll(this);
            Button.AddOnClick(() =>
            {
                InputField.SetText(modSettingString.GetDefaultValue().ToString());
            });
        }
コード例 #2
0
 public InputOption(GameObject parentGO, ModSettingString modSettingInt) : this(parentGO, (ModSetting)modSettingInt)
 {
     inputField.characterValidation = modSettingInt.validation;
     inputField.AddSubmitEvent(modSettingInt.SetValue);
 }