mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
****************************************************************************
** Merged Source Code from Development trunk, for the Spring 2011 Release ** **************************************************************************** o Development Trunk (Revision: 4444): https://81.169.133.124/source/ja2/branches/Wanne/JA2%201.13%20MP o This trunk (the official 1.13 source trunk) will only be used for fixing bugs. No new features will be added here. New Features are only included in the Development trunk o !!! After we have fixed a bug here in this trunk, we should MANUALLY merge the bugfix in the development trunk !!! git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4446 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -104,6 +104,7 @@ enum
|
||||
OPTIONS_LEAVE_EDITOR,
|
||||
OPTIONS_RADAR_MAP,//dnl ch9 071009
|
||||
OPTIONS_VANILLA_MODE,//dnl ch33 160909
|
||||
OPTIONS_RESIZE_MAP_ON_LOADING,
|
||||
OPTIONS_QUIT_GAME, LAST_OPTIONS_BUTTON = OPTIONS_QUIT_GAME,
|
||||
//Mercs menu
|
||||
MERCS_PLAYER, FIRST_MERCS_BUTTON = MERCS_PLAYER,
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include "EditorBuildings.h"
|
||||
#endif
|
||||
|
||||
#include "Text.h"
|
||||
|
||||
BOOLEAN fValidCursor = FALSE;
|
||||
BOOLEAN fAnchored = FALSE;
|
||||
BOOLEAN gfBrushEnabled = TRUE;
|
||||
@@ -36,7 +38,7 @@ extern INT16 sGridX; // symbol already declared globally in editscreen.cpp (jona
|
||||
extern INT16 sGridY; // symbol already declared globally in editscreen.cpp (jonathanl)
|
||||
INT32 sBadMarker = -1;
|
||||
|
||||
STR16 wszSelType[6]= { L"Small", L"Medium", L"Large", L"XLarge", L"Width: xx", L"Area" };
|
||||
//STR16 wszSelType[6]= { L"Small", L"Medium", L"Large", L"XLarge", L"Width: xx", L"Area" };
|
||||
|
||||
BOOLEAN gfAllowRightButtonSelections = FALSE;
|
||||
BOOLEAN gfCurrentSelectionWithRightButton = FALSE;
|
||||
|
||||
@@ -18,6 +18,7 @@ void BtnCancelCallback(GUI_BUTTON *btn,INT32 reason);
|
||||
void BtnQuitCallback( GUI_BUTTON *btn, INT32 reason );
|
||||
void BtnRadarMapCallback( GUI_BUTTON *btn, INT32 reason );//dnl ch9 071009
|
||||
void VanillaModeCallback(GUI_BUTTON *btn, INT32 reason);//dnl ch33 160909
|
||||
void ResizeMapOnLoadingCallback(GUI_BUTTON *btn, INT32 reason);
|
||||
void BtnNewMapCallback(GUI_BUTTON *btn,INT32 reason);
|
||||
void BtnNewBasementCallback( GUI_BUTTON *btn, INT32 reason );
|
||||
void BtnNewCavesCallback( GUI_BUTTON *btn, INT32 reason );
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#endif
|
||||
|
||||
#include "LoadScreen.h"
|
||||
#include "Text Input.h"
|
||||
|
||||
extern SOLDIERINITNODE *gpSelected;
|
||||
extern SCHEDULENODE gCurrSchedule;
|
||||
@@ -694,6 +695,24 @@ void VanillaModeCallback(GUI_BUTTON *btn, INT32 reason)//dnl ch33 160909
|
||||
(btn->uiFlags & BUTTON_CLICKED_ON) ? (gfVanillaMode = TRUE) : (gfVanillaMode = FALSE);
|
||||
}
|
||||
|
||||
void ResizeMapOnLoadingCallback(GUI_BUTTON *btn, INT32 reason)
|
||||
{
|
||||
if(reason & MSYS_CALLBACK_REASON_LBUTTON_UP)
|
||||
{
|
||||
if (btn->uiFlags & BUTTON_CLICKED_ON)
|
||||
{
|
||||
// TODO.MAP: Enable/Disable the Rows textbox
|
||||
gfResizeMapOnLoading = TRUE;
|
||||
//EnableTextField(1);
|
||||
}
|
||||
else
|
||||
{
|
||||
gfResizeMapOnLoading = FALSE;
|
||||
//DisableTextField(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//ITEMS
|
||||
void MouseMovedInItemsRegion( MOUSE_REGION *reg, INT32 reason )
|
||||
{
|
||||
|
||||
+153
-147
@@ -21,6 +21,7 @@
|
||||
#include "Soldier Create.h"
|
||||
#include "overhead types.h"
|
||||
#include "local.h"
|
||||
#include "Text.h"
|
||||
#endif
|
||||
|
||||
//Category tabs of the editor buttons
|
||||
@@ -42,71 +43,71 @@ void InitEditorItemStatsButtons()
|
||||
iEditorButton[ ITEMSTATS_HIDDEN_BTN ] =
|
||||
CreateCheckBoxButton( iScreenWidthOffset + 485, 2 * iScreenHeightOffset + 365, "EDITOR//SmCheckbox.sti", MSYS_PRIORITY_NORMAL, ItemStatsToggleHideCallback );
|
||||
iEditorButton[ ITEMSTATS_DELETE_BTN ] =
|
||||
CreateTextButton( L"Delete", FONT10ARIAL, FONT_RED, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorItemStatsButtonsText[0], FONT10ARIAL, FONT_RED, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 600, 2 * iScreenHeightOffset + 441, 36, 16, BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL+1, DEFAULT_MOVE_CALLBACK, ItemStatsDeleteCallback );
|
||||
}
|
||||
|
||||
void InitEditorMercsToolbar()
|
||||
{
|
||||
CHAR16 TempString[30];
|
||||
STR16 FaceDirs[8] = {L"north",L"northeast",L"east",L"southeast",L"south",L"southwest",L"west",L"northwest"};
|
||||
// STR16 FaceDirs[8] = {L"north",L"northeast",L"east",L"southeast",L"south",L"southwest",L"west",L"northwest"};
|
||||
INT32 x;
|
||||
|
||||
iEditorButton[ MERCS_PLAYERTOGGLE ] =
|
||||
CreateCheckBoxButton( iScreenWidthOffset + 4, 2 * iScreenHeightOffset + 362, "EDITOR//SmCheckbox.sti", MSYS_PRIORITY_NORMAL, MercsTogglePlayers );
|
||||
if( gfShowPlayers )
|
||||
ClickEditorButton( MERCS_PLAYERTOGGLE );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_PLAYERTOGGLE ], L"Toggle viewing of players");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_PLAYERTOGGLE ], iEditorMercsToolbarText[0]);
|
||||
DisableButton( iEditorButton[ MERCS_PLAYERTOGGLE ] );
|
||||
iEditorButton[ MERCS_ENEMYTOGGLE ] =
|
||||
CreateCheckBoxButton( iScreenWidthOffset + 4, 2 * iScreenHeightOffset + 382, "EDITOR//SmCheckbox.sti", MSYS_PRIORITY_NORMAL, MercsToggleEnemies );
|
||||
if( gfShowEnemies )
|
||||
ClickEditorButton( MERCS_ENEMYTOGGLE );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_ENEMYTOGGLE ], L"Toggle viewing of enemies");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_ENEMYTOGGLE ], iEditorMercsToolbarText[1]);
|
||||
iEditorButton[ MERCS_CREATURETOGGLE ] =
|
||||
CreateCheckBoxButton( iScreenWidthOffset + 4, 2 * iScreenHeightOffset + 402, "EDITOR//SmCheckbox.sti", MSYS_PRIORITY_NORMAL, MercsToggleCreatures );
|
||||
if( gfShowCreatures )
|
||||
ClickEditorButton( MERCS_CREATURETOGGLE );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_CREATURETOGGLE ], L"Toggle viewing of creatures");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_CREATURETOGGLE ], iEditorMercsToolbarText[2]);
|
||||
iEditorButton[ MERCS_REBELTOGGLE ] =
|
||||
CreateCheckBoxButton( iScreenWidthOffset + 4, 2 * iScreenHeightOffset + 422, "EDITOR//SmCheckbox.sti", MSYS_PRIORITY_NORMAL, MercsToggleRebels );
|
||||
if( gfShowRebels )
|
||||
ClickEditorButton( MERCS_REBELTOGGLE );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_REBELTOGGLE ], L"Toggle viewing of rebels");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_REBELTOGGLE ], iEditorMercsToolbarText[3]);
|
||||
iEditorButton[ MERCS_CIVILIANTOGGLE ] =
|
||||
CreateCheckBoxButton( iScreenWidthOffset + 4, 2 * iScreenHeightOffset + 442, "EDITOR//SmCheckbox.sti", MSYS_PRIORITY_NORMAL, MercsToggleCivilians );
|
||||
if( gfShowCivilians )
|
||||
ClickEditorButton( MERCS_CIVILIANTOGGLE );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_CIVILIANTOGGLE ], L"Toggle viewing of civilians");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_CIVILIANTOGGLE ], iEditorMercsToolbarText[4]);
|
||||
iEditorButton[MERCS_PLAYER] =
|
||||
CreateTextButton( L"Player",(UINT16)BLOCKFONT, 165, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[5],(UINT16)BLOCKFONT, 165, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 20, 2 * iScreenHeightOffset + 362, 78, 19, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsPlayerTeamCallback );
|
||||
SpecifyButtonDownTextColors( iEditorButton[MERCS_PLAYER], FONT_YELLOW, FONT_BLACK );
|
||||
DisableButton( iEditorButton[MERCS_PLAYER] );
|
||||
iEditorButton[MERCS_ENEMY] =
|
||||
CreateTextButton( L"Enemy",(UINT16)BLOCKFONT, 165, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[6],(UINT16)BLOCKFONT, 165, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 20, 2 * iScreenHeightOffset + 382, 78, 19, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsEnemyTeamCallback );
|
||||
SpecifyButtonDownTextColors( iEditorButton[MERCS_ENEMY], FONT_YELLOW, FONT_BLACK );
|
||||
iEditorButton[MERCS_CREATURE] =
|
||||
CreateTextButton( L"Creature",(UINT16)BLOCKFONT, 165, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[7],(UINT16)BLOCKFONT, 165, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 20, 2 * iScreenHeightOffset + 402, 78, 19, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsCreatureTeamCallback );
|
||||
SpecifyButtonDownTextColors( iEditorButton[MERCS_CREATURE], FONT_YELLOW, FONT_BLACK );
|
||||
iEditorButton[MERCS_REBEL] =
|
||||
CreateTextButton( L"Rebels",(UINT16)BLOCKFONT, 165, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[8],(UINT16)BLOCKFONT, 165, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 20, 2 * iScreenHeightOffset + 422, 78, 19, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsRebelTeamCallback );
|
||||
SpecifyButtonDownTextColors( iEditorButton[MERCS_REBEL], FONT_YELLOW, FONT_BLACK );
|
||||
iEditorButton[MERCS_CIVILIAN] =
|
||||
CreateTextButton( L"Civilian",(UINT16)BLOCKFONT, 165, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[9],(UINT16)BLOCKFONT, 165, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 20, 2 * iScreenHeightOffset + 442, 78, 19, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsCivilianTeamCallback );
|
||||
SpecifyButtonDownTextColors( iEditorButton[MERCS_CIVILIAN], FONT_YELLOW, FONT_BLACK );
|
||||
|
||||
iEditorButton[ MERCS_1 ] =
|
||||
CreateTextButton( L"DETAILED PLACEMENT", SMALLCOMPFONT, FONT_ORANGE, 60, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[10], SMALLCOMPFONT, FONT_ORANGE, 60, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 100, 2 * iScreenHeightOffset + 362, 68, 20, BUTTON_TOGGLE,
|
||||
MSYS_PRIORITY_NORMAL, BUTTON_NO_CALLBACK, BUTTON_NO_CALLBACK );
|
||||
DisableButton( iEditorButton[ MERCS_1 ] );
|
||||
@@ -118,81 +119,81 @@ void InitEditorMercsToolbar()
|
||||
|
||||
iEditorButton[ MERCS_GENERAL ] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 100, 2 * iScreenHeightOffset + 382, "EDITOR//MercGeneral.sti", MercsGeneralModeCallback );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_GENERAL ], L"General information mode");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_GENERAL ], iEditorMercsToolbarText[11]);
|
||||
iEditorButton[ MERCS_APPEARANCE ] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 134, 2 * iScreenHeightOffset + 382, "EDITOR//MercAppearance.sti", MercsAppearanceModeCallback );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_APPEARANCE ], L"Physical appearance mode");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_APPEARANCE ], iEditorMercsToolbarText[12]);
|
||||
iEditorButton[ MERCS_ATTRIBUTES ] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 100, 2 * iScreenHeightOffset + 408, "EDITOR//MercAttributes.sti", MercsAttributesModeCallback );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_ATTRIBUTES ], L"Attributes mode");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_ATTRIBUTES ], iEditorMercsToolbarText[13]);
|
||||
iEditorButton[ MERCS_INVENTORY ] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 134, 2 * iScreenHeightOffset + 408, "EDITOR//MercInventory.sti", MercsInventoryModeCallback );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_INVENTORY ], L"Inventory mode");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_INVENTORY ], iEditorMercsToolbarText[14]);
|
||||
iEditorButton[ MERCS_PROFILE ] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 100, 2 * iScreenHeightOffset + 434, "EDITOR//MercProfile.sti", MercsProfileModeCallback );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_PROFILE ], L"Profile ID mode");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_PROFILE ], iEditorMercsToolbarText[15]);
|
||||
iEditorButton[ MERCS_SCHEDULE ] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 134, 2 * iScreenHeightOffset + 434, "EDITOR//MercSchedule.sti", MercsScheduleModeCallback );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_SCHEDULE ], L"Schedule mode");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_SCHEDULE ], iEditorMercsToolbarText[16]);
|
||||
//Workaround for identical buttons.
|
||||
MSYS_SetBtnUserData( iEditorButton[ MERCS_SCHEDULE ], 3, 0xffffffff );
|
||||
iEditorButton[ MERCS_GLOWSCHEDULE ] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 134, 2 * iScreenHeightOffset + 434, "EDITOR//MercGlowSchedule.sti", MercsScheduleModeCallback );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_GLOWSCHEDULE ], L"Schedule mode");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_GLOWSCHEDULE ], iEditorMercsToolbarText[17]);
|
||||
HideEditorButton( MERCS_GLOWSCHEDULE );
|
||||
|
||||
iEditorButton[ MERCS_DELETE ] =
|
||||
CreateTextButton( L"DELETE", (UINT16)SMALLCOMPFONT, FONT_DKBLUE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[18], (UINT16)SMALLCOMPFONT, FONT_DKBLUE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 600, 2 * iScreenHeightOffset + 362, 40, 20, BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsDeleteCallback );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_DELETE ], L"Delete currently selected merc (DEL).");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_DELETE ], iEditorMercsToolbarText[19]);
|
||||
iEditorButton[ MERCS_NEXT ] =
|
||||
CreateTextButton( L"NEXT", (UINT16)SMALLCOMPFONT, FONT_DKBLUE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[20], (UINT16)SMALLCOMPFONT, FONT_DKBLUE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 600, 2 * iScreenHeightOffset + 382, 40, 20, BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsNextCallback );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_NEXT ], L"Find next merc (SPACE).");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_NEXT ], iEditorMercsToolbarText[21]);
|
||||
|
||||
//Priority Existance
|
||||
iEditorButton[ MERCS_PRIORITYEXISTANCE_CHECKBOX ] =
|
||||
CreateCheckBoxButton( iScreenWidthOffset + 170, 2 * iScreenHeightOffset + 365, "EDITOR//checkbox.sti", MSYS_PRIORITY_NORMAL, MercsPriorityExistanceCallback );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_PRIORITYEXISTANCE_CHECKBOX ], L"Toggle priority existance" );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_PRIORITYEXISTANCE_CHECKBOX ], iEditorMercsToolbarText[22] );
|
||||
|
||||
//If merc has keys
|
||||
iEditorButton[ MERCS_HASKEYS_CHECKBOX ] =
|
||||
CreateCheckBoxButton( iScreenWidthOffset + 170, 2 * iScreenHeightOffset + 390, "EDITOR//checkbox.sti", MSYS_PRIORITY_NORMAL, MercsHasKeysCallback );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_HASKEYS_CHECKBOX ], L"Toggle whether or not placement has/naccess to all doors." );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_HASKEYS_CHECKBOX ], iEditorMercsToolbarText[23] );
|
||||
|
||||
//Orders
|
||||
iEditorButton[ MERCS_ORDERS_STATIONARY ] =
|
||||
CreateTextButton( L"STATIONARY", (UINT16)SMALLCOMPFONT, FONT_GRAY2, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[24], (UINT16)SMALLCOMPFONT, FONT_GRAY2, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 200, 2 * iScreenHeightOffset + 368, 70, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsSetOrdersCallback );
|
||||
iEditorButton[ MERCS_ORDERS_ONGUARD] =
|
||||
CreateTextButton( L"ON GUARD", (UINT16)SMALLCOMPFONT, FONT_GRAY2, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[25], (UINT16)SMALLCOMPFONT, FONT_GRAY2, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 200, 2 * iScreenHeightOffset + 380, 70, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsSetOrdersCallback );
|
||||
iEditorButton[ MERCS_ORDERS_ONCALL ] =
|
||||
CreateTextButton( L"ON CALL", (UINT16)SMALLCOMPFONT, FONT_GRAY2, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[26], (UINT16)SMALLCOMPFONT, FONT_GRAY2, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 200, 2 * iScreenHeightOffset + 392, 70, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsSetOrdersCallback );
|
||||
iEditorButton[ MERCS_ORDERS_SEEKENEMY ] =
|
||||
CreateTextButton( L"SEEK ENEMY", (UINT16)SMALLCOMPFONT, FONT_GRAY2, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[27], (UINT16)SMALLCOMPFONT, FONT_GRAY2, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 200, 2 * iScreenHeightOffset + 404, 70, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsSetOrdersCallback );
|
||||
iEditorButton[ MERCS_ORDERS_CLOSEPATROL ] =
|
||||
CreateTextButton( L"CLOSE PATROL", (UINT16)SMALLCOMPFONT, FONT_GRAY2, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[28], (UINT16)SMALLCOMPFONT, FONT_GRAY2, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 270, 2 * iScreenHeightOffset + 368, 70, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsSetOrdersCallback );
|
||||
iEditorButton[ MERCS_ORDERS_FARPATROL ] =
|
||||
CreateTextButton( L"FAR PATROL", (UINT16)SMALLCOMPFONT, FONT_GRAY2, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[29], (UINT16)SMALLCOMPFONT, FONT_GRAY2, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 270, 2 * iScreenHeightOffset + 380, 70, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsSetOrdersCallback );
|
||||
iEditorButton[ MERCS_ORDERS_POINTPATROL ] =
|
||||
CreateTextButton( L"POINT PATROL", (UINT16)SMALLCOMPFONT, FONT_GRAY2, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[30], (UINT16)SMALLCOMPFONT, FONT_GRAY2, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 270, 2 * iScreenHeightOffset + 392, 70, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsSetOrdersCallback );
|
||||
iEditorButton[ MERCS_ORDERS_RNDPTPATROL ] =
|
||||
CreateTextButton( L"RND PT PATROL", (UINT16)SMALLCOMPFONT, FONT_GRAY2, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[31], (UINT16)SMALLCOMPFONT, FONT_GRAY2, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 270, 2 * iScreenHeightOffset + 404, 70, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsSetOrdersCallback );
|
||||
for ( x = 0; x < 8; x++ )
|
||||
@@ -202,27 +203,27 @@ void InitEditorMercsToolbar()
|
||||
|
||||
//Attitudes
|
||||
iEditorButton[ MERCS_ATTITUDE_DEFENSIVE ] =
|
||||
CreateTextButton( L"DEFENSIVE", (UINT16)SMALLCOMPFONT, FONT_GRAY4, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[32], (UINT16)SMALLCOMPFONT, FONT_GRAY4, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 200, 2 * iScreenHeightOffset + 424, 70, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsSetAttitudeCallback );
|
||||
iEditorButton[ MERCS_ATTITUDE_BRAVESOLO ] =
|
||||
CreateTextButton( L"BRAVE SOLO", (UINT16)SMALLCOMPFONT, FONT_GRAY4, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[33], (UINT16)SMALLCOMPFONT, FONT_GRAY4, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 200, 2 * iScreenHeightOffset + 436, 70, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsSetAttitudeCallback );
|
||||
iEditorButton[ MERCS_ATTITUDE_BRAVEAID ] =
|
||||
CreateTextButton( L"BRAVE AID", (UINT16)SMALLCOMPFONT, FONT_GRAY4, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[34], (UINT16)SMALLCOMPFONT, FONT_GRAY4, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 200, 2 * iScreenHeightOffset + 448, 70, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsSetAttitudeCallback );
|
||||
iEditorButton[ MERCS_ATTITUDE_AGGRESSIVE ] =
|
||||
CreateTextButton( L"AGGRESSIVE", (UINT16)SMALLCOMPFONT, FONT_GRAY4, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[35], (UINT16)SMALLCOMPFONT, FONT_GRAY4, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 270, 2 * iScreenHeightOffset + 424, 70, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsSetAttitudeCallback );
|
||||
iEditorButton[ MERCS_ATTITUDE_CUNNINGSOLO ] =
|
||||
CreateTextButton( L"CUNNING SOLO", (UINT16)SMALLCOMPFONT, FONT_GRAY4, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[36], (UINT16)SMALLCOMPFONT, FONT_GRAY4, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 270, 2 * iScreenHeightOffset + 436, 70, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsSetAttitudeCallback );
|
||||
iEditorButton[ MERCS_ATTITUDE_CUNNINGAID ] =
|
||||
CreateTextButton( L"CUNNING AID", (UINT16)SMALLCOMPFONT, FONT_GRAY4, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[37], (UINT16)SMALLCOMPFONT, FONT_GRAY4, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 270, 2 * iScreenHeightOffset + 448, 70, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK,
|
||||
MercsSetAttitudeCallback );
|
||||
for ( x = 0; x < 6; x++ )
|
||||
@@ -256,34 +257,34 @@ void InitEditorMercsToolbar()
|
||||
iScreenWidthOffset + 360, 2 * iScreenHeightOffset + 395, 30, 30, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL + 1, DEFAULT_MOVE_CALLBACK, MercsDirectionSetCallback );
|
||||
for ( x = 0; x < 8; x++ )
|
||||
{
|
||||
swprintf( TempString, L"Set merc to face %s", FaceDirs[x] );
|
||||
swprintf( TempString, iEditorMercsToolbarText[38], FaceDirs[x] );
|
||||
SetButtonFastHelpText( iEditorButton[ FIRST_MERCS_DIRECTION_BUTTON + x ], TempString );
|
||||
MSYS_SetBtnUserData( iEditorButton[ FIRST_MERCS_DIRECTION_BUTTON + x ], 0, x);
|
||||
}
|
||||
|
||||
iEditorButton[ MERCS_DIRECTION_FIND ] =
|
||||
CreateTextButton( L"Find", (INT16)FONT12POINT1, FONT_MCOLOR_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[39], (INT16)FONT12POINT1, FONT_MCOLOR_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 390, 2 * iScreenHeightOffset + 395, 30, 30, BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL + 1, DEFAULT_MOVE_CALLBACK, MercsFindSelectedMercCallback );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_DIRECTION_FIND] , L"Find selected merc" );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_DIRECTION_FIND] , iEditorMercsToolbarText[63] );
|
||||
|
||||
iEditorButton[ MERCS_EQUIPMENT_BAD ] =
|
||||
CreateTextButton( L"BAD", (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[40], (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 480, 2 * iScreenHeightOffset + 385, 40, 15, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, MercsSetRelativeEquipmentCallback );
|
||||
SpecifyButtonDownTextColors( iEditorButton[ MERCS_EQUIPMENT_BAD ], FONT_LTRED, FONT_BLACK );
|
||||
iEditorButton[ MERCS_EQUIPMENT_POOR ] =
|
||||
CreateTextButton( L"POOR", (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[41], (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 480, 2 * iScreenHeightOffset + 400, 40, 15, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, MercsSetRelativeEquipmentCallback );
|
||||
SpecifyButtonDownTextColors( iEditorButton[ MERCS_EQUIPMENT_POOR ], FONT_ORANGE, FONT_BLACK );
|
||||
iEditorButton[ MERCS_EQUIPMENT_AVERAGE ] =
|
||||
CreateTextButton( L"AVERAGE", (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[42], (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 480, 2 * iScreenHeightOffset + 415, 40, 15, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, MercsSetRelativeEquipmentCallback );
|
||||
SpecifyButtonDownTextColors( iEditorButton[ MERCS_EQUIPMENT_AVERAGE ], FONT_YELLOW, FONT_BLACK );
|
||||
iEditorButton[ MERCS_EQUIPMENT_GOOD ] =
|
||||
CreateTextButton( L"GOOD", (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[43], (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 480, 2 * iScreenHeightOffset + 430, 40, 15, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, MercsSetRelativeEquipmentCallback );
|
||||
SpecifyButtonDownTextColors( iEditorButton[ MERCS_EQUIPMENT_GOOD ], FONT_LTGREEN, FONT_BLACK );
|
||||
iEditorButton[ MERCS_EQUIPMENT_GREAT ] =
|
||||
CreateTextButton( L"GREAT", (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[44], (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 480, 2 * iScreenHeightOffset + 445, 40, 15, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, MercsSetRelativeEquipmentCallback );
|
||||
SpecifyButtonDownTextColors( iEditorButton[ MERCS_EQUIPMENT_GREAT ], FONT_LTBLUE, FONT_BLACK );
|
||||
for ( x = 0; x < 5; x++ )
|
||||
@@ -292,23 +293,23 @@ void InitEditorMercsToolbar()
|
||||
}
|
||||
|
||||
iEditorButton[ MERCS_ATTRIBUTES_BAD ] =
|
||||
CreateTextButton( L"BAD", (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[45], (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 530, 2 * iScreenHeightOffset + 385, 40, 15, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, MercsSetRelativeAttributesCallback );
|
||||
SpecifyButtonDownTextColors( iEditorButton[ MERCS_ATTRIBUTES_BAD ], FONT_LTRED, FONT_BLACK );
|
||||
iEditorButton[ MERCS_ATTRIBUTES_POOR ] =
|
||||
CreateTextButton( L"POOR", (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[46], (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 530, 2 * iScreenHeightOffset + 400, 40, 15, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, MercsSetRelativeAttributesCallback );
|
||||
SpecifyButtonDownTextColors( iEditorButton[ MERCS_ATTRIBUTES_POOR ], FONT_ORANGE, FONT_BLACK );
|
||||
iEditorButton[ MERCS_ATTRIBUTES_AVERAGE ] =
|
||||
CreateTextButton( L"AVERAGE", (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[47], (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 530, 2 * iScreenHeightOffset + 415, 40, 15, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, MercsSetRelativeAttributesCallback );
|
||||
SpecifyButtonDownTextColors( iEditorButton[ MERCS_ATTRIBUTES_AVERAGE ], FONT_YELLOW, FONT_BLACK );
|
||||
iEditorButton[ MERCS_ATTRIBUTES_GOOD ] =
|
||||
CreateTextButton( L"GOOD", (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[48], (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 530, 2 * iScreenHeightOffset + 430, 40, 15, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, MercsSetRelativeAttributesCallback );
|
||||
SpecifyButtonDownTextColors( iEditorButton[ MERCS_ATTRIBUTES_GOOD ], FONT_LTGREEN, FONT_BLACK );
|
||||
iEditorButton[ MERCS_ATTRIBUTES_GREAT ] =
|
||||
CreateTextButton( L"GREAT", (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[49], (INT16)SMALLCOMPFONT, FONT_GRAY1, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 530, 2 * iScreenHeightOffset + 445, 40, 15, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, MercsSetRelativeAttributesCallback );
|
||||
SpecifyButtonDownTextColors( iEditorButton[ MERCS_ATTRIBUTES_GREAT ], FONT_LTBLUE, FONT_BLACK );
|
||||
for( x = 0; x < 5; x++ )
|
||||
@@ -348,43 +349,43 @@ void InitEditorMercsToolbar()
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 360,2 * iScreenHeightOffset +436,"EDITOR//rightarrow.sti", MercsSetColorsCallback );
|
||||
for ( x = FIRST_MERCS_COLOR_BUTTON; x < LAST_MERCS_COLOR_BUTTON; x+=2 )
|
||||
{
|
||||
SetButtonFastHelpText( iEditorButton[x], L"Previous color set" );
|
||||
SetButtonFastHelpText( iEditorButton[x + 1], L"Next color set" );
|
||||
SetButtonFastHelpText( iEditorButton[x], iEditorMercsToolbarText[50] );
|
||||
SetButtonFastHelpText( iEditorButton[x + 1], iEditorMercsToolbarText[51] );
|
||||
DisableButton( iEditorButton[ x ] );
|
||||
DisableButton( iEditorButton[ x + 1 ] );
|
||||
}
|
||||
|
||||
iEditorButton[MERCS_BODYTYPE_DOWN] =
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 460, 2 * iScreenHeightOffset +364,"EDITOR//leftarrow.sti", MercsSetBodyTypeCallback );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_BODYTYPE_DOWN ], L"Previous body type");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_BODYTYPE_DOWN ], iEditorMercsToolbarText[52]);
|
||||
iEditorButton[MERCS_BODYTYPE_UP] =
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 560, 2 * iScreenHeightOffset +364,"EDITOR//rightarrow.sti", MercsSetBodyTypeCallback );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_BODYTYPE_UP ], L"Next body type");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_BODYTYPE_UP ], iEditorMercsToolbarText[53]);
|
||||
|
||||
iEditorButton[ MERCS_SCHEDULE_VARIANCE1 ] =
|
||||
CreateCheckBoxButton( iScreenWidthOffset + 309, 2 * iScreenHeightOffset +375, "EDITOR//SmCheckBox.sti", MSYS_PRIORITY_NORMAL, MercsScheduleToggleVariance1Callback );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_SCHEDULE_VARIANCE1 ], L"Toggle time variance (+ or - 15 minutes)");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_SCHEDULE_VARIANCE1 ], iEditorMercsToolbarText[54]);
|
||||
iEditorButton[ MERCS_SCHEDULE_VARIANCE2 ] =
|
||||
CreateCheckBoxButton( iScreenWidthOffset + 309, 2 * iScreenHeightOffset +396, "EDITOR//SmCheckBox.sti", MSYS_PRIORITY_NORMAL, MercsScheduleToggleVariance2Callback );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_SCHEDULE_VARIANCE2 ], L"Toggle time variance (+ or - 15 minutes)");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_SCHEDULE_VARIANCE2 ], iEditorMercsToolbarText[55]);
|
||||
iEditorButton[ MERCS_SCHEDULE_VARIANCE3 ] =
|
||||
CreateCheckBoxButton( iScreenWidthOffset + 309, 2 * iScreenHeightOffset +417, "EDITOR//SmCheckBox.sti", MSYS_PRIORITY_NORMAL, MercsScheduleToggleVariance3Callback );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_SCHEDULE_VARIANCE3 ], L"Toggle time variance (+ or - 15 minutes)");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_SCHEDULE_VARIANCE3 ], iEditorMercsToolbarText[56]);
|
||||
iEditorButton[ MERCS_SCHEDULE_VARIANCE4 ] =
|
||||
CreateCheckBoxButton( iScreenWidthOffset + 309, 2 * iScreenHeightOffset +438, "EDITOR//SmCheckBox.sti", MSYS_PRIORITY_NORMAL, MercsScheduleToggleVariance4Callback );
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_SCHEDULE_VARIANCE4 ], L"Toggle time variance (+ or - 15 minutes)");
|
||||
SetButtonFastHelpText( iEditorButton[ MERCS_SCHEDULE_VARIANCE4 ], iEditorMercsToolbarText[57]);
|
||||
|
||||
iEditorButton[ MERCS_SCHEDULE_ACTION1 ] =
|
||||
CreateTextButton( L"No action", FONT10ARIAL, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[58], FONT10ARIAL, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 186, 2 * iScreenHeightOffset + 373, 77, 16, BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, MercsScheduleAction1Callback );
|
||||
iEditorButton[ MERCS_SCHEDULE_ACTION2 ] =
|
||||
CreateTextButton( L"No action", FONT10ARIAL, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[59], FONT10ARIAL, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 186, 2 * iScreenHeightOffset + 394, 77, 16, BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, MercsScheduleAction2Callback );
|
||||
iEditorButton[ MERCS_SCHEDULE_ACTION3 ] =
|
||||
CreateTextButton( L"No action", FONT10ARIAL, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[60], FONT10ARIAL, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 186, 2 * iScreenHeightOffset + 415, 77, 16, BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, MercsScheduleAction3Callback );
|
||||
iEditorButton[ MERCS_SCHEDULE_ACTION4 ] =
|
||||
CreateTextButton( L"No action", FONT10ARIAL, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[61], FONT10ARIAL, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 186, 2 * iScreenHeightOffset + 436, 77, 16, BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, MercsScheduleAction4Callback );
|
||||
|
||||
iEditorButton[ MERCS_SCHEDULE_DATA1A ] =
|
||||
@@ -412,7 +413,7 @@ void InitEditorMercsToolbar()
|
||||
CreateTextButton( L"", FONT10ARIAL, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 381, 2 * iScreenHeightOffset + 436, 40, 16, BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, MercsScheduleData4BCallback );
|
||||
iEditorButton[ MERCS_SCHEDULE_CLEAR ] =
|
||||
CreateTextButton( L"Clear Schedule", FONT10ARIAL, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( iEditorMercsToolbarText[62], FONT10ARIAL, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 516, 2 * iScreenHeightOffset + 362, 77, 16, BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, MercsScheduleClearCallback );
|
||||
HideEditorButtons( MERCS_SCHEDULE_DATA1A, MERCS_SCHEDULE_DATA4B );
|
||||
|
||||
@@ -448,143 +449,143 @@ void InitEditorMercsToolbar()
|
||||
void InitEditorBuildingsToolbar()
|
||||
{
|
||||
iEditorButton[BUILDING_TOGGLE_ROOF_VIEW] =
|
||||
CreateTextButton(L"ROOFS",(UINT16)SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton(iEditorBuildingsToolbarText[0],(UINT16)SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 110, 2 * iScreenHeightOffset + 400, 50, 15, BUTTON_TOGGLE,MSYS_PRIORITY_NORMAL,BUTTON_NO_CALLBACK,
|
||||
BuildingToggleRoofViewCallback);
|
||||
iEditorButton[BUILDING_TOGGLE_WALL_VIEW] =
|
||||
CreateTextButton(L"WALLS",(UINT16)SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton(iEditorBuildingsToolbarText[1],(UINT16)SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 110, 2 * iScreenHeightOffset + 415, 50, 15, BUTTON_TOGGLE,MSYS_PRIORITY_NORMAL,BUTTON_NO_CALLBACK,
|
||||
BuildingToggleWallViewCallback);
|
||||
iEditorButton[BUILDING_TOGGLE_INFO_VIEW] =
|
||||
CreateTextButton(L"ROOM INFO",(UINT16)SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton(iEditorBuildingsToolbarText[2],(UINT16)SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 110, 2 * iScreenHeightOffset + 430, 50, 15, BUTTON_TOGGLE,MSYS_PRIORITY_NORMAL,BUTTON_NO_CALLBACK,
|
||||
BuildingToggleInfoViewCallback);
|
||||
//Selection method buttons
|
||||
iEditorButton[BUILDING_PLACE_WALLS] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 180,2 * iScreenHeightOffset + 370,"EDITOR//wall.sti", BuildingWallCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_PLACE_WALLS],L"Place walls using selection method");//dnl fix for to many tooltip message in place walls
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_PLACE_WALLS],iEditorBuildingsToolbarText[3]);//dnl fix for to many tooltip message in place walls
|
||||
iEditorButton[BUILDING_PLACE_DOORS] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 210,2 * iScreenHeightOffset + 370,"EDITOR//door.sti", BuildingDoorCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_PLACE_DOORS],L"Place doors using selection method");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_PLACE_DOORS],iEditorBuildingsToolbarText[4]);
|
||||
iEditorButton[BUILDING_PLACE_ROOFS] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 240,2 * iScreenHeightOffset + 370,"EDITOR//roof.sti", BuildingRoofCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_PLACE_ROOFS],L"Place roofs using selection method");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_PLACE_ROOFS],iEditorBuildingsToolbarText[5]);
|
||||
iEditorButton[BUILDING_PLACE_WINDOWS] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 180,2 * iScreenHeightOffset + 400,"EDITOR//window.sti", BuildingWindowCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_PLACE_WINDOWS],L"Place windows using selection method");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_PLACE_WINDOWS],iEditorBuildingsToolbarText[6]);
|
||||
iEditorButton[BUILDING_PLACE_BROKEN_WALLS] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 210, 2 * iScreenHeightOffset + 400,"EDITOR//crackwall.sti", BuildingCrackWallCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_PLACE_BROKEN_WALLS],L"Place damaged walls using selection method.");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_PLACE_BROKEN_WALLS],iEditorBuildingsToolbarText[7]);
|
||||
iEditorButton[BUILDING_PLACE_FURNITURE] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 240, 2 * iScreenHeightOffset + 400,"EDITOR//decor.sti", BuildingFurnitureCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_PLACE_FURNITURE],L"Place furniture using selection method");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_PLACE_FURNITURE],iEditorBuildingsToolbarText[8]);
|
||||
iEditorButton[BUILDING_PLACE_DECALS] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 180, 2 * iScreenHeightOffset + 430,"EDITOR//decal.sti", BuildingDecalCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_PLACE_DECALS],L"Place wall decals using selection method");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_PLACE_DECALS],iEditorBuildingsToolbarText[9]);
|
||||
iEditorButton[BUILDING_PLACE_FLOORS] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 210, 2 * iScreenHeightOffset + 430,"EDITOR//floor.sti", BuildingFloorCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_PLACE_FLOORS],L"Place floors using selection method");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_PLACE_FLOORS],iEditorBuildingsToolbarText[10]);
|
||||
iEditorButton[BUILDING_PLACE_TOILETS] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 240, 2 * iScreenHeightOffset + 430,"EDITOR//toilet.sti", BuildingToiletCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_PLACE_TOILETS],L"Place generic furniture using selection method");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_PLACE_TOILETS],iEditorBuildingsToolbarText[11]);
|
||||
|
||||
//Smart method buttons
|
||||
iEditorButton[BUILDING_SMART_WALLS] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 290, 2 * iScreenHeightOffset + 370,"EDITOR//wall.sti", BuildingSmartWallCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_SMART_WALLS],L"Place walls using smart method");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_SMART_WALLS],iEditorBuildingsToolbarText[12]);
|
||||
iEditorButton[BUILDING_SMART_DOORS] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 320, 2 * iScreenHeightOffset + 370,"EDITOR//door.sti", BuildingSmartDoorCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_SMART_DOORS],L"Place doors using smart method");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_SMART_DOORS],iEditorBuildingsToolbarText[13]);
|
||||
iEditorButton[BUILDING_SMART_WINDOWS] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 290, 2 * iScreenHeightOffset + 400,"EDITOR//window.sti", BuildingSmartWindowCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_SMART_WINDOWS],L"Place windows using smart method");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_SMART_WINDOWS],iEditorBuildingsToolbarText[14]);
|
||||
iEditorButton[BUILDING_SMART_BROKEN_WALLS] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 320, 2 * iScreenHeightOffset + 400,"EDITOR//crackwall.sti", BuildingSmartCrackWallCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_SMART_BROKEN_WALLS],L"Place damaged walls using smart method");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_SMART_BROKEN_WALLS],iEditorBuildingsToolbarText[15]);
|
||||
iEditorButton[BUILDING_DOORKEY] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 290, 2 * iScreenHeightOffset + 430,"EDITOR//key.sti", BuildingDoorKeyCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_DOORKEY], L"Lock or trap existing doors" );
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_DOORKEY], iEditorBuildingsToolbarText[16] );
|
||||
|
||||
iEditorButton[BUILDING_NEW_ROOM] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 370, 2 * iScreenHeightOffset + 370,"EDITOR//newroom.sti", BuildingNewRoomCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_NEW_ROOM],L"Add a new room");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_NEW_ROOM],iEditorBuildingsToolbarText[17]);
|
||||
iEditorButton[BUILDING_CAVE_DRAWING] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 370, 2 * iScreenHeightOffset + 370,"EDITOR//caves.sti", BuildingCaveDrawingCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_CAVE_DRAWING],L"Edit cave walls.");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_CAVE_DRAWING],iEditorBuildingsToolbarText[18]);
|
||||
iEditorButton[BUILDING_SAW_ROOM] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 370, 2 * iScreenHeightOffset + 400,"EDITOR//sawroom.sti", BuildingSawRoomCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_SAW_ROOM],L"Remove an area from existing building.");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_SAW_ROOM],iEditorBuildingsToolbarText[19]);
|
||||
iEditorButton[BUILDING_KILL_BUILDING] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 370, 2 * iScreenHeightOffset + 430,"EDITOR//delroom.sti", BuildingKillBuildingCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_KILL_BUILDING],L"Remove a building");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_KILL_BUILDING],iEditorBuildingsToolbarText[20]);
|
||||
iEditorButton[BUILDING_NEW_ROOF] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 400, 2 * iScreenHeightOffset + 430,"EDITOR//newroof.sti", BuildingNewRoofCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_NEW_ROOF],L"Add/replace building's roof with new flat roof.");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_NEW_ROOF],iEditorBuildingsToolbarText[21]);
|
||||
iEditorButton[BUILDING_COPY_BUILDING] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 430, 2 * iScreenHeightOffset + 430,"EDITOR//copyroom.sti", BuildingCopyBuildingCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_COPY_BUILDING],L"Copy a building");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_COPY_BUILDING],iEditorBuildingsToolbarText[22]);
|
||||
iEditorButton[BUILDING_MOVE_BUILDING] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 460, 2 * iScreenHeightOffset + 430,"EDITOR//moveroom.sti", BuildingMoveBuildingCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_MOVE_BUILDING],L"Move a building");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_MOVE_BUILDING],iEditorBuildingsToolbarText[23]);
|
||||
iEditorButton[BUILDING_DRAW_ROOMNUM] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 410, 2 * iScreenHeightOffset + 370,"EDITOR//addTileRoom.sti", BuildingDrawRoomNumCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_DRAW_ROOMNUM],L"Draw room number");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_DRAW_ROOMNUM],iEditorBuildingsToolbarText[24]);
|
||||
iEditorButton[BUILDING_ERASE_ROOMNUM] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 440, 2 * iScreenHeightOffset + 370,"EDITOR//killTileRoom.sti", BuildingEraseRoomNumCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_ERASE_ROOMNUM],L"Erase room numbers");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_ERASE_ROOMNUM],iEditorBuildingsToolbarText[25]);
|
||||
|
||||
iEditorButton[BUILDING_TOGGLE_ERASEMODE] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 500, 2 * iScreenHeightOffset + 400,"EDITOR//eraser.sti", BtnEraseCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_TOGGLE_ERASEMODE],L"Toggle erase mode");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_TOGGLE_ERASEMODE],iEditorBuildingsToolbarText[26]);
|
||||
iEditorButton[BUILDING_UNDO] =
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 530, 2 * iScreenHeightOffset + 400,"EDITOR//undo.sti", BtnUndoCallback);
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_UNDO],L"Undo last change");
|
||||
SetButtonFastHelpText(iEditorButton[BUILDING_UNDO],iEditorBuildingsToolbarText[27]);
|
||||
iEditorButton[BUILDING_CYCLE_BRUSHSIZE] =
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 500, 2 * iScreenHeightOffset + 430,"EDITOR//paint.sti",BtnBrushCallback);
|
||||
SetButtonFastHelpText( iEditorButton[ BUILDING_CYCLE_BRUSHSIZE ], L"Cycle brush size");
|
||||
SetButtonFastHelpText( iEditorButton[ BUILDING_CYCLE_BRUSHSIZE ], iEditorBuildingsToolbarText[28]);
|
||||
}
|
||||
|
||||
void InitEditorItemsToolbar()
|
||||
{
|
||||
SetFontForeground( FONT_MCOLOR_LTRED );
|
||||
iEditorButton[ITEMS_WEAPONS] =
|
||||
CreateTextButton(L"Weapons",(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton(iEditorItemsToolbarText[0],(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 100, 2 * iScreenHeightOffset + 440, 59, 20, BUTTON_TOGGLE,MSYS_PRIORITY_NORMAL,DEFAULT_MOVE_CALLBACK,
|
||||
ItemsWeaponsCallback);
|
||||
iEditorButton[ITEMS_AMMO] =
|
||||
CreateTextButton(L"Ammo",(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton(iEditorItemsToolbarText[1],(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 159, 2 * iScreenHeightOffset + 440, 40, 20, BUTTON_TOGGLE,MSYS_PRIORITY_NORMAL,DEFAULT_MOVE_CALLBACK,
|
||||
ItemsAmmoCallback);
|
||||
iEditorButton[ITEMS_ARMOUR] =
|
||||
CreateTextButton(L"Armour",(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton(iEditorItemsToolbarText[2],(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 199, 2 * iScreenHeightOffset + 440, 52, 20, BUTTON_TOGGLE,MSYS_PRIORITY_NORMAL,DEFAULT_MOVE_CALLBACK,
|
||||
ItemsArmourCallback);
|
||||
iEditorButton[ITEMS_LBEGEAR] =
|
||||
CreateTextButton(L"LBE",(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton(iEditorItemsToolbarText[3],(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 251, 2 * iScreenHeightOffset + 440, 30, 20, BUTTON_TOGGLE,MSYS_PRIORITY_NORMAL,DEFAULT_MOVE_CALLBACK,
|
||||
ItemsLBECallback);
|
||||
iEditorButton[ITEMS_EXPLOSIVES] =
|
||||
CreateTextButton(L"Exp",(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton(iEditorItemsToolbarText[4],(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 281, 2 * iScreenHeightOffset + 440, 39, 20, BUTTON_TOGGLE,MSYS_PRIORITY_NORMAL,DEFAULT_MOVE_CALLBACK,
|
||||
ItemsExplosivesCallback);
|
||||
iEditorButton[ITEMS_EQUIPMENT1] =
|
||||
CreateTextButton(L"E1",(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton(iEditorItemsToolbarText[5],(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 320, 2 * iScreenHeightOffset + 440, 21, 20, BUTTON_TOGGLE,MSYS_PRIORITY_NORMAL,DEFAULT_MOVE_CALLBACK,
|
||||
ItemsEquipment1Callback);
|
||||
iEditorButton[ITEMS_EQUIPMENT2] =
|
||||
CreateTextButton(L"E2",(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton(iEditorItemsToolbarText[6],(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 341, 2 * iScreenHeightOffset + 440, 21, 20, BUTTON_TOGGLE,MSYS_PRIORITY_NORMAL,DEFAULT_MOVE_CALLBACK,
|
||||
ItemsEquipment2Callback);
|
||||
iEditorButton[ITEMS_EQUIPMENT3] =
|
||||
CreateTextButton(L"E3",(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton(iEditorItemsToolbarText[7],(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 362, 2 * iScreenHeightOffset + 440, 21, 20, BUTTON_TOGGLE,MSYS_PRIORITY_NORMAL,DEFAULT_MOVE_CALLBACK,
|
||||
ItemsEquipment3Callback);
|
||||
iEditorButton[ITEMS_TRIGGERS] =
|
||||
CreateTextButton( L"Triggers",(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton(iEditorItemsToolbarText[8],(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 383, 2 * iScreenHeightOffset + 440, 59, 20, BUTTON_TOGGLE,MSYS_PRIORITY_NORMAL,DEFAULT_MOVE_CALLBACK,
|
||||
ItemsTriggersCallback );
|
||||
iEditorButton[ITEMS_KEYS] =
|
||||
CreateTextButton( L"Keys",(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton(iEditorItemsToolbarText[9],(UINT16)BLOCKFONT, FONT_MCOLOR_DKWHITE, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 442, 2 * iScreenHeightOffset + 440, 38, 20, BUTTON_TOGGLE,MSYS_PRIORITY_NORMAL,DEFAULT_MOVE_CALLBACK,
|
||||
ItemsKeysCallback );
|
||||
|
||||
@@ -599,7 +600,7 @@ void InitEditorMapInfoToolbar()
|
||||
{
|
||||
iEditorButton[MAPINFO_ADD_LIGHT1_SOURCE] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 10, SCREEN_HEIGHT - 118, "EDITOR//light.sti", BtnDrawLightsCallback );
|
||||
SetButtonFastHelpText(iEditorButton[MAPINFO_ADD_LIGHT1_SOURCE],L"Add ambient light source");
|
||||
SetButtonFastHelpText(iEditorButton[MAPINFO_ADD_LIGHT1_SOURCE],iEditorMapInfoToolbarText[0]);
|
||||
|
||||
iEditorButton[ MAPINFO_LIGHT_PANEL ] =
|
||||
CreateTextButton( 0, 0, 0, 0, BUTTON_USE_DEFAULT, iScreenWidthOffset + 45, SCREEN_HEIGHT - 118, 60, 50, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, BUTTON_NO_CALLBACK, BUTTON_NO_CALLBACK );
|
||||
@@ -615,7 +616,7 @@ void InitEditorMapInfoToolbar()
|
||||
|
||||
iEditorButton[MAPINFO_TOGGLE_FAKE_LIGHTS] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 120, SCREEN_HEIGHT - 118, "EDITOR//fakelight.sti", BtnFakeLightCallback );
|
||||
SetButtonFastHelpText(iEditorButton[MAPINFO_TOGGLE_FAKE_LIGHTS], L"Toggle fake ambient lights.");
|
||||
SetButtonFastHelpText(iEditorButton[MAPINFO_TOGGLE_FAKE_LIGHTS], iEditorMapInfoToolbarText[1]);
|
||||
|
||||
iEditorButton[ MAPINFO_RADIO_PANEL ] =
|
||||
CreateTextButton( 0, 0, 0, 0, BUTTON_USE_DEFAULT, iScreenWidthOffset + 207, SCREEN_HEIGHT - 118, 70, 50, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, BUTTON_NO_CALLBACK, BUTTON_NO_CALLBACK );
|
||||
@@ -630,176 +631,181 @@ void InitEditorMapInfoToolbar()
|
||||
|
||||
iEditorButton[MAPINFO_DRAW_EXITGRIDS] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 305, SCREEN_HEIGHT - 108, "EDITOR//exitgridbut.sti", MapInfoDrawExitGridCallback );
|
||||
SetButtonFastHelpText(iEditorButton[MAPINFO_DRAW_EXITGRIDS],L"Add exit grids (r-clk to query existing).");
|
||||
SetButtonFastHelpText(iEditorButton[MAPINFO_DRAW_EXITGRIDS],iEditorMapInfoToolbarText[2]);
|
||||
iEditorButton[MAPINFO_CYCLE_BRUSHSIZE] =
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 420, SCREEN_HEIGHT - 50, "EDITOR//paint.sti", BtnBrushCallback );
|
||||
SetButtonFastHelpText(iEditorButton[MAPINFO_CYCLE_BRUSHSIZE],L"Cycle brush size");
|
||||
SetButtonFastHelpText(iEditorButton[MAPINFO_CYCLE_BRUSHSIZE],iEditorMapInfoToolbarText[3]);
|
||||
iEditorButton[MAPINFO_UNDO] =
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 510, SCREEN_HEIGHT - 50, "EDITOR//undo.sti", BtnUndoCallback );
|
||||
SetButtonFastHelpText(iEditorButton[MAPINFO_UNDO],L"Undo last change");
|
||||
SetButtonFastHelpText(iEditorButton[MAPINFO_UNDO],iEditorMapInfoToolbarText[4]);
|
||||
iEditorButton[MAPINFO_TOGGLE_ERASEMODE] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 540, SCREEN_HEIGHT - 50, "EDITOR//eraser.sti", BtnEraseCallback);
|
||||
SetButtonFastHelpText(iEditorButton[MAPINFO_TOGGLE_ERASEMODE],L"Toggle erase mode");
|
||||
SetButtonFastHelpText(iEditorButton[MAPINFO_TOGGLE_ERASEMODE],iEditorMapInfoToolbarText[5]);
|
||||
|
||||
iEditorButton[ MAPINFO_NORTH_POINT ] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 540, SCREEN_HEIGHT - 115, "EDITOR//north.sti", MapInfoEntryPointsCallback);
|
||||
SetButtonFastHelpText( iEditorButton[ MAPINFO_NORTH_POINT ], L"Specify north point for validation purposes.");
|
||||
SetButtonFastHelpText( iEditorButton[ MAPINFO_NORTH_POINT ], iEditorMapInfoToolbarText[6]);
|
||||
|
||||
iEditorButton[ MAPINFO_WEST_POINT ] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 525, SCREEN_HEIGHT - 94, "EDITOR//west.sti", MapInfoEntryPointsCallback);
|
||||
SetButtonFastHelpText( iEditorButton[ MAPINFO_WEST_POINT ], L"Specify west point for validation purposes.");
|
||||
SetButtonFastHelpText( iEditorButton[ MAPINFO_WEST_POINT ], iEditorMapInfoToolbarText[7]);
|
||||
|
||||
iEditorButton[ MAPINFO_EAST_POINT ] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 555, SCREEN_HEIGHT - 94, "EDITOR//east.sti", MapInfoEntryPointsCallback);
|
||||
SetButtonFastHelpText( iEditorButton[ MAPINFO_EAST_POINT ], L"Specify east point for validation purposes.");
|
||||
SetButtonFastHelpText( iEditorButton[ MAPINFO_EAST_POINT ], iEditorMapInfoToolbarText[8]);
|
||||
|
||||
iEditorButton[ MAPINFO_SOUTH_POINT ] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 540, SCREEN_HEIGHT - 73, "EDITOR//south.sti", MapInfoEntryPointsCallback);
|
||||
SetButtonFastHelpText( iEditorButton[ MAPINFO_SOUTH_POINT ], L"Specify south point for validation purposes.");
|
||||
SetButtonFastHelpText( iEditorButton[ MAPINFO_SOUTH_POINT ], iEditorMapInfoToolbarText[9]);
|
||||
|
||||
iEditorButton[ MAPINFO_CENTER_POINT ] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 590, SCREEN_HEIGHT - 105, "EDITOR//center.sti", MapInfoEntryPointsCallback);
|
||||
SetButtonFastHelpText( iEditorButton[ MAPINFO_CENTER_POINT ], L"Specify center point for validation purposes.");
|
||||
SetButtonFastHelpText( iEditorButton[ MAPINFO_CENTER_POINT ], iEditorMapInfoToolbarText[10]);
|
||||
|
||||
iEditorButton[ MAPINFO_ISOLATED_POINT ] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 590, SCREEN_HEIGHT - 84, "EDITOR//isolated.sti", MapInfoEntryPointsCallback);
|
||||
SetButtonFastHelpText( iEditorButton[ MAPINFO_ISOLATED_POINT ], L"Specify isolated point for validation purposes.");
|
||||
SetButtonFastHelpText( iEditorButton[ MAPINFO_ISOLATED_POINT ], iEditorMapInfoToolbarText[11]);
|
||||
}
|
||||
|
||||
void InitEditorOptionsToolbar()
|
||||
{
|
||||
iEditorButton[OPTIONS_NEW_MAP] =
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 71,SCREEN_HEIGHT - 79,"EDITOR//new.sti", BtnNewMapCallback);
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_NEW_MAP],L"New map");
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_NEW_MAP],iEditorOptionsToolbarText[0]);
|
||||
|
||||
iEditorButton[OPTIONS_NEW_BASEMENT] =
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 101,SCREEN_HEIGHT - 79,"EDITOR//new.sti", BtnNewBasementCallback);
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_NEW_BASEMENT],L"New basement");
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_NEW_BASEMENT],iEditorOptionsToolbarText[1]);
|
||||
|
||||
iEditorButton[OPTIONS_NEW_CAVES] =
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 131,SCREEN_HEIGHT - 79,"EDITOR//new.sti", BtnNewCavesCallback);
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_NEW_CAVES],L"New cave level");
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_NEW_CAVES],iEditorOptionsToolbarText[2]);
|
||||
|
||||
iEditorButton[OPTIONS_SAVE_MAP] =
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 161,SCREEN_HEIGHT - 79,"EDITOR//save.sti", BtnSaveCallback);
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_SAVE_MAP],L"Save map");
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_SAVE_MAP],iEditorOptionsToolbarText[3]);
|
||||
|
||||
iEditorButton[OPTIONS_LOAD_MAP] =
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 191,SCREEN_HEIGHT - 79,"EDITOR//load.sti", BtnLoadCallback);
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_LOAD_MAP],L"Load map");
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_LOAD_MAP],iEditorOptionsToolbarText[4]);
|
||||
|
||||
iEditorButton[OPTIONS_CHANGE_TILESET] =
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 221,SCREEN_HEIGHT - 79,"EDITOR//tileset.sti", BtnChangeTilesetCallback);
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_CHANGE_TILESET],L"Select tileset");
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_CHANGE_TILESET],iEditorOptionsToolbarText[5]);
|
||||
|
||||
iEditorButton[OPTIONS_LEAVE_EDITOR] =
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 251,SCREEN_HEIGHT - 79,"EDITOR//cancel.sti", BtnCancelCallback);
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_LEAVE_EDITOR],L"Leave Editor mode");
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_LEAVE_EDITOR],iEditorOptionsToolbarText[6]);
|
||||
|
||||
iEditorButton[OPTIONS_QUIT_GAME] =
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 281,SCREEN_HEIGHT - 79,"EDITOR//cancel.sti", BtnQuitCallback);
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_QUIT_GAME],L"Exit game.");
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_QUIT_GAME],iEditorOptionsToolbarText[7]);
|
||||
|
||||
//dnl ch9 071009
|
||||
iEditorButton[OPTIONS_RADAR_MAP] =
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 311,SCREEN_HEIGHT - 79,"EDITOR//tileset.sti", BtnRadarMapCallback);
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_RADAR_MAP],L"Create radar map");
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_RADAR_MAP],iEditorOptionsToolbarText[8]);
|
||||
|
||||
//dnl ch33 160909
|
||||
iEditorButton[OPTIONS_VANILLA_MODE] =
|
||||
CreateCheckBoxButton(iScreenWidthOffset+71, SCREEN_HEIGHT-119, "EDITOR//smcheckbox.sti", MSYS_PRIORITY_NORMAL, VanillaModeCallback);
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_VANILLA_MODE],L"When checked, the map will be saved in original JA2 format (Version: 5.00 / 25)");
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_VANILLA_MODE],iEditorOptionsToolbarText[9]);
|
||||
|
||||
// TODO.MAP
|
||||
iEditorButton[OPTIONS_RESIZE_MAP_ON_LOADING] =
|
||||
CreateCheckBoxButton(iScreenWidthOffset+5, SCREEN_HEIGHT-42, "EDITOR//smcheckbox.sti", MSYS_PRIORITY_NORMAL, ResizeMapOnLoadingCallback);
|
||||
SetButtonFastHelpText(iEditorButton[OPTIONS_RESIZE_MAP_ON_LOADING],iEditorOptionsToolbarText[10]);
|
||||
}
|
||||
|
||||
void InitEditorTerrainToolbar()
|
||||
{
|
||||
iEditorButton[TERRAIN_FGROUND_TEXTURES] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 100,SCREEN_HEIGHT - 80,"EDITOR//downgrid.sti", BtnFgGrndCallback);
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_FGROUND_TEXTURES],L"Draw ground textures");
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_FGROUND_TEXTURES],iEditorTerrainToolbarText[0]);
|
||||
|
||||
iEditorButton[TERRAIN_BGROUND_TEXTURES] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 130,SCREEN_HEIGHT - 80,"EDITOR//upgrid.sti", BtnBkGrndCallback);
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_BGROUND_TEXTURES],L"Set map ground textures");
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_BGROUND_TEXTURES],iEditorTerrainToolbarText[1]);
|
||||
|
||||
iEditorButton[TERRAIN_PLACE_CLIFFS] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 160,SCREEN_HEIGHT - 80,"EDITOR//banks.sti", BtnBanksCallback);
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_PLACE_CLIFFS],L"Place banks and cliffs");
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_PLACE_CLIFFS],iEditorTerrainToolbarText[2]);
|
||||
|
||||
iEditorButton[TERRAIN_PLACE_ROADS] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 190,SCREEN_HEIGHT - 80,"EDITOR//road.sti", BtnRoadsCallback);
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_PLACE_ROADS],L"Draw roads");
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_PLACE_ROADS],iEditorTerrainToolbarText[3]);
|
||||
|
||||
iEditorButton[TERRAIN_PLACE_DEBRIS] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 220,SCREEN_HEIGHT - 80,"EDITOR//debris.sti", BtnDebrisCallback);
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_PLACE_DEBRIS],L"Draw debris");
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_PLACE_DEBRIS],iEditorTerrainToolbarText[4]);
|
||||
|
||||
iEditorButton[TERRAIN_PLACE_TREES] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 250,SCREEN_HEIGHT - 80,"EDITOR//tree.sti", BtnObjectCallback);
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_PLACE_TREES],L"Place trees & bushes");
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_PLACE_TREES],iEditorTerrainToolbarText[5]);
|
||||
|
||||
iEditorButton[TERRAIN_PLACE_ROCKS] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 280,SCREEN_HEIGHT - 80,"EDITOR//num1.sti", BtnObject1Callback);
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_PLACE_ROCKS],L"Place rocks");
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_PLACE_ROCKS],iEditorTerrainToolbarText[6]);
|
||||
|
||||
iEditorButton[TERRAIN_PLACE_MISC] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 310,SCREEN_HEIGHT - 80,"EDITOR//num2.sti", BtnObject2Callback);
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_PLACE_MISC],L"Place barrels & other junk");
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_PLACE_MISC],iEditorTerrainToolbarText[7]);
|
||||
|
||||
iEditorButton[TERRAIN_FILL_AREA] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 100,SCREEN_HEIGHT - 50,"EDITOR//fill.sti", BtnFillCallback);
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_FILL_AREA],L"Fill area");
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_FILL_AREA],iEditorTerrainToolbarText[8]);
|
||||
|
||||
iEditorButton[TERRAIN_UNDO] =
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 130,SCREEN_HEIGHT - 50,"EDITOR//undo.sti", BtnUndoCallback);
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_UNDO],L"Undo last change");
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_UNDO],iEditorTerrainToolbarText[9]);
|
||||
|
||||
iEditorButton[TERRAIN_TOGGLE_ERASEMODE] =
|
||||
CreateEasyToggleButton( iScreenWidthOffset + 160,SCREEN_HEIGHT - 50,"EDITOR//eraser.sti", BtnEraseCallback);
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_TOGGLE_ERASEMODE],L"Toggle erase mode");
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_TOGGLE_ERASEMODE],iEditorTerrainToolbarText[10]);
|
||||
|
||||
iEditorButton[TERRAIN_CYCLE_BRUSHSIZE] =
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 190,SCREEN_HEIGHT - 50,"EDITOR//paint.sti", BtnBrushCallback);
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_CYCLE_BRUSHSIZE],L"Cycle brush size");
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_CYCLE_BRUSHSIZE],iEditorTerrainToolbarText[11]);
|
||||
|
||||
iEditorButton[TERRAIN_RAISE_DENSITY] =
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 280,SCREEN_HEIGHT - 50,"EDITOR//uparrow.sti", BtnIncBrushDensityCallback);
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_RAISE_DENSITY],L"Raise brush density");
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_RAISE_DENSITY],iEditorTerrainToolbarText[12]);
|
||||
|
||||
iEditorButton[TERRAIN_LOWER_DENSITY] =
|
||||
CreateEasyNoToggleButton( iScreenWidthOffset + 350,SCREEN_HEIGHT - 50,"EDITOR//downarrow.sti", BtnDecBrushDensityCallback);
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_LOWER_DENSITY],L"Lower brush density");
|
||||
SetButtonFastHelpText(iEditorButton[TERRAIN_LOWER_DENSITY],iEditorTerrainToolbarText[13]);
|
||||
}
|
||||
|
||||
void CreateEditorTaskbarInternal()
|
||||
{
|
||||
//Create the tabs for the editor taskbar
|
||||
iEditorButton[ TAB_TERRAIN ] =
|
||||
CreateTextButton(L"Terrain", (UINT16)SMALLFONT1, FONT_LTKHAKI, FONT_DKKHAKI, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton(iEditorTaskbarInternalText[0], (UINT16)SMALLFONT1, FONT_LTKHAKI, FONT_DKKHAKI, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 100, SCREEN_HEIGHT - 20, 90, 20, BUTTON_TOGGLE,MSYS_PRIORITY_HIGH,BUTTON_NO_CALLBACK,
|
||||
TaskTerrainCallback);
|
||||
SpecifyButtonDownTextColors( iEditorButton[TAB_TERRAIN], FONT_YELLOW, FONT_ORANGE );
|
||||
iEditorButton[ TAB_BUILDINGS ] =
|
||||
CreateTextButton(L"Buildings", (UINT16)SMALLFONT1, FONT_LTKHAKI, FONT_DKKHAKI, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton(iEditorTaskbarInternalText[1], (UINT16)SMALLFONT1, FONT_LTKHAKI, FONT_DKKHAKI, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 190, SCREEN_HEIGHT - 20, 90, 20, BUTTON_TOGGLE,MSYS_PRIORITY_HIGH,BUTTON_NO_CALLBACK,
|
||||
TaskBuildingCallback);
|
||||
SpecifyButtonDownTextColors( iEditorButton[TAB_BUILDINGS], FONT_YELLOW, FONT_ORANGE );
|
||||
iEditorButton[ TAB_ITEMS ] =
|
||||
CreateTextButton(L"Items", (UINT16)SMALLFONT1, FONT_LTKHAKI, FONT_DKKHAKI, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton(iEditorTaskbarInternalText[2], (UINT16)SMALLFONT1, FONT_LTKHAKI, FONT_DKKHAKI, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 280, SCREEN_HEIGHT - 20, 90, 20, BUTTON_TOGGLE,MSYS_PRIORITY_HIGH,BUTTON_NO_CALLBACK,
|
||||
TaskItemsCallback);
|
||||
SpecifyButtonDownTextColors( iEditorButton[TAB_ITEMS], FONT_YELLOW, FONT_ORANGE );
|
||||
iEditorButton[ TAB_MERCS ] =
|
||||
CreateTextButton(L"Mercs", (UINT16)SMALLFONT1, FONT_LTKHAKI, FONT_DKKHAKI, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton(iEditorTaskbarInternalText[3], (UINT16)SMALLFONT1, FONT_LTKHAKI, FONT_DKKHAKI, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 370, SCREEN_HEIGHT - 20, 90, 20, BUTTON_TOGGLE,MSYS_PRIORITY_HIGH,BUTTON_NO_CALLBACK,
|
||||
TaskMercsCallback);
|
||||
SpecifyButtonDownTextColors( iEditorButton[TAB_MERCS], FONT_YELLOW, FONT_ORANGE );
|
||||
iEditorButton[ TAB_MAPINFO ] =
|
||||
CreateTextButton(L"Map Info", (UINT16)SMALLFONT1, FONT_LTKHAKI, FONT_DKKHAKI, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton(iEditorTaskbarInternalText[4], (UINT16)SMALLFONT1, FONT_LTKHAKI, FONT_DKKHAKI, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 460, SCREEN_HEIGHT - 20, 90, 20, BUTTON_TOGGLE,MSYS_PRIORITY_HIGH,BUTTON_NO_CALLBACK,
|
||||
TaskMapInfoCallback);
|
||||
SpecifyButtonDownTextColors( iEditorButton[TAB_MAPINFO], FONT_YELLOW, FONT_ORANGE );
|
||||
iEditorButton[ TAB_OPTIONS ] =
|
||||
CreateTextButton(L"Options", (UINT16)SMALLFONT1, FONT_LTKHAKI, FONT_DKKHAKI, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton(iEditorTaskbarInternalText[5], (UINT16)SMALLFONT1, FONT_LTKHAKI, FONT_DKKHAKI, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 550, SCREEN_HEIGHT - 20, 90, 20, BUTTON_TOGGLE,MSYS_PRIORITY_HIGH,BUTTON_NO_CALLBACK,
|
||||
TaskOptionsCallback);
|
||||
SpecifyButtonDownTextColors( iEditorButton[TAB_OPTIONS], FONT_YELLOW, FONT_ORANGE );
|
||||
|
||||
@@ -398,8 +398,13 @@ void DoTaskbar(void)
|
||||
iDrawMode = DRAW_MODE_NOTHING;//dnl ch22 210909
|
||||
ClickEditorButton( TAB_OPTIONS );
|
||||
TerrainTileDrawMode = TERRAIN_TILES_NODRAW;
|
||||
if(gfVanillaMode)//dnl ch33 160909
|
||||
|
||||
if (gfResizeMapOnLoading)
|
||||
ClickEditorButton(OPTIONS_RESIZE_MAP_ON_LOADING);
|
||||
|
||||
if (gfVanillaMode)
|
||||
ClickEditorButton(OPTIONS_VANILLA_MODE);
|
||||
|
||||
SetupTextInputForOptions();
|
||||
break;
|
||||
}
|
||||
@@ -630,7 +635,7 @@ void RenderMapEntryPointsAndLights()
|
||||
GetGridNoScreenPos( sGridNo, 0, &sScreenX, &sScreenY );
|
||||
if( sScreenY >= (- 20) && sScreenY < (2 * iScreenHeightOffset + 340) && sScreenX >= (- 40) && sScreenX < SCREEN_WIDTH )
|
||||
{
|
||||
DisplayWrappedString( sScreenX, (INT16)(sScreenY-5), 40, 2, FONT10ARIAL, FONT_YELLOW, L"North Entry Point", FONT_BLACK, TRUE, CENTER_JUSTIFIED );
|
||||
DisplayWrappedString( sScreenX, (INT16)(sScreenY-5), 40, 2, FONT10ARIAL, FONT_YELLOW, iRenderMapEntryPointsAndLightsText[0], FONT_BLACK, TRUE, CENTER_JUSTIFIED );
|
||||
}
|
||||
}
|
||||
sGridNo = gMapInformation.sWestGridNo;
|
||||
@@ -639,7 +644,7 @@ void RenderMapEntryPointsAndLights()
|
||||
GetGridNoScreenPos( sGridNo, 0, &sScreenX, &sScreenY );
|
||||
if( sScreenY >= (- 20) && sScreenY < (2 * iScreenHeightOffset + 340) && sScreenX >= (- 40) && sScreenX < SCREEN_WIDTH )
|
||||
{
|
||||
DisplayWrappedString( sScreenX, (INT16)(sScreenY-5), 40, 2, FONT10ARIAL, FONT_YELLOW, L"West Entry Point", FONT_BLACK, TRUE, CENTER_JUSTIFIED );
|
||||
DisplayWrappedString( sScreenX, (INT16)(sScreenY-5), 40, 2, FONT10ARIAL, FONT_YELLOW, iRenderMapEntryPointsAndLightsText[1], FONT_BLACK, TRUE, CENTER_JUSTIFIED );
|
||||
}
|
||||
}
|
||||
sGridNo = gMapInformation.sEastGridNo;
|
||||
@@ -648,7 +653,7 @@ void RenderMapEntryPointsAndLights()
|
||||
GetGridNoScreenPos( sGridNo, 0, &sScreenX, &sScreenY );
|
||||
if( sScreenY >= (- 20) && sScreenY < (2 * iScreenHeightOffset + 340) && sScreenX >= (- 40) && sScreenX < SCREEN_WIDTH )
|
||||
{
|
||||
DisplayWrappedString( sScreenX, (INT16)(sScreenY-5), 40, 2, FONT10ARIAL, FONT_YELLOW, L"East Entry Point", FONT_BLACK, TRUE, CENTER_JUSTIFIED );
|
||||
DisplayWrappedString( sScreenX, (INT16)(sScreenY-5), 40, 2, FONT10ARIAL, FONT_YELLOW, iRenderMapEntryPointsAndLightsText[2], FONT_BLACK, TRUE, CENTER_JUSTIFIED );
|
||||
}
|
||||
}
|
||||
sGridNo = gMapInformation.sSouthGridNo;
|
||||
@@ -657,7 +662,7 @@ void RenderMapEntryPointsAndLights()
|
||||
GetGridNoScreenPos( sGridNo, 0, &sScreenX, &sScreenY );
|
||||
if( sScreenY >= ( - 20) && sScreenY < (2 * iScreenHeightOffset + 340) && sScreenX >= (- 40) && sScreenX < SCREEN_WIDTH )
|
||||
{
|
||||
DisplayWrappedString( sScreenX, (INT16)(sScreenY-5), 40, 2, FONT10ARIAL, FONT_YELLOW, L"South Entry Point", FONT_BLACK, TRUE, CENTER_JUSTIFIED );
|
||||
DisplayWrappedString( sScreenX, (INT16)(sScreenY-5), 40, 2, FONT10ARIAL, FONT_YELLOW, iRenderMapEntryPointsAndLightsText[3], FONT_BLACK, TRUE, CENTER_JUSTIFIED );
|
||||
}
|
||||
}
|
||||
sGridNo = gMapInformation.sCenterGridNo;
|
||||
@@ -666,7 +671,7 @@ void RenderMapEntryPointsAndLights()
|
||||
GetGridNoScreenPos( sGridNo, 0, &sScreenX, &sScreenY );
|
||||
if( sScreenY >= (- 20) && sScreenY < (2 * iScreenHeightOffset + 340) && sScreenX >= (- 40) && sScreenX < SCREEN_WIDTH )
|
||||
{
|
||||
DisplayWrappedString( sScreenX, (INT16)(sScreenY-5), 40, 2, FONT10ARIAL, FONT_YELLOW, L"Center Entry Point", FONT_BLACK, TRUE, CENTER_JUSTIFIED );
|
||||
DisplayWrappedString( sScreenX, (INT16)(sScreenY-5), 40, 2, FONT10ARIAL, FONT_YELLOW, iRenderMapEntryPointsAndLightsText[4], FONT_BLACK, TRUE, CENTER_JUSTIFIED );
|
||||
}
|
||||
}
|
||||
sGridNo = gMapInformation.sIsolatedGridNo;
|
||||
@@ -675,7 +680,7 @@ void RenderMapEntryPointsAndLights()
|
||||
GetGridNoScreenPos( sGridNo, 0, &sScreenX, &sScreenY );
|
||||
if( sScreenY >= (- 20) && sScreenY < (2 * iScreenHeightOffset + 340) && sScreenX >= (- 40) && sScreenX < SCREEN_WIDTH )
|
||||
{
|
||||
DisplayWrappedString( sScreenX, (INT16)(sScreenY-5), 40, 2, FONT10ARIAL, FONT_YELLOW, L"Isolated Entry Point", FONT_BLACK, TRUE, CENTER_JUSTIFIED );
|
||||
DisplayWrappedString( sScreenX, (INT16)(sScreenY-5), 40, 2, FONT10ARIAL, FONT_YELLOW, iRenderMapEntryPointsAndLightsText[5], FONT_BLACK, TRUE, CENTER_JUSTIFIED );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -697,11 +702,11 @@ void RenderMapEntryPointsAndLights()
|
||||
if( sScreenY >= (- 50) && sScreenY < (2 * iScreenHeightOffset + 300) && sScreenX >= (- 40) && sScreenX < SCREEN_WIDTH )
|
||||
{
|
||||
if( LightSprites[ i ].uiFlags & LIGHT_PRIMETIME )
|
||||
DisplayWrappedString( sScreenX, (INT16)(sScreenY-5), 50, 2, FONT10ARIAL, FONT_ORANGE, L"Prime", FONT_BLACK, TRUE, CENTER_JUSTIFIED );
|
||||
DisplayWrappedString( sScreenX, (INT16)(sScreenY-5), 50, 2, FONT10ARIAL, FONT_ORANGE, iRenderMapEntryPointsAndLightsText[6], FONT_BLACK, TRUE, CENTER_JUSTIFIED );
|
||||
else if( LightSprites[ i ].uiFlags & LIGHT_NIGHTTIME )
|
||||
DisplayWrappedString( sScreenX, (INT16)(sScreenY-5), 50, 2, FONT10ARIAL, FONT_RED, L"Night", FONT_BLACK, TRUE, CENTER_JUSTIFIED );
|
||||
DisplayWrappedString( sScreenX, (INT16)(sScreenY-5), 50, 2, FONT10ARIAL, FONT_RED, iRenderMapEntryPointsAndLightsText[7], FONT_BLACK, TRUE, CENTER_JUSTIFIED );
|
||||
else
|
||||
DisplayWrappedString( sScreenX, (INT16)(sScreenY-5), 50, 2, FONT10ARIAL, FONT_YELLOW, L"24Hour", FONT_BLACK, TRUE, CENTER_JUSTIFIED );
|
||||
DisplayWrappedString( sScreenX, (INT16)(sScreenY-5), 50, 2, FONT10ARIAL, FONT_YELLOW, iRenderMapEntryPointsAndLightsText[8], FONT_BLACK, TRUE, CENTER_JUSTIFIED );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -712,26 +717,26 @@ void BuildTriggerName( OBJECTTYPE *pItem, STR16 szItemName )
|
||||
if( pItem->usItem == SWITCH )
|
||||
{
|
||||
if( (*pItem)[0]->data.misc.bFrequency == PANIC_FREQUENCY )
|
||||
swprintf( szItemName, L"Panic Trigger1" );
|
||||
swprintf( szItemName, iBuildTriggerNameText[0] );
|
||||
else if( (*pItem)[0]->data.misc.bFrequency == PANIC_FREQUENCY_2 )
|
||||
swprintf( szItemName, L"Panic Trigger2" );
|
||||
swprintf( szItemName, iBuildTriggerNameText[1] );
|
||||
else if( (*pItem)[0]->data.misc.bFrequency == PANIC_FREQUENCY_3 )
|
||||
swprintf( szItemName, L"Panic Trigger3" );
|
||||
swprintf( szItemName, iBuildTriggerNameText[2] );
|
||||
else
|
||||
swprintf( szItemName, L"Trigger%d", (*pItem)[0]->data.misc.bFrequency - 50 );
|
||||
swprintf( szItemName, iBuildTriggerNameText[3], (*pItem)[0]->data.misc.bFrequency - 50 );
|
||||
}
|
||||
else
|
||||
{ //action item
|
||||
if( (*pItem)[0]->data.misc.bDetonatorType == BOMB_PRESSURE )
|
||||
swprintf( szItemName, L"Pressure Action" );
|
||||
swprintf( szItemName, iBuildTriggerNameText[4] );
|
||||
else if( (*pItem)[0]->data.misc.bFrequency == PANIC_FREQUENCY )
|
||||
swprintf( szItemName, L"Panic Action1" );
|
||||
swprintf( szItemName, iBuildTriggerNameText[5] );
|
||||
else if( (*pItem)[0]->data.misc.bFrequency == PANIC_FREQUENCY_2 )
|
||||
swprintf( szItemName, L"Panic Action2" );
|
||||
swprintf( szItemName, iBuildTriggerNameText[6] );
|
||||
else if( (*pItem)[0]->data.misc.bFrequency == PANIC_FREQUENCY_3 )
|
||||
swprintf( szItemName, L"Panic Action3" );
|
||||
swprintf( szItemName, iBuildTriggerNameText[7] );
|
||||
else
|
||||
swprintf( szItemName, L"Action%d", (*pItem)[0]->data.misc.bFrequency - 50 );
|
||||
swprintf( szItemName, iBuildTriggerNameText[8], (*pItem)[0]->data.misc.bFrequency - 50 );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -748,7 +753,7 @@ void RenderDoorLockInfo()
|
||||
if( DoorTable[ i ].ubLockID != 255 )
|
||||
swprintf( str, L"%S", LockTable[ DoorTable[ i ].ubLockID ].ubEditorName );
|
||||
else
|
||||
swprintf( str, L"No Lock ID" );
|
||||
swprintf( str, iRenderDoorLockInfoText[0] );
|
||||
xp = sScreenX - 10;
|
||||
yp = sScreenY - 40;
|
||||
DisplayWrappedString( xp, yp, 60, 2, FONT10ARIAL, FONT_LTKHAKI, str, FONT_BLACK, TRUE, CENTER_JUSTIFIED );
|
||||
@@ -760,30 +765,30 @@ void RenderDoorLockInfo()
|
||||
switch( DoorTable[ i ].ubTrapID )
|
||||
{
|
||||
case EXPLOSION:
|
||||
swprintf( str, L"Explosion Trap" );
|
||||
swprintf( str, iRenderDoorLockInfoText[1] );
|
||||
break;
|
||||
case ELECTRIC:
|
||||
swprintf( str, L"Electric Trap" );
|
||||
swprintf( str, iRenderDoorLockInfoText[2] );
|
||||
break;
|
||||
case SIREN:
|
||||
swprintf( str, L"Siren Trap" );
|
||||
swprintf( str, iRenderDoorLockInfoText[3] );
|
||||
break;
|
||||
case SILENT_ALARM:
|
||||
swprintf( str, L"Silent Alarm" );
|
||||
swprintf( str, iRenderDoorLockInfoText[4] );
|
||||
break;
|
||||
case SUPER_ELECTRIC:
|
||||
swprintf( str, L"Super Electric Trap" );
|
||||
swprintf( str, iRenderDoorLockInfoText[5] );
|
||||
break;
|
||||
// WANNE: Fix a vanilla glitch in the editor: The text for the brothel siren trap was missing.
|
||||
// Fixed by Tron (Stracciatella): Revision: 6253
|
||||
case BROTHEL_SIREN:
|
||||
swprintf( str, L"Brothel Siren Trap" );
|
||||
swprintf( str, iRenderDoorLockInfoText[6] );
|
||||
break;
|
||||
}
|
||||
xp = sScreenX + 20 - StringPixLength( str, FONT10ARIAL ) / 2;
|
||||
yp = sScreenY;
|
||||
mprintf( xp, yp, str );
|
||||
swprintf( str, L"Trap Level %d", DoorTable[ i ].ubTrapLevel );
|
||||
swprintf( str, iRenderDoorLockInfoText[7], DoorTable[ i ].ubTrapLevel );
|
||||
xp = sScreenX + 20 - StringPixLength( str, FONT10ARIAL ) / 2;
|
||||
mprintf( xp, yp+10, str );
|
||||
}
|
||||
@@ -906,12 +911,15 @@ void RenderEditorInfo( )
|
||||
switch( iCurrentTaskbar )
|
||||
{
|
||||
case TASK_OPTIONS:
|
||||
mprintf(iScreenWidthOffset+71+15, SCREEN_HEIGHT-117, L"Save map in original JA2 map format (Version: 5.00 / 25)");//dnl ch33 160909
|
||||
mprintf(iScreenWidthOffset+71+15, SCREEN_HEIGHT-117, iRenderEditorInfoText[0]);//dnl ch33 160909
|
||||
if( !gfWorldLoaded || giCurrentTilesetID < 0 )
|
||||
mprintf( iScreenWidthOffset + 260, 2 * iScreenHeightOffset + 445, L"No map currently loaded." );
|
||||
mprintf( iScreenWidthOffset + 260, 2 * iScreenHeightOffset + 445, iRenderEditorInfoText[1] );
|
||||
else
|
||||
mprintf( iScreenWidthOffset + 260, 2 * iScreenHeightOffset + 445, L"File: %S, Current Tileset: %s",
|
||||
gubFilename, gTilesets[ giCurrentTilesetID ].zName );
|
||||
mprintf( iScreenWidthOffset + 260, 2 * iScreenHeightOffset + 445, iRenderEditorInfoText[2], gubFilename, gTilesets[ giCurrentTilesetID ].zName );
|
||||
|
||||
// TODO.MAP
|
||||
mprintf(iScreenWidthOffset+20, SCREEN_HEIGHT-40, iRenderEditorInfoText[3]);
|
||||
|
||||
UpdateOptions();
|
||||
break;
|
||||
case TASK_TERRAIN:
|
||||
|
||||
+12
-11
@@ -27,6 +27,7 @@
|
||||
#include "environment.h"
|
||||
#include "selectwin.h"
|
||||
#include "Simple Render Utils.h"
|
||||
#include "Text.h"
|
||||
#endif
|
||||
|
||||
BOOLEAN fBuildingShowRoofs, fBuildingShowWalls, fBuildingShowRoomInfo;
|
||||
@@ -82,16 +83,16 @@ void UpdateBuildingsInfo()
|
||||
//print the headers on top of the columns
|
||||
SetFont( SMALLCOMPFONT );
|
||||
SetFontForeground( FONT_RED );
|
||||
mprintfEditor( iScreenWidthOffset + 112, 2 * iScreenHeightOffset + 362, L"TOGGLE");
|
||||
mprintfEditor( iScreenWidthOffset + 114, 2 * iScreenHeightOffset + 372, L"VIEWS");
|
||||
mprintfEditor( iScreenWidthOffset + 112, 2 * iScreenHeightOffset + 362, iUpdateBuildingsInfoText[0]);
|
||||
mprintfEditor( iScreenWidthOffset + 114, 2 * iScreenHeightOffset + 372, iUpdateBuildingsInfoText[1]);
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
mprintfEditor( iScreenWidthOffset + 185, 2 * iScreenHeightOffset + 362, L"SELECTION METHOD");
|
||||
mprintfEditor( iScreenWidthOffset + 185, 2 * iScreenHeightOffset + 362, iUpdateBuildingsInfoText[2]);
|
||||
SetFontForeground( FONT_LTGREEN );
|
||||
mprintfEditor( iScreenWidthOffset + 290, 2 * iScreenHeightOffset + 362, L"SMART METHOD");
|
||||
mprintfEditor( iScreenWidthOffset + 290, 2 * iScreenHeightOffset + 362, iUpdateBuildingsInfoText[3]);
|
||||
SetFontForeground( FONT_LTBLUE );
|
||||
mprintfEditor( iScreenWidthOffset + 390, 2 * iScreenHeightOffset + 362, L"BUILDING METHOD");
|
||||
mprintfEditor( iScreenWidthOffset + 390, 2 * iScreenHeightOffset + 362, iUpdateBuildingsInfoText[4]);
|
||||
SetFontForeground( FONT_GRAY2 );
|
||||
mprintfEditor( iScreenWidthOffset + 437, 2 * iScreenHeightOffset + 404, L"Room#" );
|
||||
mprintfEditor( iScreenWidthOffset + 437, 2 * iScreenHeightOffset + 404, iUpdateBuildingsInfoText[5] );
|
||||
}
|
||||
|
||||
//Uses a recursive method to elimate adjacent tiles of structure information.
|
||||
@@ -653,13 +654,13 @@ void RenderDoorEditingWindow()
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
SetFontShadow( FONT_NEARBLACK );
|
||||
SetFontBackground( 0 );
|
||||
mprintf( iScreenWidthOffset + 210, iScreenHeightOffset + 140, L"Editing lock attributes at map index %d.", iDoorMapIndex );
|
||||
mprintf( iScreenWidthOffset + 210, iScreenHeightOffset + 140, iRenderDoorEditingWindowText[0], iDoorMapIndex );
|
||||
|
||||
SetFontForeground( FONT_GRAY2 );
|
||||
mprintf( iScreenWidthOffset + 238, iScreenHeightOffset + 160, L"Lock ID" );
|
||||
mprintf( iScreenWidthOffset + 238, iScreenHeightOffset + 180, L"Trap Type" );
|
||||
mprintf( iScreenWidthOffset + 238, iScreenHeightOffset + 200, L"Trap Level" );
|
||||
mprintf( iScreenWidthOffset + 238, iScreenHeightOffset + 218, L"Locked" );
|
||||
mprintf( iScreenWidthOffset + 238, iScreenHeightOffset + 160, iRenderDoorEditingWindowText[1] );
|
||||
mprintf( iScreenWidthOffset + 238, iScreenHeightOffset + 180, iRenderDoorEditingWindowText[2] );
|
||||
mprintf( iScreenWidthOffset + 238, iScreenHeightOffset + 200, iRenderDoorEditingWindowText[3] );
|
||||
mprintf( iScreenWidthOffset + 238, iScreenHeightOffset + 218, iRenderDoorEditingWindowText[4] );
|
||||
}
|
||||
|
||||
void KillDoorEditing()
|
||||
|
||||
+14
-14
@@ -497,35 +497,35 @@ void InitEditorItemsInfo(UINT32 uiItemType)
|
||||
{
|
||||
if( i == PRESSURE_ACTION_ID )
|
||||
{
|
||||
swprintf( pStr, L"Pressure Action" );
|
||||
swprintf( pStr, pInitEditorItemsInfoText[0] );
|
||||
}
|
||||
else if( i < 2 )
|
||||
{
|
||||
if( usCounter == SWITCH )
|
||||
swprintf( pStr, L"Panic Trigger1" );
|
||||
swprintf( pStr, pInitEditorItemsInfoText[5] );
|
||||
else
|
||||
swprintf( pStr, L"Panic Action1" );
|
||||
swprintf( pStr, pInitEditorItemsInfoText[1] );
|
||||
}
|
||||
else if( i < 4 )
|
||||
{
|
||||
if( usCounter == SWITCH )
|
||||
swprintf( pStr, L"Panic Trigger2" );
|
||||
swprintf( pStr, pInitEditorItemsInfoText[6] );
|
||||
else
|
||||
swprintf( pStr, L"Panic Action2" );
|
||||
swprintf( pStr, pInitEditorItemsInfoText[2] );
|
||||
}
|
||||
else if( i < 6 )
|
||||
{
|
||||
if( usCounter == SWITCH )
|
||||
swprintf( pStr, L"Panic Trigger3" );
|
||||
swprintf( pStr, pInitEditorItemsInfoText[7] );
|
||||
else
|
||||
swprintf( pStr, L"Panic Action3" );
|
||||
swprintf( pStr, pInitEditorItemsInfoText[3] );
|
||||
}
|
||||
else
|
||||
{
|
||||
if( usCounter == SWITCH )
|
||||
swprintf( pStr, L"Trigger%d", (i-4)/2 );
|
||||
swprintf( pStr, pInitEditorItemsInfoText[8], (i-4)/2 );
|
||||
else
|
||||
swprintf( pStr, L"Action%d", (i-4)/2 );
|
||||
swprintf( pStr, pInitEditorItemsInfoText[4], (i-4)/2 );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1669,11 +1669,11 @@ void DisplayItemStatistics()
|
||||
LoadItemInfo( usItemIndex, pItemName, NULL );
|
||||
|
||||
mprintf( iScreenWidthOffset + 50 - StringPixLength( pItemName , SMALLCOMPFONT )/2, 2 * iScreenHeightOffset + 403, pItemName );
|
||||
mprintf( iScreenWidthOffset + 2, 2 * iScreenHeightOffset + 410, L"Status Info Line 1");
|
||||
mprintf( iScreenWidthOffset + 2, 2 * iScreenHeightOffset + 420, L"Status Info Line 2");
|
||||
mprintf( iScreenWidthOffset + 2, 2 * iScreenHeightOffset + 430, L"Status Info Line 3");
|
||||
mprintf( iScreenWidthOffset + 2, 2 * iScreenHeightOffset + 440, L"Status Info Line 4");
|
||||
mprintf( iScreenWidthOffset + 2, 2 * iScreenHeightOffset + 450, L"Status Info Line 5");
|
||||
mprintf( iScreenWidthOffset + 2, 2 * iScreenHeightOffset + 410, pDisplayItemStatisticsTex[0]);
|
||||
mprintf( iScreenWidthOffset + 2, 2 * iScreenHeightOffset + 420, pDisplayItemStatisticsTex[1]);
|
||||
mprintf( iScreenWidthOffset + 2, 2 * iScreenHeightOffset + 430, pDisplayItemStatisticsTex[2]);
|
||||
mprintf( iScreenWidthOffset + 2, 2 * iScreenHeightOffset + 440, pDisplayItemStatisticsTex[3]);
|
||||
mprintf( iScreenWidthOffset + 2, 2 * iScreenHeightOffset + 450, pDisplayItemStatisticsTex[4]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
+30
-24
@@ -56,6 +56,7 @@
|
||||
#include "EditorMapInfo.h"
|
||||
#include "environment.h"
|
||||
#include "Simple Render Utils.h"
|
||||
#include "Text.h"
|
||||
#endif
|
||||
|
||||
//forward declarations of common classes to eliminate includes
|
||||
@@ -85,6 +86,11 @@ void SetupTextInputForOptions(void)//dnl ch52 091009
|
||||
|
||||
void UpdateOptions()
|
||||
{
|
||||
if (gfResizeMapOnLoading)
|
||||
EnableTextField(1);
|
||||
else
|
||||
DisableTextField(1);
|
||||
|
||||
SetFont( FONT10ARIAL );
|
||||
SetFontShadow( FONT_NEARBLACK );
|
||||
|
||||
@@ -98,11 +104,11 @@ void UpdateOptions()
|
||||
|
||||
void ExtractAndUpdateOptions(void)//dnl ch52 091009
|
||||
{
|
||||
iNewMapWorldRows = max(min(GetNumericStrictValueFromField(1), 9600), OLD_WORLD_ROWS);
|
||||
iNewMapWorldRows = max(min(GetNumericStrictValueFromField(1), WORLD_ROWS_MAX), OLD_WORLD_ROWS);
|
||||
iNewMapWorldRows /= 4;
|
||||
iNewMapWorldRows *= 4;
|
||||
iNewMapWorldCols = iNewMapWorldRows;
|
||||
//iNewMapWorldCols = max(min(GetNumericStrictValueFromField(2), 9600), OLD_WORLD_COLS);
|
||||
//iNewMapWorldCols = max(min(GetNumericStrictValueFromField(2), WORLD_COLS_MAX), OLD_WORLD_COLS);
|
||||
//iNewMapWorldCols /= 4;
|
||||
//iNewMapWorldCols *= 4;
|
||||
}
|
||||
@@ -141,7 +147,7 @@ void SetupTextInputForMapInfo()
|
||||
swprintf( str, L"%d", gExitGrid.ubGotoSectorZ );
|
||||
AddTextInputField( iScreenWidthOffset + 338, 2 * iScreenHeightOffset + 383, 30, 18, MSYS_PRIORITY_NORMAL, str, 1, INPUTTYPE_NUMERICSTRICT );
|
||||
swprintf( str, L"%d", gExitGrid.usGridNo );
|
||||
AddTextInputField( iScreenWidthOffset + 338, 2 * iScreenHeightOffset + 403, 45, 18, MSYS_PRIORITY_NORMAL, str, 6, INPUTTYPE_NUMERICSTRICT );
|
||||
AddTextInputField( iScreenWidthOffset + 338, 2 * iScreenHeightOffset + 403, 50, 18, MSYS_PRIORITY_NORMAL, str, 7, INPUTTYPE_NUMERICSTRICT );
|
||||
}
|
||||
|
||||
void UpdateMapInfo()
|
||||
@@ -150,41 +156,41 @@ void UpdateMapInfo()
|
||||
SetFontShadow( FONT_NEARBLACK );
|
||||
|
||||
SetFontForeground( FONT_RED );
|
||||
mprintf( iScreenWidthOffset + 38, 2 * iScreenHeightOffset + 399, L"R");
|
||||
mprintf( iScreenWidthOffset + 38, 2 * iScreenHeightOffset + 399, pUpdateMapInfoText[0]);
|
||||
SetFontForeground( FONT_GREEN );
|
||||
mprintf( iScreenWidthOffset + 38, 2 * iScreenHeightOffset + 419, L"G");
|
||||
mprintf( iScreenWidthOffset + 38, 2 * iScreenHeightOffset + 419, pUpdateMapInfoText[1]);
|
||||
SetFontForeground( FONT_DKBLUE );
|
||||
mprintf( iScreenWidthOffset + 38, 2 * iScreenHeightOffset + 439, L"B");
|
||||
mprintf( iScreenWidthOffset + 38, 2 * iScreenHeightOffset + 439, pUpdateMapInfoText[2]);
|
||||
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
mprintf( iScreenWidthOffset + 65, 2 * iScreenHeightOffset + 369, L"Prime" );
|
||||
mprintf( iScreenWidthOffset + 65, 2 * iScreenHeightOffset + 382, L"Night" );
|
||||
mprintf( iScreenWidthOffset + 65, 2 * iScreenHeightOffset + 397, L"24Hrs" );
|
||||
mprintf( iScreenWidthOffset + 65, 2 * iScreenHeightOffset + 369, pUpdateMapInfoText[3] );
|
||||
mprintf( iScreenWidthOffset + 65, 2 * iScreenHeightOffset + 382, pUpdateMapInfoText[4] );
|
||||
mprintf( iScreenWidthOffset + 65, 2 * iScreenHeightOffset + 397, pUpdateMapInfoText[5] );
|
||||
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
mprintf( iScreenWidthOffset + 148, 2 * iScreenHeightOffset + 399, L"Radius");
|
||||
mprintf( iScreenWidthOffset + 148, 2 * iScreenHeightOffset + 399, pUpdateMapInfoText[6] );
|
||||
|
||||
if( !gfBasement && !gfCaves )
|
||||
SetFontForeground( FONT_DKYELLOW );
|
||||
mprintf( iScreenWidthOffset + 148, 2 * iScreenHeightOffset + 414, L"Underground" );
|
||||
mprintf( iScreenWidthOffset + 148, 2 * iScreenHeightOffset + 423, L"Light Level" );
|
||||
mprintf( iScreenWidthOffset + 148, 2 * iScreenHeightOffset + 414, pUpdateMapInfoText[7] );
|
||||
mprintf( iScreenWidthOffset + 148, 2 * iScreenHeightOffset + 423, pUpdateMapInfoText[8] );
|
||||
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
mprintf( iScreenWidthOffset + 230, 2 * iScreenHeightOffset + 369, L"Outdoors" );
|
||||
mprintf( iScreenWidthOffset + 230, 2 * iScreenHeightOffset + 384, L"Basement" );
|
||||
mprintf( iScreenWidthOffset + 230, 2 * iScreenHeightOffset + 399, L"Caves" );
|
||||
mprintf( iScreenWidthOffset + 230, 2 * iScreenHeightOffset + 369, pUpdateMapInfoText[9] );
|
||||
mprintf( iScreenWidthOffset + 230, 2 * iScreenHeightOffset + 384, pUpdateMapInfoText[10] );
|
||||
mprintf( iScreenWidthOffset + 230, 2 * iScreenHeightOffset + 399, pUpdateMapInfoText[11] );
|
||||
|
||||
SetFontForeground( FONT_ORANGE );
|
||||
mprintf( iScreenWidthOffset + 250, 2 * iScreenHeightOffset + 420, L"Restricted" );
|
||||
mprintf( iScreenWidthOffset + 250, 2 * iScreenHeightOffset + 430, L"Scroll ID" );
|
||||
mprintf( iScreenWidthOffset + 250, 2 * iScreenHeightOffset + 420, pUpdateMapInfoText[12] );
|
||||
mprintf( iScreenWidthOffset + 250, 2 * iScreenHeightOffset + 430, pUpdateMapInfoText[13] );
|
||||
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
mprintf( iScreenWidthOffset + 368, 2 * iScreenHeightOffset + 363, L"Destination");
|
||||
mprintf( iScreenWidthOffset + 368, 2 * iScreenHeightOffset + 372, L"Sector" );
|
||||
mprintf( iScreenWidthOffset + 368, 2 * iScreenHeightOffset + 383, L"Destination");
|
||||
mprintf( iScreenWidthOffset + 368, 2 * iScreenHeightOffset + 392, L"Bsmt. Level" );
|
||||
mprintf( iScreenWidthOffset + 383, 2 * iScreenHeightOffset + 403, L"Dest." );
|
||||
mprintf( iScreenWidthOffset + 383, 2 * iScreenHeightOffset + 412, L"GridNo" );
|
||||
mprintf( iScreenWidthOffset + 368, 2 * iScreenHeightOffset + 363, pUpdateMapInfoText[14] );
|
||||
mprintf( iScreenWidthOffset + 368, 2 * iScreenHeightOffset + 372, pUpdateMapInfoText[15] );
|
||||
mprintf( iScreenWidthOffset + 368, 2 * iScreenHeightOffset + 383, pUpdateMapInfoText[16] );
|
||||
mprintf( iScreenWidthOffset + 368, 2 * iScreenHeightOffset + 392, pUpdateMapInfoText[17] );
|
||||
mprintf( iScreenWidthOffset + 388, 2 * iScreenHeightOffset + 403, pUpdateMapInfoText[18] );
|
||||
mprintf( iScreenWidthOffset + 388, 2 * iScreenHeightOffset + 412, pUpdateMapInfoText[19] );
|
||||
SetFontForeground( FONT_RED );
|
||||
}
|
||||
|
||||
@@ -280,7 +286,7 @@ void ExtractAndUpdateMapInfo()
|
||||
gExitGrid.ubGotoSectorY = (UINT8)max( min( gExitGrid.ubGotoSectorY, 16 ), 1 );
|
||||
}
|
||||
gExitGrid.ubGotoSectorZ = (UINT8)max( min( GetNumericStrictValueFromField( 8 ), 3 ), 0 );
|
||||
gExitGrid.usGridNo = max( min( GetNumericStrictValueFromField( 9 ), 25600 ), 0 );
|
||||
gExitGrid.usGridNo = max( min( GetNumericStrictValueFromField( 9 ), (WORLD_COLS_MAX * WORLD_ROWS_MAX) ), 0 );
|
||||
|
||||
UpdateMapInfoFields();
|
||||
}
|
||||
|
||||
+126
-121
@@ -120,6 +120,7 @@ CHAR16 gszCivGroupNames[ NUM_CIV_GROUPS ][ 20 ] =
|
||||
// SCHEDULE_ACTION_ENTERSECTOR,
|
||||
// SCHEDULE_ACTION_STAYINSECTOR,
|
||||
// SCHEDULE_ACTION_SLEEP,
|
||||
/*
|
||||
CHAR16 gszScheduleActions[ NUM_SCHEDULE_ACTIONS ][20] =
|
||||
{
|
||||
L"No action",
|
||||
@@ -134,7 +135,7 @@ CHAR16 gszScheduleActions[ NUM_SCHEDULE_ACTIONS ][20] =
|
||||
L"Sleep",
|
||||
L"Ignore this!"
|
||||
};
|
||||
|
||||
*/
|
||||
|
||||
enum
|
||||
{
|
||||
@@ -272,16 +273,17 @@ BOOLEAN gfShowCivilians = TRUE;
|
||||
|
||||
INT16 sCurBaseDiff = DEFAULT_DIFF;
|
||||
BOOLEAN fAskForBaseDifficulty = TRUE;
|
||||
STR16 zDiffNames[NUM_DIFF_LVLS] = { L"Wimp", L"Easy", L"Average", L"Tough", L"Steroid Users Only" };
|
||||
//STR16 zDiffNames[NUM_DIFF_LVLS] = { L"Wimp", L"Easy", L"Average", L"Tough", L"Steroid Users Only" };
|
||||
INT16 sBaseStat[NUM_DIFF_LVLS] = { 50, 60, 70, 80, 90 };
|
||||
INT16 sBaseExpLvl[NUM_DIFF_LVLS] = { 1, 3, 5, 7, 9 };
|
||||
|
||||
/*
|
||||
STR16 EditMercStat[12] = { L"Max Health",L"Cur Health",L"Strength",
|
||||
L"Agility",L"Dexterity",L"Charisma",
|
||||
L"Wisdom",L"Marksmanship",L"Explosives",
|
||||
L"Medical",L"Scientific",L"Exp Level" };
|
||||
|
||||
*/
|
||||
#define NUM_MERC_ORDERS 8
|
||||
/*
|
||||
STR16 EditMercOrders[8] = { L"Stationary",L"On Guard",L"Close Patrol",
|
||||
L"Far Patrol",L"Point Patrol",L"On Call",
|
||||
L"Seek Enemy", L"Random Point Patrol"};
|
||||
@@ -289,7 +291,7 @@ STR16 EditMercOrders[8] = { L"Stationary",L"On Guard",L"Close Patrol",
|
||||
STR16 EditMercAttitudes[6] = { L"Defensive",L"Brave Loner",L"Brave Buddy",
|
||||
L"Cunning Loner",L"Cunning Buddy",
|
||||
L"Aggressive" };
|
||||
|
||||
*/
|
||||
//information for bodytypes.
|
||||
#ifdef RANDOM
|
||||
#undef RANDOM
|
||||
@@ -835,7 +837,7 @@ void DisplayEditMercWindow( void )
|
||||
SetFont( FONT12POINT1 );
|
||||
|
||||
// Name window
|
||||
gprintf( iXPos + 128, iYPos + 3, L"Merc Name:" );
|
||||
gprintf( iXPos + 128, iYPos + 3, pDisplayEditMercWindowText[0] );
|
||||
ColorFillVideoSurfaceArea(FRAME_BUFFER, iXPos + 128, iYPos + 16, iXPos + 128 + 104, iYPos + 16 + 19, usFillColorDark );
|
||||
ColorFillVideoSurfaceArea(FRAME_BUFFER, iXPos + 129, iYPos + 17, iXPos + 128 + 104, iYPos + 17 + 19, usFillColorLight );
|
||||
ColorFillVideoSurfaceArea(FRAME_BUFFER, iXPos + 129, iYPos + 17, iXPos + 128 + 103, iYPos + 17 + 18, usFillColorTextBk );
|
||||
@@ -843,7 +845,7 @@ void DisplayEditMercWindow( void )
|
||||
gprintf( iXPos + 130 + iXOff, iYPos + 20, L"%s", pSoldier->name );
|
||||
|
||||
// Orders window
|
||||
gprintf( iXPos + 128, iYPos + 38, L"Orders:" );
|
||||
gprintf( iXPos + 128, iYPos + 38, pDisplayEditMercWindowText[1] );
|
||||
ColorFillVideoSurfaceArea(FRAME_BUFFER, iXPos + 128, iYPos + 51, iXPos + 128 + 104, iYPos + 51 + 19, usFillColorDark );
|
||||
ColorFillVideoSurfaceArea(FRAME_BUFFER, iXPos + 129, iYPos + 52, iXPos + 128 + 104, iYPos + 52 + 19, usFillColorLight );
|
||||
ColorFillVideoSurfaceArea(FRAME_BUFFER, iXPos + 129, iYPos + 52, iXPos + 128 + 103, iYPos + 52 + 18, usFillColorTextBk );
|
||||
@@ -851,7 +853,7 @@ void DisplayEditMercWindow( void )
|
||||
gprintf( iXPos + 130 + iXOff, iYPos + 55, L"%s", EditMercOrders[pSoldier->aiData.bOrders] );
|
||||
|
||||
// Combat window
|
||||
gprintf( iXPos + 128, iYPos + 73, L"Combat Attitude:" );
|
||||
gprintf( iXPos + 128, iYPos + 73, pDisplayEditMercWindowText[2] );
|
||||
ColorFillVideoSurfaceArea(FRAME_BUFFER, iXPos + 128, iYPos + 86, iXPos + 128 + 104, iYPos + 86 + 19, usFillColorDark );
|
||||
ColorFillVideoSurfaceArea(FRAME_BUFFER, iXPos + 129, iYPos + 87, iXPos + 128 + 104, iYPos + 87 + 19, usFillColorLight );
|
||||
ColorFillVideoSurfaceArea(FRAME_BUFFER, iXPos + 129, iYPos + 87, iXPos + 128 + 103, iYPos + 87 + 18, usFillColorTextBk );
|
||||
@@ -1397,9 +1399,9 @@ void CreateEditMercWindow( void )
|
||||
|
||||
iEditMercBkgrndArea = CreateHotSpot((INT16)iXPos, (INT16)iYPos, (INT16)iWidth, (INT16)iHeight, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, EditMercBkgrndCallback );
|
||||
|
||||
iEditMercColorPage = CreateTextButton( L"Merc Colors", (INT16)FONT12POINT1, FONT_BLACK, FONT_BLACK,
|
||||
iEditMercColorPage = CreateTextButton( pCreateEditMercWindowText[0], (INT16)FONT12POINT1, FONT_BLACK, FONT_BLACK,
|
||||
BUTTON_USE_DEFAULT, (INT16)(iXPos + 183), (INT16)(iYPos + 315), 80, 20, BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL + 1, DEFAULT_MOVE_CALLBACK, EditMercChangeToColorPageCallback );
|
||||
iEditMercEnd = CreateTextButton( L"Done", (INT16)FONT12POINT1, FONT_MCOLOR_BLACK, FONT_BLACK,
|
||||
iEditMercEnd = CreateTextButton( pCreateEditMercWindowText[1], (INT16)FONT12POINT1, FONT_MCOLOR_BLACK, FONT_BLACK,
|
||||
BUTTON_USE_DEFAULT, (INT16)(iXPos + 183), (INT16)(iYPos + 337), 80, 20, BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL + 1, DEFAULT_MOVE_CALLBACK, EditMercDoneEditCallback );
|
||||
|
||||
// Disable color editing for PC Mercs
|
||||
@@ -1408,13 +1410,13 @@ void CreateEditMercWindow( void )
|
||||
|
||||
iEditorButton[8] = QuickCreateButton( giEditMercImage[0], (INT16)(iXPos + 98), (INT16)(iYPos + 51), BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL + 1, DEFAULT_MOVE_CALLBACK, EditMercPrevOrderCallback );
|
||||
iEditorButton[9] = QuickCreateButton( giEditMercImage[1], (INT16)(iXPos + 233), (INT16)(iYPos + 51), BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL + 1, DEFAULT_MOVE_CALLBACK, EditMercNextOrderCallback );
|
||||
SetButtonFastHelpText( iEditorButton[8], L"Previous merc standing orders" );
|
||||
SetButtonFastHelpText( iEditorButton[9], L"Next merc standing orders" );
|
||||
SetButtonFastHelpText( iEditorButton[8], pCreateEditMercWindowText[2] );
|
||||
SetButtonFastHelpText( iEditorButton[9], pCreateEditMercWindowText[3] );
|
||||
|
||||
iEditorButton[10] = QuickCreateButton( giEditMercImage[0], (INT16)(iXPos + 98), (INT16)(iYPos + 86), BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL + 1, DEFAULT_MOVE_CALLBACK, EditMercPrevAttCallback );
|
||||
iEditorButton[11] = QuickCreateButton( giEditMercImage[1], (INT16)(iXPos + 233), (INT16)(iYPos + 86), BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL + 1, DEFAULT_MOVE_CALLBACK, EditMercNextAttCallback );
|
||||
SetButtonFastHelpText( iEditorButton[10], L"Previous merc combat attitude" );
|
||||
SetButtonFastHelpText( iEditorButton[11], L"Next merc combat attitude" );
|
||||
SetButtonFastHelpText( iEditorButton[10], pCreateEditMercWindowText[4] );
|
||||
SetButtonFastHelpText( iEditorButton[11], pCreateEditMercWindowText[5] );
|
||||
|
||||
iEditorButton[12] = QuickCreateButton( giEditMercImage[0], (INT16)(iXPos + 86), (INT16)(iYPos + 110), BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL + 1, DEFAULT_MOVE_CALLBACK, EditMercStatDwnCallback );
|
||||
iEditorButton[13] = QuickCreateButton( giEditMercImage[1], (INT16)(iXPos + 146), (INT16)(iYPos + 110), BUTTON_NO_TOGGLE, MSYS_PRIORITY_NORMAL + 1, DEFAULT_MOVE_CALLBACK, EditMercStatUpCallback );
|
||||
@@ -1454,8 +1456,8 @@ void CreateEditMercWindow( void )
|
||||
|
||||
for ( x = 12; x < 36; x += 2 )
|
||||
{
|
||||
SetButtonFastHelpText( iEditorButton[x], L"Decrease merc stat" );
|
||||
SetButtonFastHelpText( iEditorButton[x + 1], L"Increase merc stat" );
|
||||
SetButtonFastHelpText( iEditorButton[x], pCreateEditMercWindowText[6] );
|
||||
SetButtonFastHelpText( iEditorButton[x + 1], pCreateEditMercWindowText[7] );
|
||||
}
|
||||
}
|
||||
void SetMercOrders( INT8 bOrders )
|
||||
@@ -2409,34 +2411,34 @@ void DisplayBodyTypeInfo()
|
||||
CHAR16 str[20];
|
||||
switch( gpSelected->pBasicPlacement->bBodyType )
|
||||
{
|
||||
case RANDOM: swprintf( str, L"Random" ); break;
|
||||
case REGMALE: swprintf( str, L"Reg Male" ); break;
|
||||
case BIGMALE: swprintf( str, L"Big Male" ); break;
|
||||
case STOCKYMALE: swprintf( str, L"Stocky Male" ); break;
|
||||
case REGFEMALE: swprintf( str, L"Reg Female" ); break;
|
||||
case TANK_NE: swprintf( str, L"NE Tank" ); break;
|
||||
case TANK_NW: swprintf( str, L"NW Tank" ); break;
|
||||
case FATCIV: swprintf( str, L"Fat Civilian" ); break;
|
||||
case MANCIV: swprintf( str, L"M Civilian" ); break;
|
||||
case MINICIV: swprintf( str, L"Miniskirt" ); break;
|
||||
case DRESSCIV: swprintf( str, L"F Civilian" ); break;
|
||||
case HATKIDCIV: swprintf( str, L"Kid w/ Hat" ); break;
|
||||
case HUMVEE: swprintf( str, L"Humvee" ); break;
|
||||
case ELDORADO: swprintf( str, L"Eldorado" ); break;
|
||||
case ICECREAMTRUCK: swprintf( str, L"Icecream Truck" ); break;
|
||||
case JEEP: swprintf( str, L"Jeep" ); break;
|
||||
case KIDCIV: swprintf( str, L"Kid Civilian" ); break;
|
||||
case COW: swprintf( str, L"Domestic Cow" ); break;
|
||||
case CRIPPLECIV: swprintf( str, L"Cripple" ); break;
|
||||
case ROBOTNOWEAPON: swprintf( str, L"Unarmed Robot" ); break;
|
||||
case LARVAE_MONSTER: swprintf( str, L"Larvae" ); break;
|
||||
case INFANT_MONSTER: swprintf( str, L"Infant" ); break;
|
||||
case YAF_MONSTER: swprintf( str, L"Yng F Monster" ); break;
|
||||
case YAM_MONSTER: swprintf( str, L"Yng M Monster" ); break;
|
||||
case ADULTFEMALEMONSTER: swprintf( str, L"Adt F Monster" ); break;
|
||||
case AM_MONSTER: swprintf( str, L"Adt M Monster" ); break;
|
||||
case QUEENMONSTER: swprintf( str, L"Queen Monster" ); break;
|
||||
case BLOODCAT: swprintf( str, L"Bloodcat" ); break;
|
||||
case RANDOM: swprintf( str, pDisplayBodyTypeInfoText[0] ); break;
|
||||
case REGMALE: swprintf( str, pDisplayBodyTypeInfoText[1] ); break;
|
||||
case BIGMALE: swprintf( str, pDisplayBodyTypeInfoText[2] ); break;
|
||||
case STOCKYMALE: swprintf( str, pDisplayBodyTypeInfoText[3] ); break;
|
||||
case REGFEMALE: swprintf( str, pDisplayBodyTypeInfoText[4] ); break;
|
||||
case TANK_NE: swprintf( str, pDisplayBodyTypeInfoText[5] ); break;
|
||||
case TANK_NW: swprintf( str, pDisplayBodyTypeInfoText[6] ); break;
|
||||
case FATCIV: swprintf( str, pDisplayBodyTypeInfoText[7] ); break;
|
||||
case MANCIV: swprintf( str, pDisplayBodyTypeInfoText[8] ); break;
|
||||
case MINICIV: swprintf( str, pDisplayBodyTypeInfoText[9] ); break;
|
||||
case DRESSCIV: swprintf( str, pDisplayBodyTypeInfoText[10] ); break;
|
||||
case HATKIDCIV: swprintf( str, pDisplayBodyTypeInfoText[11] ); break;
|
||||
case HUMVEE: swprintf( str, pDisplayBodyTypeInfoText[12] ); break;
|
||||
case ELDORADO: swprintf( str, pDisplayBodyTypeInfoText[13] ); break;
|
||||
case ICECREAMTRUCK: swprintf( str, pDisplayBodyTypeInfoText[14] ); break;
|
||||
case JEEP: swprintf( str, pDisplayBodyTypeInfoText[15] ); break;
|
||||
case KIDCIV: swprintf( str, pDisplayBodyTypeInfoText[16] ); break;
|
||||
case COW: swprintf( str, pDisplayBodyTypeInfoText[17] ); break;
|
||||
case CRIPPLECIV: swprintf( str, pDisplayBodyTypeInfoText[18] ); break;
|
||||
case ROBOTNOWEAPON: swprintf( str, pDisplayBodyTypeInfoText[19] ); break;
|
||||
case LARVAE_MONSTER: swprintf( str, pDisplayBodyTypeInfoText[20] ); break;
|
||||
case INFANT_MONSTER: swprintf( str, pDisplayBodyTypeInfoText[21] ); break;
|
||||
case YAF_MONSTER: swprintf( str, pDisplayBodyTypeInfoText[22] ); break;
|
||||
case YAM_MONSTER: swprintf( str, pDisplayBodyTypeInfoText[23] ); break;
|
||||
case ADULTFEMALEMONSTER: swprintf( str, pDisplayBodyTypeInfoText[24] ); break;
|
||||
case AM_MONSTER: swprintf( str, pDisplayBodyTypeInfoText[25] ); break;
|
||||
case QUEENMONSTER: swprintf( str, pDisplayBodyTypeInfoText[26] ); break;
|
||||
case BLOODCAT: swprintf( str, pDisplayBodyTypeInfoText[27] ); break;
|
||||
}
|
||||
DrawEditorInfoBox( str, FONT10ARIAL, iScreenWidthOffset + 490, 2 * iScreenHeightOffset + 364, 70, 20 );
|
||||
}
|
||||
@@ -2468,51 +2470,51 @@ void UpdateMercsInfo()
|
||||
SetFont( SMALLCOMPFONT );
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
SetFontShadow( FONT_NEARBLACK );
|
||||
mprintf( iScreenWidthOffset + 240, 2 * iScreenHeightOffset + 363, L" --=ORDERS=-- ");
|
||||
mprintf( iScreenWidthOffset + 240, 2 * iScreenHeightOffset + 419, L"--=ATTITUDE=--");
|
||||
mprintf( iScreenWidthOffset + 240, 2 * iScreenHeightOffset + 363, pUpdateMercsInfoText[0] );
|
||||
mprintf( iScreenWidthOffset + 240, 2 * iScreenHeightOffset + 419, pUpdateMercsInfoText[1] );
|
||||
if( iDrawMode == DRAW_MODE_CREATURE )
|
||||
{
|
||||
DisplayBodyTypeInfo();
|
||||
SetFont( SMALLCOMPFONT );
|
||||
SetFontForeground( FONT_LTBLUE );
|
||||
mprintf( iScreenWidthOffset + 493, 2 * iScreenHeightOffset + 416, L"RELATIVE");
|
||||
mprintf( iScreenWidthOffset + 480, 2 * iScreenHeightOffset + 422, L"ATTRIBUTES");
|
||||
mprintf( iScreenWidthOffset + 493, 2 * iScreenHeightOffset + 416, pUpdateMercsInfoText[2] );
|
||||
mprintf( iScreenWidthOffset + 480, 2 * iScreenHeightOffset + 422, pUpdateMercsInfoText[3] );
|
||||
}
|
||||
else
|
||||
{
|
||||
SetFontForeground( FONT_LTGREEN );
|
||||
mprintf( iScreenWidthOffset + 480, 2 * iScreenHeightOffset + 363, L"RELATIVE");
|
||||
mprintf( iScreenWidthOffset + 480, 2 * iScreenHeightOffset + 371, L"EQUIPMENT");
|
||||
mprintf( iScreenWidthOffset + 480, 2 * iScreenHeightOffset + 363, pUpdateMercsInfoText[4] );
|
||||
mprintf( iScreenWidthOffset + 480, 2 * iScreenHeightOffset + 371, pUpdateMercsInfoText[5] );
|
||||
SetFontForeground( FONT_LTBLUE );
|
||||
mprintf( iScreenWidthOffset + 530, 2 * iScreenHeightOffset + 363, L"RELATIVE");
|
||||
mprintf( iScreenWidthOffset + 530, 2 * iScreenHeightOffset + 371, L"ATTRIBUTES");
|
||||
mprintf( iScreenWidthOffset + 530, 2 * iScreenHeightOffset + 363, pUpdateMercsInfoText[6] );
|
||||
mprintf( iScreenWidthOffset + 530, 2 * iScreenHeightOffset + 371, pUpdateMercsInfoText[7] );
|
||||
}
|
||||
if( iDrawMode == DRAW_MODE_ENEMY )
|
||||
{
|
||||
SetFont( FONT10ARIAL );
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
mprintf( iScreenWidthOffset + 590, 2 * iScreenHeightOffset + 411, L"Army" );
|
||||
mprintf( iScreenWidthOffset + 590, 2 * iScreenHeightOffset + 425, L"Admin" );
|
||||
mprintf( iScreenWidthOffset + 590, 2 * iScreenHeightOffset + 439, L"Elite" );
|
||||
mprintf( iScreenWidthOffset + 590, 2 * iScreenHeightOffset + 411, pUpdateMercsInfoText[8] );
|
||||
mprintf( iScreenWidthOffset + 590, 2 * iScreenHeightOffset + 425, pUpdateMercsInfoText[9] );
|
||||
mprintf( iScreenWidthOffset + 590, 2 * iScreenHeightOffset + 439, pUpdateMercsInfoText[10] );
|
||||
}
|
||||
break;
|
||||
case MERC_ATTRIBUTEMODE:
|
||||
SetFont( FONT10ARIAL );
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
SetFontShadow( FONT_NEARBLACK );
|
||||
mprintf( iScreenWidthOffset + 225, 2 * iScreenHeightOffset + 370, L"Exp. Level");
|
||||
mprintf( iScreenWidthOffset + 225, 2 * iScreenHeightOffset + 395, L"Life");
|
||||
mprintf( iScreenWidthOffset + 225, 2 * iScreenHeightOffset + 420, L"LifeMax");
|
||||
mprintf( iScreenWidthOffset + 225, 2 * iScreenHeightOffset + 445, L"Marksmanship");
|
||||
mprintf( iScreenWidthOffset + 325, 2 * iScreenHeightOffset + 370, L"Strength");
|
||||
mprintf( iScreenWidthOffset + 325, 2 * iScreenHeightOffset + 395, L"Agility");
|
||||
mprintf( iScreenWidthOffset + 325, 2 * iScreenHeightOffset + 420, L"Dexterity");
|
||||
mprintf( iScreenWidthOffset + 325, 2 * iScreenHeightOffset + 445, L"Wisdom");
|
||||
mprintf( iScreenWidthOffset + 425, 2 * iScreenHeightOffset + 370, L"Leadership");
|
||||
mprintf( iScreenWidthOffset + 425, 2 * iScreenHeightOffset + 395, L"Explosives");
|
||||
mprintf( iScreenWidthOffset + 425, 2 * iScreenHeightOffset + 420, L"Medical");
|
||||
mprintf( iScreenWidthOffset + 425, 2 * iScreenHeightOffset + 445, L"Mechanical");
|
||||
mprintf( iScreenWidthOffset + 525, 2 * iScreenHeightOffset + 370, L"Morale");
|
||||
mprintf( iScreenWidthOffset + 225, 2 * iScreenHeightOffset + 370, pUpdateMercsInfoText[11] );
|
||||
mprintf( iScreenWidthOffset + 225, 2 * iScreenHeightOffset + 395, pUpdateMercsInfoText[12] );
|
||||
mprintf( iScreenWidthOffset + 225, 2 * iScreenHeightOffset + 420, pUpdateMercsInfoText[13] );
|
||||
mprintf( iScreenWidthOffset + 225, 2 * iScreenHeightOffset + 445, pUpdateMercsInfoText[14] );
|
||||
mprintf( iScreenWidthOffset + 325, 2 * iScreenHeightOffset + 370, pUpdateMercsInfoText[15] );
|
||||
mprintf( iScreenWidthOffset + 325, 2 * iScreenHeightOffset + 395, pUpdateMercsInfoText[16] );
|
||||
mprintf( iScreenWidthOffset + 325, 2 * iScreenHeightOffset + 420, pUpdateMercsInfoText[17] );
|
||||
mprintf( iScreenWidthOffset + 325, 2 * iScreenHeightOffset + 445, pUpdateMercsInfoText[18] );
|
||||
mprintf( iScreenWidthOffset + 425, 2 * iScreenHeightOffset + 370, pUpdateMercsInfoText[19] );
|
||||
mprintf( iScreenWidthOffset + 425, 2 * iScreenHeightOffset + 395, pUpdateMercsInfoText[20] );
|
||||
mprintf( iScreenWidthOffset + 425, 2 * iScreenHeightOffset + 420, pUpdateMercsInfoText[21] );
|
||||
mprintf( iScreenWidthOffset + 425, 2 * iScreenHeightOffset + 445, pUpdateMercsInfoText[22] );
|
||||
mprintf( iScreenWidthOffset + 525, 2 * iScreenHeightOffset + 370, pUpdateMercsInfoText[23] );
|
||||
break;
|
||||
case MERC_APPEARANCEMODE:
|
||||
SetFont( FONT10ARIAL );
|
||||
@@ -2522,10 +2524,10 @@ void UpdateMercsInfo()
|
||||
SetFontForeground( FONT_DKYELLOW );
|
||||
SetFontShadow( FONT_NEARBLACK );
|
||||
|
||||
mprintf( iScreenWidthOffset + 396, 2 * iScreenHeightOffset + 364, L"Hair color:");
|
||||
mprintf( iScreenWidthOffset + 396, 2 * iScreenHeightOffset + 388, L"Skin color:");
|
||||
mprintf( iScreenWidthOffset + 396, 2 * iScreenHeightOffset + 412, L"Vest color:");
|
||||
mprintf( iScreenWidthOffset + 396, 2 * iScreenHeightOffset + 436, L"Pant color:");
|
||||
mprintf( iScreenWidthOffset + 396, 2 * iScreenHeightOffset + 364, pUpdateMercsInfoText[24] );
|
||||
mprintf( iScreenWidthOffset + 396, 2 * iScreenHeightOffset + 388, pUpdateMercsInfoText[25]);
|
||||
mprintf( iScreenWidthOffset + 396, 2 * iScreenHeightOffset + 412, pUpdateMercsInfoText[26]);
|
||||
mprintf( iScreenWidthOffset + 396, 2 * iScreenHeightOffset + 436, pUpdateMercsInfoText[27]);
|
||||
|
||||
SetFont( SMALLCOMPFONT );
|
||||
SetFontForeground( FONT_BLACK );
|
||||
@@ -2539,10 +2541,10 @@ void UpdateMercsInfo()
|
||||
}
|
||||
else
|
||||
{
|
||||
mprintf( iScreenWidthOffset + 396, 2 * iScreenHeightOffset + 374, L"RANDOM");
|
||||
mprintf( iScreenWidthOffset + 396, 2 * iScreenHeightOffset + 398, L"RANDOM");
|
||||
mprintf( iScreenWidthOffset + 396, 2 * iScreenHeightOffset + 422, L"RANDOM");
|
||||
mprintf( iScreenWidthOffset + 396, 2 * iScreenHeightOffset + 446, L"RANDOM");
|
||||
mprintf( iScreenWidthOffset + 396, 2 * iScreenHeightOffset + 374, pUpdateMercsInfoText[28]);
|
||||
mprintf( iScreenWidthOffset + 396, 2 * iScreenHeightOffset + 398, pUpdateMercsInfoText[29]);
|
||||
mprintf( iScreenWidthOffset + 396, 2 * iScreenHeightOffset + 422, pUpdateMercsInfoText[30]);
|
||||
mprintf( iScreenWidthOffset + 396, 2 * iScreenHeightOffset + 446, pUpdateMercsInfoText[31]);
|
||||
ShowEditMercPalettes( NULL ); //will display grey scale to signify random
|
||||
}
|
||||
DisplayBodyTypeInfo();
|
||||
@@ -2554,23 +2556,23 @@ void UpdateMercsInfo()
|
||||
{ //scope trick
|
||||
CHAR16 tempStr[500];
|
||||
swprintf( tempStr, L"%s%s%s%s%s%d.",
|
||||
L"By specifying a profile index, all of the information will be extracted from the profile ",
|
||||
L"and override any values that you have edited. It will also disable the editing features ",
|
||||
L"though, you will still be able to view stats, etc. Pressing ENTER will automatically ",
|
||||
L"extract the number you have typed. A blank field will clear the profile. The current ",
|
||||
L"number of profiles range from 0 to ", NUM_PROFILES );
|
||||
pUpdateMercsInfoText[32],
|
||||
pUpdateMercsInfoText[33],
|
||||
pUpdateMercsInfoText[34],
|
||||
pUpdateMercsInfoText[35],
|
||||
pUpdateMercsInfoText[36], NUM_PROFILES-1 );
|
||||
DisplayWrappedString(iScreenWidthOffset + 180, 2 * iScreenHeightOffset + 370, 400, 2, FONT10ARIAL, 146, tempStr, FONT_BLACK, FALSE, LEFT_JUSTIFIED );
|
||||
SetFont( FONT12POINT1 );
|
||||
if( gpSelected->pDetailedPlacement->ubProfile == NO_PROFILE )
|
||||
{
|
||||
SetFontForeground( FONT_GRAY3 );
|
||||
mprintfEditor( iScreenWidthOffset + 240, 2 * iScreenHeightOffset + 435, L"Current Profile: n/a ");
|
||||
mprintfEditor( iScreenWidthOffset + 240, 2 * iScreenHeightOffset + 435, pUpdateMercsInfoText[37]);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetFontForeground( FONT_WHITE );
|
||||
ClearTaskbarRegion( iScreenWidthOffset + 240, 2 * iScreenHeightOffset + 435, iScreenWidthOffset + 580, 2 * iScreenHeightOffset + 445 );
|
||||
mprintf( iScreenWidthOffset + 240, 2 * iScreenHeightOffset + 435, L"Current Profile: %s", gMercProfiles[ gpSelected->pDetailedPlacement->ubProfile ].zName );
|
||||
mprintf( iScreenWidthOffset + 240, 2 * iScreenHeightOffset + 435, pUpdateMercsInfoText[38], gMercProfiles[ gpSelected->pDetailedPlacement->ubProfile ].zName );
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -2580,25 +2582,25 @@ void UpdateMercsInfo()
|
||||
SetFontShadow( FONT_NEARBLACK );
|
||||
switch( gpSelected->pSoldier->aiData.bOrders )
|
||||
{
|
||||
case STATIONARY: mprintf( iScreenWidthOffset + 430, 2 * iScreenHeightOffset + 363, L"STATIONARY" ); break;
|
||||
case ONCALL: mprintf( iScreenWidthOffset + 430, 2 * iScreenHeightOffset + 363, L"ON CALL" ); break;
|
||||
case ONGUARD: mprintf( iScreenWidthOffset + 430, 2 * iScreenHeightOffset + 363, L"ON GUARD" ); break;
|
||||
case SEEKENEMY: mprintf( iScreenWidthOffset + 430, 2 * iScreenHeightOffset + 363, L"SEEK ENEMY" ); break;
|
||||
case CLOSEPATROL: mprintf( iScreenWidthOffset + 430, 2 * iScreenHeightOffset + 363, L"CLOSE PATROL" ); break;
|
||||
case FARPATROL: mprintf( iScreenWidthOffset + 430, 2 * iScreenHeightOffset + 363, L"FAR PATROL" ); break;
|
||||
case POINTPATROL: mprintf( iScreenWidthOffset + 430, 2 * iScreenHeightOffset + 363, L"POINT PATROL" ); break;
|
||||
case RNDPTPATROL: mprintf( iScreenWidthOffset + 430, 2 * iScreenHeightOffset + 363, L"RND PT PATROL" ); break;
|
||||
case STATIONARY: mprintf( iScreenWidthOffset + 430, 2 * iScreenHeightOffset + 363, pUpdateMercsInfoText[39] ); break;
|
||||
case ONCALL: mprintf( iScreenWidthOffset + 430, 2 * iScreenHeightOffset + 363, pUpdateMercsInfoText[40] ); break;
|
||||
case ONGUARD: mprintf( iScreenWidthOffset + 430, 2 * iScreenHeightOffset + 363, pUpdateMercsInfoText[41] ); break;
|
||||
case SEEKENEMY: mprintf( iScreenWidthOffset + 430, 2 * iScreenHeightOffset + 363, pUpdateMercsInfoText[42] ); break;
|
||||
case CLOSEPATROL: mprintf( iScreenWidthOffset + 430, 2 * iScreenHeightOffset + 363, pUpdateMercsInfoText[43] ); break;
|
||||
case FARPATROL: mprintf( iScreenWidthOffset + 430, 2 * iScreenHeightOffset + 363, pUpdateMercsInfoText[44] ); break;
|
||||
case POINTPATROL: mprintf( iScreenWidthOffset + 430, 2 * iScreenHeightOffset + 363, pUpdateMercsInfoText[45] ); break;
|
||||
case RNDPTPATROL: mprintf( iScreenWidthOffset + 430, 2 * iScreenHeightOffset + 363, pUpdateMercsInfoText[46] ); break;
|
||||
}
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
mprintf( iScreenWidthOffset + 186, 2 * iScreenHeightOffset + 363, L"Action" );
|
||||
mprintf( iScreenWidthOffset + 268, 2 * iScreenHeightOffset + 363, L"Time" );
|
||||
mprintf( iScreenWidthOffset + 309, 2 * iScreenHeightOffset + 363, L"V" );
|
||||
mprintf( iScreenWidthOffset + 331, 2 * iScreenHeightOffset + 363, L"GridNo 1" );
|
||||
mprintf( iScreenWidthOffset + 381, 2 * iScreenHeightOffset + 363, L"GridNo 2" );
|
||||
mprintf( iScreenWidthOffset + 172, 2 * iScreenHeightOffset + 376, L"1)" );
|
||||
mprintf( iScreenWidthOffset + 172, 2 * iScreenHeightOffset + 397, L"2)" );
|
||||
mprintf( iScreenWidthOffset + 172, 2 * iScreenHeightOffset + 418, L"3)" );
|
||||
mprintf( iScreenWidthOffset + 172, 2 * iScreenHeightOffset + 439, L"4)" );
|
||||
mprintf( iScreenWidthOffset + 186, 2 * iScreenHeightOffset + 363, pUpdateMercsInfoText[47] );
|
||||
mprintf( iScreenWidthOffset + 268, 2 * iScreenHeightOffset + 363, pUpdateMercsInfoText[48] );
|
||||
mprintf( iScreenWidthOffset + 309, 2 * iScreenHeightOffset + 363, pUpdateMercsInfoText[49] );
|
||||
mprintf( iScreenWidthOffset + 331, 2 * iScreenHeightOffset + 363, pUpdateMercsInfoText[50] );
|
||||
mprintf( iScreenWidthOffset + 381, 2 * iScreenHeightOffset + 363, pUpdateMercsInfoText[51] );
|
||||
mprintf( iScreenWidthOffset + 172, 2 * iScreenHeightOffset + 376, pUpdateMercsInfoText[52] );
|
||||
mprintf( iScreenWidthOffset + 172, 2 * iScreenHeightOffset + 397, pUpdateMercsInfoText[53] );
|
||||
mprintf( iScreenWidthOffset + 172, 2 * iScreenHeightOffset + 418, pUpdateMercsInfoText[54] );
|
||||
mprintf( iScreenWidthOffset + 172, 2 * iScreenHeightOffset + 439, pUpdateMercsInfoText[55] );
|
||||
if( gubScheduleInstructions )
|
||||
{
|
||||
CHAR16 str[255];
|
||||
@@ -2606,28 +2608,31 @@ void UpdateMercsInfo()
|
||||
ColorFillVideoSurfaceArea( FRAME_BUFFER, iScreenWidthOffset + 431, 2 * iScreenHeightOffset + 388, iScreenWidthOffset + 590, 2 * iScreenHeightOffset + 450, Get16BPPColor( FROMRGB( 32, 45, 72 ) ) );
|
||||
switch( gCurrSchedule.ubAction[ gubCurrentScheduleActionIndex ] )
|
||||
{
|
||||
case SCHEDULE_ACTION_LOCKDOOR: swprintf( keyword, L"lock" ); break;
|
||||
case SCHEDULE_ACTION_UNLOCKDOOR: swprintf( keyword, L"unlock" ); break;
|
||||
case SCHEDULE_ACTION_OPENDOOR: swprintf( keyword, L"open" ); break;
|
||||
case SCHEDULE_ACTION_CLOSEDOOR: swprintf( keyword, L"close" ); break;
|
||||
}
|
||||
case SCHEDULE_ACTION_LOCKDOOR: swprintf( keyword, pUpdateMercsInfoText[56] ); break;
|
||||
case SCHEDULE_ACTION_UNLOCKDOOR: swprintf( keyword, pUpdateMercsInfoText[57] ); break;
|
||||
case SCHEDULE_ACTION_OPENDOOR: swprintf( keyword, pUpdateMercsInfoText[58] ); break;
|
||||
case SCHEDULE_ACTION_CLOSEDOOR: swprintf( keyword, pUpdateMercsInfoText[59] ); break;
|
||||
}
|
||||
switch( gubScheduleInstructions )
|
||||
{
|
||||
case SCHEDULE_INSTRUCTIONS_DOOR1:
|
||||
swprintf( str, L"Click on the gridno adjacent to the door that you wish to %s.", keyword );
|
||||
swprintf( str, pUpdateMercsInfoText[60], keyword );
|
||||
break;
|
||||
case SCHEDULE_INSTRUCTIONS_DOOR2:
|
||||
swprintf( str, L"Click on the gridno where you wish to move after you %s the door.", keyword );
|
||||
swprintf( str, pUpdateMercsInfoText[61], keyword );
|
||||
break;
|
||||
case SCHEDULE_INSTRUCTIONS_GRIDNO:
|
||||
swprintf( str, L"Click on the gridno where you wish to move to." );
|
||||
swprintf( str, pUpdateMercsInfoText[62] );
|
||||
break;
|
||||
case SCHEDULE_INSTRUCTIONS_SLEEP:
|
||||
swprintf( str, L"Click on the gridno where you wish to sleep at. Person will automatically return to original position after waking up." );
|
||||
swprintf( str, pUpdateMercsInfoText[63] );
|
||||
default:
|
||||
return;
|
||||
}
|
||||
wcscat( str, L" Hit ESC to abort entering this line in the schedule." );
|
||||
|
||||
if ( gCurrSchedule.ubAction[ gubCurrentScheduleActionIndex ] == SCHEDULE_ACTION_SLEEP ) swprintf( str, pUpdateMercsInfoText[63] );
|
||||
|
||||
wcscat( str, pUpdateMercsInfoText[64] );
|
||||
DisplayWrappedString( iScreenWidthOffset + 436, 2 * iScreenHeightOffset + 392, 149, 2, FONT10ARIAL, FONT_YELLOW, str, FONT_BLACK, FALSE, LEFT_JUSTIFIED );
|
||||
}
|
||||
break;
|
||||
@@ -3172,7 +3177,7 @@ void RenderMercStrings()
|
||||
sYPos += 10;
|
||||
|
||||
SetFontForeground( FONT_GRAY2 );
|
||||
swprintf( str, L"Slot #%d", pSoldier->ubID );
|
||||
swprintf( str, pRenderMercStringsText[0], pSoldier->ubID );
|
||||
FindFontCenterCoordinates( sXPos, sYPos, 80, 1, str, TINYFONT1, &sX, &sY );
|
||||
if( sY < (2 * iScreenHeightOffset + 352 ))
|
||||
{
|
||||
@@ -3216,7 +3221,7 @@ void RenderMercStrings()
|
||||
sYPos += 10;
|
||||
|
||||
SetFontForeground( FONT_GRAY2 );
|
||||
swprintf( str, L"Slot #%d", pSoldier->ubID );
|
||||
swprintf( str, pRenderMercStringsText[0], pSoldier->ubID );
|
||||
FindFontCenterCoordinates( sXPos, sYPos, 80, 1, str, TINYFONT1, &sX, &sY );
|
||||
if( sY < (2 * iScreenHeightOffset + 352) )
|
||||
{
|
||||
@@ -3252,7 +3257,7 @@ void RenderMercStrings()
|
||||
SetFontForeground( FONT_DKRED );
|
||||
else
|
||||
SetFontForeground( FONT_RED );
|
||||
swprintf( str, L"Patrol orders with no waypoints" );
|
||||
swprintf( str, pRenderMercStringsText[1] );
|
||||
FindFontCenterCoordinates( sXPos, sYPos, 80, 1, str, TINYFONT1, &sX, &sY );
|
||||
if( sY < (2 * iScreenHeightOffset + 352) )
|
||||
{
|
||||
@@ -3268,7 +3273,7 @@ void RenderMercStrings()
|
||||
SetFontForeground( FONT_DKRED );
|
||||
else
|
||||
SetFontForeground( FONT_RED );
|
||||
swprintf( str, L"Waypoints with no patrol orders" );
|
||||
swprintf( str, pRenderMercStringsText[2] );
|
||||
FindFontCenterCoordinates( sXPos, sYPos, 80, 1, str, TINYFONT1, &sX, &sY );
|
||||
if( sY < (2 * iScreenHeightOffset + 352) )
|
||||
{
|
||||
@@ -3451,7 +3456,7 @@ void StartScheduleAction()
|
||||
case SCHEDULE_ACTION_GRIDNO:
|
||||
case SCHEDULE_ACTION_ENTERSECTOR:
|
||||
case SCHEDULE_ACTION_SLEEP:
|
||||
ShowEditorButton( MERCS_SCHEDULE_DATA1A + gubCurrentScheduleActionIndex );
|
||||
ShowEditorButton( MERCS_SCHEDULE_DATA1A + gubCurrentScheduleActionIndex );
|
||||
HideEditorButton( MERCS_SCHEDULE_DATA1B + gubCurrentScheduleActionIndex );
|
||||
DisableEditorButtons( MERCS_SCHEDULE_ACTION1, MERCS_SCHEDULE_DATA4B );
|
||||
DisableTextFields( 1, 4 );
|
||||
@@ -3530,7 +3535,7 @@ void ClearCurrentSchedule()
|
||||
for( i = 0; i < 4; i++ )
|
||||
{
|
||||
MSYS_SetBtnUserData( iEditorButton[ MERCS_SCHEDULE_ACTION1 + i ], 0, 0 );
|
||||
SpecifyButtonText( iEditorButton[ MERCS_SCHEDULE_ACTION1 + i ], L"No action" );
|
||||
SpecifyButtonText( iEditorButton[ MERCS_SCHEDULE_ACTION1 + i ], pClearCurrentScheduleText[0] );
|
||||
gCurrSchedule.usTime[i] = 0xffff;
|
||||
SetExclusive24HourTimeValue( (UINT8)(i+1), gCurrSchedule.usTime[ i ] ); //blanks the field
|
||||
gCurrSchedule.usData1[i] = 0xffffffff;
|
||||
@@ -3655,7 +3660,7 @@ void CopyMercPlacement( INT32 iMapIndex )
|
||||
{
|
||||
if( gsSelectedMercID == -1 )
|
||||
{
|
||||
ScreenMsg( FONT_MCOLOR_LTRED, MSG_INTERFACE, L"Placement not copied because no placement selected." );
|
||||
ScreenMsg( FONT_MCOLOR_LTRED, MSG_INTERFACE, pCopyMercPlacementText[0] );
|
||||
return;
|
||||
}
|
||||
gfSaveBuffer = TRUE;
|
||||
@@ -3664,7 +3669,7 @@ void CopyMercPlacement( INT32 iMapIndex )
|
||||
{
|
||||
gSaveBufferDetailedPlacement = *gpSelected->pDetailedPlacement;
|
||||
}
|
||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, L"Placement copied." );
|
||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, pCopyMercPlacementText[1] );
|
||||
}
|
||||
|
||||
void PasteMercPlacement( INT32 iMapIndex )
|
||||
@@ -3675,7 +3680,7 @@ void PasteMercPlacement( INT32 iMapIndex )
|
||||
|
||||
if( !gfSaveBuffer )
|
||||
{
|
||||
ScreenMsg( FONT_MCOLOR_LTRED, MSG_INTERFACE, L"Placement not pasted as no placement is saved in buffer." );
|
||||
ScreenMsg( FONT_MCOLOR_LTRED, MSG_INTERFACE, pPasteMercPlacementText[0] );
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -3787,11 +3792,11 @@ void PasteMercPlacement( INT32 iMapIndex )
|
||||
{
|
||||
SetEnemyDroppableStatus( gbMercSlotTypes[i-FIRST_MERCS_INVENTORY_BUTTON], FALSE );
|
||||
}
|
||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, L"Placement pasted." );
|
||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, pPasteMercPlacementText[1] );
|
||||
}
|
||||
else
|
||||
{
|
||||
ScreenMsg( FONT_MCOLOR_LTRED, MSG_INTERFACE, L"Placement not pasted as the maximum number of placements for this team is already used." );
|
||||
ScreenMsg( FONT_MCOLOR_LTRED, MSG_INTERFACE, pPasteMercPlacementText[2] );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions="/D "_CRT_SECURE_NO_DEPRECATE""
|
||||
AdditionalOptions="/D _CRT_SECURE_NO_DEPRECATE"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_LIB;"
|
||||
@@ -104,7 +104,7 @@
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions="/D "_CRT_SECURE_NO_DEPRECATE""
|
||||
AdditionalOptions="/D _CRT_SECURE_NO_DEPRECATE"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;"
|
||||
RuntimeLibrary="0"
|
||||
@@ -165,7 +165,7 @@
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions="/D "_CRT_SECURE_NO_DEPRECATE""
|
||||
AdditionalOptions="/D _CRT_SECURE_NO_DEPRECATE"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;"
|
||||
RuntimeLibrary="0"
|
||||
@@ -226,7 +226,7 @@
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions="/D "_CRT_SECURE_NO_DEPRECATE""
|
||||
AdditionalOptions="/D _CRT_SECURE_NO_DEPRECATE"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_LIB;"
|
||||
@@ -291,7 +291,7 @@
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions="/D "_CRT_SECURE_NO_DEPRECATE""
|
||||
AdditionalOptions="/D _CRT_SECURE_NO_DEPRECATE"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;"
|
||||
|
||||
+56
-43
@@ -30,14 +30,17 @@
|
||||
#include "World Items.h"
|
||||
#include "PopupMenu.h"
|
||||
#include "pits.h"
|
||||
#include "Text.h"
|
||||
#endif
|
||||
|
||||
#include "soldier profile type.h"
|
||||
|
||||
INT32 giBothCheckboxButton = -1;
|
||||
INT32 giRealisticCheckboxButton = -1;
|
||||
INT32 giSciFiCheckboxButton = -1;
|
||||
INT32 giAlarmTriggerButton = -1;
|
||||
INT32 giOwnershipGroupButton = -1;
|
||||
|
||||
/*
|
||||
CHAR16 gszActionItemDesc[ NUM_ACTIONITEMS ][ 30 ] =
|
||||
{
|
||||
L"Klaxon Mine",
|
||||
@@ -75,7 +78,7 @@ CHAR16 gszActionItemDesc[ NUM_ACTIONITEMS ][ 30 ] =
|
||||
L"Bloodcat alarm",
|
||||
L"Big teargas",
|
||||
};
|
||||
|
||||
*/
|
||||
const STR16 GetActionItemName( OBJECTTYPE *pItem )
|
||||
{
|
||||
if( !pItem || pItem->usItem != ACTION_ITEM )
|
||||
@@ -487,68 +490,68 @@ void UpdateItemStatsPanel()
|
||||
if( gpItem && iCurrentTaskbar == TASK_ITEMS &&
|
||||
gbEditingMode != EDITING_TRIGGERS && gbEditingMode != EDITING_ACTIONITEMS )
|
||||
{
|
||||
mprintf( iScreenWidthOffset + 500, 2 * iScreenHeightOffset + 366, L"Toggle hide flag" );
|
||||
mprintf( iScreenWidthOffset + 500, 2 * iScreenHeightOffset + 366, pUpdateItemStatsPanelText[0] );
|
||||
}
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
switch( gbEditingMode )
|
||||
{
|
||||
case EDITING_NOTHING:
|
||||
if( iCurrentTaskbar == TASK_ITEMS )
|
||||
mprintf( iScreenWidthOffset + 520, 2 * iScreenHeightOffset + 400, L"No item selected." );
|
||||
mprintf( iScreenWidthOffset + 520, 2 * iScreenHeightOffset + 400, pUpdateItemStatsPanelText[1] );
|
||||
else
|
||||
{
|
||||
mprintf( iScreenWidthOffset + 500, 2 * iScreenHeightOffset + 390, L"Slot available for" );
|
||||
mprintf( iScreenWidthOffset + 500, 2 * iScreenHeightOffset + 400, L"random generation." );
|
||||
mprintf( iScreenWidthOffset + 500, 2 * iScreenHeightOffset + 390, pUpdateItemStatsPanelText[2] );
|
||||
mprintf( iScreenWidthOffset + 500, 2 * iScreenHeightOffset + 400, pUpdateItemStatsPanelText[3] );
|
||||
}
|
||||
return;
|
||||
case EDITING_KEYS:
|
||||
if( !gpEditingItemPool )
|
||||
{
|
||||
mprintf( iScreenWidthOffset + 500, 2 * iScreenHeightOffset + 400, L"Keys not editable." );
|
||||
mprintf( iScreenWidthOffset + 500, 2 * iScreenHeightOffset + 400, pUpdateItemStatsPanelText[4] );
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case EDITING_OWNERSHIP:
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 384, L"ProfileID of owner" );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 384, pUpdateItemStatsPanelText[5] );
|
||||
return;
|
||||
case EDITING_NOT_YET_IMPLEMENTED:
|
||||
mprintf( iScreenWidthOffset + 500, 2 * iScreenHeightOffset + 400, L"Item class not implemented." );
|
||||
mprintf( iScreenWidthOffset + 500, 2 * iScreenHeightOffset + 400, pUpdateItemStatsPanelText[6] );
|
||||
return;
|
||||
case EDITING_DROPPABLE:
|
||||
mprintf( iScreenWidthOffset + 500, 2 * iScreenHeightOffset + 400, L"Slot locked as empty.");
|
||||
mprintf( iScreenWidthOffset + 500, 2 * iScreenHeightOffset + 400, pUpdateItemStatsPanelText[7] );
|
||||
return;
|
||||
case EDITING_GUNS:
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 384, L"Status" );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 404, L"Rounds" );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 424, L"Trap Level" );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 384, pUpdateItemStatsPanelText[8] );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 404, pUpdateItemStatsPanelText[9] );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 424, pUpdateItemStatsPanelText[10] );
|
||||
break;
|
||||
case EDITING_AMMO:
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 384, L"Quantity" );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 404, L"Trap Level" );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 384, pUpdateItemStatsPanelText[11] );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 404, pUpdateItemStatsPanelText[12] );
|
||||
break;
|
||||
case EDITING_ARMOUR:
|
||||
case EDITING_LBEGEAR:
|
||||
case EDITING_EQUIPMENT:
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 384, L"Status" );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 404, L"Trap Level" );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 384, pUpdateItemStatsPanelText[13] );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 404, pUpdateItemStatsPanelText[14] );
|
||||
break;
|
||||
case EDITING_EXPLOSIVES:
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 380, L"Status" );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 404, L"Quantity" );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 424, L"Trap Level" );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 380, pUpdateItemStatsPanelText[15] );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 404, pUpdateItemStatsPanelText[16] );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 424, pUpdateItemStatsPanelText[17] );
|
||||
break;
|
||||
case EDITING_MONEY:
|
||||
mprintf( iScreenWidthOffset + 532, 2 * iScreenHeightOffset + 384, L"Dollars" );
|
||||
mprintf( iScreenWidthOffset + 532, 2 * iScreenHeightOffset + 384, pUpdateItemStatsPanelText[18] );
|
||||
break;
|
||||
case EDITING_ACTIONITEMS:
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 369, L"Status" );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 389, L"Trap Level" );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 369, pUpdateItemStatsPanelText[19] );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 389, pUpdateItemStatsPanelText[20] );
|
||||
break;
|
||||
case EDITING_TRIGGERS:
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 369, L"Trap Level");
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 389, L"Tolerance" );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 369, pUpdateItemStatsPanelText[21] );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 389, pUpdateItemStatsPanelText[22] );
|
||||
if( gpEditingItemPool && (*gpItem)[0]->data.misc.bFrequency >= PANIC_FREQUENCY_3 && (*gpItem)[0]->data.misc.bFrequency <= PANIC_FREQUENCY )
|
||||
mprintf( iScreenWidthOffset + 500, 2 * iScreenHeightOffset + 407, L"Alarm Trigger" );
|
||||
mprintf( iScreenWidthOffset + 500, 2 * iScreenHeightOffset + 407, pUpdateItemStatsPanelText[23] );
|
||||
break;
|
||||
}
|
||||
if( gpEditingItemPool )
|
||||
@@ -560,10 +563,10 @@ void UpdateItemStatsPanel()
|
||||
SetFontForeground( FONT_ORANGE );
|
||||
else
|
||||
SetFontForeground( FONT_RED );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 444, L"Exist Chance" );
|
||||
mprintf( iScreenWidthOffset + 587, 2 * iScreenHeightOffset + 366, L"B" );
|
||||
mprintf( iScreenWidthOffset + 609, 2 * iScreenHeightOffset + 366, L"R" );
|
||||
mprintf( iScreenWidthOffset + 630, 2 * iScreenHeightOffset + 366, L"S" );
|
||||
mprintf( iScreenWidthOffset + 512, 2 * iScreenHeightOffset + 444, pUpdateItemStatsPanelText[24] );
|
||||
mprintf( iScreenWidthOffset + 587, 2 * iScreenHeightOffset + 366, pUpdateItemStatsPanelText[25] );
|
||||
mprintf( iScreenWidthOffset + 609, 2 * iScreenHeightOffset + 366, pUpdateItemStatsPanelText[26] );
|
||||
mprintf( iScreenWidthOffset + 630, 2 * iScreenHeightOffset + 366, pUpdateItemStatsPanelText[27] );
|
||||
}
|
||||
InvalidateRegion( iScreenWidthOffset + 477, 2 * iScreenHeightOffset + 362, 161, 97 );
|
||||
}
|
||||
@@ -615,13 +618,13 @@ void SetupGameTypeFlags()
|
||||
{
|
||||
giBothCheckboxButton =
|
||||
CreateCheckBoxButton( iScreenWidthOffset + 573, 2 * iScreenHeightOffset + 365, "EDITOR//radiobutton.sti", MSYS_PRIORITY_NORMAL, BothModesCheckboxCallback );
|
||||
SetButtonFastHelpText( giBothCheckboxButton, L"Item appears in both Sci-Fi and Realistic modes. (|B)" );
|
||||
SetButtonFastHelpText( giBothCheckboxButton, pSetupGameTypeFlagsText[0] );
|
||||
giRealisticCheckboxButton =
|
||||
CreateCheckBoxButton( iScreenWidthOffset + 595, 2 * iScreenHeightOffset + 365, "EDITOR//radiobutton.sti", MSYS_PRIORITY_NORMAL, RealisticOnlyCheckboxCallback );
|
||||
SetButtonFastHelpText( giRealisticCheckboxButton, L"Item appears in |Realistic mode only." );
|
||||
SetButtonFastHelpText( giRealisticCheckboxButton, pSetupGameTypeFlagsText[1] );
|
||||
giSciFiCheckboxButton =
|
||||
CreateCheckBoxButton( iScreenWidthOffset + 616, 2 * iScreenHeightOffset + 365, "EDITOR//radiobutton.sti", MSYS_PRIORITY_NORMAL, SciFiOnlyCheckboxCallback );
|
||||
SetButtonFastHelpText( giSciFiCheckboxButton, L"Item appears in |Sci-Fi mode only." );
|
||||
SetButtonFastHelpText( giSciFiCheckboxButton, pSetupGameTypeFlagsText[2] );
|
||||
|
||||
if( gWorldItems[ gpEditingItemPool->iItemIndex ].usFlags & WORLD_ITEM_REALISTIC_ONLY )
|
||||
ButtonList[ giRealisticCheckboxButton ]->uiFlags |= (BUTTON_CLICKED_ON | BUTTON_DIRTY);
|
||||
@@ -674,7 +677,7 @@ void SetupGunGUI()
|
||||
if( ValidAttachment( SILENCER, gpItem ) )
|
||||
{
|
||||
guiAttachmentButton[ SILENCER_ATTACHMENT_BUTTON ] =
|
||||
CreateTextButton( L"SILENCER", SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( pSetupGunGUIText[0], SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 570, yp, 60, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, ToggleAttachment );
|
||||
yp += 14;
|
||||
if( FindAttachment( gpItem, SILENCER ) )
|
||||
@@ -687,7 +690,7 @@ void SetupGunGUI()
|
||||
if( ValidAttachment( SNIPERSCOPE, gpItem ) )
|
||||
{
|
||||
guiAttachmentButton[ SNIPERSCOPE_ATTACHMENT_BUTTON ] =
|
||||
CreateTextButton( L"SNIPERSCOPE", SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( pSetupGunGUIText[1], SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 570, yp, 60, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, ToggleAttachment );
|
||||
yp += 14;
|
||||
if( FindAttachment( gpItem, SNIPERSCOPE ) )
|
||||
@@ -700,7 +703,7 @@ void SetupGunGUI()
|
||||
if( ValidAttachment( LASERSCOPE, gpItem ) )
|
||||
{
|
||||
guiAttachmentButton[ LASERSCOPE_ATTACHMENT_BUTTON ] =
|
||||
CreateTextButton( L"LASERSCOPE", SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( pSetupGunGUIText[2], SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 570, yp, 60, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, ToggleAttachment );
|
||||
yp += 14;
|
||||
if( FindAttachment( gpItem, LASERSCOPE ) )
|
||||
@@ -713,7 +716,7 @@ void SetupGunGUI()
|
||||
if( ValidAttachment( BIPOD, gpItem ) )
|
||||
{
|
||||
guiAttachmentButton[ BIPOD_ATTACHMENT_BUTTON ] =
|
||||
CreateTextButton( L"BIPOD", SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( pSetupGunGUIText[3], SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 570, yp, 60, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, ToggleAttachment );
|
||||
yp += 14;
|
||||
if( FindAttachment( gpItem, BIPOD ) )
|
||||
@@ -726,7 +729,7 @@ void SetupGunGUI()
|
||||
if( ValidAttachment( DUCKBILL, gpItem ) )
|
||||
{
|
||||
guiAttachmentButton[ DUCKBILL_ATTACHMENT_BUTTON ] =
|
||||
CreateTextButton( L"DUCKBILL", SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( pSetupGunGUIText[4], SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 570, yp, 60, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, ToggleAttachment );
|
||||
yp += 14;
|
||||
if( FindAttachment( gpItem, DUCKBILL ) )
|
||||
@@ -739,7 +742,7 @@ void SetupGunGUI()
|
||||
if( ValidAttachment( UNDER_GLAUNCHER, gpItem ) )
|
||||
{
|
||||
guiAttachmentButton[ GLAUNCHER_ATTACHMENT_BUTTON ] =
|
||||
CreateTextButton( L"G-LAUNCHER", SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( pSetupGunGUIText[5], SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 570, yp, 60, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, ToggleAttachment );
|
||||
yp += 14;
|
||||
if( FindAttachment( gpItem, UNDER_GLAUNCHER ) )
|
||||
@@ -858,7 +861,7 @@ void SetupArmourGUI()
|
||||
if( ValidAttachment( CERAMIC_PLATES, gpItem ) )
|
||||
{
|
||||
guiCeramicPlatesButton =
|
||||
CreateTextButton( L"CERAMIC PLATES", SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( pSetupArmourGUIText[0], SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 558, 2 * iScreenHeightOffset + 375, 72, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, ToggleCeramicPlates );
|
||||
if( FindAttachment( gpItem, CERAMIC_PLATES ) )
|
||||
{
|
||||
@@ -1009,13 +1012,13 @@ void SetupExplosivesGUI()
|
||||
swprintf( str, L"%d", 100 - gWorldItems[ gpEditingItemPool->iItemIndex ].ubNonExistChance );
|
||||
AddTextInputField( iScreenWidthOffset + 485, 2 * iScreenHeightOffset + 440, 25, 15, MSYS_PRIORITY_NORMAL, str, 3, INPUTTYPE_NUMERICSTRICT );
|
||||
}
|
||||
yp = 375;
|
||||
yp = 2 * iScreenHeightOffset + 375;
|
||||
gfDetonator = FALSE;
|
||||
guiDetonatorButton = -1;
|
||||
if( ValidAttachment( DETONATOR, gpItem ) )
|
||||
{
|
||||
guiDetonatorButton =
|
||||
CreateTextButton( L"DETONATOR", SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( pSetupExplosivesGUIText[0], SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 570, yp, 60, 12, BUTTON_TOGGLE, MSYS_PRIORITY_NORMAL, DEFAULT_MOVE_CALLBACK, ToggleDetonator );
|
||||
yp += 14;
|
||||
if( FindAttachment( gpItem, DETONATOR ) )
|
||||
@@ -1112,7 +1115,17 @@ void RemoveMoneyGUI()
|
||||
void SetupOwnershipGUI()
|
||||
{
|
||||
CHAR16 str[20];
|
||||
|
||||
swprintf( str, L"%d", (*gpItem)[0]->data.owner.ubOwnerProfile );
|
||||
|
||||
// WANNE: Check for valid profile id range, if not, set to NO_PROFILE, which defines an "invalid" profile in the source
|
||||
UINT16 ownerProfileId = (*gpItem)[0]->data.owner.ubOwnerProfile;
|
||||
if (ownerProfileId >= NUM_PROFILES)
|
||||
{
|
||||
ownerProfileId = NO_PROFILE;
|
||||
_itow(ownerProfileId, str, 10);
|
||||
}
|
||||
|
||||
AddTextInputField( iScreenWidthOffset + 485, 2 * iScreenHeightOffset + 380, 25, 15, MSYS_PRIORITY_NORMAL, str, 3, INPUTTYPE_NUMERICSTRICT );
|
||||
giOwnershipGroupButton =
|
||||
CreateTextButton( gszCivGroupNames[ (*gpItem)[0]->data.owner.ubOwnerCivGroup ], SMALLCOMPFONT, FONT_YELLOW, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
@@ -1263,7 +1276,7 @@ void SetupTriggersGUI()
|
||||
{
|
||||
giAlarmTriggerButton =
|
||||
CreateCheckBoxButton( iScreenWidthOffset + 485, 2 * iScreenHeightOffset + 405, "EDITOR//smCheckBox.sti", MSYS_PRIORITY_NORMAL, AlarmTriggerCheckboxCallback );
|
||||
SetButtonFastHelpText( giAlarmTriggerButton, L"If the panic trigger is an alarm trigger,\nenemies won't attempt to use it if they\nare already aware of your presence.");
|
||||
SetButtonFastHelpText( giAlarmTriggerButton, pSetupTriggersGUIText[0] );
|
||||
if( (*gpItem).fFlags & OBJECT_ALARM_TRIGGER )
|
||||
ButtonList[ giAlarmTriggerButton ]->uiFlags |= BUTTON_CLICKED_ON;
|
||||
}
|
||||
|
||||
+130
-127
@@ -290,7 +290,7 @@ void CreateSummaryWindow()
|
||||
DisableButton( iSummaryButton[ SUMMARY_BACKGROUND ] );
|
||||
|
||||
iSummaryButton[ SUMMARY_OKAY ] =
|
||||
CreateTextButton(L"Okay", FONT12POINT1, FONT_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT, MAP_LEFT+160, MAP_BOTTOM+99, 50, 30, BUTTON_TOGGLE, MSYS_PRIORITY_HIGH, DEFAULT_MOVE_CALLBACK, SummaryOkayCallback);//dnl ch36 190909
|
||||
CreateTextButton(pCreateSummaryWindowText[0], FONT12POINT1, FONT_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT, MAP_LEFT+160, MAP_BOTTOM+99, 50, 30, BUTTON_TOGGLE, MSYS_PRIORITY_HIGH, DEFAULT_MOVE_CALLBACK, SummaryOkayCallback);//dnl ch36 190909
|
||||
//GiveButtonDefaultStatus( iSummaryButton[ SUMMARY_OKAY ], DEFAULT_STATUS_WINDOWS95 );
|
||||
|
||||
iSummaryButton[ SUMMARY_GRIDCHECKBOX ] =
|
||||
@@ -304,31 +304,31 @@ void CreateSummaryWindow()
|
||||
gfRenderProgress = TRUE;
|
||||
|
||||
iSummaryButton[ SUMMARY_ALL ] =
|
||||
CreateTextButton( L"A", SMALLCOMPFONT, FONT_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( pCreateSummaryWindowText[1], SMALLCOMPFONT, FONT_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
MAP_LEFT+110, MAP_BOTTOM+5, 16, 16, BUTTON_TOGGLE, MSYS_PRIORITY_HIGH, DEFAULT_MOVE_CALLBACK,
|
||||
SummaryToggleLevelCallback );
|
||||
if( giCurrentViewLevel == ALL_LEVELS_MASK || giCurrentViewLevel == ALTERNATE_LEVELS_MASK )
|
||||
ButtonList[ iSummaryButton[ SUMMARY_ALL ] ]->uiFlags |= BUTTON_CLICKED_ON;
|
||||
iSummaryButton[ SUMMARY_G ] =
|
||||
CreateTextButton( L"G", SMALLCOMPFONT, FONT_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( pCreateSummaryWindowText[2], SMALLCOMPFONT, FONT_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
MAP_LEFT+128, MAP_BOTTOM+5, 16, 16, BUTTON_TOGGLE, MSYS_PRIORITY_HIGH, DEFAULT_MOVE_CALLBACK,
|
||||
SummaryToggleLevelCallback );
|
||||
if( giCurrentViewLevel == GROUND_LEVEL_MASK || giCurrentViewLevel == ALTERNATE_GROUND_MASK )
|
||||
ButtonList[ iSummaryButton[ SUMMARY_G ] ]->uiFlags |= BUTTON_CLICKED_ON;
|
||||
iSummaryButton[ SUMMARY_B1 ] =
|
||||
CreateTextButton( L"B1", SMALLCOMPFONT, FONT_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( pCreateSummaryWindowText[3], SMALLCOMPFONT, FONT_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
MAP_LEFT+146, MAP_BOTTOM+5, 16, 16, BUTTON_TOGGLE, MSYS_PRIORITY_HIGH, DEFAULT_MOVE_CALLBACK,
|
||||
SummaryToggleLevelCallback );
|
||||
if( giCurrentViewLevel == BASEMENT1_LEVEL_MASK || giCurrentViewLevel == ALTERNATE_B1_MASK )
|
||||
ButtonList[ iSummaryButton[ SUMMARY_B1 ] ]->uiFlags |= BUTTON_CLICKED_ON;
|
||||
iSummaryButton[ SUMMARY_B2 ] =
|
||||
CreateTextButton( L"B2", SMALLCOMPFONT, FONT_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( pCreateSummaryWindowText[4], SMALLCOMPFONT, FONT_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
MAP_LEFT+164, MAP_BOTTOM+5, 16, 16, BUTTON_TOGGLE, MSYS_PRIORITY_HIGH, DEFAULT_MOVE_CALLBACK,
|
||||
SummaryToggleLevelCallback );
|
||||
if( giCurrentViewLevel == BASEMENT2_LEVEL_MASK || giCurrentViewLevel == ALTERNATE_B2_MASK )
|
||||
ButtonList[ iSummaryButton[ SUMMARY_B2 ] ]->uiFlags |= BUTTON_CLICKED_ON;
|
||||
iSummaryButton[ SUMMARY_B3 ] =
|
||||
CreateTextButton( L"B3", SMALLCOMPFONT, FONT_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( pCreateSummaryWindowText[5], SMALLCOMPFONT, FONT_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
MAP_LEFT+182, MAP_BOTTOM+5, 16, 16, BUTTON_TOGGLE, MSYS_PRIORITY_HIGH, DEFAULT_MOVE_CALLBACK,
|
||||
SummaryToggleLevelCallback );
|
||||
if( giCurrentViewLevel == BASEMENT3_LEVEL_MASK || giCurrentViewLevel == ALTERNATE_B3_MASK )
|
||||
@@ -340,11 +340,11 @@ void CreateSummaryWindow()
|
||||
ButtonList[ iSummaryButton[ SUMMARY_ALTERNATE ] ]->uiFlags |= BUTTON_CLICKED_ON;
|
||||
|
||||
iSummaryButton[ SUMMARY_LOAD ] =
|
||||
CreateTextButton( L"LOAD", FONT12POINT1, FONT_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( pCreateSummaryWindowText[6], FONT12POINT1, FONT_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
MAP_LEFT, MAP_BOTTOM+45, 50, 26, BUTTON_NO_TOGGLE, MSYS_PRIORITY_HIGH, DEFAULT_MOVE_CALLBACK,
|
||||
SummaryLoadMapCallback );
|
||||
iSummaryButton[ SUMMARY_SAVE ] =
|
||||
CreateTextButton( L"SAVE", FONT12POINT1, FONT_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( pCreateSummaryWindowText[7], FONT12POINT1, FONT_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
MAP_LEFT+55, MAP_BOTTOM+45, 50, 26, BUTTON_NO_TOGGLE, MSYS_PRIORITY_HIGH, DEFAULT_MOVE_CALLBACK,
|
||||
SummarySaveMapCallback );
|
||||
iSummaryButton[ SUMMARY_OVERRIDE ] =
|
||||
@@ -365,7 +365,7 @@ void CreateSummaryWindow()
|
||||
|
||||
|
||||
iSummaryButton[ SUMMARY_UPDATE ] =
|
||||
CreateTextButton( L"Update", FONT12POINT1, FONT_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
CreateTextButton( pCreateSummaryWindowText[8], FONT12POINT1, FONT_BLACK, FONT_BLACK, BUTTON_USE_DEFAULT,
|
||||
iScreenWidthOffset + 255, iScreenHeightOffset + 15, 40, 16, BUTTON_NO_TOGGLE, MSYS_PRIORITY_HIGH, DEFAULT_MOVE_CALLBACK,
|
||||
SummaryUpdateCallback );
|
||||
|
||||
@@ -534,67 +534,67 @@ void RenderSectorInformation()
|
||||
ePoints++;
|
||||
//start at 10,35
|
||||
SetFontForeground( FONT_ORANGE );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 32, L"Tileset: %s", gTilesets[ s->ubTilesetID ].zName );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 32, pRenderSectorInformationText[0], gTilesets[ s->ubTilesetID ].zName );
|
||||
if( m->ubMapVersion < 10 )
|
||||
SetFontForeground( FONT_RED );
|
||||
mprintf(iScreenWidthOffset+10, iScreenHeightOffset+42, L"Version Info: Summary: 1.%02d, Map: %1.2f / %02d", s->ubSummaryVersion, s->dMajorMapVersion, m->ubMapVersion);//dnl ch30 240909
|
||||
mprintf(iScreenWidthOffset+10, iScreenHeightOffset+42, pRenderSectorInformationText[1], s->ubSummaryVersion, s->dMajorMapVersion, m->ubMapVersion);//dnl ch30 240909
|
||||
SetFontForeground( FONT_GRAY2 );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 55, L"Number of items: %d", s->usNumItems );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 65, L"Number of lights: %d", s->usNumLights );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 75, L"Number of entry points: %d", ePoints );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 55, pRenderSectorInformationText[2], s->usNumItems );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 65, pRenderSectorInformationText[3], s->usNumLights );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 75, pRenderSectorInformationText[4], ePoints );
|
||||
if( ePoints )
|
||||
{
|
||||
INT32 x;
|
||||
x = iScreenWidthOffset + 140;
|
||||
mprintf( x, iScreenHeightOffset + 75, L"(" );
|
||||
x += StringPixLength( L"(", FONT10ARIAL ) + 2;
|
||||
if( m->sNorthGridNo != -1 ) { mprintf( x, iScreenHeightOffset + 75, L"N" ); x += StringPixLength( L"N", FONT10ARIAL ) + 2; }
|
||||
if( m->sEastGridNo != -1 ) { mprintf( x, iScreenHeightOffset + 75, L"E" ); x += StringPixLength( L"E", FONT10ARIAL ) + 2; }
|
||||
if( m->sSouthGridNo != -1 ) { mprintf( x, iScreenHeightOffset + 75, L"S" ); x += StringPixLength( L"S", FONT10ARIAL ) + 2; }
|
||||
if( m->sWestGridNo != -1 ) { mprintf( x, iScreenHeightOffset + 75, L"W" ); x += StringPixLength( L"W", FONT10ARIAL ) + 2; }
|
||||
if( m->sCenterGridNo != -1 ) { mprintf( x, iScreenHeightOffset + 75, L"C" ); x += StringPixLength( L"C", FONT10ARIAL ) + 2; }
|
||||
if( m->sIsolatedGridNo != -1 ) { mprintf( x, iScreenHeightOffset + 75, L"I" ); x += StringPixLength( L"I", FONT10ARIAL ) + 2; }
|
||||
if( m->sNorthGridNo != -1 ) { mprintf( x, iScreenHeightOffset + 75, pRenderSectorInformationText[5] ); x += StringPixLength( pRenderSectorInformationText[5], FONT10ARIAL ) + 2; }
|
||||
if( m->sEastGridNo != -1 ) { mprintf( x, iScreenHeightOffset + 75, pRenderSectorInformationText[6] ); x += StringPixLength( pRenderSectorInformationText[6], FONT10ARIAL ) + 2; }
|
||||
if( m->sSouthGridNo != -1 ) { mprintf( x, iScreenHeightOffset + 75, pRenderSectorInformationText[7] ); x += StringPixLength( pRenderSectorInformationText[7], FONT10ARIAL ) + 2; }
|
||||
if( m->sWestGridNo != -1 ) { mprintf( x, iScreenHeightOffset + 75, pRenderSectorInformationText[8] ); x += StringPixLength( pRenderSectorInformationText[8], FONT10ARIAL ) + 2; }
|
||||
if( m->sCenterGridNo != -1 ) { mprintf( x, iScreenHeightOffset + 75, pRenderSectorInformationText[9] ); x += StringPixLength( pRenderSectorInformationText[9], FONT10ARIAL ) + 2; }
|
||||
if( m->sIsolatedGridNo != -1 ) { mprintf( x, iScreenHeightOffset + 75, pRenderSectorInformationText[10] ); x += StringPixLength( pRenderSectorInformationText[10], FONT10ARIAL ) + 2; }
|
||||
mprintf( x, iScreenHeightOffset + 75, L")" );
|
||||
}
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 85, L"Number of rooms: %d", s->ubNumRooms );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 95, L"Total map population: %d", m->ubNumIndividuals );
|
||||
mprintf( iScreenWidthOffset + 20, iScreenHeightOffset + 105, L"Enemies: %d", s->EnemyTeam.ubTotal );
|
||||
mprintf( iScreenWidthOffset + 30, iScreenHeightOffset + 115, L"Admins: %d", s->ubNumAdmins );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 85, pRenderSectorInformationText[11], s->ubNumRooms );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 95, pRenderSectorInformationText[12], m->ubNumIndividuals );
|
||||
mprintf( iScreenWidthOffset + 20, iScreenHeightOffset + 105, pRenderSectorInformationText[13], s->EnemyTeam.ubTotal );
|
||||
mprintf( iScreenWidthOffset + 30, iScreenHeightOffset + 115, pRenderSectorInformationText[14], s->ubNumAdmins );
|
||||
if( s->ubNumAdmins )
|
||||
mprintf( iScreenWidthOffset + 100, iScreenHeightOffset + 115, L"(%d detailed, %d profile -- %d have priority existance)", s->ubAdminDetailed, s->ubAdminProfile, s->ubAdminExistance );
|
||||
mprintf( iScreenWidthOffset + 30, iScreenHeightOffset + 125, L"Troops: %d", s->ubNumTroops );
|
||||
mprintf( iScreenWidthOffset + 100, iScreenHeightOffset + 115, pRenderSectorInformationText[15], s->ubAdminDetailed, s->ubAdminProfile, s->ubAdminExistance );
|
||||
mprintf( iScreenWidthOffset + 30, iScreenHeightOffset + 125, pRenderSectorInformationText[16], s->ubNumTroops );
|
||||
if( s->ubNumTroops )
|
||||
mprintf( iScreenWidthOffset + 100, iScreenHeightOffset + 125, L"(%d detailed, %d profile -- %d have priority existance)", s->ubTroopDetailed, s->ubTroopProfile, s->ubTroopExistance );
|
||||
mprintf( iScreenWidthOffset + 30, iScreenHeightOffset + 135, L"Elites: %d", s->ubNumElites );
|
||||
mprintf( iScreenWidthOffset + 100, iScreenHeightOffset + 125, pRenderSectorInformationText[17], s->ubTroopDetailed, s->ubTroopProfile, s->ubTroopExistance );
|
||||
mprintf( iScreenWidthOffset + 30, iScreenHeightOffset + 135, pRenderSectorInformationText[18], s->ubNumElites );
|
||||
if( s->ubNumElites )
|
||||
mprintf( iScreenWidthOffset + 100, iScreenHeightOffset + 135, L"(%d detailed, %d profile -- %d have priority existance)", s->ubEliteDetailed, s->ubEliteProfile, s->ubEliteExistance );
|
||||
mprintf( iScreenWidthOffset + 20, iScreenHeightOffset + 145, L"Civilians: %d", s->CivTeam.ubTotal );
|
||||
mprintf( iScreenWidthOffset + 100, iScreenHeightOffset + 135, pRenderSectorInformationText[19], s->ubEliteDetailed, s->ubEliteProfile, s->ubEliteExistance );
|
||||
mprintf( iScreenWidthOffset + 20, iScreenHeightOffset + 145, pRenderSectorInformationText[20], s->CivTeam.ubTotal );
|
||||
if( s->CivTeam.ubTotal )
|
||||
mprintf( iScreenWidthOffset + 100, iScreenHeightOffset + 145, L"(%d detailed, %d profile -- %d have priority existance)", s->CivTeam.ubDetailed, s->CivTeam.ubProfile, s->CivTeam.ubExistance );
|
||||
mprintf( iScreenWidthOffset + 100, iScreenHeightOffset + 145, pRenderSectorInformationText[21], s->CivTeam.ubDetailed, s->CivTeam.ubProfile, s->CivTeam.ubExistance );
|
||||
if( s->ubSummaryVersion >= 9 )
|
||||
{
|
||||
mprintf( iScreenWidthOffset + 30, iScreenHeightOffset + 155, L"Humans: %d", s->CivTeam.ubTotal - s->ubCivCows - s->ubCivBloodcats );
|
||||
mprintf( iScreenWidthOffset + 30, iScreenHeightOffset + 165, L"Cows: %d", s->ubCivCows );
|
||||
mprintf( iScreenWidthOffset + 30, iScreenHeightOffset + 175, L"Bloodcats: %d", s->ubCivBloodcats );
|
||||
mprintf( iScreenWidthOffset + 30, iScreenHeightOffset + 155, pRenderSectorInformationText[22], s->CivTeam.ubTotal - s->ubCivCows - s->ubCivBloodcats );
|
||||
mprintf( iScreenWidthOffset + 30, iScreenHeightOffset + 165, pRenderSectorInformationText[23], s->ubCivCows );
|
||||
mprintf( iScreenWidthOffset + 30, iScreenHeightOffset + 175, pRenderSectorInformationText[24], s->ubCivBloodcats );
|
||||
}
|
||||
mprintf( iScreenWidthOffset + 20, iScreenHeightOffset + 185, L"Creatures: %d", s->CreatureTeam.ubTotal );
|
||||
mprintf( iScreenWidthOffset + 20, iScreenHeightOffset + 185, pRenderSectorInformationText[25], s->CreatureTeam.ubTotal );
|
||||
if( s->ubSummaryVersion >= 9 )
|
||||
{
|
||||
mprintf( iScreenWidthOffset + 30, iScreenHeightOffset + 195, L"Monsters: %d", s->CreatureTeam.ubTotal - s->CreatureTeam.ubNumAnimals );
|
||||
mprintf( iScreenWidthOffset + 30, iScreenHeightOffset + 205, L"Bloodcats: %d", s->CreatureTeam.ubNumAnimals );
|
||||
mprintf( iScreenWidthOffset + 30, iScreenHeightOffset + 195, pRenderSectorInformationText[26], s->CreatureTeam.ubTotal - s->CreatureTeam.ubNumAnimals );
|
||||
mprintf( iScreenWidthOffset + 30, iScreenHeightOffset + 205, pRenderSectorInformationText[27], s->CreatureTeam.ubNumAnimals );
|
||||
}
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 215, L"Number of locked and/or trapped doors: %d", s->ubNumDoors );
|
||||
mprintf( iScreenWidthOffset + 20, iScreenHeightOffset + 225, L"Locked: %d", s->ubNumDoorsLocked );
|
||||
mprintf( iScreenWidthOffset + 20, iScreenHeightOffset + 235, L"Trapped: %d", s->ubNumDoorsTrapped );
|
||||
mprintf( iScreenWidthOffset + 20, iScreenHeightOffset + 245, L"Locked & Trapped: %d", s->ubNumDoorsLockedAndTrapped );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 215, pRenderSectorInformationText[28], s->ubNumDoors );
|
||||
mprintf( iScreenWidthOffset + 20, iScreenHeightOffset + 225, pRenderSectorInformationText[29], s->ubNumDoorsLocked );
|
||||
mprintf( iScreenWidthOffset + 20, iScreenHeightOffset + 235, pRenderSectorInformationText[30], s->ubNumDoorsTrapped );
|
||||
mprintf( iScreenWidthOffset + 20, iScreenHeightOffset + 245, pRenderSectorInformationText[31], s->ubNumDoorsLockedAndTrapped );
|
||||
if( s->ubSummaryVersion >= 8 )
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 255, L"Civilians with schedules: %d", s->ubCivSchedules );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 255, pRenderSectorInformationText[32], s->ubCivSchedules );
|
||||
if( s->ubSummaryVersion >= 10 )
|
||||
{
|
||||
if( s->fTooManyExitGridDests )
|
||||
{
|
||||
SetFontForeground( FONT_RED );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 265, L"Too many exit grid destinations (more than 4)...");
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 265, pRenderSectorInformationText[33]);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -608,25 +608,25 @@ void RenderSectorInformation()
|
||||
if( ubNumInvalid )
|
||||
{
|
||||
SetFontForeground( FONT_RED );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 265, L"ExitGrids: %d (%d with a long distance destination)", s->ubNumExitGridDests, ubNumInvalid );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 265, pRenderSectorInformationText[34], s->ubNumExitGridDests, ubNumInvalid );
|
||||
}
|
||||
else switch( s->ubNumExitGridDests )
|
||||
{
|
||||
case 0:
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 265, L"ExitGrids: none" );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 265, pRenderSectorInformationText[35] );
|
||||
break;
|
||||
case 1:
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 265, L"ExitGrids: 1 destination using %d exitgrids", s->usExitGridSize[0] );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 265, pRenderSectorInformationText[36], s->usExitGridSize[0] );
|
||||
break;
|
||||
case 2:
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 265, L"ExitGrids: 2 -- 1) Qty: %d, 2) Qty: %d", s->usExitGridSize[0], s->usExitGridSize[1] );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 265, pRenderSectorInformationText[37], s->usExitGridSize[0], s->usExitGridSize[1] );
|
||||
break;
|
||||
case 3:
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 265, L"ExitGrids: 3 -- 1) Qty: %d, 2) Qty: %d, 3) Qty: %d",
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 265, pRenderSectorInformationText[38],
|
||||
s->usExitGridSize[0], s->usExitGridSize[1], s->usExitGridSize[2] );
|
||||
break;
|
||||
case 4:
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 265, L"ExitGrids: 3 -- 1) Qty: %d, 2) Qty: %d, 3) Qty: %d, 4) Qty: %d",
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 265, pRenderSectorInformationText[39],
|
||||
s->usExitGridSize[0], s->usExitGridSize[1], s->usExitGridSize[2], s->usExitGridSize[3] );
|
||||
break;
|
||||
}
|
||||
@@ -634,7 +634,7 @@ void RenderSectorInformation()
|
||||
}
|
||||
iOverall = - ( 2 * s->EnemyTeam.ubBadA ) - s->EnemyTeam.ubPoorA + s->EnemyTeam.ubGoodA + ( 2 * s->EnemyTeam.ubGreatA );
|
||||
usLine = iScreenHeightOffset + 275;
|
||||
mprintf( iScreenWidthOffset + 10, usLine, L"Enemy Relative Attributes: %d bad, %d poor, %d norm, %d good, %d great (%+d Overall)",
|
||||
mprintf( iScreenWidthOffset + 10, usLine, pRenderSectorInformationText[40],
|
||||
s->EnemyTeam.ubBadA,
|
||||
s->EnemyTeam.ubPoorA,
|
||||
s->EnemyTeam.ubAvgA,
|
||||
@@ -643,7 +643,7 @@ void RenderSectorInformation()
|
||||
iOverall );
|
||||
iOverall = - ( 2 * s->EnemyTeam.ubBadE ) - s->EnemyTeam.ubPoorE + s->EnemyTeam.ubGoodE + ( 2 * s->EnemyTeam.ubGreatE );
|
||||
usLine += 10;
|
||||
mprintf( iScreenWidthOffset + 10, usLine, L"Enemy Relative Equipment: %d bad, %d poor, %d norm, %d good, %d great (%+d Overall)",
|
||||
mprintf( iScreenWidthOffset + 10, usLine, pRenderSectorInformationText[41],
|
||||
s->EnemyTeam.ubBadE,
|
||||
s->EnemyTeam.ubPoorE,
|
||||
s->EnemyTeam.ubAvgE,
|
||||
@@ -656,7 +656,7 @@ void RenderSectorInformation()
|
||||
if( s->ubEnemiesReqWaypoints )
|
||||
{
|
||||
SetFontForeground( FONT_RED );
|
||||
mprintf( iScreenWidthOffset + 10, usLine, L"%d placements have patrol orders without any waypoints defined.", s->ubEnemiesReqWaypoints );
|
||||
mprintf( iScreenWidthOffset + 10, usLine, pRenderSectorInformationText[42], s->ubEnemiesReqWaypoints );
|
||||
usLine += 10;
|
||||
}
|
||||
}
|
||||
@@ -665,7 +665,7 @@ void RenderSectorInformation()
|
||||
if( s->ubEnemiesHaveWaypoints )
|
||||
{
|
||||
SetFontForeground( FONT_RED );
|
||||
mprintf( iScreenWidthOffset + 10, usLine, L"%d placements have waypoints, but without any patrol orders.", s->ubEnemiesHaveWaypoints );
|
||||
mprintf( iScreenWidthOffset + 10, usLine, pRenderSectorInformationText[43], s->ubEnemiesHaveWaypoints );
|
||||
usLine += 10;
|
||||
}
|
||||
}
|
||||
@@ -674,7 +674,7 @@ void RenderSectorInformation()
|
||||
if( s->usWarningRoomNums )
|
||||
{
|
||||
SetFontForeground( FONT_RED );
|
||||
mprintf( iScreenWidthOffset + 10, usLine, L"%d gridnos have questionable room numbers. Please validate.", s->usWarningRoomNums );
|
||||
mprintf( iScreenWidthOffset + 10, usLine, pRenderSectorInformationText[44], s->usWarningRoomNums );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -693,9 +693,9 @@ void RenderItemDetails()
|
||||
SetFont( FONT10ARIAL );
|
||||
SetFontForeground( FONT_GRAY2 );
|
||||
SetFontShadow( FONT_NEARBLACK );
|
||||
mprintf( iScreenWidthOffset + 364, iScreenHeightOffset + 49, L"R" );
|
||||
mprintf( iScreenWidthOffset + 390, iScreenHeightOffset + 49, L"S" );
|
||||
mprintf( iScreenWidthOffset + 364, iScreenHeightOffset + 62, L"Enemy" );
|
||||
mprintf( iScreenWidthOffset + 364, iScreenHeightOffset + 49, pRenderItemDetailsText[0] );
|
||||
mprintf( iScreenWidthOffset + 390, iScreenHeightOffset + 49, pRenderItemDetailsText[1] );
|
||||
mprintf( iScreenWidthOffset + 364, iScreenHeightOffset + 62, pRenderItemDetailsText[2] );
|
||||
|
||||
xp = iScreenWidthOffset + 5;
|
||||
yp = iScreenHeightOffset + 20;
|
||||
@@ -789,7 +789,7 @@ void RenderItemDetails()
|
||||
if( xp >= (UINT32)(iScreenWidthOffset + 300 ))
|
||||
{
|
||||
SetFontForeground( FONT_RED );
|
||||
mprintf( iScreenWidthOffset + 350, iScreenHeightOffset + 350, L"TOO MANY ITEMS TO DISPLAY!");
|
||||
mprintf( iScreenWidthOffset + 350, iScreenHeightOffset + 350, pRenderItemDetailsText[3]);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -808,14 +808,14 @@ void RenderItemDetails()
|
||||
SetFontForeground( 77 );
|
||||
switch( i )
|
||||
{
|
||||
case 0: swprintf( str, L"Panic1" ); break;
|
||||
case 1: swprintf( str, L"Panic2" ); break;
|
||||
case 2: swprintf( str, L"Panic3" ); break;
|
||||
case 3: swprintf( str, L"Norm1" ); break;
|
||||
case 4: swprintf( str, L"Norm2" ); break;
|
||||
case 5: swprintf( str, L"Norm3" ); break;
|
||||
case 6: swprintf( str, L"Norm4" ); break;
|
||||
case 7: swprintf( str, L"Pressure Actions" ); break;
|
||||
case 0: swprintf( str, pRenderItemDetailsText[4] ); break;
|
||||
case 1: swprintf( str, pRenderItemDetailsText[5] ); break;
|
||||
case 2: swprintf( str, pRenderItemDetailsText[6] ); break;
|
||||
case 3: swprintf( str, pRenderItemDetailsText[7] ); break;
|
||||
case 4: swprintf( str, pRenderItemDetailsText[8] ); break;
|
||||
case 5: swprintf( str, pRenderItemDetailsText[9] ); break;
|
||||
case 6: swprintf( str, pRenderItemDetailsText[10] ); break;
|
||||
case 7: swprintf( str, pRenderItemDetailsText[11] ); break;
|
||||
}
|
||||
if( i < 7 )
|
||||
{
|
||||
@@ -836,7 +836,7 @@ void RenderItemDetails()
|
||||
if( xp >= (UINT32)(iScreenWidthOffset + 300 ))
|
||||
{
|
||||
SetFontForeground( FONT_RED );
|
||||
mprintf( iScreenWidthOffset + 350, iScreenHeightOffset + 350, L"TOO MANY ITEMS TO DISPLAY!");
|
||||
mprintf( iScreenWidthOffset + 350, iScreenHeightOffset + 350, pRenderItemDetailsText[12]);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -847,14 +847,14 @@ void RenderItemDetails()
|
||||
{
|
||||
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
mprintf( xp, yp, L"PRIORITY ENEMY DROPPED ITEMS" );
|
||||
mprintf( xp, yp, pRenderItemDetailsText[13] );
|
||||
yp += 10;
|
||||
|
||||
//Do the priority existance guys first
|
||||
if( !gpPEnemyItemsSummaryArray )
|
||||
{
|
||||
SetFontForeground( FONT_DKYELLOW );
|
||||
mprintf( xp, yp, L"None" );
|
||||
mprintf( xp, yp, pRenderItemDetailsText[14] );
|
||||
yp += 10;
|
||||
}
|
||||
else for( index = 1; index < MAXITEMS; index++ )
|
||||
@@ -898,7 +898,7 @@ void RenderItemDetails()
|
||||
if( xp >= (UINT32)(iScreenWidthOffset + 300 ))
|
||||
{
|
||||
SetFontForeground( FONT_RED );
|
||||
mprintf( iScreenWidthOffset + 350, iScreenHeightOffset + 350, L"TOO MANY ITEMS TO DISPLAY!");
|
||||
mprintf( iScreenWidthOffset + 350, iScreenHeightOffset + 350, pRenderItemDetailsText[15] );
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -908,7 +908,7 @@ void RenderItemDetails()
|
||||
yp += 5;
|
||||
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
mprintf( xp, yp, L"NORMAL ENEMY DROPPED ITEMS" );
|
||||
mprintf( xp, yp, pRenderItemDetailsText[16] );
|
||||
yp += 10;
|
||||
if( yp >= (UINT32)(iScreenHeightOffset + 355 ))
|
||||
{
|
||||
@@ -917,7 +917,7 @@ void RenderItemDetails()
|
||||
if( xp >= (UINT32)(iScreenWidthOffset + 300 ))
|
||||
{
|
||||
SetFontForeground( FONT_RED );
|
||||
mprintf( iScreenWidthOffset + 350, iScreenHeightOffset + 350, L"TOO MANY ITEMS TO DISPLAY!");
|
||||
mprintf( iScreenWidthOffset + 350, iScreenHeightOffset + 350, pRenderItemDetailsText[17] );
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -926,7 +926,7 @@ void RenderItemDetails()
|
||||
if( !gpNEnemyItemsSummaryArray )
|
||||
{
|
||||
SetFontForeground( FONT_DKYELLOW );
|
||||
mprintf( xp, yp, L"None" );
|
||||
mprintf( xp, yp, pRenderItemDetailsText[18] );
|
||||
yp += 10;
|
||||
}
|
||||
for( index = 1; index < MAXITEMS; index++ )
|
||||
@@ -968,7 +968,7 @@ void RenderItemDetails()
|
||||
if( xp >= (UINT32)(iScreenWidthOffset + 300 ))
|
||||
{
|
||||
SetFontForeground( FONT_RED );
|
||||
mprintf( iScreenWidthOffset + 350, iScreenHeightOffset + 350, L"TOO MANY ITEMS TO DISPLAY!");
|
||||
mprintf( iScreenWidthOffset + 350, iScreenHeightOffset + 350, pRenderItemDetailsText[19] );
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -981,7 +981,7 @@ void RenderItemDetails()
|
||||
else
|
||||
{
|
||||
SetFontForeground( FONT_RED );
|
||||
mprintf( iScreenWidthOffset + 5, iScreenHeightOffset + 50, L"ERROR: Can't load the items for this map. Reason unknown." );
|
||||
mprintf( iScreenWidthOffset + 5, iScreenHeightOffset + 50, pRenderItemDetailsText[20] );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1017,7 +1017,7 @@ void RenderSummaryWindow()
|
||||
SetFontBackground( 0 );
|
||||
if( !gfItemDetailsMode )
|
||||
{
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 5, L"CAMPAIGN EDITOR -- %s Version 1.%02d",
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 5, pRenderSummaryWindowText[0],
|
||||
gszVersionType[ GLOBAL_SUMMARY_STATE ], GLOBAL_SUMMARY_VERSION );
|
||||
}
|
||||
|
||||
@@ -1026,7 +1026,7 @@ void RenderSummaryWindow()
|
||||
{
|
||||
SetFontForeground( FONT_RED );
|
||||
SetFontShadow( FONT_NEARBLACK );
|
||||
mprintf( iScreenWidthOffset + 270, iScreenHeightOffset + 5, L"(NO MAP LOADED).");
|
||||
mprintf( iScreenWidthOffset + 270, iScreenHeightOffset + 5, pRenderSummaryWindowText[1]);
|
||||
}
|
||||
SetFont( FONT10ARIAL );
|
||||
SetFontShadow( FONT_NEARBLACK );
|
||||
@@ -1038,29 +1038,29 @@ void RenderSummaryWindow()
|
||||
{
|
||||
DisableButton( iSummaryButton[ SUMMARY_LOAD ] );
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 20, L"You currently have %d outdated maps.", gusNumEntriesWithOutdatedOrNoSummaryInfo);
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 30, L"The more maps that need to be updated, the longer it takes. It'll take ");
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 40, L"approximately 4 minutes on a P200MMX to analyse 100 maps, so");
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 50, L"depending on your computer, it may vary.");
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 20, pRenderSummaryWindowText[2], gusNumEntriesWithOutdatedOrNoSummaryInfo);
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 30, pRenderSummaryWindowText[3]);
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 40, pRenderSummaryWindowText[4]);
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 50, pRenderSummaryWindowText[5]);
|
||||
SetFontForeground( FONT_LTRED );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 65, L"Do you wish to regenerate info for ALL these maps at this time (y/n)?" );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 65, pRenderSummaryWindowText[6] );
|
||||
}
|
||||
else if( !gsSelSectorX && !gsSectorX || gfTempFile )
|
||||
{
|
||||
DisableButton( iSummaryButton[ SUMMARY_LOAD ] );
|
||||
SetFontForeground( FONT_LTRED );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 20, L"There is no sector currently selected." );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 20, pRenderSummaryWindowText[7] );
|
||||
if( gfTempFile )
|
||||
{
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 30, L"Entering a temp file name that doesn't follow campaign editor conventions..." );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 30, pRenderSummaryWindowText[8] );
|
||||
goto SPECIALCASE_LABEL; //OUCH!!!
|
||||
}
|
||||
else if( !gfWorldLoaded )
|
||||
{
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 30, L"You need to either load an existing map or create a new map before being" );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 40, L"able to enter the editor, or you can quit (ESC or Alt+x).");
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 30, pRenderSummaryWindowText[9] );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 40, pRenderSummaryWindowText[10] );
|
||||
}
|
||||
else if(gCustomFileSectorSummary.ubSummaryVersion)//dnl ch30 150909
|
||||
{
|
||||
@@ -1147,42 +1147,42 @@ void RenderSummaryWindow()
|
||||
{
|
||||
case GROUND_LEVEL_MASK:
|
||||
giCurrLevel = 0;
|
||||
wcscat( str, L", ground level" );
|
||||
wcscat( str, pRenderSummaryWindowText[11] );
|
||||
gpCurrentSectorSummary = gpSectorSummary[x][y][0];
|
||||
break;
|
||||
case BASEMENT1_LEVEL_MASK:
|
||||
giCurrLevel = 1;
|
||||
wcscat( str, L", underground level 1" );
|
||||
wcscat( str, pRenderSummaryWindowText[12] );
|
||||
gpCurrentSectorSummary = gpSectorSummary[x][y][1];
|
||||
break;
|
||||
case BASEMENT2_LEVEL_MASK:
|
||||
giCurrLevel = 2;
|
||||
wcscat( str, L", underground level 2" );
|
||||
wcscat( str, pRenderSummaryWindowText[13] );
|
||||
gpCurrentSectorSummary = gpSectorSummary[x][y][2];
|
||||
break;
|
||||
case BASEMENT3_LEVEL_MASK:
|
||||
giCurrLevel = 3;
|
||||
wcscat( str, L", underground level 3" );
|
||||
wcscat( str, pRenderSummaryWindowText[14] );
|
||||
gpCurrentSectorSummary = gpSectorSummary[x][y][3];
|
||||
break;
|
||||
case ALTERNATE_GROUND_MASK:
|
||||
giCurrLevel = 4;
|
||||
wcscat( str, L", alternate G level" );
|
||||
wcscat( str, pRenderSummaryWindowText[15] );
|
||||
gpCurrentSectorSummary = gpSectorSummary[x][y][4];
|
||||
break;
|
||||
case ALTERNATE_B1_MASK:
|
||||
giCurrLevel = 5;
|
||||
wcscat( str, L", alternate B1 level" );
|
||||
wcscat( str, pRenderSummaryWindowText[16] );
|
||||
gpCurrentSectorSummary = gpSectorSummary[x][y][5];
|
||||
break;
|
||||
case ALTERNATE_B2_MASK:
|
||||
giCurrLevel = 6;
|
||||
wcscat( str, L", alternate B2 level" );
|
||||
wcscat( str, pRenderSummaryWindowText[17] );
|
||||
gpCurrentSectorSummary = gpSectorSummary[x][y][6];
|
||||
break;
|
||||
case ALTERNATE_B3_MASK:
|
||||
giCurrLevel = 7;
|
||||
wcscat( str, L", alternate B3 level" );
|
||||
wcscat( str, pRenderSummaryWindowText[18] );
|
||||
gpCurrentSectorSummary = gpSectorSummary[x][y][7];
|
||||
break;
|
||||
}
|
||||
@@ -1223,12 +1223,12 @@ void RenderSummaryWindow()
|
||||
SetupItemDetailsMode( TRUE );
|
||||
gfSetupItemDetailsMode = FALSE;
|
||||
}
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 5, L"ITEM DETAILS -- sector %s", str );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 5, pRenderSummaryWindowText[19], str );
|
||||
RenderItemDetails();
|
||||
}
|
||||
else
|
||||
{
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 20, L"Summary Information for sector %s:", str );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 20, pRenderSummaryWindowText[20], str );
|
||||
HideButton( iSummaryButton[ SUMMARY_REAL ] );
|
||||
HideButton( iSummaryButton[ SUMMARY_SCIFI ] );
|
||||
HideButton( iSummaryButton[ SUMMARY_ENEMY ] );
|
||||
@@ -1240,13 +1240,13 @@ void RenderSummaryWindow()
|
||||
SetFontForeground( FONT_RED );
|
||||
if( gfItemDetailsMode )
|
||||
{
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 5, L"Summary Information for sector %s" , str );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 15, L"does not exist." );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 5, pRenderSummaryWindowText[21] , str );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 15, pRenderSummaryWindowText[22] );
|
||||
}
|
||||
else
|
||||
{
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 20, L"Summary Information for sector %s" , str );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 30, L"does not exist." );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 20, pRenderSummaryWindowText[23] , str );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 30, pRenderSummaryWindowText[24] );
|
||||
}
|
||||
ShowButton( iSummaryButton[ SUMMARY_UPDATE ] );
|
||||
}
|
||||
@@ -1261,9 +1261,9 @@ void RenderSummaryWindow()
|
||||
SetFontShadow( 0 );
|
||||
}
|
||||
if( gfItemDetailsMode )
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 5, L"No information exists for sector %s.", str );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 5, pRenderSummaryWindowText[25], str );
|
||||
else
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 20, L"No information exists for sector %s.", str );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 20, pRenderSummaryWindowText[26], str );
|
||||
SetFontShadow( FONT_NEARBLACK );
|
||||
|
||||
switch( giCurrentViewLevel )
|
||||
@@ -1291,7 +1291,7 @@ void RenderSummaryWindow()
|
||||
SetFontForeground( FONT_LTKHAKI );
|
||||
else
|
||||
SetFontForeground( FONT_LTBLUE );
|
||||
mprintf( MAP_LEFT+110, MAP_BOTTOM+55, L"FILE: %s", gszDisplayName );
|
||||
mprintf( MAP_LEFT+110, MAP_BOTTOM+55, pRenderSummaryWindowText[27], gszDisplayName );
|
||||
}
|
||||
else //little higher to make room for the override checkbox and text.
|
||||
{
|
||||
@@ -1299,16 +1299,16 @@ void RenderSummaryWindow()
|
||||
SetFontForeground( FONT_LTKHAKI );
|
||||
else
|
||||
SetFontForeground( FONT_LTBLUE );
|
||||
mprintf( MAP_LEFT+110, MAP_BOTTOM+46, L"FILE: %s", gszDisplayName );
|
||||
mprintf( MAP_LEFT+110, MAP_BOTTOM+46, pRenderSummaryWindowText[28], gszDisplayName );
|
||||
if( gubOverrideStatus == READONLY )
|
||||
{
|
||||
SetFontForeground( (UINT8)(gfOverride ? FONT_YELLOW : FONT_LTRED) );
|
||||
mprintf( MAP_LEFT+124, MAP_BOTTOM+61, L"Override READONLY" );
|
||||
mprintf( MAP_LEFT+124, MAP_BOTTOM+61, pRenderSummaryWindowText[29] );
|
||||
}
|
||||
else
|
||||
{
|
||||
SetFontForeground( (UINT8)(gfOverride ? FONT_YELLOW: FONT_ORANGE ) );
|
||||
mprintf( MAP_LEFT+124, MAP_BOTTOM+61, L"Overwrite File");
|
||||
mprintf( MAP_LEFT+124, MAP_BOTTOM+61, pRenderSummaryWindowText[30]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1316,29 +1316,29 @@ void RenderSummaryWindow()
|
||||
else if( !gfDeniedSummaryCreation )
|
||||
{
|
||||
SetFontForeground( FONT_GRAY1 );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 20, L"You currently have no summary data. By creating one, you will be able to keep track" );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 30, L"of information pertaining to all of the sectors you edit and save. The creation process" );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 40, L"will analyse all maps in your \\MAPS directory, and generate a new one. This could" );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 50, L"take a few minutes depending on how many valid maps you have. Valid maps are" );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 60, L"maps following the proper naming convention from a1.dat - p16.dat. Underground maps" );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 70, L"are signified by appending _b1 to _b3 before the .dat (ex: a9_b1.dat). ");
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 20, pRenderSummaryWindowText[31] );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 30, pRenderSummaryWindowText[32] );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 40, pRenderSummaryWindowText[33] );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 50, pRenderSummaryWindowText[34] );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 60, pRenderSummaryWindowText[35] );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 70, pRenderSummaryWindowText[36] );
|
||||
SetFontForeground( FONT_LTRED );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 85, L"Do you wish to do this now (y/n)?" );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 85, pRenderSummaryWindowText[37] );
|
||||
}
|
||||
else
|
||||
{
|
||||
SetFontForeground( FONT_LTRED );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 20, L"No summary info. Creation denied." );
|
||||
mprintf( iScreenWidthOffset + 10, iScreenHeightOffset + 20, pRenderSummaryWindowText[38] );
|
||||
}
|
||||
|
||||
SetFont( FONT10ARIAL );
|
||||
SetFontForeground( FONT_GRAY3 );
|
||||
mprintf( MAP_LEFT + 15, MAP_BOTTOM + 7, L"Grid" );
|
||||
mprintf( MAP_LEFT + 65, MAP_BOTTOM + 7, L"Progress" );
|
||||
mprintf( MAP_LEFT + 15, MAP_BOTTOM + 27, L"Use Alternate Maps" );
|
||||
mprintf( MAP_LEFT + 15, MAP_BOTTOM + 7, pRenderSummaryWindowText[39] );
|
||||
mprintf( MAP_LEFT + 65, MAP_BOTTOM + 7,pRenderSummaryWindowText[40] );
|
||||
mprintf( MAP_LEFT + 15, MAP_BOTTOM + 27, pRenderSummaryWindowText[41] );
|
||||
//Draw the mode tabs
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
mprintf( iScreenWidthOffset + 354, iScreenHeightOffset + 18, L"Summary" );
|
||||
mprintf( iScreenWidthOffset + 354, iScreenHeightOffset + 18, pRenderSummaryWindowText[42] );
|
||||
pDestBuf = LockVideoSurface( FRAME_BUFFER, &uiDestPitchBYTES );
|
||||
SetClippingRegionAndImageWidth( uiDestPitchBYTES, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT );
|
||||
RectangleDraw( TRUE, iScreenWidthOffset + 350, iScreenHeightOffset + 15, iScreenWidthOffset + 405, iScreenHeightOffset + 28, 0, pDestBuf );
|
||||
@@ -1355,7 +1355,7 @@ void RenderSummaryWindow()
|
||||
{
|
||||
SetFontForeground( FONT_RED );
|
||||
}
|
||||
mprintf( iScreenWidthOffset + 354, iScreenHeightOffset + 33, L"Items" );
|
||||
mprintf( iScreenWidthOffset + 354, iScreenHeightOffset + 33, pRenderSummaryWindowText[43] );
|
||||
pDestBuf = LockVideoSurface( FRAME_BUFFER, &uiDestPitchBYTES );
|
||||
SetClippingRegionAndImageWidth( uiDestPitchBYTES, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT );
|
||||
RectangleDraw( TRUE, iScreenWidthOffset + 350, iScreenHeightOffset + 30, iScreenWidthOffset + 405, iScreenHeightOffset + 43, 0, pDestBuf );
|
||||
@@ -1675,7 +1675,7 @@ void UpdateSectorSummary( STR16 gszFilename, BOOLEAN fUpdate )
|
||||
SetFont( FONT10ARIAL );
|
||||
SetFontForeground( FONT_LTKHAKI );
|
||||
SetFontShadow( FONT_NEARBLACK );
|
||||
swprintf( str, L"Analyzing map: %s...", gszFilename );
|
||||
swprintf( str, pUpdateSectorSummaryText[0], gszFilename );
|
||||
|
||||
if( gfSummaryWindowActive )
|
||||
{
|
||||
@@ -2168,10 +2168,13 @@ void SummaryLoadMapCallback( GUI_BUTTON *btn, INT32 reason )
|
||||
|
||||
//DefineProgressBarPanel( 0, 65, 79, 94, MAP_LEFT, iScreenHeightOffset + 318, iScreenWidthOffset + 578, iScreenHeightOffset + 356 );
|
||||
DefineProgressBarPanel( 0, 65, 79, 94, MAP_LEFT, iScreenHeightOffset + 318, MAP_LEFT + 161, iScreenHeightOffset + 356 );
|
||||
swprintf( str, L"Loading map: %s", gszDisplayName );
|
||||
swprintf( str, pSummaryLoadMapCallbackText[0], gszDisplayName );
|
||||
SetProgressBarTitle( 0, str, BLOCKFONT2, FONT_RED, FONT_NEARBLACK );
|
||||
SetProgressBarMsgAttributes( 0, SMALLCOMPFONT, FONT_BLACK, FONT_BLACK );
|
||||
|
||||
// WANNE: When loading from summary map, never resize the map, just load it!
|
||||
gfResizeMapOnLoading = FALSE;
|
||||
|
||||
if( ExternalLoadMap( gszDisplayName ) )
|
||||
{
|
||||
EnableButton( iSummaryButton[ SUMMARY_OKAY ] );
|
||||
@@ -2889,7 +2892,7 @@ void ReportError( STR8 pSector, UINT8 ubLevel )
|
||||
swprintf( temp, L"_b%d.dat", ubLevel % 4 );
|
||||
wcscat( str, temp );
|
||||
}
|
||||
mprintf( iScreenWidthOffset + 10, yp, L"Skipping update for %s. Probably due to tileset conflicts...", str );
|
||||
mprintf( iScreenWidthOffset + 10, yp, pReportErrorText[0] , str );
|
||||
InvalidateScreen();
|
||||
yp++;
|
||||
}
|
||||
@@ -2905,7 +2908,7 @@ void RegenerateSummaryInfoForAllOutdatedMaps()
|
||||
//DefineProgressBarPanel( 0, 65, 79, 94, 10, 80, 310, 152 );
|
||||
CreateProgressBar( 0, iScreenWidthOffset + 20, iScreenHeightOffset + 100, iScreenWidthOffset + 300, iScreenHeightOffset + 112 ); //master (total)
|
||||
DefineProgressBarPanel( 0, 65, 79, 94, iScreenWidthOffset + 10, iScreenHeightOffset + 80, iScreenWidthOffset + 310, iScreenHeightOffset + 132 );
|
||||
SetProgressBarTitle( 0, L"Generating map information", BLOCKFONT2, FONT_RED, FONT_NEARBLACK );
|
||||
SetProgressBarTitle( 0, pRegenerateSummaryInfoForAllOutdatedMapsText[0], BLOCKFONT2, FONT_RED, FONT_NEARBLACK );
|
||||
SetProgressBarMsgAttributes( 0, SMALLCOMPFONT, FONT_BLACK, FONT_BLACK );
|
||||
gfUpdatingNow = TRUE;
|
||||
|
||||
@@ -2985,7 +2988,7 @@ void SummaryUpdateCallback( GUI_BUTTON *btn, INT32 reason )
|
||||
CHAR8 str[40];
|
||||
CreateProgressBar( 0, iScreenWidthOffset + 20, iScreenHeightOffset + 100, iScreenWidthOffset + 300, iScreenHeightOffset + 112 ); //slave (individual)
|
||||
DefineProgressBarPanel( 0, 65, 79, 94, iScreenWidthOffset + 10, iScreenHeightOffset + 80, iScreenWidthOffset + 310, iScreenHeightOffset + 132 );
|
||||
SetProgressBarTitle( 0, L"Generating map summary", BLOCKFONT2, FONT_RED, FONT_NEARBLACK );
|
||||
SetProgressBarTitle( 0, pSummaryUpdateCallbackText[0], BLOCKFONT2, FONT_RED, FONT_NEARBLACK );
|
||||
SetProgressBarMsgAttributes( 0, SMALLCOMPFONT, FONT_BLACK, FONT_BLACK );
|
||||
|
||||
#if 0
|
||||
@@ -3094,16 +3097,16 @@ void ApologizeOverrideAndForceUpdateEverything()
|
||||
SetFont( HUGEFONT );
|
||||
SetFontForeground( FONT_RED );
|
||||
SetFontShadow( FONT_NEARBLACK );
|
||||
swprintf( str, L"MAJOR VERSION UPDATE" );
|
||||
swprintf( str, pApologizeOverrideAndForceUpdateEverythingText[0] );
|
||||
mprintf( (iScreenWidthOffset + 320) - StringPixLength( str, HUGEFONT )/2, iScreenHeightOffset + 105, str );
|
||||
SetFont( FONT10ARIAL );
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
swprintf( str, L"There are %d maps requiring a major version update.", gusNumberOfMapsToBeForceUpdated );
|
||||
swprintf( str, pApologizeOverrideAndForceUpdateEverythingText[1], gusNumberOfMapsToBeForceUpdated );
|
||||
mprintf( (iScreenWidthOffset + 320) - StringPixLength( str, FONT10ARIAL )/2, iScreenHeightOffset + 130, str );
|
||||
|
||||
CreateProgressBar( 2, iScreenWidthOffset + 120, iScreenHeightOffset + 170, iScreenWidthOffset + 520, iScreenHeightOffset + 202 );
|
||||
DefineProgressBarPanel( 2, 65, 79, 94, iScreenWidthOffset + 100, iScreenHeightOffset + 150, iScreenWidthOffset + 540, iScreenHeightOffset + 222 );
|
||||
SetProgressBarTitle( 2, L"Updating all outdated maps", BLOCKFONT2, FONT_RED, 0 );
|
||||
SetProgressBarTitle( 2, pApologizeOverrideAndForceUpdateEverythingText[2], BLOCKFONT2, FONT_RED, 0 );
|
||||
SetProgressBarMsgAttributes( 2, SMALLCOMPFONT, FONT_BLACK, FONT_BLACK );
|
||||
|
||||
gusCurrent = 0;
|
||||
|
||||
+69
-67
@@ -77,6 +77,7 @@
|
||||
#include "cursors.h"//dnl ch2 210909
|
||||
#include "Cursor Control.h"//dnl ch2 210909
|
||||
#include "maputility.h"//dnl ch49 061009
|
||||
#include "Text.h"
|
||||
#endif
|
||||
|
||||
//forward declarations of common classes to eliminate includes
|
||||
@@ -164,6 +165,7 @@ BOOLEAN fDontUseClick = FALSE;//dnl ch7 210909
|
||||
BOOLEAN fShowHighGround = FALSE;//dnl ch2 210909
|
||||
BOOLEAN fRaiseWorld = FALSE;//dnl ch3 210909
|
||||
BOOLEAN gfVanillaMode = TRUE;//dnl ch33 091009
|
||||
BOOLEAN gfResizeMapOnLoading = FALSE;
|
||||
|
||||
INT32 TestButtons[10];
|
||||
|
||||
@@ -476,7 +478,7 @@ BOOLEAN EditModeShutdown( void )
|
||||
if( gfConfirmExitFirst )
|
||||
{
|
||||
gfConfirmExitPending = TRUE;
|
||||
CreateMessageBox( L"Exit editor?" );
|
||||
CreateMessageBox( pEditModeShutdownText[0] );
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -1619,15 +1621,15 @@ void HandleKeyboardShortcuts( )
|
||||
case F9:
|
||||
break;
|
||||
case F10:
|
||||
CreateMessageBox( L"Are you sure you wish to remove all lights?" );
|
||||
CreateMessageBox( pHandleKeyboardShortcutsText[0] );
|
||||
gfRemoveLightsPending = TRUE;
|
||||
break;
|
||||
case F11:
|
||||
CreateMessageBox( L"Are you sure you wish to reverse the schedules?" );
|
||||
CreateMessageBox( pHandleKeyboardShortcutsText[1] );
|
||||
gfScheduleReversalPending = TRUE;
|
||||
break;
|
||||
case F12:
|
||||
CreateMessageBox( L"Are you sure you wish to clear all of the schedules?" );
|
||||
CreateMessageBox( pHandleKeyboardShortcutsText[2] );
|
||||
gfScheduleClearPending = TRUE;
|
||||
break;
|
||||
|
||||
@@ -1710,12 +1712,12 @@ void HandleKeyboardShortcuts( )
|
||||
if(fDontUseClick)
|
||||
{
|
||||
fDontUseClick = FALSE;
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, L"Clicked Placement Enabled");
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, pHandleKeyboardShortcutsText[3] );
|
||||
}
|
||||
else
|
||||
{
|
||||
fDontUseClick = TRUE;
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, L"Clicked Placement Disabled");
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, pHandleKeyboardShortcutsText[4] );
|
||||
}
|
||||
break;
|
||||
case 'd': // debris
|
||||
@@ -1810,12 +1812,12 @@ void HandleKeyboardShortcuts( )
|
||||
if(iDrawMode != DRAW_MODE_HIGH_GROUND)
|
||||
{
|
||||
iDrawMode = DRAW_MODE_HIGH_GROUND;
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, L"Draw High Ground Enabled");
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, pHandleKeyboardShortcutsText[5] );
|
||||
}
|
||||
else
|
||||
{
|
||||
iDrawMode = DRAW_MODE_NOTHING;
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, L"Draw High Ground Disabled");
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, pHandleKeyboardShortcutsText[6] );
|
||||
}
|
||||
break;
|
||||
#ifdef dnlTEST
|
||||
@@ -1851,7 +1853,7 @@ void HandleKeyboardShortcuts( )
|
||||
}
|
||||
break;
|
||||
case 'L'://dnl ch23 210909
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, L"Number of edge points: N=%d E=%d S=%d W=%d", gus1stNorthEdgepointArraySize, gus1stEastEdgepointArraySize, gus1stSouthEdgepointArraySize, gus1stWestEdgepointArraySize);
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, pHandleKeyboardShortcutsText[7], gus1stNorthEdgepointArraySize, gus1stEastEdgepointArraySize, gus1stSouthEdgepointArraySize, gus1stWestEdgepointArraySize);
|
||||
ToggleMapEdgepoints();
|
||||
break;
|
||||
#ifdef dnlTEST
|
||||
@@ -1898,12 +1900,12 @@ void HandleKeyboardShortcuts( )
|
||||
if(fDontUseRandom)
|
||||
{
|
||||
fDontUseRandom = FALSE;
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, L"Random Placement Enabled");
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, pHandleKeyboardShortcutsText[8] );
|
||||
}
|
||||
else
|
||||
{
|
||||
fDontUseRandom = TRUE;
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, L"Random Placement Disabled");
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, pHandleKeyboardShortcutsText[9] );
|
||||
}
|
||||
break;
|
||||
case 's':
|
||||
@@ -1926,12 +1928,12 @@ void HandleKeyboardShortcuts( )
|
||||
case 'T':
|
||||
if ( fShowTrees )
|
||||
{
|
||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, L"Removing Treetops" );
|
||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, pHandleKeyboardShortcutsText[10] );
|
||||
WorldHideTrees( );
|
||||
}
|
||||
else
|
||||
{
|
||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, L"Showing Treetops" );
|
||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, pHandleKeyboardShortcutsText[11] );
|
||||
WorldShowTrees( );
|
||||
}
|
||||
fShowTrees = !fShowTrees;
|
||||
@@ -1948,7 +1950,7 @@ void HandleKeyboardShortcuts( )
|
||||
gpWorldLevelData[cnt].sHeight = 0;
|
||||
fShowHighGround = FALSE;
|
||||
ShowHighGround(3);
|
||||
ScreenMsg(FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, L"World Raise Reset");
|
||||
ScreenMsg(FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, pHandleKeyboardShortcutsText[12] );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1956,12 +1958,12 @@ void HandleKeyboardShortcuts( )
|
||||
if(EditorInputEvent.usParam == 'U')
|
||||
{
|
||||
RaiseWorldLandOld();
|
||||
ScreenMsg(FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, L"World Raise Set Old");
|
||||
ScreenMsg(FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, pHandleKeyboardShortcutsText[13] );
|
||||
}
|
||||
else
|
||||
{
|
||||
RaiseWorldLand();
|
||||
ScreenMsg(FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, L"World Raise Set");
|
||||
ScreenMsg(FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, pHandleKeyboardShortcutsText[14] );
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -2068,7 +2070,7 @@ UINT32 PerformSelectedAction( void )
|
||||
break;
|
||||
|
||||
case ACTION_RADAR_MAP://dnl ch9 071009
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, L"Creating radar map for %S", gubFilename);
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, pPerformSelectedActionText[0], gubFilename);
|
||||
MarkWorldDirty();
|
||||
return(MAPUTILITY_SCREEN);
|
||||
break;
|
||||
@@ -2119,16 +2121,16 @@ UINT32 PerformSelectedAction( void )
|
||||
ExtractAndUpdateOptions();//dnl ch52 091009
|
||||
fNewMap = TRUE;
|
||||
if( gfPendingBasement )
|
||||
CreateMessageBox( L"Delete current map and start a new basement level?" );
|
||||
CreateMessageBox( pPerformSelectedActionText[1] );
|
||||
else if( gfPendingCaves )
|
||||
CreateMessageBox( L"Delete current map and start a new cave level?" );
|
||||
CreateMessageBox( pPerformSelectedActionText[2] );
|
||||
else
|
||||
CreateMessageBox( L"Delete current map and start a new outdoor level?" );
|
||||
CreateMessageBox( pPerformSelectedActionText[3] );
|
||||
break;
|
||||
|
||||
case ACTION_SET_NEW_BACKGROUND:
|
||||
if (!fBeenWarned)
|
||||
CreateMessageBox( L" Wipe out ground textures? " );
|
||||
CreateMessageBox( pPerformSelectedActionText[4] );
|
||||
else
|
||||
{
|
||||
gCurrentBackground = TerrainBackgroundTile;
|
||||
@@ -2566,68 +2568,68 @@ UINT32 WaitForHelpScreenResponse( void )
|
||||
|
||||
SetFont( gp12PointFont1 );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 55, L"HOME" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 55, L"Toggle fake editor lighting ON/OFF" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 55, pWaitForHelpScreenResponseText[0] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 55, pWaitForHelpScreenResponseText[1] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 67, L"INSERT" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 67, L"Toggle fill mode ON/OFF" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 67, pWaitForHelpScreenResponseText[2] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 67, pWaitForHelpScreenResponseText[3] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 79, L"BKSPC" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 79, L"Undo last change" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 79, pWaitForHelpScreenResponseText[4] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 79, pWaitForHelpScreenResponseText[5] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 91, L"DEL" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 91, L"Quick erase object under mouse cursor" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 91, pWaitForHelpScreenResponseText[6] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 91, pWaitForHelpScreenResponseText[7] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 103, L"ESC" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 103, L"Exit editor" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 103, pWaitForHelpScreenResponseText[8] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 103, pWaitForHelpScreenResponseText[9] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 115, L"PGUP/PGDN" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 115, L"Change object to be pasted" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 115, pWaitForHelpScreenResponseText[10] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 115, pWaitForHelpScreenResponseText[11] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 127, L"F1" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 127, L"This help screen" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 127, pWaitForHelpScreenResponseText[12] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 127, pWaitForHelpScreenResponseText[13] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 139, L"F10" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 139, L"Save current map" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 139, pWaitForHelpScreenResponseText[14] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 139, pWaitForHelpScreenResponseText[15] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 151, L"F11" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 151, L"Load map as current" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 151, pWaitForHelpScreenResponseText[16] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 151, pWaitForHelpScreenResponseText[17] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 163, L"+/-" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 163, L"Change shadow darkness by .01" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 163, pWaitForHelpScreenResponseText[18] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 163, pWaitForHelpScreenResponseText[19] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 175, L"SHFT +/-" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 175, L"Change shadow darkness by .05" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 175, pWaitForHelpScreenResponseText[20] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 175, pWaitForHelpScreenResponseText[21] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 187, L"0 - 9" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 187, L"Change map/tileset filename" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 187, pWaitForHelpScreenResponseText[22] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 187, pWaitForHelpScreenResponseText[23] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 199, L"b" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 199, L"Change brush size" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 199, pWaitForHelpScreenResponseText[24] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 199, pWaitForHelpScreenResponseText[25] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 211, L"d" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 211, L"Draw debris" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 211, pWaitForHelpScreenResponseText[26] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 211, pWaitForHelpScreenResponseText[27] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 223, L"o" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 223, L"Draw obstacle" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 223, pWaitForHelpScreenResponseText[28] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 223, pWaitForHelpScreenResponseText[29] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 235, L"r" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 235, L"Draw rocks" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 235, pWaitForHelpScreenResponseText[30] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 235, pWaitForHelpScreenResponseText[31] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 247, L"t" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 247, L"Toggle trees display ON/OFF" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 247, pWaitForHelpScreenResponseText[32] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 247, pWaitForHelpScreenResponseText[33] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 259, L"g" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 259, L"Draw ground textures" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 259, pWaitForHelpScreenResponseText[34] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 259, pWaitForHelpScreenResponseText[35] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 271, L"w" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 271, L"Draw building walls" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 271, pWaitForHelpScreenResponseText[36] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 271, pWaitForHelpScreenResponseText[37] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 283, L"e" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 283, L"Toggle erase mode ON/OFF" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 283, pWaitForHelpScreenResponseText[38] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 283, pWaitForHelpScreenResponseText[39] );
|
||||
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 295, L"h" );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 295, L"Toggle roofs ON/OFF" );
|
||||
gprintf( iScreenWidthOffset + 55, iScreenHeightOffset + 295, pWaitForHelpScreenResponseText[40] );
|
||||
gprintf( iScreenWidthOffset + 205, iScreenHeightOffset + 295, pWaitForHelpScreenResponseText[41] );
|
||||
|
||||
|
||||
fLeaveScreen = FALSE;
|
||||
@@ -4312,7 +4314,7 @@ UINT32 EditScreenHandle( void )
|
||||
|
||||
if( gfWorldLoaded && gMapInformation.ubMapVersion <= 7 && !gfCorruptMap )
|
||||
{
|
||||
ScreenMsg( FONT_MCOLOR_RED, MSG_ERROR, L"Map data has just been corrupted. Don't save, don't quit, get Kris! If he's not here, save the map using a temp filename and document everything you just did, especially your last action!" );
|
||||
ScreenMsg( FONT_MCOLOR_RED, MSG_ERROR, pAutoLoadMapText[0] );
|
||||
gfCorruptMap = TRUE;
|
||||
}
|
||||
if( gfWorldLoaded && gubScheduleID > 40 && !gfCorruptSchedules )
|
||||
@@ -4320,7 +4322,7 @@ UINT32 EditScreenHandle( void )
|
||||
OptimizeSchedules();
|
||||
if( gubScheduleID > 32 )
|
||||
{
|
||||
ScreenMsg( FONT_MCOLOR_RED, MSG_ERROR, L"Schedule data has just been corrupted. Don't save, don't quit, get Kris! If he's not here, save the map using a temp filename and document everything you just did, especially your last action!" );
|
||||
ScreenMsg( FONT_MCOLOR_RED, MSG_ERROR, pAutoLoadMapText[1] );
|
||||
gfCorruptSchedules = TRUE;
|
||||
}
|
||||
}
|
||||
@@ -4527,7 +4529,7 @@ void ShowHighGround(INT32 iShowHighGroundCommand)//dnl ch2 210909
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, L"Showing High Ground Markers");
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, pShowHighGroundText[0] );
|
||||
for(int cnt=0; cnt<WORLD_MAX; cnt++)
|
||||
{
|
||||
if(gpWorldLevelData[cnt].sHeight)
|
||||
@@ -4546,7 +4548,7 @@ void ShowHighGround(INT32 iShowHighGroundCommand)//dnl ch2 210909
|
||||
RemoveTopmost(cnt, FIRSTPOINTERS7);
|
||||
break;
|
||||
case 3:
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, L"Hiding High Ground Markers");
|
||||
ScreenMsg(FONT_MCOLOR_WHITE, MSG_INTERFACE, pShowHighGroundText[1] );
|
||||
for(int cnt=0; cnt<WORLD_MAX; cnt++)
|
||||
RemoveTopmost(cnt, FIRSTPOINTERS11);
|
||||
break;
|
||||
|
||||
@@ -76,6 +76,7 @@ extern BOOLEAN gfConfirmExitFirst;
|
||||
extern BOOLEAN gfConfirmExitPending;
|
||||
extern BOOLEAN gfIntendOnEnteringEditor;
|
||||
|
||||
extern BOOLEAN gfResizeMapOnLoading;
|
||||
extern BOOLEAN gfVanillaMode;//dnl ch33 160909
|
||||
extern BOOLEAN fRaiseWorld;//dnl ch3 210909
|
||||
extern BOOLEAN fShowHighGround;//dnl ch2 210909
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#endif
|
||||
|
||||
#include "vobject_blitters.h"
|
||||
#include "Text.h"
|
||||
|
||||
extern BOOLEAN gfOverheadMapDirty;
|
||||
|
||||
@@ -1067,19 +1068,19 @@ void DisplaySelectionWindowGraphicalInformation()
|
||||
//usIndex = pNode->uiIndex;
|
||||
if( !gTilesets[ giCurrentTilesetID].TileSurfaceFilenames[ pNode->uiObjIndx ][0] )
|
||||
{
|
||||
mprintf( 2, 2, L"%S[%d] is from default tileset %s (%S)",
|
||||
mprintf( 2, 2, pDisplaySelectionWindowGraphicalInformationText[0],
|
||||
gTilesets[0].TileSurfaceFilenames[ pNode->uiObjIndx ],
|
||||
pNode->uiIndex, gTilesets[0].zName,
|
||||
gTileSurfaceName[ pNode->uiObjIndx ] );
|
||||
}
|
||||
else
|
||||
{
|
||||
mprintf( 2, 2, L"File: %S, subindex: %d (%S)",
|
||||
mprintf( 2, 2, pDisplaySelectionWindowGraphicalInformationText[1],
|
||||
gTilesets[ giCurrentTilesetID ].TileSurfaceFilenames[ pNode->uiObjIndx ],
|
||||
pNode->uiIndex, gTileSurfaceName[ pNode->uiObjIndx ] );
|
||||
}
|
||||
}
|
||||
mprintf( 350, 2, L"Current Tileset: %s", gTilesets[ giCurrentTilesetID ].zName );
|
||||
mprintf( 350, 2, pDisplaySelectionWindowGraphicalInformationText[2], gTilesets[ giCurrentTilesetID ].zName );
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user