| 509 | } |
| 510 | |
| 511 | void CUIStatic::SetMask(CUIFrameWindow* pMask) |
| 512 | { |
| 513 | DetachChild(m_pMask); |
| 514 | m_pMask = pMask; |
| 515 | if (m_pMask) |
| 516 | { |
| 517 | AttachChild(m_pMask); |
| 518 | Frect r = GetWndRect(); |
| 519 | m_pMask->SetWidth(r.right - r.left); |
| 520 | m_pMask->SetHeight(r.bottom - r.top); |
| 521 | } |
| 522 | } |
| 523 | |
| 524 | // CGameFont::EAligment CUIStatic::GetTextAlign(){ |
| 525 | // return m_pLines->GetTextAlignment(); |