Skip to content

Commit

Permalink
Mod设置
Browse files Browse the repository at this point in the history
  • Loading branch information
LorisYounger committed Aug 20, 2023
1 parent 659d865 commit 1da4292
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ private void ShowMod(string modname)
{
try
{
if (mainplug.GetType().GetMethod("Setting").DeclaringType != typeof(MainPlugin)
if (mainplug.PluginName == mod.Name &&
mainplug.GetType().GetMethod("Setting").DeclaringType != typeof(MainPlugin)
&& mainplug.GetType().Assembly.Location.Contains(mod.Path.FullName))
{
ButtonSetting.Visibility = Visibility.Visible;
Expand Down Expand Up @@ -923,7 +924,7 @@ private void ButtonSetting_MouseDown(object sender, MouseButtonEventArgs e)
{
try
{
if (mainplug.GetType().GetMethod("Setting").DeclaringType != typeof(MainPlugin)
if (mainplug.PluginName == mod.Name && mainplug.GetType().GetMethod("Setting").DeclaringType != typeof(MainPlugin)
&& mainplug.GetType().Assembly.Location.Contains(mod.Path.FullName))
{
mainplug.Setting();
Expand Down
2 changes: 1 addition & 1 deletion VPet-Simulator.Windows/mod/0000_core/lang/en/Base2306.lps
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ MOD介绍#MOD Description:|
停用该模组#Disable:|
更新至Steam#Update to Steam:|
创意工坊页面#Workshop Page:|
MOD设置#MOD:|
MOD设置#MOD Setting:|
启用代码插件#Enable code plugin:|
启用该模组的代码内容,不能保证系统安全性#Enabling this code content of the module, does not guarantee system security:|
关于#About:|
Expand Down

0 comments on commit 1da4292

Please sign in to comment.