1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Cleanups + started splitting

This commit is contained in:
Michał W. Urbańczyk
2008-06-12 06:45:51 +00:00
parent dd9b506293
commit 4347996353
31 changed files with 973 additions and 1140 deletions

View File

@@ -31,7 +31,7 @@ AdventureMapButton::AdventureMapButton
helpBox=HelpBox;
colorChange = playerColoredButton;
int est = LOCPLINT->playerID;
CDefHandler * temp = CGI->spriteh->giveDef(defName);
CDefHandler * temp = CDefHandler::giveDef(defName);
temp->notFreeImgs = true;
for (int i=0;i<temp->ourImages.size();i++)
{
@@ -46,7 +46,7 @@ AdventureMapButton::AdventureMapButton
imgs.resize(imgs.size()+add->size());
for (int i=0; i<add->size();i++)
{
temp = CGI->spriteh->giveDef((*add)[i]);
temp = CDefHandler::giveDef((*add)[i]);
temp->notFreeImgs = true;
for (int j=0;j<temp->ourImages.size();j++)
{
@@ -245,7 +245,7 @@ CSlider::CSlider(int x, int y, int totalw, boost::function<void(int)> Moved, int
{
moving = false;
strongInterest = true;
imgs = CGI->spriteh->giveDefEss("IGPCRDIV.DEF");
imgs = CDefHandler::giveDefEss("IGPCRDIV.DEF");
left.pos.y = slider.pos.y = right.pos.y = pos.y = y;
left.pos.x = pos.x = x;