编辑器

This commit is contained in:
tangbin
2025-11-18 10:11:56 +08:00
parent 841a08f40e
commit 5af3e15719
89 changed files with 6430 additions and 19 deletions

View File

@@ -108,7 +108,7 @@ public class UICellInfo : MonoBehaviour
int height = int.Parse(txtCellCols.text);
float cellW = int.Parse(txtCellWidth.text) / 100.0f;
float cellH = int.Parse(txtCellHeight.text) / 100.0f;
MapManager.Instance.GenerateMap(MapManager.Instance._curOpenMapId,width * cellW, height * cellH, cellW, cellH);
MapManager.Instance.GenerateMap(MapManager.Instance._curOpenMapId,width, height, cellW, cellH);
var newRendData = MapManager.Instance.map?.selector?.GetGridData();
for (int i = 0; i < MapManager.Instance.map?.selector.horizontalNumber; i++)
{

View File

@@ -43,6 +43,14 @@ public class UIEditMapConfig : MonoBehaviour
void Start()
{
AddInputNameClickEvent(txtReturnMapCellPoint);
txtReturnMapCellPoint.onEndEdit.AddListener((string value) =>
{
if (!UtilityClass.IsPosValidFormat(value))
{
UIWindow.Instance.ShowMessage("<22>س<EFBFBD><D8B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD>");
return;
}
});
//AddInputNameClickEvent(txtReliveMapCellPoint);
}

View File

@@ -18,6 +18,18 @@ public class UITeleportItem : UIBaseItem
AddInputNameClickEvent(txtPos);
//AddInputNameClickEvent(txtNextMapPos);
btnDel.onClick.AddListener(RemoveSelf);
txtNextMapID.onEndEdit.AddListener((string value) =>
{
sceneArea?.RefSAreaInfo();
});
txtNextMapPos.onEndEdit.AddListener((string value) =>
{
if (!UtilityClass.IsPosValidFormat(value))
{
UIWindow.Instance.ShowMessage("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD>");
return;
}
});
itemIdx = 0;
}