A first try at error handling in the Downloader
[supertux.git] / src / gui / dialog.hpp
index 7366141..86c499a 100644 (file)
@@ -47,12 +47,14 @@ public:
   virtual ~Dialog();
 
   void set_text(const std::string& text);
+  void clear_buttons();
   void add_button(const std::string& text, const std::function<void ()>& callback = {},
                   bool focus = false);
 
   void event(const SDL_Event& event);
   void process_input(const Controller& controller);
   void draw(DrawingContext& context);
+  virtual void update() {}
 
 private:
   void on_button_click(int button) const;