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()); }); }
public InputOption(GameObject parentGO, ModSettingString modSettingInt) : this(parentGO, (ModSetting)modSettingInt) { inputField.characterValidation = modSettingInt.validation; inputField.AddSubmitEvent(modSettingInt.SetValue); }