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

Method OnItemSelected

editor/TextureDialog.cpp:584–591  ·  view source on GitHub ↗

if item was selected from the list box, this function is invoked.

Source from the content-addressed store, hash-verified

582
583// if item was selected from the list box, this function is invoked.
584void CGrTextureListBox::OnItemSelected(int tex) {
585 D3EditState.texdlg_texture = tex;
586
587 if (ParentDialog != NULL) {
588 PrintToDlgItem(ParentDialog, IDC_CURRENT_TEXTURE_NAME, "Texture: %s", GameTextures[tex].name);
589 ParentTextureDialog->DrawSwatch(IDC_TEXTURE_SWATCH, GameTextures[tex].r, GameTextures[tex].g, GameTextures[tex].b);
590 }
591}
592
593void CTextureDialog::OnShowTmap2Textures() {
594 // TODO: Add your control notification handler code here

Callers

nothing calls this directly

Calls 2

PrintToDlgItemFunction · 0.85
DrawSwatchMethod · 0.45

Tested by

no test coverage detected