Update Poolbox with FontWriter changes

This commit is contained in:
Jaby
2024-01-05 12:33:31 -06:00
parent 5d370d40e1
commit 50e13df1c7
5 changed files with 10 additions and 10 deletions

View File

@@ -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) {