From 076daaa3a23c273a2a922282046450e76d2fd138 Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Sun, 7 Feb 2021 13:45:03 -0500 Subject: [PATCH] Minor change to gui --- luprex/cpp/viewer.cpp | 1 + luprex/cpp/viewer.hpp | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/luprex/cpp/viewer.cpp b/luprex/cpp/viewer.cpp index 100d0e0a..ad51b51b 100644 --- a/luprex/cpp/viewer.cpp +++ b/luprex/cpp/viewer.cpp @@ -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"); diff --git a/luprex/cpp/viewer.hpp b/luprex/cpp/viewer.hpp index 5696d7d4..69d6d9dd 100644 --- a/luprex/cpp/viewer.hpp +++ b/luprex/cpp/viewer.hpp @@ -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); };