mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
更新 桌面端部署方法
This commit is contained in:
BIN
README.assets/image-20230208004330895.png
Normal file
BIN
README.assets/image-20230208004330895.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
11
README.md
11
README.md
@ -223,4 +223,13 @@
|
|||||||
|
|
||||||
* 需要告知以上所有授权信息
|
* 需要告知以上所有授权信息
|
||||||
* 需要提供访问 [该页面](https://github.com/LorisYounger/VPet) 的链接
|
* 需要提供访问 [该页面](https://github.com/LorisYounger/VPet) 的链接
|
||||||
* 分发动画文件时禁止任何付费/收费行为
|
* 分发动画文件时禁止任何付费/收费行为
|
||||||
|
|
||||||
|
## 桌面端部署方法
|
||||||
|
|
||||||
|
1. 下载本项目, 通过VisualStudio打开 `VPet.sln` 文件
|
||||||
|
2. 在生成栏中, 选择 位数为 `x64` 和生成项目为 `Vpet-Simulator.Windows`
|
||||||
|

|
||||||
|
3. 点击启动, 如果一切正常则会报错 `缺少模组Core,无法启动桌宠`
|
||||||
|
4. 以管理员身份运行 `mklink.bat`, 这会让mod文件链接到生成位置
|
||||||
|
5. 下次点击启动即可正常运行
|
@ -63,7 +63,7 @@ namespace VPet_Simulator.Windows
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
rndtext.Add($"关注 {Environment.UserName} 谢谢喵");
|
rndtext.Add($"关注 {Environment.UserName} 谢谢喵");
|
||||||
}
|
}
|
||||||
//加载游戏设置
|
//加载游戏设置
|
||||||
if (new FileInfo(AppDomain.CurrentDomain.BaseDirectory + @"\Setting.lps").Exists)
|
if (new FileInfo(AppDomain.CurrentDomain.BaseDirectory + @"\Setting.lps").Exists)
|
||||||
@ -101,7 +101,7 @@ namespace VPet_Simulator.Windows
|
|||||||
"你添加了虚拟主播模拟器和虚拟桌宠模拟器到愿望单了吗? 快去加吧",
|
"你添加了虚拟主播模拟器和虚拟桌宠模拟器到愿望单了吗? 快去加吧",
|
||||||
"这游戏开发这么慢,都怪画师太咕了.\n记得多催催画师(@叶书天)画桌宠, 催的越快更新越快!",
|
"这游戏开发这么慢,都怪画师太咕了.\n记得多催催画师(@叶书天)画桌宠, 催的越快更新越快!",
|
||||||
"长按脑袋拖动桌宠到你喜欢的任意位置",
|
"长按脑袋拖动桌宠到你喜欢的任意位置",
|
||||||
"欢迎加入 虚拟主播模拟器群 430081239",
|
"欢迎加入 虚拟主播模拟器群 430081239",
|
||||||
};
|
};
|
||||||
private long lastclicktime;
|
private long lastclicktime;
|
||||||
public void GameLoad()
|
public void GameLoad()
|
||||||
@ -231,7 +231,6 @@ namespace VPet_Simulator.Windows
|
|||||||
{
|
{
|
||||||
Save();
|
Save();
|
||||||
Main?.Dispose();
|
Main?.Dispose();
|
||||||
notifyIcon.Visible = false;
|
|
||||||
notifyIcon?.Dispose();
|
notifyIcon?.Dispose();
|
||||||
System.Environment.Exit(0);
|
System.Environment.Exit(0);
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<TabItem Header="动画列表">
|
<TabItem Header="动画列表">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Label Background="{x:Null}" Content="双击查看动画效果 选择状态模式:" />
|
<Label Background="{x:Null}" Content="双击查看动画效果 选择状态模式:" />
|
||||||
<ComboBox x:Name="ComboxMode" VerticalAlignment="Top" Margin="110,25,5,0">
|
<ComboBox x:Name="ComboxMode" VerticalAlignment="Top" Margin="110,25,5,0" SelectedIndex="1">
|
||||||
<ComboBoxItem Content="Happy" />
|
<ComboBoxItem Content="Happy" />
|
||||||
<ComboBoxItem Content="Nomal" />
|
<ComboBoxItem Content="Nomal" />
|
||||||
<ComboBoxItem Content="PoorCondition" />
|
<ComboBoxItem Content="PoorCondition" />
|
||||||
|
4
VPet-Simulator.Windows/mklink.bat
Normal file
4
VPet-Simulator.Windows/mklink.bat
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
mklink /d "%~dp0\bin\x64\Debug\mod" "%~dp0\mod"
|
||||||
|
mklink /d "%~dp0\bin\x64\Release\mod" "%~dp0\mod"
|
||||||
|
pause
|
Reference in New Issue
Block a user