From: <geo...@us...> - 2008-04-20 10:38:29
|
Revision: 2505 http://freeorion.svn.sourceforge.net/freeorion/revision/?rev=2505&view=rev Author: geoffthemedio Date: 2008-04-20 03:38:30 -0700 (Sun, 20 Apr 2008) Log Message: ----------- Moved default location of tech tree controls to bottom of screen Modified Paths: -------------- trunk/FreeOrion/UI/TechTreeWnd.cpp Modified: trunk/FreeOrion/UI/TechTreeWnd.cpp =================================================================== --- trunk/FreeOrion/UI/TechTreeWnd.cpp 2008-04-20 09:24:14 UTC (rev 2504) +++ trunk/FreeOrion/UI/TechTreeWnd.cpp 2008-04-20 10:38:30 UTC (rev 2505) @@ -2016,7 +2016,9 @@ GG::Connect(m_tech_navigator->TechClickedSignal, &TechTreeWnd::CenterOnTech, this); m_layout_panel->AttachChild(m_tech_navigator); - m_tech_tree_controls = new TechTreeControls(1, NAVIGATOR_AND_DETAIL_HEIGHT, m_layout_panel->Width() - ClientUI::ScrollWidth()*4); + m_tech_tree_controls = new TechTreeControls(1, NAVIGATOR_AND_DETAIL_HEIGHT, m_layout_panel->Width() - ClientUI::ScrollWidth()); + m_tech_tree_controls->MoveTo(GG::Pt(1, m_layout_panel->Height() - ClientUI::ScrollWidth() - m_tech_tree_controls->Height())); + const std::vector<std::string>& tech_categories = GetTechManager().CategoryNames(); // connect category button clicks to update display for (unsigned int i = 0; i < m_tech_tree_controls->m_category_buttons.size() - 1; ++i) |