1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

End of buttons refactoring:

- cleanup of slider API
- documentation fixes
This commit is contained in:
Ivan Savenko
2014-08-03 17:31:56 +03:00
parent 0882201b17
commit 7390647cd5
8 changed files with 136 additions and 76 deletions

View File

@@ -132,7 +132,7 @@ void CQuestLog::init()
ok = new CButton(Point(547, 401), "IOKAY.DEF", CGI->generaltexth->zelp[445], boost::bind(&CQuestLog::close,this), SDLK_RETURN);
if (quests.size() > QUEST_COUNT)
slider = new CSlider(203, 199, 230, boost::bind (&CQuestLog::sliderMoved, this, _1), QUEST_COUNT, quests.size(), false, 0);
slider = new CSlider(Point(203, 199), 230, boost::bind (&CQuestLog::sliderMoved, this, _1), QUEST_COUNT, quests.size(), false);
for (int i = 0; i < quests.size(); ++i)
{