mirror of
https://gitlab.com/niansa/llama_nds.git
synced 2025-03-06 20:53:28 +01:00
Improved UX just another tiny bit.
This commit is contained in:
parent
3629e6f272
commit
88e63b22db
2 changed files with 6 additions and 1 deletions
|
@ -116,7 +116,10 @@ bool NDSUI::printChar(const char character, Position2D *topleftpos, const int co
|
|||
if (row == 0) y_start = y;
|
||||
row++;
|
||||
} else if (row) {
|
||||
glBoxFilled(topleftpos->x + x, topleftpos->y + y_start, topleftpos->x + x, topleftpos->y + y - (!bold)*1, color);
|
||||
if (row >= 3 || boxesRendered < 1000 || ((x&1) || (y&1))) {
|
||||
glBoxFilled(topleftpos->x + x, topleftpos->y + y_start, topleftpos->x + x, topleftpos->y + y - (!bold)*1, color);
|
||||
boxesRendered++;
|
||||
}
|
||||
row = 0;
|
||||
}
|
||||
++y;
|
||||
|
@ -188,6 +191,7 @@ NDSUI::NDSUI() {
|
|||
|
||||
void NDSUI::run() {
|
||||
currentInstance = this;
|
||||
boxesRendered = 0;
|
||||
// Update buttons
|
||||
scanButtons();
|
||||
// Update keyboard
|
||||
|
|
|
@ -61,6 +61,7 @@ class NDSUI {
|
|||
unsigned inputLineBufHead = 0;
|
||||
std::vector<LineWrappedString> messages;
|
||||
std::unique_ptr<basiccoro::SingleEvent<std::string>> userInputHandler = nullptr;
|
||||
unsigned boxesRendered;
|
||||
unsigned scrollOff = 0;
|
||||
|
||||
static void kbCallback(int key);
|
||||
|
|
Loading…
Add table
Reference in a new issue