格子划分正常

This commit is contained in:
2025-06-15 20:14:45 +08:00
parent c7700419cb
commit bc58a9d0d5
29 changed files with 1546 additions and 107 deletions

View File

@@ -53,17 +53,17 @@ public class UICreateMap : MonoBehaviour
return false;
}
if (string.IsNullOrEmpty(txtMapWidth.text))
{
UIWindow.Instance.ShowMessage("<22><><EFBFBD><EFBFBD>д<EFBFBD><D0B4>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD>");
return false;
}
//if (string.IsNullOrEmpty(txtMapWidth.text))
//{
// UIWindow.Instance.ShowMessage("<22><><EFBFBD><EFBFBD>д<EFBFBD><D0B4>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD>");
// return false;
//}
if (string.IsNullOrEmpty(txtMapHeight.text))
{
UIWindow.Instance.ShowMessage("<22><><EFBFBD><EFBFBD>д<EFBFBD><D0B4>ͼ<EFBFBD>߶<EFBFBD>");
return false;
}
//if (string.IsNullOrEmpty(txtMapHeight.text))
//{
// UIWindow.Instance.ShowMessage("<22><><EFBFBD><EFBFBD>д<EFBFBD><D0B4>ͼ<EFBFBD>߶<EFBFBD>");
// return false;
//}
if (string.IsNullOrEmpty(txtRegionWidth.text))
{
@@ -78,12 +78,12 @@ public class UICreateMap : MonoBehaviour
}
int mapId = Convert.ToInt32(txtMapID.text);
int mapWidth = Convert.ToInt32(txtMapWidth.text);
int mapHeight = Convert.ToInt32(txtMapHeight.text);
//int mapWidth = Convert.ToInt32(txtMapWidth.text);
//int mapHeight = Convert.ToInt32(txtMapHeight.text);
int regionWidth = Convert.ToInt32(txtRegionWidth.text);
int regionHeight = Convert.ToInt32(txtRegionHeight.text);
if (mapWidth <= 0 || mapHeight <= 0 || regionWidth <= 0 || regionHeight <= 0)
if (regionWidth <= 0 || regionHeight <= 0)
{
UIWindow.Instance.ShowMessage("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>0<EFBFBD><30><EFBFBD><EFBFBD>ֵ");
return false;