private void RenderTaskList() { var offset = new Point(0, 0); TaskList.Render(offset); offset = new Point(49, 0); TaskList.RenderScrollBar(offset, 21); offset = new Point(0, 21); TCODConsole.root.setForegroundColor(TCODColor.white); TCODConsole.root.print(offset.X, offset.Y, $"Tasks {(char)TCODSpecialCharacter.ArrowSouth}/{(char)TCODSpecialCharacter.ArrowNorth}"); }
private void RenderTaskListItem(Point point, Task task, bool isSelected) { var taskName = task.TaskType.Title; if(!string.IsNullOrWhiteSpace(task.SelectedOption)) { taskName += $" => {task.SelectedOption}"; } if(isSelected) { TCODConsole.root.setForegroundColor(TCODColor.white); TCODConsole.root.putChar(point.X, point.Y, (char)TCODSpecialCharacter.ArrowEast); TCODConsole.root.putChar(point.X + taskName.Length + 1, point.Y, (char)TCODSpecialCharacter.ArrowWest); } else { TCODConsole.root.setForegroundColor(TCODColor.grey); } TCODConsole.root.print(point.X + 1, point.Y, taskName); }
private void RenderCharacterListItem(Point point, Character character, bool isSelected) { var characterName = character.Name.ToString("{f}. {L}"); if(isSelected) { TCODConsole.root.setForegroundColor(TCODColor.white); TCODConsole.root.putChar(point.X, point.Y, (char)TCODSpecialCharacter.ArrowEast); TCODConsole.root.putChar(point.X + characterName.Length + 1, point.Y, (char)TCODSpecialCharacter.ArrowWest); } else { TCODConsole.root.setForegroundColor(TCODColor.grey); } TCODConsole.root.print(point.X + 1, point.Y, characterName); }