Remove a few unuseful FIXMEs, replace with appropriate documentation
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7229 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -101,7 +101,7 @@ void DynamicRibbonWidget::add()
|
||||
|
||||
if (m_has_label)
|
||||
{
|
||||
// FIXME - won't work with multiline labels.
|
||||
// m_label_height contains the height of ONE text line
|
||||
m_label_height = GUIEngine::getFontHeight();
|
||||
}
|
||||
else
|
||||
@@ -112,7 +112,7 @@ void DynamicRibbonWidget::add()
|
||||
// ----- add dynamic label at bottom
|
||||
if (m_has_label)
|
||||
{
|
||||
// leave room for many lines, just in case (FIXME: remove this hack)
|
||||
// leave room for many lines, just in case
|
||||
rect<s32> label_size = rect<s32>(m_x,
|
||||
m_y + m_h - m_label_height,
|
||||
m_x + m_w,
|
||||
|
||||
@@ -77,6 +77,10 @@ namespace GUIEngine
|
||||
/** Used for ribbon grids that have a label at the bottom */
|
||||
bool m_has_label;
|
||||
irr::gui::IGUIStaticText* m_label;
|
||||
|
||||
/** Height of ONE label text line (if label is multiline only one line is measured here).
|
||||
* If there is no label, will be 0.
|
||||
*/
|
||||
int m_label_height;
|
||||
|
||||
/** Whether this ribbon contains at least one animated item */
|
||||
|
||||
Reference in New Issue
Block a user