Implemented type flexibility for UI.

This commit is contained in:
Sheldon Lee
2020-07-12 02:39:17 +01:00
parent 305c090e31
commit bd9e09e53f
3 changed files with 35 additions and 14 deletions
+2 -2
View File
@@ -49,8 +49,8 @@ void initGame()
// stdscr is screen created by initscr()
getmaxyx(stdscr, height, width);
addLinei("x:", &cursor.x, 1, UI_INT);
addLinei("y:", &cursor.y, 1, UI_INT);
addLine("x:", &cursor.x, 1, UI_INT);
addLine("y:", &cursor.y, 1, UI_INT);
grid = initGrid(width, height);
//randomizeGrid(grid);