Skip to content

Commit

Permalink
Merge pull request #180 from ZHANGBITS/bepinex5-0115
Browse files Browse the repository at this point in the history
齿轮支持调整非整数倍速
  • Loading branch information
Pik-4 authored Jan 16, 2025
2 parents f71e6e5 + f898a5d commit af1b2ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions HsMod/PluginConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static class PluginConfig
public static ConfigEntry<bool> isDynamicFpsEnable;
public static ConfigEntry<bool> isEulaRead;

public static ConfigEntry<int> timeGear;
public static ConfigEntry<float> timeGear;
public static ConfigEntry<int> receiveEnemyEmoteLimit;

public static ConfigEntry<bool> isIGMMessageShow;
Expand Down Expand Up @@ -181,7 +181,7 @@ public static void ConfigBind(ConfigFile config)
configTemplate = config.Bind(LocalizationManager.GetLangValue("configTemplate.label"), LocalizationManager.GetLangValue("configTemplate.name"), Utils.ConfigTemplate.DoNothing, LocalizationManager.GetLangValue("configTemplate.description"));
isShortcutsEnable = config.Bind(LocalizationManager.GetLangValue("isShortcutsEnable.label"), LocalizationManager.GetLangValue("isShortcutsEnable.name"), false, LocalizationManager.GetLangValue("isShortcutsEnable.description"));
isTimeGearEnable = config.Bind(LocalizationManager.GetLangValue("isTimeGearEnable.label"), LocalizationManager.GetLangValue("isTimeGearEnable.name"), false, LocalizationManager.GetLangValue("isTimeGearEnable.description"));
timeGear = config.Bind(LocalizationManager.GetLangValue("timeGear.label"), LocalizationManager.GetLangValue("timeGear.name"), 0, new ConfigDescription(LocalizationManager.GetLangValue("timeGear.description"), new AcceptableValueRange<int>(-32, 32)));
timeGear = config.Bind(LocalizationManager.GetLangValue("timeGear.label"), LocalizationManager.GetLangValue("timeGear.name"), 0f, new ConfigDescription(LocalizationManager.GetLangValue("timeGear.description"), new AcceptableValueRange<float>(-32, 32)));
isShowFPSEnable = config.Bind(LocalizationManager.GetLangValue("isShowFPSEnable.label"), LocalizationManager.GetLangValue("isShowFPSEnable.name"), false, LocalizationManager.GetLangValue("isShowFPSEnable.description"));
targetFrameRate = config.Bind(LocalizationManager.GetLangValue("targetFrameRate.label"), LocalizationManager.GetLangValue("targetFrameRate.name"), -1, new ConfigDescription(LocalizationManager.GetLangValue("targetFrameRate.description"), new AcceptableValueRange<int>(-1, 2333)));

Expand Down Expand Up @@ -585,7 +585,7 @@ public bool TimeGearEnable
set { PluginConfig.isTimeGearEnable.Value = value; }
}

public int TimeGearValue
public float TimeGearValue
{
get { return PluginConfig.timeGear.Value; }
set { PluginConfig.timeGear.Value = value; }
Expand Down

0 comments on commit af1b2ca

Please sign in to comment.