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/label_widget.hpp"
24#include "guiengine/widgets/text_box_widget.hpp"
25#include "states_screens/dialogs/addons_loading.hpp"
28namespace irr {
namespace gui {
class STKModifiedSpriteBank; } }
52 void loadInformations();
62 irr::gui::STKModifiedSpriteBank
95 const
int playerID) OVERRIDE;
100 virtual
void onColumnClicked(
int column_id,
bool sort_desc,
bool sort_default) OVERRIDE;
102 virtual
void init() OVERRIDE;
106 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:101
std::string m_type
Currently selected type.
Definition: addons_screen.hpp:68
void setLastSelected()
Selects the last selected item on the list (which is the item that is just being installed) again.
Definition: addons_screen.cpp:496
virtual void onTextUpdated() OVERRIDE
rebuild the list based on search text
Definition: addons_screen.hpp:109
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:81
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:425
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:70
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:407
virtual void init() OVERRIDE
Callback invoked when entering this menu (after the widgets have been added).
Definition: addons_screen.cpp:142
virtual void onUpdate(float dt) OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: addons_screen.cpp:509
virtual void tearDown() OVERRIDE
Callback invoked before leaving this menu.
Definition: addons_screen.cpp:202
int m_selected_index
The currently selected index, used to re-select this item after addons_loading is being displayed.
Definition: addons_screen.hpp:72
virtual void unloaded() OVERRIDE
Callback invoked when this screen is being unloaded.
Definition: addons_screen.cpp:194
void loadList()
Load the addons into the main list.
Definition: addons_screen.cpp:210
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:97
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33
Definition: addons_screen.hpp:32