Various fixes (by Buggler):

- Fixed IMP Background hardcoded text: Prev, Next & None.
- Fixed unable to proceed to IMP Attribute screen when Merc Background feature is off
- Changed 'Ore Type' text to 'Resource'

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6599 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2013-11-14 18:35:16 +00:00
parent 6ec2a96173
commit cbbcbf48c0
11 changed files with 31 additions and 22 deletions
+3 -3
View File
@@ -227,7 +227,7 @@ void AddIMPBackgroundButtons()
// next button // next button
giIMPBackgroundButtonImage[0]= LoadButtonImage( "LAPTOP\\voicearrows.sti" ,-1,1,-1,3,-1 ); giIMPBackgroundButtonImage[0]= LoadButtonImage( "LAPTOP\\voicearrows.sti" ,-1,1,-1,3,-1 );
giIMPBackgroundButton[0] = CreateIconAndTextButton( giIMPBackgroundButtonImage[0], pImpButtonText[13], FONT12ARIAL, giIMPBackgroundButton[0] = CreateIconAndTextButton( giIMPBackgroundButtonImage[0], pImpButtonText[ 13 ], FONT12ARIAL,
FONT_WHITE, DEFAULT_SHADOW, FONT_WHITE, DEFAULT_SHADOW,
FONT_WHITE, DEFAULT_SHADOW, FONT_WHITE, DEFAULT_SHADOW,
TEXT_CJUSTIFIED, TEXT_CJUSTIFIED,
@@ -236,7 +236,7 @@ void AddIMPBackgroundButtons()
// previous button // previous button
giIMPBackgroundButtonImage[ 1 ]= LoadButtonImage( "LAPTOP\\voicearrows.sti" ,-1,0,-1,2,-1 ); giIMPBackgroundButtonImage[ 1 ]= LoadButtonImage( "LAPTOP\\voicearrows.sti" ,-1,0,-1,2,-1 );
giIMPBackgroundButton[ 1 ] = CreateIconAndTextButton( giIMPBackgroundButtonImage[ 1 ], pImpButtonText[12], FONT12ARIAL, giIMPBackgroundButton[ 1 ] = CreateIconAndTextButton( giIMPBackgroundButtonImage[ 1 ], pImpButtonText[ 12 ], FONT12ARIAL,
FONT_WHITE, DEFAULT_SHADOW, FONT_WHITE, DEFAULT_SHADOW,
FONT_WHITE, DEFAULT_SHADOW, FONT_WHITE, DEFAULT_SHADOW,
TEXT_CJUSTIFIED, TEXT_CJUSTIFIED,
@@ -395,7 +395,7 @@ void IMPBackgroundDisplaySkills()
//draw the text to the screenx //draw the text to the screenx
if ( uiCnt == IMP_BACKGROUND_NONE ) if ( uiCnt == IMP_BACKGROUND_NONE )
DrawTextToScreen( L"None", usPosX, usPosY, 0, IMP_BACKGROUND__FONT, IMP_BACKGROUND__COLOR, FONT_MCOLOR_BLACK, FALSE, LEFT_JUSTIFIED ); DrawTextToScreen( pImpButtonText[ 26 ], usPosX, usPosY, 0, IMP_BACKGROUND__FONT, IMP_BACKGROUND__COLOR, FONT_MCOLOR_BLACK, FALSE, LEFT_JUSTIFIED );
else else
DrawTextToScreen( zBackground[ background ].szShortName, usPosX, usPosY, 0, IMP_BACKGROUND__FONT, IMP_BACKGROUND__COLOR, FONT_MCOLOR_BLACK, FALSE, LEFT_JUSTIFIED ); DrawTextToScreen( zBackground[ background ].szShortName, usPosX, usPosY, 0, IMP_BACKGROUND__FONT, IMP_BACKGROUND__COLOR, FONT_MCOLOR_BLACK, FALSE, LEFT_JUSTIFIED );
+10 -10
View File
@@ -494,26 +494,26 @@ void BtnIMPMinorTraitFinishCallback(GUI_BUTTON *btn,INT32 reason)
{ {
btn->uiFlags|=(BUTTON_CLICKED_ON); btn->uiFlags|=(BUTTON_CLICKED_ON);
//if we are just reviewing the page // Flugente: setting determines whether we see the background page
if( iCurrentProfileMode == IMP__FINISH ) if ( gGameOptions.fBackGround )
{
//go back tot he done screen
iCurrentImpPage = IMP_FINISH;
}
// Flugente: setting determines wether we see the background page
else if ( gGameOptions.fBackGround )
{ {
iCurrentImpPage = IMP_BACKGROUND; iCurrentImpPage = IMP_BACKGROUND;
fButtonPendingFlag = TRUE; fButtonPendingFlag = TRUE;
} }
//if we are just reviewing the page
else if( iCurrentProfileMode == IMP__FINISH )
{
//go back to the done screen
iCurrentImpPage = IMP_FINISH;
}
else else
{ {
iCurrentImpPage = IMP_MAIN_PAGE; iCurrentImpPage = IMP_MAIN_PAGE;
fButtonPendingFlag = TRUE; fButtonPendingFlag = TRUE;
/*i´f( CameBackToMinorTraitPageButNotFinished() ) if( CameBackToMinorTraitPageButNotFinished() )
{ {
} }
@@ -521,7 +521,7 @@ void BtnIMPMinorTraitFinishCallback(GUI_BUTTON *btn,INT32 reason)
{ {
//We are finished on this page //We are finished on this page
iCurrentProfileMode = IMP__ATTRIBUTES; iCurrentProfileMode = IMP__ATTRIBUTES;
}*/ }
} }
} }
} }
+2 -1
View File
@@ -3370,7 +3370,7 @@ STR16 pwMineStrings[] =
L"生产", L"生产",
L"状态", L"状态",
L"生产率", L"生产率",
L"矿石类型", // 10 L"Resource", // 10 L"矿石类型", // TODO.Translate
L"占领度", L"占领度",
L"忠诚度", L"忠诚度",
// L"在岗矿工", // L"在岗矿工",
@@ -3945,6 +3945,7 @@ STR16 pImpButtonText[] =
L"分析...", // analyzing your profile results L"分析...", // analyzing your profile results
L"完成", L"完成",
L"性格", // Change from "Voice" - SANDRO L"性格", // Change from "Voice" - SANDRO
L"", //"None",
}; };
STR16 pExtraIMPStrings[] = STR16 pExtraIMPStrings[] =
+2 -1
View File
@@ -3367,7 +3367,7 @@ STR16 pwMineStrings[] =
L"Produceert", L"Produceert",
L"Status", L"Status",
L"Prod. Tempo", L"Prod. Tempo",
L"Ertstype", // 10 L"Resource", // 10 L"Ertstype", // TODO.Translate
L"Gezag Dorp", L"Gezag Dorp",
L"Loyaliteit Dorp", L"Loyaliteit Dorp",
// L"Mijnwerkers", // L"Mijnwerkers",
@@ -3942,6 +3942,7 @@ STR16 pImpButtonText[] =
L"Analyseren", // analyzing your profile results L"Analyseren", // analyzing your profile results
L"OK", L"OK",
L"Character", // Change from "Voice" L"Character", // Change from "Voice"
L"None",
}; };
STR16 pExtraIMPStrings[] = STR16 pExtraIMPStrings[] =
+2 -1
View File
@@ -3370,7 +3370,7 @@ STR16 pwMineStrings[] =
L"Producing", L"Producing",
L"Status", L"Status",
L"Production Rate", L"Production Rate",
L"Ore Type", // 10 L"Resource", // 10
L"Town Control", L"Town Control",
L"Town Loyalty", L"Town Loyalty",
// L"Working Miners", // L"Working Miners",
@@ -3945,6 +3945,7 @@ STR16 pImpButtonText[] =
L"Analyzing", // analyzing your profile results L"Analyzing", // analyzing your profile results
L"OK", L"OK",
L"Character", // Change from "Voice" L"Character", // Change from "Voice"
L"None",
}; };
STR16 pExtraIMPStrings[] = STR16 pExtraIMPStrings[] =
+2 -1
View File
@@ -3374,7 +3374,7 @@ STR16 pwMineStrings[] =
L"Production", L"Production",
L"État", L"État",
L"Productivité", L"Productivité",
L"Type de minerai", // 10 L"Resource", // 10 L"Type de minerai", // TODO.Translate
L"Contrôle de la ville", L"Contrôle de la ville",
L"Loyauté de la ville", L"Loyauté de la ville",
// L"Mineurs au travail", // L"Mineurs au travail",
@@ -3948,6 +3948,7 @@ STR16 pImpButtonText[] =
L"Analyse", // analyzing your profile results L"Analyse", // analyzing your profile results
L"OK", L"OK",
L"Caractère", // Change from "Voice" L"Caractère", // Change from "Voice"
L"Aucune",
}; };
STR16 pExtraIMPStrings[] = STR16 pExtraIMPStrings[] =
+2 -1
View File
@@ -3361,7 +3361,7 @@ STR16 pwMineStrings[] =
L"Produziert", L"Produziert",
L"Status", L"Status",
L"Produktionsrate", L"Produktionsrate",
L"Erzart", // 10 L"Resource", // 10 L"Erzart", // TODO.Translate
L"Kontrolle über Stadt", L"Kontrolle über Stadt",
L"Loyalität der Stadt", L"Loyalität der Stadt",
// L"Minenarbeiter", // L"Minenarbeiter",
@@ -3896,6 +3896,7 @@ STR16 pImpButtonText[] =
L"Analyse wird durchgeführt", // analyzing your profile results L"Analyse wird durchgeführt", // analyzing your profile results
L"OK", L"OK",
L"Charakter", // Change from "Voice" L"Charakter", // Change from "Voice"
L"Keine",
}; };
STR16 pExtraIMPStrings[] = STR16 pExtraIMPStrings[] =
+2 -1
View File
@@ -3361,7 +3361,7 @@ STR16 pwMineStrings[] =
L"Produci", L"Produci",
L"Stato", L"Stato",
L"Ammontare produzione", L"Ammontare produzione",
L"Tipo di minerale", // 10 L"Resource", // 10 L"Tipo di minerale", // TODO.Translate
L"Controllo della città", L"Controllo della città",
L"Lealtà della città", L"Lealtà della città",
// L"Minatori", // L"Minatori",
@@ -3935,6 +3935,7 @@ STR16 pImpButtonText[] =
L"Analisi", // analyzing your profile results L"Analisi", // analyzing your profile results
L"OK", L"OK",
L"Character", // Change from "Voice" L"Character", // Change from "Voice"
L"Nessuna",
}; };
STR16 pExtraIMPStrings[] = STR16 pExtraIMPStrings[] =
+2 -1
View File
@@ -3377,7 +3377,7 @@ STR16 pwMineStrings[] =
L"Produkuje", L"Produkuje",
L"Stan", L"Stan",
L"Tempo produkcji", L"Tempo produkcji",
L"Typ złoża", // 10 L"Resource", // 10 L"Typ złoża", // TODO.Translate
L"Kontrola miasta", L"Kontrola miasta",
L"Lojalność miasta", L"Lojalność miasta",
// L"Górnicy", // L"Górnicy",
@@ -3954,6 +3954,7 @@ STR16 pImpButtonText[] =
L"Analizuję...", // analyzing your profile results L"Analizuję...", // analyzing your profile results
L"OK", L"OK",
L"Postać", // Change from "Voice" L"Postać", // Change from "Voice"
L"Brak",
}; };
STR16 pExtraIMPStrings[] = STR16 pExtraIMPStrings[] =
+2 -1
View File
@@ -3368,7 +3368,7 @@ STR16 pwMineStrings[] =
L"Идет добыча", L"Идет добыча",
L"Статус", L"Статус",
L"Уровень добычи", L"Уровень добычи",
L"Тип руды", // 10 L"Resource", // 10 L"Тип руды", // TODO.Translate
L"Принадлежность", L"Принадлежность",
L"Лояльность", L"Лояльность",
// L"Работ.шахтеры", // L"Работ.шахтеры",
@@ -3943,6 +3943,7 @@ STR16 pImpButtonText[] =
L"Анализ данных", // analyzing your profile results L"Анализ данных", // analyzing your profile results
L"Готово", L"Готово",
L"Личные качества", // Character L"Личные качества", // Character
L"Нет",
}; };
STR16 pExtraIMPStrings[] = STR16 pExtraIMPStrings[] =
+2 -1
View File
@@ -3372,7 +3372,7 @@ STR16 pwMineStrings[] =
L"Producing", L"Producing",
L"Status", L"Status",
L"Production Rate", L"Production Rate",
L"Ore Type", // 10 L"Resource", // 10
L"Town Control", L"Town Control",
L"Town Loyalty", L"Town Loyalty",
// L"Working Miners", // L"Working Miners",
@@ -3949,6 +3949,7 @@ STR16 pImpButtonText[] =
L"Analyzing", // analyzing your profile results L"Analyzing", // analyzing your profile results
L"OK", L"OK",
L"Character", // Change from "Voice" L"Character", // Change from "Voice"
L"None",
}; };
STR16 pExtraIMPStrings[] = STR16 pExtraIMPStrings[] =