Minor change to gui

This commit is contained in:
2021-02-07 13:45:03 -05:00
parent 1ff94e2591
commit 076daaa3a2
2 changed files with 2 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ int64_t Viewer::get_player_id() {
}
void Viewer::update_gui(int64_t id, Gui *gui) {
gui->clear();
gui->add_menu_item("north", "north");
gui->add_menu_item("south", "south");
gui->add_menu_item("east", "east");

View File

@@ -34,9 +34,7 @@ public:
// Update the GUI for the specified sprite.
//
// The gui passed in can be either a newly-created empty GUI,
// which will be populated, or a GUI object retained from
// the previous frame, which will be updated.
// The gui passed in will be overwritten.
//
void update_gui(int64_t id, Gui *g);
};