Skip to content

Commit

Permalink
code clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Pik-4 committed Jan 12, 2025
1 parent 76218ea commit 30b3cf7
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
16 changes: 8 additions & 8 deletions HsMod/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ namespace HsMod
[BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
public class Plugin : BaseUnityPlugin
{
private void OnGUI()
{
if (UtilsArgu.Instance.Exists("hsunitid"))
GUILayout.Label(new GUIContent(UtilsArgu.Instance.Single("hsunitid")), new GUILayoutOption[]
{
GUILayout.Width(200f)
});
}
private void OnGUI()
{
if (UtilsArgu.Instance.Exists("hsunitid"))
GUILayout.Label(new GUIContent(UtilsArgu.Instance.Single("hsunitid")), new GUILayoutOption[]
{
GUILayout.Width(200f)
});
}
private void Awake()
{
// enable logging bepinex and unity to disk without append
Expand Down
22 changes: 11 additions & 11 deletions HsMod/Patcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -609,17 +609,17 @@ public static bool PatchRedundantNDEPopup(ref UIBButton ___m_rerollButton)
___m_rerollButton.TriggerPress();
___m_rerollButton.TriggerRelease();
return false;
}
//处理未领取的奖励
[HarmonyPostfix]
[HarmonyPatch(typeof(RewardTrackSeasonRoll), "Show")]
public static void Patch_RewardTrackSeasonRoll_Show(RewardTrackSeasonRoll __instance)
{
if (isAlertPopupShow.Value)
return;

__instance.ShowChooseOneRewardPickerPopup();
}
}
//处理未领取的奖励
[HarmonyPostfix]
[HarmonyPatch(typeof(RewardTrackSeasonRoll), "Show")]
public static void Patch_RewardTrackSeasonRoll_Show(RewardTrackSeasonRoll __instance)
{
if (isAlertPopupShow.Value)
return;

__instance.ShowChooseOneRewardPickerPopup();
}



Expand Down
2 changes: 1 addition & 1 deletion HsMod/PluginConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public static void ConfigBind(ConfigFile config)
fakeCardPremium4 = config.Bind(LocalizationManager.GetLangValue("fakeCardPremium4.label"), LocalizationManager.GetLangValue("fakeCardPremium4.name"), TAG_PREMIUM.GOLDEN, new ConfigDescription(LocalizationManager.GetLangValue("fakeCardPremium4.description"), null, new object[] { "Advanced" }));
fakeCardID5 = config.Bind(LocalizationManager.GetLangValue("fakeCardID5.label"), LocalizationManager.GetLangValue("fakeCardID5.name"), 67040, new ConfigDescription(LocalizationManager.GetLangValue("fakeCardID5.description"), null, new object[] { "Advanced" }));
fakeCardPremium5 = config.Bind(LocalizationManager.GetLangValue("fakeCardPremium5.label"), LocalizationManager.GetLangValue("fakeCardPremium5.name"), TAG_PREMIUM.GOLDEN, new ConfigDescription(LocalizationManager.GetLangValue("fakeCardPremium5.description"), null, new object[] { "Advanced" }));
isAutoRedundantNDE = config.Bind(LocalizationManager.GetLangValue("isAutoRedundantNDE.label"), LocalizationManager.GetLangValue("isAutoRedundantNDE.name"), false, LocalizationManager.GetLangValue("isAutoRedundantNDE.description"));
isAutoRedundantNDE = config.Bind(LocalizationManager.GetLangValue("isAutoRedundantNDE.label"), LocalizationManager.GetLangValue("isAutoRedundantNDE.name"), false, LocalizationManager.GetLangValue("isAutoRedundantNDE.description"));

InitCardsMapping();
LoadSkinsConfigFromFile();
Expand Down
4 changes: 2 additions & 2 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ Note: The `Env` parameter for China is `cn.actual.battlenet.com.cn`.

### Groups

Telegram @HearthstoneMod
Telegram @HearthstoneMod (**Suggest and Recommend**)

[Discord](https://discord.gg/BCnhxtXHVq)
[Discord](https://discord.gg/BCnhxtXHVq) (*Not recommended*)

### TODO

Expand Down
4 changes: 2 additions & 2 deletions [CHS]ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ https://eu.battle.net/login/en/?app=wtcg

### Groups

Telegram @HearthstoneMod
Telegram @HearthstoneMod (**Suggest and Recommend**)

[Discord](https://discord.gg/BCnhxtXHVq)
[Discord](https://discord.gg/BCnhxtXHVq) (*Not recommended*)

### TODO

Expand Down

0 comments on commit 30b3cf7

Please sign in to comment.