HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!
[CODE lang="cpp" title="eterPythonLib/PythonSlotWindow"]void CSlotWindow::RenderSlotBaseImage() const
{
if (!m_pBaseImageInstance) return;
const auto pImage = m_pBaseImageInstance->GetGraphicImagePointer();
if (!pImage) return;
const int32_t imgWidth = pImage->GetWidth();
const int32_t imgHeight = pImage->GetHeight();
for (const auto& rSlot : m_SlotList)
{
if (!rSlot.bRenderBaseSlotImage) continue;
const int32_t targetWidth = rSlot.ixCellSize;
const int32_t targetHeight = rSlot.iyCellSize;
const int32_t baseX = m_rect.left + rSlot.ixPosition;
const int32_t baseY = m_rect.top + rSlot.iyPosition;
for (int32_t y = 0; y < targetHeight; y += imgHeight)
{
for (int32_t x = 0; x < targetWidth; x += imgWidth)
{
m_pBaseImageInstance->SetPosition(static_cast<float>(baseX + x), static_cast<float>(baseY + y));
m_pBaseImageInstance->Render();
}
}
}
}[/CODE]
ufak show hide kısmımı yoksa hangi kısım açıklama yazarmısın ?![]()
[CODE lang="cpp" title="eterPythonLib/PythonSlotWindow"]void CSlotWindow::RenderSlotBaseImage() const
{
if (!m_pBaseImageInstance) return;
const auto pImage = m_pBaseImageInstance->GetGraphicImagePointer();
if (!pImage) return;
const int32_t imgWidth = pImage->GetWidth();
const int32_t imgHeight = pImage->GetHeight();
for (const auto& rSlot : m_SlotList)
{
if (!rSlot.bRenderBaseSlotImage) continue;
const int32_t targetWidth = rSlot.ixCellSize;
const int32_t targetHeight = rSlot.iyCellSize;
const int32_t baseX = m_rect.left + rSlot.ixPosition;
const int32_t baseY = m_rect.top + rSlot.iyPosition;
for (int32_t y = 0; y < targetHeight; y += imgHeight)
{
for (int32_t x = 0; x < targetWidth; x += imgWidth)
{
m_pBaseImageInstance->SetPosition(static_cast<float>(baseX + x), static_cast<float>(baseY + y));
m_pBaseImageInstance->Render();
}
}
}
}[/CODE]
SlotWindow class'ı birden fazla slot olduğu durumlarda, slot boyutuna göre arkaplan görselini tekrar çizmesi için bir eklenti.ufak show hide kısmımı yoksa hangi kısım açıklama yazarmısın ?
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 3
- Görüntüleme
- 275
- Cevaplar
- 22
- Görüntüleme
- 3K
- Cevaplar
- 31
- Görüntüleme
- 7K
- Cevaplar
- 18
- Görüntüleme
- 5K
- Cevaplar
- 7
- Görüntüleme
- 1K
