mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- Separated the ammo types from the interface from the file infobox.sti.
This is needed, because different interfaces should not depend on the ammo types. Ammo types should ship with the MOD and not with the interfacec! The ammo types are still in the infobox.sti. The interface is in the new file infobox_interface.sti The file infobox.sti still contains the interface graphic, but does not use it anymore. Older builds will use the interface graphic. But we should never delete the interface graphic from infobox.sti, otherwise the ammo graphics offset are wrong! git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@800 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2422,6 +2422,8 @@ BOOLEAN InternalInitItemDescriptionBox( OBJECTTYPE *pObject, INT16 sX, INT16 sY,
|
||||
FilenameForBPP("INTERFACE\\infobox.sti", (STR)ubString);
|
||||
sForeColour = ITEMDESC_AMMO_FORE;
|
||||
|
||||
// TODO: WANNE: Make own sti for the ammo types and an own for the interface
|
||||
// For now, they are together in interface\infobox.sti
|
||||
giItemDescAmmoButtonImages = LoadButtonImage(ubString,AmmoTypes[pObject->ubGunAmmoType].grayed,AmmoTypes[pObject->ubGunAmmoType].offNormal,-1,AmmoTypes[pObject->ubGunAmmoType].onNormal,-1 );
|
||||
|
||||
//switch( pObject->ubGunAmmoType )
|
||||
@@ -2566,7 +2568,7 @@ BOOLEAN InternalInitItemDescriptionBox( OBJECTTYPE *pObject, INT16 sX, INT16 sY,
|
||||
|
||||
// Load graphic
|
||||
VObjectDesc.fCreateFlags = VOBJECT_CREATE_FROMFILE;
|
||||
strcpy( VObjectDesc.ImageFile, "INTERFACE\\infobox.sti" );
|
||||
strcpy( VObjectDesc.ImageFile, "INTERFACE\\infobox_interface.sti" );
|
||||
CHECKF( AddVideoObject( &VObjectDesc, &guiItemDescBox) );
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user