I have a dialogue box. press a key on the box and grapple points are suppose to show. I also have it hard coded with F5
if the dialogue box:
if I press f5 it sometimes turns the grapple points on and I press the button it turns them off but not back on.
I ran the debugger to see if I was hitting the box code and I was.
if (key == OAPI_KEY_F5){ // show att points
if (oapiGetShowGrapplePoints() == true) oapiSetShowGrapplePoints(false);
else oapiSetShowGrapplePoints(true);
return 1;
}
if the dialogue box:
case IDC_CLOSE:
oapiCloseDialog(hWnd);
return TRUE;
case IDC_GRAPPLE:
sts->ToggleGrapple();
return 0;
case IDC_SHOWGRAPPLE:
oapiSetShowGrapplePoints(SendDlgItemMessage(hWnd, IDC_SHOWGRAPPLE, BM_GETCHECK, 0, 0) == BST_CHECKED ? true : false);
return 0;
}
if I press f5 it sometimes turns the grapple points on and I press the button it turns them off but not back on.
I ran the debugger to see if I was hitting the box code and I was.