CGumpStatic::CGumpStatic(int hueId, int fontId, TEXT_ALIGN textAlign) : m_textAlign(textAlign), m_hueId(hueId), m_fontId(fontId) { SetMinimumSize( CSize( 1, 1 ) ); SetTitle("label"); SetType("label"); SetName("label"); AddPropertyPage( &m_page ); }
CGumpEntity::CGumpEntity() { SetMinimumSize( CSize( 1, 1 ) ); SetTitle( "control" ); SetType( "control" ); SetName( "control" ); SetAlpha(0); SetFlags(0); AddPropertyPage( &m_page ); }
CGumpStatic::CGumpStatic(CGumpStatic* pOther) : m_hueId(1), m_fontId(3), m_textAlign(ALIGN_LEFT), m_multiLine(false) { SetMinimumSize( CSize( 1, 1 ) ); SetTitle("label"); SetType("label"); SetName("label"); AddPropertyPage( &m_page ); if (pOther) Copy(pOther); }
CGumpPicture::CGumpPicture(CGumpPtr pGump) { SetGump(pGump); SetTitle("Picture"); SetType("picture"); CString strName; strName.Format("picture_%x", pGump ? pGump->GetGumpID() : 0); SetName(strName); AddPropertyPage( &m_page ); }
CGumpButton::CGumpButton(CGumpPtr pNormal, CGumpPtr pHover, CGumpPtr pPressed) { //ASSERT(pNormal); SetGump(pNormal, pHover, pPressed); SetTitle("button"); SetType("button"); CString strName; strName.Format("button_%x", pNormal ? pNormal->GetGumpID() : 0); SetName(strName); AddPropertyPage( &m_page ); }
CGumpRadio::CGumpRadio(CGumpPtr pNormal, CGumpPtr pChecked, int iGroupID, bool bCheck) : CGumpCheckbox(pNormal,pChecked,bCheck) { // SetGump(pNormal, pChecked); SetTitle("radio"); SetType("radio"); CString strName; strName.Format("radio_%x", pNormal ? pNormal->GetGumpID() : 0); SetName(strName); SetGroupID(iGroupID); AddPropertyPage( &m_page ); }
CGumpPicture::CGumpPicture(CGumpPtr pGump, TYPE eType, DWORD hueId) { SetGump(pGump); SetTitle("Picture"); SetType("picture"); CString strName; strName.Format("picture_%x", pGump ? pGump->GetGumpID() : 0); SetName(strName); SetPictureType(eType); SetHueId(hueId); AddPropertyPage( &m_page ); }