updated grapher to use new widtgets system (not working yet but close)

made a basic app using the widgets system

implemented CgTextEdit for CgLineEdit (now fully working, but there may be bugs so i'll address them tomorrow)
This commit is contained in:
FantasyPvP
2023-11-24 00:40:27 +00:00
parent 467a42a5fa
commit 140ac0ab32
13 changed files with 288 additions and 419 deletions
+6
View File
@@ -261,10 +261,16 @@ impl Renderer {
if self.application_mode { return; }; // only in terminal mode
self.term_buffer.push([ScreenChar::null(); BUFFER_WIDTH]);
self.col_pos = 0;
if self.term_buffer.len() > 100 {
self.term_buffer.remove(0);
}
}
fn internal_lastline(&mut self) { // goes back to previous line and shifts all lines down
if self.application_mode { return; };
if self.term_buffer.len() <= 25 {
self.term_buffer.insert(0, [ScreenChar::null(); BUFFER_WIDTH]);
}
self.term_buffer.pop();
self.col_pos = BUFFER_WIDTH;
}