Print current 2DA

This commit is contained in:
Crom (Thibaut CHARLES) 2014-11-17 15:13:08 +01:00
parent 4e80eb6c0f
commit 2018c0ef83
1 changed files with 12 additions and 0 deletions

View File

@ -110,7 +110,19 @@ void main(string[] args)
window.showAll();
//prints the tree model
TreeIter it = new TreeIter();
store.getIterFirst(it);//TODO: fail if first is null
do{
for(int i=0 ; i<twoda.header.length ; i++){
write("\t",store.getValueString(it, i));
}
writeln();
}while(store.iterNext(it));
Main.run();
}