diff --git a/data/gui/addons_view_dialog.stkgui b/data/gui/addons_view_dialog.stkgui
index cd84bd3f3..3ddf92da9 100644
--- a/data/gui/addons_view_dialog.stkgui
+++ b/data/gui/addons_view_dialog.stkgui
@@ -6,17 +6,17 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/src/states_screens/dialogs/addons_loading.cpp b/src/states_screens/dialogs/addons_loading.cpp
index fb4847914..0e25806dd 100644
--- a/src/states_screens/dialogs/addons_loading.cpp
+++ b/src/states_screens/dialogs/addons_loading.cpp
@@ -45,8 +45,9 @@ AddonsLoading::AddonsLoading(const float w, const float h,
m_icon_shown = false;
/*Init the icon here to be able to load a single image*/
- m_icon = getWidget("icon");
- m_progress = getWidget("progress");
+ m_icon = getWidget ("icon" );
+ m_progress = getWidget("progress");
+ m_install_button = getWidget ("install" );
if(m_progress)
m_progress->setVisible(false);
@@ -90,21 +91,11 @@ GUIEngine::EventPropagation
{
m_progress->setValue(0);
m_progress->setVisible(true);
-
- /*This widget will show some text as "downloading..." or "installing".*/
- m_state = new LabelWidget();
- m_state->m_properties[PROP_TEXT_ALIGN] = "center";
- /* Center the widget*/
- m_state->m_x = 10;
- m_state->m_y = getHeight()-125;
- m_state->m_w = getWidth() - 20;
- m_state->m_h = 35;
- m_state->setParent(m_irrlicht_window);
-
- m_widgets.push_back(m_state);
- m_state->add();
-
- getWidget("install")->setDeactivated();
+ //m_progress->m_h = m_install_button->m_h;
+ //m_progress->m_x = m_install_button->m_x;
+ //m_progress->m_y = m_install_button->m_y;
+ //m_progress->m_w = m_install_button->m_w;
+ m_install_button->setVisible(false);
startDownload();
}
else // uninstall
diff --git a/src/states_screens/dialogs/addons_loading.hpp b/src/states_screens/dialogs/addons_loading.hpp
index ab4c409e7..045a05f9d 100644
--- a/src/states_screens/dialogs/addons_loading.hpp
+++ b/src/states_screens/dialogs/addons_loading.hpp
@@ -33,14 +33,12 @@ class AddonsLoading : public GUIEngine::ModalDialog
{
//virtual void escapePressed() {};
private:
- GUIEngine::LabelWidget *m_author;
GUIEngine::LabelWidget *m_state;
GUIEngine::ProgressBarWidget *m_progress;
GUIEngine::ButtonWidget *m_back_button;
GUIEngine::ButtonWidget *m_install_button;
+
GUIEngine::IconButtonWidget *m_icon;
- GUIEngine::IconButtonWidget *m_next;
- GUIEngine::IconButtonWidget *m_previous;
/** The addon to load. */
Addon m_addon;