1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

First part of new Quest Log, including common quest interface.

This commit is contained in:
DjWarmonger
2012-07-06 19:12:04 +00:00
parent 10a2dfefd1
commit 12511d8fee
11 changed files with 146 additions and 2 deletions

38
client/CQuestLog.cpp Normal file
View File

@@ -0,0 +1,38 @@
#include "StdInc.h"
#include "CQuestLog.h"
#include "CGameInfo.h"
#include "../lib/CGeneralTextHandler.h"
#include "../CCallback.h"
#include <SDL.h>
#include "UIFramework/SDL_Extensions.h"
#include "CBitmapHandler.h"
#include "CDefHandler.h"
#include "Graphics.h"
#include "CPlayerInterface.h"
#include "CConfigHandler.h"
#include "../lib/CGameState.h"
#include "../lib/CArtHandler.h"
#include "../lib/NetPacks.h"
#include "UIFramework/CGuiHandler.h"
#include "UIFramework/CIntObjectClasses.h"
struct QuestInfo;
CQuestLog::CQuestLog (std::vector<const QuestInfo> & Quests) :
CWindowObject(PLAYER_COLORED, "QuestLog.pcx"),
quests (Quests), slider (NULL)
{
OBJ_CONSTRUCTION_CAPTURING_ALL;
init();
}
void CQuestLog::init()
{
minimap = new CQuestMinimap (Rect (47, 33, 144, 144));
description = new CTextBox ("", Rect(244, 36, 355, 350), 1);
ok = new CAdventureMapButton("",CGI->generaltexth->zelp[445].second, boost::bind(&CQuestLog::close,this), 547, 401, "IOKAY.DEF", SDLK_RETURN);
}