mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
* Reverted previously changed PreGame code
* Added the missing AB video resource file in linux code, AB campaign selection videos should now play BUT they don't => it seems that ffmpeg can't handle older BINK videos * Fixed a visual glitch which could be seen at the WOG animation in the main menu on a linux machine * Fixed the random crashes bug on mouse centering at startup on linux * Fixed a visual bug at the bonus selection screen when starting a campaign-map * Changed some positions in the bonus selection screen, no bonus pre selection, you cannot start the campaign when no bonus is selected (like in h3) * Added a border functionality to the AdventureMapButton * InfoWindow buttons and some other buttons have now the border which heroes 3 buttons have * Fixed a app crash when you start a campaign two times in one session
This commit is contained in:
@ -494,8 +494,11 @@ CInfoWindow::CInfoWindow(std::string Text, int player, const TCompsInfo &comps,
|
||||
ID = -1;
|
||||
for(int i=0;i<Buttons.size();i++)
|
||||
{
|
||||
buttons.push_back(new AdventureMapButton("","",boost::bind(&CInfoWindow::close,this),0,0,Buttons[i].first));
|
||||
buttons[i]->callback.add(Buttons[i].second); //each button will close the window apart from call-defined actions
|
||||
AdventureMapButton *button = new AdventureMapButton("","",boost::bind(&CInfoWindow::close,this),0,0,Buttons[i].first);
|
||||
button->borderColor = int3(173, 142, 66);
|
||||
button->borderEnabled = true;
|
||||
button->callback.add(Buttons[i].second); //each button will close the window apart from call-defined actions
|
||||
buttons.push_back(button);
|
||||
}
|
||||
|
||||
text = new CTextBox(Text, Rect(0, 0, 250, 100), 0, FONT_MEDIUM, CENTER, zwykly);
|
||||
|
Reference in New Issue
Block a user