本文整理匯總了C++中AddImage函數的典型用法代碼示例。如果您正苦於以下問題:C++ AddImage函數的具體用法?C++ AddImage怎麽用?C++ AddImage使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了AddImage函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: IngameWindow
/// Konstruktor von @p iwBuildingProductivities.
iwBuildingProductivities::iwBuildingProductivities()
: IngameWindow(CGI_BUILDINGSPRODUCTIVITY, 0xFFFE, 0xFFFE,
left_x + 2 * percent_width + 2 * image_percent_x + percent_image_x + right_x,
top_y + (BUILDINGS_COUNT / 2 + 1) * (distance_y + 1), _("Productivity"), LOADER.GetImageN("resource", 41)),
percents(40, 0)
{
for(unsigned y = 0; y < BUILDINGS_COUNT / 2 + BUILDINGS_COUNT % 2; ++y)
{
for(unsigned x = 0; x < 2; ++x)
{
if(y * 2 + x < BUILDINGS_COUNT)
{
if(bts[y*2+x]!=BLD_CHARBURNER)
AddImage((y * 2 + x) * 2, left_x + x * (percent_image_x + percent_width + image_percent_x), top_y + distance_y * y + percent_height / 2,LOADER.GetImageN(NATION_ICON_IDS[GameClient::inst().GetLocalPlayer()->nation], bts[y * 2 + x]), _(BUILDING_NAMES[bts[y * 2 + x]]));
else
AddImage((y * 2 + x) * 2, left_x + x * (percent_image_x + percent_width + image_percent_x), top_y + distance_y * y + percent_height / 2,LOADER.GetImageN("charburner", GameClient::inst().GetLocalPlayer()->nation * 8 + 8), _(BUILDING_NAMES[bts[y * 2 + x]]));
AddPercent((y * 2 + x) * 2 + 1, left_x + image_percent_x + x * (percent_image_x + percent_width + image_percent_x), top_y + distance_y * y,
percent_width, percent_height, TC_GREY, COLOR_YELLOW, SmallFont, &percents[bts[y * 2 + x]]);
}
}
}
UpdatePercents();
// Hilfe-Button
AddImageButton(500, width - 14 - 30, height - 20 - 32, 30, 32, TC_GREY, LOADER.GetImageN("io", 21), _("Help"));
}
示例2: IngameWindow
/**
* Konstruktor von @p iwMilitaryBuilding.
*
* @author OLiver
*/
iwMilitaryBuilding::iwMilitaryBuilding(GameWorldViewer* const gwv, dskGameInterface* const gi, nobMilitary* const building)
: IngameWindow(building->CreateGUIID(), (unsigned short) - 2, (unsigned short) - 2, 226, 194, _(BUILDING_NAMES[building->GetBuildingType()]), LOADER.GetImageN("resource", 41)),
building(building),gi(gi), gwv(gwv)
{
// Schwert
AddImage(0, 28, 39, LOADER.GetMapImageN(2298));
AddImage(1, 28, 39, LOADER.GetMapImageN(2250 + GD_SWORD));
// Schild
AddImage(2, 196, 39, LOADER.GetMapImageN(2298));
AddImage(3, 196, 39, LOADER.GetMapImageN(2250 + GD_SHIELDROMANS));
// Hilfe
AddImageButton(4, 16, 147, 30, 32, TC_GREY, LOADER.GetImageN("io", 21));
// Abreißen
AddImageButton(5, 50, 147, 34, 32, TC_GREY, LOADER.GetImageN("io", 23));
// Gold an/aus (227,226)
AddImageButton(6, 90, 147, 32, 32, TC_GREY, LOADER.GetImageN("io", ((building->IsGoldDisabledVirtual()) ? 226 : 227)));
// "Gehe Zu Ort"
AddImageButton(7, 179, 147, 30, 32, TC_GREY, LOADER.GetImageN("io", 107), _("Go to place"));
// Gebäudebild
AddImage(8, 117, 114, LOADER.GetNationImageN(building->GetNation(), 250 + 5 * building->GetBuildingType()));
// "Go to next" (building of same type)
AddImageButton( 9, 179, 115, 30, 32, TC_GREY, LOADER.GetImageN("io", 107), _("Go to next military building"));
//addon military control active? -> show button
if(GAMECLIENT.GetGGS().isEnabled(ADDON_MILITARY_CONTROL))
AddImageButton( 10, 124, 147, 30, 32, TC_GREY, LOADER.GetImageN("io_new", 4), _("Send max rank soldiers to a warehouse"));
}
示例3: GetString
void CPDF_StreamContentParser::Handle_ExecuteXObject() {
CFX_ByteString name = GetString(0);
if (name == m_LastImageName && m_pLastImage && m_pLastImage->GetStream() &&
m_pLastImage->GetStream()->GetObjNum()) {
AddImage(nullptr, m_pLastImage, FALSE);
return;
}
if (m_Options.m_bTextOnly) {
if (!m_pResources)
return;
CPDF_Dictionary* pList = m_pResources->GetDict("XObject");
if (!pList && m_pPageResources && m_pResources != m_pPageResources)
pList = m_pPageResources->GetDict("XObject");
if (!pList)
return;
CPDF_Reference* pRes = ToReference(pList->GetElement(name));
if (!pRes)
return;
FX_BOOL bForm;
if (m_pDocument->IsFormStream(pRes->GetRefObjNum(), bForm) && !bForm)
return;
}
CPDF_Stream* pXObject = ToStream(FindResourceObj("XObject", name));
if (!pXObject) {
m_bResourceMissing = TRUE;
return;
}
CFX_ByteStringC type = pXObject->GetDict()
? pXObject->GetDict()->GetConstString("Subtype")
: CFX_ByteStringC();
if (type == "Image") {
if (m_Options.m_bTextOnly) {
return;
}
CPDF_ImageObject* pObj = AddImage(pXObject, NULL, FALSE);
m_LastImageName = name;
m_pLastImage = pObj->m_pImage;
if (!m_pObjectList->m_bHasImageMask)
m_pObjectList->m_bHasImageMask = m_pLastImage->IsMask();
} else if (type == "Form") {
AddForm(pXObject);
} else {
return;
}
}
示例4: IngameWindow
iwPostWindow::iwPostWindow(GameWorldViewer& gwv)
: IngameWindow(CGI_POSTOFFICE, 0xFFFF, 0xFFFF, 254, 295, _("Post office"), LOADER.GetImageN("resource", 41)), gwv(gwv)
{
AddImageButton( 0, 18, 25, 35, 35, TC_GREY, LOADER.GetImageN("io", 190)); // Viewer: 191 - Papier
AddImageButton( 1, 56, 25, 35, 35, TC_GREY, LOADER.GetImageN("io", 30)); // Viewer: 31 - Soldat
AddImageButton( 2, 91, 25, 35, 35, TC_GREY, LOADER.GetImageN("io", 20)); // Viewer: 21 - Geologe
AddImageButton( 3, 126, 25, 35, 35, TC_GREY, LOADER.GetImageN("io", 28)); // Viewer: 29 - Wage
AddImageButton( 4, 161, 25, 35, 35, TC_GREY, LOADER.GetImageN("io", 189)); // Viewer: 190 - Neue Nachricht
AddImageButton( 5, 199, 25, 35, 35, TC_GREY, LOADER.GetImageN("io", 79)); // Viewer: 80 - Notiz
AddImage( 6, 126, 151, LOADER.GetImageN("io", 228));
AddImageButton( 7, 18, 242, 30, 35, TC_GREY, LOADER.GetImageN("io", 225)); // Viewer: 226 - Hilfe
AddImageButton( 8, 51, 246, 30, 26, TC_GREY, LOADER.GetImageN("io", 102)); // Viewer: 103 - Schnell zurück
AddImageButton( 9, 81, 246, 30, 26, TC_GREY, LOADER.GetImageN("io", 103)); // Viewer: 104 - Zurück
AddImageButton(10, 111, 246, 30, 26, TC_GREY, LOADER.GetImageN("io", 104)); // Viewer: 105 - Vor
AddImageButton(11, 141, 246, 30, 26, TC_GREY, LOADER.GetImageN("io", 105)); // Viewer: 106 - Schnell vor
gotoButton = AddImageButton(14, 181, 246, 30, 26, TC_GREY, LOADER.GetImageN("io", 107)); // Goto, nur sichtbar wenn Nachricht mit Koordinaten da
gotoButton->SetVisible(false);
deleteButton = AddImageButton(15, 211, 246, 30, 26, TC_GREY, LOADER.GetImageN("io", 106)); // Mülleimer, nur sichtbar, wenn Nachricht da
deleteButton->SetVisible(false);
postMsgInfos = AddText(18, 127, 228, "", MakeColor(255, 188, 100, 88), glArchivItem_Font::DF_CENTER | glArchivItem_Font::DF_BOTTOM, SmallFont);
postMsgInfos->SetVisible(false);
postImage = AddImage(13, 127, 155, LOADER.GetImageN("io", 225));
// Multiline-Teil mit drei leeren Zeilen erzeugen
ctrlMultiline* text = AddMultiline(12, 126, 141, 200, 50, TC_INVISIBLE, NormalFont, glArchivItem_Font::DF_CENTER | glArchivItem_Font::DF_BOTTOM | glArchivItem_Font::DF_NO_OUTLINE);
text->EnableBox(false);
text->AddString("", COLOR_WINDOWBROWN, false);
text->AddString("", COLOR_WINDOWBROWN, false);
text->AddString("", COLOR_WINDOWBROWN, false);
SetMessageText(_("No letters!"));
acceptButton = AddImageButton(16, 87, 185, 30, 26, TC_GREEN1, LOADER.GetImageN("io", 32)); // Button mit Haken, zum Annehmen von Verträgen
acceptButton->SetVisible(false);
declineButton = AddImageButton(17, 137, 185, 30, 26, TC_RED1, LOADER.GetImageN("io", 40)); // Button mit Kreuz, zum Ablehnen von Verträgen
declineButton->SetVisible(false);
currentMessage = 0;
DisplayPostMessage();
lastSize = GameClient::inst().GetPostMessages().size();
}
示例5: IngameWindow
iwTrade::iwTrade(const nobBaseWarehouse& wh, const GameWorldViewer& gwv, GameCommandFactory& gcFactory)
: IngameWindow(wh.CreateGUIID(), (unsigned short) - 2, (unsigned short) - 2, 400, 194, _("Trade"), LOADER.GetImageN("resource", 41)),
wh(wh), gwv(gwv), gcFactory(gcFactory), possibleSrcWarehouses(gwv.GetPlayer().GetWarehousesForTrading(wh))
{
// Get title of the player
SetTitle(_("Trade with %s") + gwv.GetWorld().GetPlayer(wh.GetPlayer()).name);
// Gebäudebild und dessen Schatten
AddImage( 0, 100, 144, LOADER.GetNationImage(wh.GetNation(), 250 + 5 * wh.GetBuildingType()));
const unsigned left_column = 200;
this->AddComboBox(4, left_column, 84, 160, 18, TC_GREY, NormalFont, 90); // Ware/Figure names
this->AddText(1, left_column, 30, "Deal in:", COLOR_YELLOW, glArchivItem_Font::DF_LEFT, NormalFont);
ctrlComboBox* box = this->AddComboBox(2, left_column, 44, 160, 18, TC_GREY, NormalFont, 200); // Ware or figure?
box->AddString(_("Wares"));
box->AddString(_("Settlers"));
this->AddText(3, left_column, 70, "Type:", COLOR_YELLOW, glArchivItem_Font::DF_LEFT, NormalFont);
// Create possible wares, figures
for(unsigned i = 0; i < WARE_TYPES_COUNT; ++i)
{
// Only add one shield type
if(GoodType(i) != ConvertShields(GoodType(i)))
continue;
// Don't add nothing or empty water
if(i == GD_NOTHING || i == GD_WATEREMPTY)
continue;
wares.push_back(GoodType(i));
}
for(unsigned i = 0; i < JOB_TYPES_COUNT; ++i)
{
// Can't trade boat carriers
if(i == JOB_BOATCARRIER)
continue;
jobs.push_back(Job(i));
}
AddImage(5, left_column + 20, 130, NULL, _("Ware you like to trade"));
AddEdit(6, left_column + 34, 120, 39 , 20, TC_GREY, NormalFont)->SetNumberOnly(true);
AddText(7, left_column + 75, 125, "/ 20", COLOR_YELLOW, glArchivItem_Font::DF_LEFT, NormalFont);
AddTextButton(8, left_column, 150, 150, 22, TC_GREEN2, _("Send"), NormalFont);
// Choose wares at first
box->SetSelection(0);
Msg_ComboSelectItem(2, 0);
}
示例6: NS_ASSERTION
void
ImageLoader::MaybeRegisterCSSImage(ImageLoader::Image* aImage)
{
NS_ASSERTION(aImage, "This should never be null!");
bool found = false;
aImage->mRequests.GetWeak(mDocument, &found);
if (found) {
// This document already has a request.
return;
}
imgRequestProxy* canonicalRequest = aImage->mRequests.GetWeak(nullptr);
if (!canonicalRequest) {
// The image was blocked or something.
return;
}
nsRefPtr<imgRequestProxy> request;
// Ignore errors here. If cloning fails for some reason we'll put a null
// entry in the hash and we won't keep trying to clone.
mInClone = true;
canonicalRequest->Clone(this, getter_AddRefs(request));
mInClone = false;
aImage->mRequests.Put(mDocument, request);
AddImage(aImage);
}
示例7: IngameWindow
/**
* Konstruktor von @p iwShip.
*
* @todo überprüfen und die restlichen Steuerelemente zur Funktion bringen
*
* @author OLiver
*/
iwShip::iwShip(GameWorldViewer* const gwv, dskGameInterface* const gi, noShip* const ship)
: IngameWindow(CGI_SHIP, (unsigned short) - 2, (unsigned short) - 2, 252, 238, _("Ship register"), LOADER.GetImageN("resource", 41)),
gwv(gwv), gi(gi), ship_id(ship ? GameClient::inst().GetPlayer(ship->GetPlayer())->GetShipID(ship) : 0), player(ship ? ship->GetPlayer() : GameClient::inst().GetPlayerID())
{
AddImage( 0, 126, 101, LOADER.GetImageN("io", 228));
AddImageButton( 2, 18, 192, 30, 35, TC_GREY, LOADER.GetImageN("io", 225)); // Viewer: 226 - Hilfe
AddImageButton( 3, 51, 196, 30, 26, TC_GREY, LOADER.GetImageN("io", 102)); // Viewer: 103 - Schnell zurück
AddImageButton( 4, 81, 196, 30, 26, TC_GREY, LOADER.GetImageN("io", 103)); // Viewer: 104 - Zurück
AddImageButton( 5, 111, 196, 30, 26, TC_GREY, LOADER.GetImageN("io", 104)); // Viewer: 105 - Vor
AddImageButton( 6, 141, 196, 30, 26, TC_GREY, LOADER.GetImageN("io", 105)); // Viewer: 106 - Schnell vor
AddImageButton( 7, 181, 196, 30, 26, TC_GREY, LOADER.GetImageN("io", 107), _("Go to place")); // "Gehe Zu Ort"
// Die Expeditionsweiterfahrbuttons
AddImageButton(10, 60, 81, 18, 18, TC_GREY, LOADER.GetImageN("io", 187), _("Found colony"))->SetVisible(false);
const int BUTTON_POS[6][2] =
{
{60, 61}, {80, 70}, {80, 90}, {60, 101}, {40, 90}, {40, 70}
};
// Expedition abbrechen
AddImageButton(11, 200, 143, 18, 18, TC_RED1, LOADER.GetImageN("io", 40), _("Return to harbor"))->SetVisible(false);
// Die 6 Richtungen
for(unsigned i = 0; i < 6; ++i)
AddImageButton(12 + i, BUTTON_POS[i][0], BUTTON_POS[i][1], 18, 18, TC_GREY, LOADER.GetImageN("io", 181 + (i + 4) % 6))->SetVisible(false);
}
示例8: AddImage
bool CECardDialog::InitListBox()
{
if (m_ImageList)
m_ImageList.Destroy();
if (!m_ImageList.Create(16,16, ILC_COLOR24 | ILC_MASK, LB_ITEM_COUNT, LB_ITEM_COUNT))
return false;
// Add LISTBOX images to image list
int nIndex=0;
for (int i=0; i<LB_ITEM_COUNT; i++)
{
nIndex = AddImage(LB_ITEM[i].BitmapID);
if (nIndex < 0)
return false;
}
// Give Image list to list ctrl.
m_ECardList.SetImageList(m_ImageList.m_hImageList, LVSIL_SMALL);
// Add LISTBOX items
m_ECardList.InsertColumn( 0, _T("ECARDS"), LVCFMT_LEFT, 100, -1 );
CString szText;
for (int i=0; i<LB_ITEM_COUNT; i++)
{
szText.LoadString(LB_ITEM[i].TextID);
m_ECardList.InsertItem(i,szText, i);
}
m_ECardList.SetColumnWidth (0, LVSCW_AUTOSIZE);
m_ECardList.SetHoverTime(10);
return true;
}
示例9: Desktop
/**
* Konstruktor von @p dskIntro.
*
* @author FloSoft
*/
dskIntro::dskIntro() : Desktop(LOADER.GetImageN("menu", 0))
{
// "Zurück"
AddTextButton(0, 300, 550, 200, 22, TC_RED1, _("Back"), NormalFont);
AddImage(11, 20, 20, LOADER.GetImageN("logo", 0));
}
示例10: wxT
int ResourceManager::GetLinkImageIndex(const wxString& sFileType, bool bHidden)
{
// Prepend 'Link'
wxString sFullFileType = wxString::Format
(
wxT("Link%s%s"),
(bHidden)? wxT("Hidden") : wxT(""),
sFileType.c_str()
);
if(hImageIndex.find(sFullFileType) == hImageIndex.end())
{
int nIndex = hImageIndex[sFullFileType];
return nIndex;
}
// Overlay the link image on the image
wxBitmap bmp = GetImageForFileType(sFileType);
if(!bmp.Ok())
return resLink;
/*
FIXME
// // Default to 'text'
// if(!img.Ok())
// img = GetImageForFileType(wxT("text/plain"));
// TBI: Overlay link symbol
unsigned char * puc = ico.GetIconData();
for(int i = 0; i < 60; i += 3)
puc[i] = 255;
*/
return AddImage(sFullFileType, bmp);
}
示例11: IngameWindow
iwTrade::iwTrade(const nobBaseWarehouse& wh, const GameWorldViewer& gwv, GameCommandFactory& gcFactory)
: IngameWindow(wh.CreateGUIID(), IngameWindow::posAtMouse, Extent(400, 194), _("Trade"), LOADER.GetImageN("resource", 41)), wh(wh),
gwv(gwv), gcFactory(gcFactory), possibleSrcWarehouses(gwv.GetPlayer().GetWarehousesForTrading(wh))
{
// Get title of the player
SetTitle((boost::format(_("Trade with %s")) % gwv.GetWorld().GetPlayer(wh.GetPlayer()).name).str());
// Gebäudebild und dessen Schatten
AddImage(0, DrawPoint(100, 144), LOADER.GetNationImage(wh.GetNation(), 250 + 5 * wh.GetBuildingType()));
const unsigned left_column = 200;
AddComboBox(4, DrawPoint(left_column, 84), Extent(160, 18), TC_GREY, NormalFont, 90); // Ware/Figure names
AddText(1, DrawPoint(left_column, 30), "Deal in:", COLOR_YELLOW, FontStyle::LEFT, NormalFont);
ctrlComboBox* box = this->AddComboBox(2, DrawPoint(left_column, 44), Extent(160, 18), TC_GREY, NormalFont, 200); // Ware or figure?
box->AddString(_("Wares"));
box->AddString(_("Settlers"));
AddText(3, DrawPoint(left_column, 70), "Type:", COLOR_YELLOW, FontStyle::LEFT, NormalFont);
// Create possible wares, figures
for(unsigned i = 0; i < NUM_WARE_TYPES; ++i)
{
// Only add one shield type
if(GoodType(i) != ConvertShields(GoodType(i)))
continue;
// Don't add empty water
if(i == GD_WATEREMPTY)
continue;
wares.push_back(GoodType(i));
}
for(unsigned i = 0; i < NUM_JOB_TYPES; ++i)
{
// Can't trade boat carriers
if(i == JOB_BOATCARRIER)
continue;
jobs.push_back(Job(i));
}
AddImage(5, DrawPoint(left_column + 20, 130), static_cast<ITexture*>(nullptr), _("Ware you like to trade"));
AddEdit(6, DrawPoint(left_column + 34, 120), Extent(39, 20), TC_GREY, NormalFont)->SetNumberOnly(true);
AddText(7, DrawPoint(left_column + 75, 125), "/ 20", COLOR_YELLOW, FontStyle::LEFT, NormalFont);
AddTextButton(8, DrawPoint(left_column, 150), Extent(150, 22), TC_GREEN2, _("Send"), NormalFont);
// Choose wares at first
box->SetSelection(0);
Msg_ComboSelectItem(2, 0);
}
示例12: AddImage
void csBlob::StopAnimations ()
{
curanim = 0;
curanim_index = 0;
curanim_timeleft = anim_delay;
if (!curanim_remain)
AddImage ("__main__", curanim_origimg);
}
示例13: newBlankImage
ImageView* const ImageGrid::AddBlankImage( const QSize& imageSize, int id )
{
QImage newBlankImage( imageSize, QImage::Format_RGB888 );
newBlankImage.fill( 0xFFFFFF );
ImageView* const addedImageView = AddImage( newBlankImage, QString(), id );
return addedImageView;
}
示例14: IngameWindow
iwBuilding::iwBuilding(GameWorldView& gwv, GameCommandFactory& gcFactory, nobUsual* const building)
: IngameWindow(building->CreateGUIID(), (unsigned short) - 2, (unsigned short) - 2, 226, 194, _(BUILDING_NAMES[building->GetBuildingType()]), LOADER.GetImageN("resource", 41)),
gwv(gwv), gcFactory(gcFactory), building(building)
{
// Arbeitersymbol
AddImage(0, 28, 39, LOADER.GetMapImageN(2298));
// Exception: charburner
if (building->GetBuildingType() != BLD_CHARBURNER)
{
AddImage(13, 28, 39, LOADER.GetMapImageN(2300 + USUAL_BUILDING_CONSTS[building->GetBuildingType() - 10].job));
}
else
{
AddImage(13, 28, 39, LOADER.GetImageN("io_new", 5));
}
// Gebäudesymbol
AddImage(1, 117, 114, building->GetBuildingImage());
// Symbol der produzierten Ware (falls hier was produziert wird)
if(USUAL_BUILDING_CONSTS[building->GetBuildingType() - 10].produced_ware != GD_NOTHING)
{
AddImage(2, 196, 39, LOADER.GetMapImageN(2298));
AddImage(3, 196, 39, LOADER.GetMapImageN(2250 + USUAL_BUILDING_CONSTS[building->GetBuildingType() - 10].produced_ware));
}
// Info
AddImageButton( 4, 16, 147, 30, 32, TC_GREY, LOADER.GetImageN("io", 225), _("Help"));
// Abreißen
AddImageButton( 5, 50, 147, 34, 32, TC_GREY, LOADER.GetImageN("io", 23), _("Demolish house"));
// Produktivität einstellen (196,197) (bei Spähturm ausblenden)
Window* enable_productivity = AddImageButton( 6, 90, 147, 34, 32, TC_GREY, LOADER.GetImageN("io", ((building->IsProductionDisabledVirtual()) ? 197 : 196)));
if(building->GetBuildingType() == BLD_LOOKOUTTOWER)
enable_productivity->SetVisible(false);
// Bei Bootsbauer Button zum Umwählen von Booten und Schiffen
if(building->GetBuildingType() == BLD_SHIPYARD)
{
// Jenachdem Boot oder Schiff anzeigen
unsigned io_dat_id = (static_cast<nobShipYard*>(building)->GetMode() == nobShipYard::BOATS)
? IODAT_BOAT_ID : IODAT_SHIP_ID;
AddImageButton(11, 130, 147, 43, 32, TC_GREY, LOADER.GetImageN("io", io_dat_id));
}
// "Gehe Zum Ort"
AddImageButton( 7, 179, 147, 30, 32, TC_GREY, LOADER.GetImageN("io", 107), _("Go to place"));
// Gebäudebild und dessen Schatten
AddImage( 8, 117, 114, LOADER.GetNationImage(building->GetNation(), 250 + 5 * building->GetBuildingType()));
// Produktivitätsanzeige (bei Katapulten und Spähtürmen ausblenden)
Window* productivity = AddPercent(9, 59, 31, 106, 16, TC_GREY, 0xFFFFFF00, SmallFont, building->GetProductivityPointer());
if(building->GetBuildingType() == BLD_CATAPULT || building->GetBuildingType() == BLD_LOOKOUTTOWER)
productivity->SetVisible(false);
AddText(10, 113, 50, _("(House unoccupied)"), COLOR_RED, glArchivItem_Font::DF_CENTER, NormalFont);
// "Go to next" (building of same type)
AddImageButton( 12, 179, 115, 30, 32, TC_GREY, LOADER.GetImageN("io_new", 11), _("Go to next building of same type"));
}
示例15: Clear
void IdePngDes::Load(const char *_filename)
{
Clear();
filename = _filename;
filetime = FileGetTime(filename);
Image m = StreamRaster::LoadFileAny(filename);
AddImage(filename, m, false);
SingleMode();
}