New icon for store/delete templates.

master
cybersphinx 2011-12-18 22:32:09 +01:00
parent 13885c0d07
commit 4f1b79d3d9
4 changed files with 14 additions and 27 deletions

View File

@ -539,3 +539,7 @@
2,208,26,14,12,0,0,"IMAGE ALLY RESEARCH TC"
2,207,0,25,14,0,0,"IMAGE GENERIC TANK"
2,183,14,25,14,0,0,"IMAGE GENERIC TANK TC"
0,148,0,45,24,0,0,"IMAGE DES SAVE"
0,193,0,45,24,0,0,"IMAGE DES SAVEH"
0,148,24,45,24,0,0,"IMAGE DES DELETE"
0,193,24,45,24,0,0,"IMAGE DES DELETEH"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

@ -624,14 +624,14 @@ static bool _intAddDesign( bool bShowCentreScreen )
sButInit.formID = IDDES_PARTFORM;
sButInit.id = IDDES_STOREBUTTON;
sButInit.style = WBUT_PLAIN;
sButInit.width = iV_GetImageWidth(IntImages, IMAGE_DES_BIN);
sButInit.height = iV_GetImageHeight(IntImages, IMAGE_DES_BIN);
sButInit.width = iV_GetImageWidth(IntImages, IMAGE_DES_SAVE);
sButInit.height = iV_GetImageHeight(IntImages, IMAGE_DES_SAVE);
sButInit.x = DES_PARTSEPARATIONX;
sButInit.y = DES_PARTFORMHEIGHT - 2*sButInit.height - 2*DES_PARTSEPARATIONY;
sButInit.pTip = _("Store Design");
sButInit.FontID = font_regular;
sButInit.pDisplay = intDisplayButtonHilight;
sButInit.UserData = PACKDWORD_TRI(0, IMAGE_DES_BINH, IMAGE_DES_BIN);
sButInit.UserData = PACKDWORD_TRI(0, IMAGE_DES_SAVEH, IMAGE_DES_SAVE);
if (!widgAddButton(psWScreen, &sButInit))
{
@ -4689,11 +4689,11 @@ void updateStoreButton(bool isStored)
if (isStored)
{
imageset = PACKDWORD_TRI(0, IMAGE_DES_TURRETH, IMAGE_DES_TURRET);
imageset = PACKDWORD_TRI(0, IMAGE_DES_DELETEH, IMAGE_DES_DELETE);
}
else
{
imageset = PACKDWORD_TRI(0, IMAGE_DES_BINH, IMAGE_DES_BIN);
imageset = PACKDWORD_TRI(0, IMAGE_DES_SAVEH, IMAGE_DES_SAVE);
}
widgSetUserData2(psWScreen, IDDES_STOREBUTTON, imageset);

View File

@ -1,25 +1,4 @@
/*
This file is part of Warzone 2100.
Copyright (C) 1999-2004 Eidos Interactive
Copyright (C) 2005-2011 Warzone 2100 Project
Warzone 2100 is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Warzone 2100 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Warzone 2100; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/** @file
* Image ID definitions
*/
// THIS IS AN AUTOGENERATED HEADER! DO NOT EDIT (since your changes would be lost, anyway)!
#ifndef __INCLUDED_SRC_INTFAC_H__
#define __INCLUDED_SRC_INTFAC_H__
@ -567,6 +546,10 @@ enum
IMAGE_ALLY_RESEARCH_TC,
IMAGE_GENERIC_TANK,
IMAGE_GENERIC_TANK_TC,
IMAGE_DES_SAVE,
IMAGE_DES_SAVEH,
IMAGE_DES_DELETE,
IMAGE_DES_DELETEH,
};
#endif //__INCLUDED_SRC_INTFAC_H__