--
[ Picked text/plain from multipart/alternative ]
Try changing this (cuts out a level of indirection):
CON_COMMAND(ToggleTestPanel,NULL)
{
ToggleVisibility(test->GetPanel());
}
To this:
CON_COMMAND(ToggleTestPanel,NULL)
{
test->SetVisible(!test->IsVisible());
}
If that doesn't work, trace the con_command to see what
test->IsVisible() returns. Let me know what happens.
--
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders