This commit is contained in:
2025-08-25 13:49:33 +08:00
parent 9ce8146a3c
commit ca8b713d4b
6 changed files with 290 additions and 295 deletions

View File

@@ -20,9 +20,7 @@ namespace WulaFallenEmpire
{
#region 使MapPortal的图标
/// <summary>查看口袋地图图标</summary>
private static readonly Texture2D ViewPocketMapTex = ContentFinder<Texture2D>.Get("UI/Commands/ViewCave");
/// <summary>取消进入图标</summary>
private static readonly Texture2D CancelEnterTex = ContentFinder<Texture2D>.Get("UI/Designators/Cancel");
@@ -797,28 +795,7 @@ namespace WulaFallenEmpire
enterCommand.disabledReason = reason;
yield return enterCommand;
// 查看口袋地图按钮模仿原版MapPortal
if (pocketMap != null)
{
yield return new Command_Action
{
defaultLabel = "WULA.PocketSpace.ViewMap".Translate(),
defaultDesc = "WULA.PocketSpace.ViewMapDesc".Translate(),
icon = ViewPocketMapTex,
action = delegate
{
// 模仿原版,跳转到口袋地图并选中退出点
if (exit != null)
{
CameraJumper.TryJumpAndSelect(exit);
}
else
{
SwitchToPocketSpace();
}
}
};
}
}
}