This commit is contained in:
2025-06-16 00:15:41 +08:00
parent bcfa5ce1ec
commit 6d79a5baa1
16 changed files with 246 additions and 3838 deletions

View File

@@ -105,31 +105,7 @@ public class UIEditMapConfig : MonoBehaviour
}
private void OnInputFieldClicked(BaseEventData data)
{
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼID<49><44><EFBFBD>õ<EFBFBD>ͼһ<CDBC>£<EFBFBD><C2A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//TODO: <20><><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD>
if (data.selectedObject.name.Equals("InputReturnPoint"))
{
if (!txtReturnMapId.text.Equals(UIWindow.Instance.uiCreateMap.txtMapID.text))
{
MapManager.Instance.RemoveSpecialPoint(MapManager.EditCellType.ReturnCell);
return;
}
MapManager.Instance.SetEditCellType(MapManager.EditCellType.ReturnCell);
}
//else if (data.selectedObject.name.Equals("InputRelivePoint"))
//{
// if (!txtReliveMapId.text.Equals(UIWindow.Instance.uiCreateMap.txtMapID.text))
// {
// MapManager.Instance.RemoveSpecialPoint(MapManager.EditCellType.ReliveCell);
// return;
// }
// MapManager.Instance.SetEditCellType(MapManager.EditCellType.ReliveCell);
//}
{
}
@@ -257,12 +233,6 @@ public class UIEditMapConfig : MonoBehaviour
bool CheckValid()
{
if (string.IsNullOrEmpty(UIWindow.Instance.uiCreateMap.txtMapID.text))
{
UIWindow.Instance.ShowMessage("<22><><EFBFBD><EFBFBD>д<EFBFBD><D0B4>ͼID");
return false;
}
if (string.IsNullOrEmpty(txtMapName.text))
{
UIWindow.Instance.ShowMessage("<22><><EFBFBD><EFBFBD>д<EFBFBD><D0B4>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD>");
@@ -467,9 +437,7 @@ public class UIEditMapConfig : MonoBehaviour
config.time = Convert.ToInt32(item.txtTime.text);
mc.conditionsConfig.Add(config);
}
int mapId = Convert.ToInt32(UIWindow.Instance.uiCreateMap.txtMapID.text);
mc.SaveXML(mapId);
mc.SaveXML(MapManager.Instance._curOpenMapId);
}
public void LoadMapConfig(int mapId)
@@ -483,9 +451,6 @@ public class UIEditMapConfig : MonoBehaviour
txtReturnMapId.text = mc.returnMapId.ToString();
txtReturnMapCellPoint.text = $"{mc.returnMapCellPoint.x},{mc.returnMapCellPoint.y}";
if (txtReturnMapId.text.Equals(UIWindow.Instance.uiCreateMap.txtMapID.text))
MapManager.Instance.CreateSpecialPoint(mc.returnMapCellPoint.x, mc.returnMapCellPoint.y, MapManager.EditCellType.ReturnCell);
if ((mc.roleMode & RoleMode.PK) != 0)
togModePK.isOn = true;
if ((mc.roleMode & RoleMode.ShiZu) != 0)