mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
Fixes / Improvements (by Buggler)
- Display Item Index No in Map Editor - Hotkey for squad 11-20 in tactical set the same as strategic screen - Hotkey previous/next page in save screen changed to PgUp/PgDn git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5924 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -856,6 +856,15 @@ void RenderSelectedItemBlownUp()
|
||||
mprintf( xp, yp, pStr );
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
}
|
||||
else
|
||||
{
|
||||
// Display item index no
|
||||
xp = sScreenX + 2;
|
||||
yp += 10;
|
||||
SetFont( BLOCKFONTNARROW );
|
||||
SetFontForeground( FONT_LTGREEN );
|
||||
mprintf( xp, yp, L"%d", Item[ gpItem->usItem ].uiIndex );
|
||||
}
|
||||
|
||||
//Count the number of items in the current pool, and display that.
|
||||
i = 0;
|
||||
@@ -868,6 +877,8 @@ void RenderSelectedItemBlownUp()
|
||||
}
|
||||
xp = sScreenX;
|
||||
yp = sScreenY + 10;
|
||||
SetFont( FONT10ARIAL );
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
mprintf( xp, yp, L"%d", i );
|
||||
|
||||
//If the item is hidden, render a blinking H (just like DG)
|
||||
|
||||
+14
-6
@@ -677,22 +677,30 @@ void RenderEditorItemsInfo()
|
||||
}
|
||||
}
|
||||
}
|
||||
//draw the numbers of each visible item that currently resides in the world.
|
||||
//draw item index no & the numbers of each visible item that currently resides in the world.
|
||||
maxIndex = min( maxIndex, eInfo.sNumItems-1 );
|
||||
for( i = minIndex; i <= maxIndex; i++ )
|
||||
{
|
||||
x = iScreenWidthOffset + (i/2 - eInfo.sScrollIndex)*60 + 110;
|
||||
y = 2 * iScreenHeightOffset + 360 + (i % 2) * 40;
|
||||
SetFont( BLOCKFONTNARROW );
|
||||
SetFontForeground( FONT_LTGREEN );
|
||||
SetFontShadow( FONT_NEARBLACK );
|
||||
|
||||
// item index no
|
||||
mprintf( x + 12, y + 18, L"%d", eInfo.pusItemIndex[ i ] );
|
||||
|
||||
// numbers of each visible item
|
||||
usNumItems = CountNumberOfEditorPlacementsInWorld( i, &usQuantity );
|
||||
|
||||
if( usNumItems )
|
||||
{
|
||||
x = iScreenWidthOffset + (i/2 - eInfo.sScrollIndex)*60 + 110;
|
||||
y = 2 * iScreenHeightOffset + 360 + (i % 2) * 40;
|
||||
SetFont( FONT10ARIAL );
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
SetFontShadow( FONT_NEARBLACK );
|
||||
if( usNumItems == usQuantity )
|
||||
mprintf( x + 12, y + 4, L"%d", usNumItems );
|
||||
mprintf( x + 10, y + 4, L"%d", usNumItems );
|
||||
else
|
||||
mprintf( x + 12, y + 4, L"%d(%d)", usNumItems, usQuantity );
|
||||
mprintf( x + 10, y + 4, L"%d(%d)", usNumItems, usQuantity );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -654,6 +654,9 @@ void UpdateItemStatsPanel()
|
||||
}
|
||||
if( gpEditingItemPool )
|
||||
{
|
||||
mprintf( iScreenWidthOffset + 587, 2 * iScreenHeightOffset + 366, pUpdateItemStatsPanelText[25] );
|
||||
mprintf( iScreenWidthOffset + 609, 2 * iScreenHeightOffset + 366, pUpdateItemStatsPanelText[26] );
|
||||
mprintf( iScreenWidthOffset + 630, 2 * iScreenHeightOffset + 366, pUpdateItemStatsPanelText[27] );
|
||||
INT32 iPercent = 100 - gWorldItems[ gpEditingItemPool->iItemIndex ].ubNonExistChance;
|
||||
if( iPercent == 100 )
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
@@ -662,9 +665,6 @@ void UpdateItemStatsPanel()
|
||||
else
|
||||
SetFontForeground( FONT_RED );
|
||||
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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user