mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
* fixed reading .defs
* new system for handling objects and their behaviors, most functionalities don't work now but will be restored soon * more serialization code, savegame/loadgame bit closer :) CHANGES IN PROJECT FILES: * removed CLua.h and CLua.cpp (server) * removed CScriptCallback.h and CScriptCallback.cpp (server) * added IGameCallback.h header (lib)
This commit is contained in:
@ -85,17 +85,17 @@ void CGarrisonSlot::hover (bool on)
|
||||
{
|
||||
if(owner->highlighted == this)
|
||||
{
|
||||
temp = CGI->townh->tcommands[4];
|
||||
temp = CGI->generaltexth->tcommands[4];
|
||||
boost::algorithm::replace_first(temp,"%s",creature->nameSing);
|
||||
}
|
||||
else if (owner->highlighted->creature == creature)
|
||||
{
|
||||
temp = CGI->townh->tcommands[2];
|
||||
temp = CGI->generaltexth->tcommands[2];
|
||||
boost::algorithm::replace_first(temp,"%s",creature->nameSing);
|
||||
}
|
||||
else if (owner->highlighted->creature)
|
||||
{
|
||||
temp = CGI->townh->tcommands[7];
|
||||
temp = CGI->generaltexth->tcommands[7];
|
||||
boost::algorithm::replace_first(temp,"%s",owner->highlighted->creature->nameSing);
|
||||
boost::algorithm::replace_first(temp,"%s",creature->nameSing);
|
||||
}
|
||||
@ -110,11 +110,11 @@ void CGarrisonSlot::hover (bool on)
|
||||
{
|
||||
if(upg)
|
||||
{
|
||||
temp = CGI->townh->tcommands[32];
|
||||
temp = CGI->generaltexth->tcommands[32];
|
||||
}
|
||||
else
|
||||
{
|
||||
temp = CGI->townh->tcommands[12];
|
||||
temp = CGI->generaltexth->tcommands[12];
|
||||
}
|
||||
boost::algorithm::replace_first(temp,"%s",creature->nameSing);
|
||||
};
|
||||
@ -129,17 +129,17 @@ void CGarrisonSlot::hover (bool on)
|
||||
&& owner->highlighted->upg != upg //we're moving it to the other garrison
|
||||
)
|
||||
{
|
||||
temp = CGI->townh->tcommands[5]; //cannot move last stack!
|
||||
temp = CGI->generaltexth->tcommands[5]; //cannot move last stack!
|
||||
}
|
||||
else
|
||||
{
|
||||
temp = CGI->townh->tcommands[6];
|
||||
temp = CGI->generaltexth->tcommands[6];
|
||||
boost::algorithm::replace_first(temp,"%s",owner->highlighted->creature->nameSing);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
temp = CGI->townh->tcommands[11];
|
||||
temp = CGI->generaltexth->tcommands[11];
|
||||
}
|
||||
}
|
||||
LOCPLINT->statusbar->print(temp);
|
||||
|
Reference in New Issue
Block a user