diff options
author | erihel <erihel@gmail.com> | 2013-06-24 22:09:39 +0200 |
---|---|---|
committer | erihel <erihel@gmail.com> | 2013-06-24 22:09:39 +0200 |
commit | 41fa8458c2e28f05a610bfc3119f86b8dc85542a (patch) | |
tree | 4a653c3f32cb0d524af2669d666fd8385b9a408f /src/object/auto/autoenergy.cpp | |
parent | 5c15855009aaab519718b80808d9e10eeda6b425 (diff) | |
download | colobot-41fa8458c2e28f05a610bfc3119f86b8dc85542a.tar.gz colobot-41fa8458c2e28f05a610bfc3119f86b8dc85542a.tar.bz2 colobot-41fa8458c2e28f05a610bfc3119f86b8dc85542a.zip |
Some Ui refactoring
Diffstat (limited to 'src/object/auto/autoenergy.cpp')
-rw-r--r-- | src/object/auto/autoenergy.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/object/auto/autoenergy.cpp b/src/object/auto/autoenergy.cpp index 6a8672b..a38caf2 100644 --- a/src/object/auto/autoenergy.cpp +++ b/src/object/auto/autoenergy.cpp @@ -29,7 +29,6 @@ #include "ui/interface.h" #include "ui/gauge.h" #include "ui/window.h" -#include "ui/displaytext.h" #include <stdio.h> #include <string.h> @@ -325,7 +324,7 @@ bool CAutoEnergy::EventProcess(const Event &event) fret->SetPosition(0, Math::Vector(0.0f, 3.0f, 0.0f)); m_object->SetPower(fret); - m_displayText->DisplayError(INFO_ENERGY, m_object); + m_main->DisplayError(INFO_ENERGY, m_object); } SetBusy(false); @@ -468,7 +467,7 @@ void CAutoEnergy::CreatePower() if ( !power->CreateResource(pos, angle, OBJECT_POWER) ) { delete power; - m_displayText->DisplayError(ERR_TOOMANY, m_object); + m_main->DisplayError(ERR_TOOMANY, m_object); return; } power->SetLock(true); // battery not yet usable |