mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-02-05 03:02:20 +08:00
fix crash
This commit is contained in:
@@ -235,16 +235,24 @@ public static class UIConfigWindow
|
|||||||
|
|
||||||
private static void UpdateButtons()
|
private static void UpdateButtons()
|
||||||
{
|
{
|
||||||
var resignEnabled = GameMain.data.account != AccountData.me;
|
var data = GameMain.data;
|
||||||
|
if (data != null)
|
||||||
|
{
|
||||||
|
var resignEnabled = data.account != AccountData.me;
|
||||||
if (_resignGameBtn.gameObject.activeSelf != resignEnabled)
|
if (_resignGameBtn.gameObject.activeSelf != resignEnabled)
|
||||||
{
|
{
|
||||||
_resignGameBtn.gameObject.SetActive(resignEnabled);
|
_resignGameBtn.gameObject.SetActive(resignEnabled);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var banEnabled = GameMain.history.hasUsedPropertyBanAchievement;
|
var history = GameMain.history;
|
||||||
|
if (history != null)
|
||||||
|
{
|
||||||
|
var banEnabled = history.hasUsedPropertyBanAchievement;
|
||||||
if (_clearBanBtn.gameObject.activeSelf != banEnabled)
|
if (_clearBanBtn.gameObject.activeSelf != banEnabled)
|
||||||
{
|
{
|
||||||
_clearBanBtn.gameObject.SetActive(banEnabled);
|
_clearBanBtn.gameObject.SetActive(banEnabled);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
## Changlog
|
## Changlog
|
||||||
* 1.1.5
|
* 1.1.5
|
||||||
+ `Quick build and dismantle stacking labs`: works for storages and tanks now
|
+ `Quick build and dismantle stacking labs`: works for storages and tanks now
|
||||||
|
+ Fix a crash when config panel is opened before game is fully loaded
|
||||||
* 1.1.4
|
* 1.1.4
|
||||||
+ Fix `Remove some build conditions`
|
+ Fix `Remove some build conditions`
|
||||||
* 1.1.3
|
* 1.1.3
|
||||||
@@ -144,6 +145,7 @@
|
|||||||
## 更新日志
|
## 更新日志
|
||||||
* 1.1.5
|
* 1.1.5
|
||||||
+ `快速建造和拆除堆叠研究站`:现在也支持储物仓和储液罐
|
+ `快速建造和拆除堆叠研究站`:现在也支持储物仓和储液罐
|
||||||
|
+ 修复了在游戏完全加载前打开配置面板可能导致的崩溃问题
|
||||||
* 1.1.4
|
* 1.1.4
|
||||||
+ 修复了`移除部分不影响游戏逻辑的建造条件`
|
+ 修复了`移除部分不影响游戏逻辑的建造条件`
|
||||||
* 1.1.3
|
* 1.1.3
|
||||||
|
|||||||
@@ -26,6 +26,6 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(Configuration)' == 'Release'">
|
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(Configuration)' == 'Release'">
|
||||||
<Exec Command="del /F /Q package\$(ProjectName)-$(Version).zip
powershell Compress-Archive -Force -DestinationPath 'package/$(ProjectName)-$(Version).zip' -Path '$(TargetPath)', package/icon.png, package/manifest.json, package/uxassist.assetbundle, README.md" />
|
<Exec Command="del /F /Q package\$(ProjectName)-$(Version).zip
powershell Compress-Archive -Force -DestinationPath 'package/$(ProjectName)-$(Version).zip' -Path '$(TargetPath)', package/icon.png, package/manifest.json, package/uxassist.assetbundle, README.md, CHANGELOG.md" />
|
||||||
</Target>
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
Reference in New Issue
Block a user