1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-10-31 00:07:39 +02:00

Splitting buttons in the exchange window. Minor fixes. Updated changelog. Version set to 0.73.

This commit is contained in:
Michał W. Urbańczyk
2009-08-01 19:25:12 +00:00
parent d17469bc7a
commit 92ef19942f
7 changed files with 33 additions and 9 deletions

View File

@@ -1,11 +1,11 @@
0.72 -> 0.73 (scheguled on 1 Sep) as for r1044
0.72 -> 0.73 (1 Aug 2009) as for r1044
GENERAL:
* infowindow popup will be completely on screen
* fixed possible crash with in game console
* fixed crash when gaining artifact after r-click on hero in tavern
* Estates / hero bonuses won't give resources on first day.
* video handling (intro, main menu animation, tavern animation, spellbook animation, battle result window)
* hero meeting window allowing exchanging armies between heroes on adventure map
* hero meeting window allowing exchanging armies and artifacts between heroes on adventure map
* 'T' hotkey opens marketplace window
* giving starting spells for heroes
* pressing enter or escape close spellbook
@@ -15,7 +15,7 @@ GENERAL:
* increased char per line limit for subtitles under components
* corrected some exp/level values
* primary skills cannot be negative
* support for 3 new artifacts: Ring of Vitality, Ring of Life, Vial of Lifeblood
* support for new artifacts: Ring of Vitality, Ring of Life, Vial of Lifeblood, Garniture of Interference, Surcoat of Counterpoise, Boots of Polarity
* fixed timed events reappearing
* saving system options
* saving hero direction
@@ -30,11 +30,11 @@ ADVENTURE INTERFACE:
BATTLES:
* spell resistance supported (secondary skill, artifacts, creature skill)
* corrected damage inflicted by spells and ballista
* added some missing projectile infos
* added native terrain bonuses in battles
* number of units in stack in battle should now fit the box
* number of units in stack in battle should better fit the box
* non-living and undead creatures have now always 0 morale
* partial handling of advmap objects changing battle background (like clover field) (their existence should change the background but nothing else)
* displaying luck effect animation
* support for battleground overlays:
- cursed ground
@@ -74,6 +74,7 @@ OBJECTS:
- Ocean bottle
- Sea Chest
- Shipwreck Survivor
- Shipyard
- Sirens
0.71 -> 0.72 (Jun 1 2009)

View File

@@ -343,6 +343,11 @@ void processCommand(const std::string &message, CClient *&client)
}
else if(cn=="resolution")
{
if(LOCPLINT)
{
tlog1 << "Resolution can be set only before starting the game.\n";
return;
}
std::map<std::pair<int,int>, config::GUIOptions >::iterator j;
int i=1, hlp=1;
tlog4 << "Available screen resolutions:\n";

View File

@@ -1072,14 +1072,14 @@ void MapSel::show()
void MapSel::processMaps(const std::vector<std::string> &pliczkiTemp, int start, int threads)
{
int read=0;
unsigned char sss[1000];
unsigned char sss[1500];
while(true)
{
if(start >= ourMaps.size())
break;
ourMaps[start] = NULL;
gzFile tempf = gzopen(pliczkiTemp[start].c_str(),"rb");
read = gzread(tempf, sss, 1000);
read = gzread(tempf, sss, 1500);
gzclose(tempf);
if(read < 50)
{
@@ -2054,6 +2054,7 @@ void CPreGame::scenHandleEv(SDL_Event& sEvent)
StartInfo CPreGame::runLoop()
{
SDL_Event sEvent;
while(SDL_PollEvent(&sEvent)); //remove old events
ret.turnTime = 0;
#ifdef _WIN32

View File

@@ -3714,6 +3714,8 @@ void CExchangeWindow::activate()
{
quit->activate();
garr->activate();
splitButton[0]->activate();
splitButton[1]->activate();
artifs[0]->activate();
artifs[1]->activate();
@@ -3753,6 +3755,8 @@ void CExchangeWindow::deactivate()
{
quit->deactivate();
garr->deactivate();
splitButton[0]->deactivate();
splitButton[1]->deactivate();
artifs[0]->deactivate();
artifs[1]->deactivate();
@@ -3807,6 +3811,8 @@ void CExchangeWindow::show(SDL_Surface * to)
}
garr->show(to);
splitButton[0]->show(to);
splitButton[1]->show(to);
}
void CExchangeWindow::questlog(int whichHero)
@@ -3977,6 +3983,9 @@ CExchangeWindow::CExchangeWindow(si32 hero1, si32 hero2) : bg(NULL)
//garrison interface
garr = new CGarrisonInt(pos.x + 69, pos.y + 131, 4, Point(418,0), bg, Point(69,131), heroInst[0],heroInst[1], true);
splitButton[0] = new AdventureMapButton(CGI->generaltexth->tcommands[3],"",boost::bind(&CGarrisonInt::splitClick,garr),pos.x+10,pos.y+132,"TSBTNS.DEF");
splitButton[1] = new AdventureMapButton(CGI->generaltexth->tcommands[3],"",boost::bind(&CGarrisonInt::splitClick,garr),pos.x+740,pos.y+132,"TSBTNS.DEF");
}
CExchangeWindow::~CExchangeWindow() //d-tor
@@ -3992,6 +4001,8 @@ CExchangeWindow::~CExchangeWindow() //d-tor
delete artifs[1];
delete garr;
delete splitButton[0];
delete splitButton[1];
delete ourBar;
for(int g=0; g<ARRAY_COUNT(secSkillAreas); g++)

View File

@@ -687,7 +687,7 @@ class CExchangeWindow : public CIntObject, public CWindowWithGarrison
CStatusBar * ourBar; //internal statusbar
SDL_Surface *bg; //background
AdventureMapButton * quit, * questlogButton[2];
AdventureMapButton * quit, * questlogButton[2], * splitButton[2];
std::vector<LRClickableAreaWTextComp *> secSkillAreas[2], primSkillAreas;

View File

@@ -19,7 +19,7 @@ typedef boost::int8_t si8; //signed int 8 bits (1 byte)
#define THC
#endif
#define NAME_VER ("VCMI 0.72d")
#define NAME_VER ("VCMI 0.73")
extern std::string NAME; //full name
extern std::string NAME_AFFIX; //client / server
#define CONSOLE_LOGGING_LEVEL 5

View File

@@ -443,11 +443,17 @@ struct DLL_EXPORT Mapa : public CMapHeader
if(vistile == towns[j]->pos) //hero stands on the town entrance
{
if(heroes[i]->inTownGarrison)
{
towns[j]->garrisonHero = heroes[i];
removeBlockVisTiles(heroes[i]);
}
else
{
towns[j]->visitingHero = heroes[i];
}
heroes[i]->visitedTown = towns[j];
break;
}
}