Skip to content

Commit 838d2e2

Browse files
committed
Add parser constants for cell width and height
1 parent b2cc662 commit 838d2e2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/TSMapEditor/Config/Default/UI/EditorControlsPanel.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $Width=110
3232

3333
[LATPanel]
3434
$Width=400
35-
$Height=(24 * 2) + VERTICAL_SPACING
35+
$Height=(CELL_HEIGHT * 2) + EMPTY_SPACE_TOP
3636
$Y=VERTICAL_SPACING / 2
3737
$X=getRight(ddBrushSize) + HORIZONTAL_SPACING
3838
DrawBorders=no

src/TSMapEditor/UI/Parser.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public Parser(WindowManager windowManager)
2929
globalConstants.Add("IS_RA2YR", Constants.IsRA2YR ? 1 : 0);
3030
globalConstants.Add("OBJECT_HEALTH_MAX", Constants.ObjectHealthMax);
3131
globalConstants.Add("IS_FLAT_WORLD", Constants.IsFlatWorld ? 1 : 0);
32+
globalConstants.Add("CELL_WIDTH", Constants.CellSizeX);
33+
globalConstants.Add("CELL_HEIGHT", Constants.CellSizeY);
3234

3335
_instance = this;
3436
}

0 commit comments

Comments
 (0)