- the source select menu buttons should no longer be hard coded for those that are wanting to edit themes

This commit is contained in:
fledge68 2012-05-23 00:34:36 +00:00
parent bcf1fd48f1
commit f6a2783d43

View File

@ -245,17 +245,17 @@ void CMenu::_initStartupMenu(CMenu::SThemeData &theme)
{
row = m_startup.getInt("BUTTONS", fmt("button_%i_row", i), i / 2);
col = m_startup.getInt("BUTTONS", fmt("button_%i_col", i), 0);
m_startupBtnSource[i] = _addButton(theme, fmt("STARTUP/SOURCE_BTN_%i", i), theme.btnFont, L"", (30 + 300 * col), (100 + 58 * row), 280, 56, theme.btnFontColor, true);
m_startupBtnSource[i] = _addButton(theme, fmt("STARTUP/SOURCE_BTN_%i", i), theme.btnFont, L"", (30 + 300 * col), (100 + 58 * row), 280, 56, theme.btnFontColor);
row = m_startup.getInt("BUTTONS", fmt("button_%i_row", i + 10), i / 2);
col = m_startup.getInt("BUTTONS", fmt("button_%i_col", i + 10), 0);
m_startupBtnSource[i + 10] = _addButton(theme, fmt("STARTUP/SOURCE_BTN_%i", i + 10), theme.btnFont, L"", (30 + 300 * col), (100 + 58 * row), 280, 56, theme.btnFontColor, true);
m_startupBtnSource[i + 10] = _addButton(theme, fmt("STARTUP/SOURCE_BTN_%i", i + 10), theme.btnFont, L"", (30 + 300 * col), (100 + 58 * row), 280, 56, theme.btnFontColor);
i++;
row = m_startup.getInt("BUTTONS", fmt("button_%i_row", i), (i - 1) / 2);
col = m_startup.getInt("BUTTONS", fmt("button_%i_col", i), 1);
m_startupBtnSource[i] = _addButton(theme, fmt("STARTUP/SOURCE_BTN_%i", i), theme.btnFont, L"", (30 + 300 * col), (100 + 58 * row), 280, 56, theme.btnFontColor, true);
m_startupBtnSource[i] = _addButton(theme, fmt("STARTUP/SOURCE_BTN_%i", i), theme.btnFont, L"", (30 + 300 * col), (100 + 58 * row), 280, 56, theme.btnFontColor);
row = m_startup.getInt("BUTTONS", fmt("button_%i_row", i + 10), (i - 1) /2);
col = m_startup.getInt("BUTTONS", fmt("button_%i_col", i + 10), 1);
m_startupBtnSource[i + 10] = _addButton(theme, fmt("STARTUP/SOURCE_BTN_%i", i + 10), theme.btnFont, L"", (30 + 300 * col), (100 + 58 * row), 280, 56, theme.btnFontColor, true);
m_startupBtnSource[i + 10] = _addButton(theme, fmt("STARTUP/SOURCE_BTN_%i", i + 10), theme.btnFont, L"", (30 + 300 * col), (100 + 58 * row), 280, 56, theme.btnFontColor);
i++;
}