MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / Load

Method Load

legacy/D3Launch/BitmapButtonEx.cpp:407–429  ·  view source on GitHub ↗

Loads the bitmaps for the button given U - up position D - down position M - lit (mouse is over it) position X - disabled

Source from the content-addressed store, hash-verified

405// M - lit (mouse is over it) position
406// X - disabled
407bool CBitmapButtonEx::Load(UINT nID, CWnd *parent) {
408 CString res_name, title;
409
410 if (parent == NULL)
411 return FALSE;
412
413 parent->GetDlgItemText(nID, title);
414
415 OutputDebugString("title =");
416 OutputDebugString(title);
417 OutputDebugString("\n");
418
419 res_name.Format("%s%s", title, "U");
420 GetBitmapAndPalette(res_name, &m_UpBitmap, NULL);
421 res_name.Format("%s%s", title, "D");
422 GetBitmapAndPalette(res_name, &m_DownBitmap, NULL);
423 res_name.Format("%s%s", title, "M");
424 GetBitmapAndPalette(res_name, &m_MouseBitmap, NULL);
425 res_name.Format("%s%s", title, "X");
426 GetBitmapAndPalette(res_name, &m_DisabledBitmap, NULL);
427
428 return (TRUE);
429}
430
431// Loads the animation bitmaps for the button given
432// Format: nameX where X is the frame #

Callers

nothing calls this directly

Calls 1

GetBitmapAndPaletteFunction · 0.85

Tested by

no test coverage detected