void iArmyListEx::iDragItem::ComposeDragGlyph() { iRect rc(m_pos.x-(sint32)(m_siz.w/2),m_pos.y-(sint32)(m_siz.h/2),m_siz.w,m_siz.h); ComposeCreatureCell(gApp.Surface(),rc,m_cGroup.Type(),m_cGroup.Count(),VL_EXPERT); if (!m_pReceiver || m_toCell == -1) gApp.Surface().FillRect(rc,cColor_Red,32); else gApp.Surface().FillRect(rc,cColor_Green,32); }
void iDlg_RiseSkeletons::DoCompose(const iRect& clRect) { iRect rc(clRect); // title gTextComposer.TextOut(dlgfc_hdr, gApp.Surface(),rc.point(),gTextMgr[TRID_HSKILL_NECROMANCY], iRect(rc.x,rc.y,rc.w,15),AlignCenter); rc.y += 20; // text rc.y += gTextComposer.TextBoxOut(dlgfc_splain, gApp.Surface(), iFormat(gTextMgr[TRID_MSG_RISE_SKELETONS], m_quant, gTextMgr[TRID_CREATURE_PEASANT_F3+m_ct*3]), iRect(rc.x,rc.y,rc.w,rc.h)); rc.y += 5; // icon and quantity ComposeCreatureCell(gApp.Surface(), iRect((rc.x+rc.w/2)-18,rc.y,36,42), m_ct, m_quant, VL_EXPERT); }