mavzermete 1
mavzermete
Psych0SoociaL 1
Psych0SoociaL
noisiv 1
noisiv
Manwe Work 1
Manwe Work
Hikaye Ekle

SlotWindow QoL Update

  • Konuyu başlatan Konuyu başlatan a✘seee;
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 7
  • Görüntüleme Görüntüleme 674

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!

eM2BRU7GS7ua9XFtzDQefg.png

[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]​
 
eM2BRU7GS7ua9XFtzDQefg.png

[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 ?
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst