Mercurial > fife-parpg
comparison engine/core/controller/engine.cpp @ 157:bb9902910067
input_rework merged!
Bad features:
* Broken DND for zero-projekt.
* Design short-comings.
author | phoku@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Tue, 14 Oct 2008 07:41:48 +0000 |
parents | d2f1e81fbe2c |
children | fdb1e98fd8b6 |
comparison
equal
deleted
inserted
replaced
156:376b8afc9a18 | 157:bb9902910067 |
---|---|
205 #endif | 205 #endif |
206 if( rbackend == "SDL" ) { | 206 if( rbackend == "SDL" ) { |
207 m_gui_graphics = new SdlGuiGraphics(*m_imagepool); | 207 m_gui_graphics = new SdlGuiGraphics(*m_imagepool); |
208 } | 208 } |
209 FL_LOG(_log, "Constructing GUI manager"); | 209 FL_LOG(_log, "Constructing GUI manager"); |
210 m_guimanager = new GUIManager(m_eventmanager, *m_imagepool); | 210 m_guimanager = new GUIManager(*m_imagepool); |
211 FL_LOG(_log, "Events bind to GUI manager"); | |
211 m_eventmanager->addSdlEventListener(m_guimanager); | 212 m_eventmanager->addSdlEventListener(m_guimanager); |
212 // keep guimanager as the first key listener so that it can evaluate guichan hits | |
213 m_eventmanager->addKeyListener(m_guimanager); | |
214 // keep guimanager as the first mouse listener so that it can evaluate guichan hits | |
215 m_eventmanager->addMouseListener(m_guimanager); | |
216 FL_LOG(_log, "Events bind to GUI manager"); | |
217 | 213 |
218 FL_LOG(_log, "Creating default font"); | 214 FL_LOG(_log, "Creating default font"); |
219 m_defaultfont = m_guimanager->setDefaultFont( | 215 m_defaultfont = m_guimanager->setDefaultFont( |
220 m_settings.getDefaultFontPath(), | 216 m_settings.getDefaultFontPath(), |
221 m_settings.getDefaultFontSize(), | 217 m_settings.getDefaultFontSize(), |