18 #ifndef HEADER_ADDONS_SCREEN_HPP
19 #define HEADER_ADDONS_SCREEN_HPP\
21 #include "addons/addons_manager.hpp"
22 #include "guiengine/screen.hpp"
23 #include "guiengine/widgets/list_widget.hpp"
24 #include "guiengine/widgets/text_box_widget.hpp"
27 namespace irr {
namespace gui {
class STKModifiedSpriteBank; } }
29 namespace GUIEngine {
class LabelWidget;
class Widget; }
52 void loadInformations();
62 irr::gui::STKModifiedSpriteBank
91 const
int playerID) OVERRIDE;
96 virtual
void onColumnClicked(
int column_id,
bool sort_desc,
bool sort_default) OVERRIDE;
98 virtual
void init() OVERRIDE;
102 virtual
void onUpdate(
float dt) OVERRIDE;
Definition: addons_loading.hpp:35
Addons screen.
Definition: addons_screen.hpp:47
virtual void beforeAddingWidget() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: addons_screen.cpp:102
std::string m_type
Currently selected type.
Definition: addons_screen.hpp:66
void setLastSelected()
Selects the last selected item on the list (which is the item that is just being installed) again.
Definition: addons_screen.cpp:508
virtual void onTextUpdated() OVERRIDE
rebuild the list based on search text
Definition: addons_screen.hpp:105
int m_icon_loading
Icon for 'loading'.
Definition: addons_screen.hpp:60
std::vector< DateFilter > m_date_filters
List of date filters.
Definition: addons_screen.hpp:77
int m_icon_installed
Icon for installed addons, no update available.
Definition: addons_screen.hpp:56
virtual void eventCallback(GUIEngine::Widget *widget, const std::string &name, const int playerID) OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: addons_screen.cpp:439
int m_icon_not_installed
Icon for is not installed yet.
Definition: addons_screen.hpp:58
virtual void loadedFromFile() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: addons_screen.cpp:72
int m_icon_needs_update
Icon for installed addon, which can be updated.
Definition: addons_screen.hpp:54
virtual void onColumnClicked(int column_id, bool sort_desc, bool sort_default) OVERRIDE
Definition: addons_screen.cpp:421
virtual void init() OVERRIDE
Callback invoked when entering this menu (after the widgets have been added).
Definition: addons_screen.cpp:150
virtual void onUpdate(float dt) OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: addons_screen.cpp:520
virtual void tearDown() OVERRIDE
Callback invoked before leaving this menu.
Definition: addons_screen.cpp:211
int m_selected_index
The currently selected index, used to re-select this item after addons_loading is being displayed.
Definition: addons_screen.hpp:70
virtual void unloaded() OVERRIDE
Callback invoked when this screen is being unloaded.
Definition: addons_screen.cpp:203
void loadList()
Load the addons into the main list.
Definition: addons_screen.cpp:219
Definition: text_box_widget.hpp:42
Declares a class to be a singleton.
Definition: screen.hpp:59
Represents a single GUI screen.
Definition: screen.hpp:94
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33
Definition: addons_screen.hpp:32