格子划分正常
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user