30 lines
330 B
C++
30 lines
330 B
C++
|
|
||
|
#include "hal.h"
|
||
|
#include "col.h"
|
||
|
|
||
|
|
||
|
void Node::p(int i){
|
||
|
for(int j = 0; j < i; j++){ print("__"); }
|
||
|
if(title_)
|
||
|
print(title_);
|
||
|
else
|
||
|
print("--");
|
||
|
|
||
|
if(view.render)
|
||
|
view.render(0,0,this);
|
||
|
|
||
|
print("\n");
|
||
|
|
||
|
if(child_)
|
||
|
child_->p(i+1);
|
||
|
|
||
|
if(next_)
|
||
|
next_->p(i);
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
void draw_menu(int offset, int size, Node* val){
|
||
|
|
||
|
}
|