Commit 3acb4bfd authored by Matteo Serva's avatar Matteo Serva

chat box bigger when not in duel

parent 96ceb3cc
......@@ -679,7 +679,9 @@ void Game::DrawSpec() {
showChat= false;
hideChatTimer--;
}
for(int i = 0; i < 5; ++i) {
int maxChatLines = mainGame->dInfo.isStarted?5:8;
for(int i = 0; i < maxChatLines ; ++i) {
static unsigned int chatColor[] = {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xff8080ff, 0xffff4040, 0xffff4040,
0xffff4040,0xff40ff40,0xff4040ff,0xff40ffff,0xffff40ff,0xffffff40,0xffffffff,0xff808080,0xff404040};
if(!showChat && i >2)
......
......@@ -823,7 +823,7 @@ void Game::ShowCardInfo(int code) {
SetStaticText(stText, 270, textFont, (wchar_t*)dataManager.GetText(code));
}
void Game::AddChatMsg(wchar_t* msg, int player) {
for(int i = 4; i > 0; --i) {
for(int i = 7; i > 0; --i) {
chatMsg[i] = chatMsg[i - 1];
chatTiming[i] = chatTiming[i - 1];
chatType[i] = chatType[i - 1];
......
......@@ -107,12 +107,12 @@ public:
std::list<FadingUnit> fadingList;
std::vector<int> logParam;
std::wstring chatMsg[5];
std::wstring chatMsg[8];
int hideChatTimer;
bool hideChat;
int chatTiming[5];
int chatType[5];
int chatTiming[8];
int chatType[8];
unsigned short linePattern;
int waitFrame;
int signalFrame;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment