Update Poolbox with FontWriter changes
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Menu {
|
||||
this->cur_selection = 0;
|
||||
}
|
||||
|
||||
void SimpleMenu :: update(JabyEngine::FontWriter& font_writer, State& cursor, const GPU::PositionI16& start) {
|
||||
void SimpleMenu :: update(JabyEngine::FontWriter& font_writer, Cursor& cursor, const GPU::PositionI16& start) {
|
||||
const auto& controller = Periphery::get_primary_controller_as<JabyEngine::Periphery::GenericController>();
|
||||
|
||||
if(controller.button.went_down(DigitalButton::Up) && this->cur_selection > 0) {
|
||||
@@ -62,8 +62,8 @@ namespace Menu {
|
||||
}
|
||||
|
||||
if(this->waiting) {
|
||||
auto state = JabyEngine::State::create(position);
|
||||
this->font_writer->write(state, "Press and hold ()\nto get back", GPU::Color24::Red(0xD0));
|
||||
auto cursor = JabyEngine::Cursor::create(position);
|
||||
this->font_writer->write(cursor, "Press and hold ()\nto get back", GPU::Color24::Red(0xD0));
|
||||
}
|
||||
|
||||
else if(auto_clear) {
|
||||
|
||||
Reference in New Issue
Block a user