Comments to the locked thread regarding JoJoSIP for GD2.04:
When I first read the thread I was hoping that someone who actually used JoJoSIP in a game could verify the 2.04 version since I only do the small modifications needed, recompile and test it in the demo application.
This is the way I currently set up JoJoSIP in the demo application
When I first read the thread I was hoping that someone who actually used JoJoSIP in a game could verify the 2.04 version since I only do the small modifications needed, recompile and test it in the demo application.
This is the way I currently set up JoJoSIP in the demo application
- Code:
HRESULT CMyApplication::CreateSurfaces(CGapiDisplay& display, HINSTANCE hInstance)
{
m_sip.CreateSurface(0, hInstance,IDR_KEYBOARD, TEXT("PNG"));
m_sip.SetColorKey(RGB(255,0,255));
m_sip_shift.CreateSurface(0, hInstance,IDR_KEYBOARD_SHIFT, TEXT("PNG"));
m_sip_shift.SetColorKey(RGB(255,0,255));
m_sip_caps.CreateSurface(0, hInstance,IDR_KEYBOARD_CAPS, TEXT("PNG"));
m_sip_caps.SetColorKey(RGB(255,0,255));
m_sip_sym.CreateSurface(0, hInstance,IDR_KEYBOARD_SYM, TEXT("PNG"));
m_sip_sym.SetColorKey(RGB(255,0,255));
m_mask_sip.CreateSurface(0, hInstance,IDR_MASK_KEYBOARD, TEXT("PNG"));
m_mask_sip_sym.CreateSurface(0, hInstance,IDR_MASK_KEYBOARD_SYM, TEXT("PNG"));
m_display.RenderSystemFont(RGB(0,0,0));
CJoJoSIP::GetSingleton().SetColor(RGB(255,255,255), RGB(0,0,0), RGB(0,0,0));
//CJoJoSIP::GetSingleton().CreateKeyboard(&m;_display, NULL,NULL); //NO SKIN
CJoJoSIP::GetSingleton().CreateKeyboard(&m;_display, &m;_sip, &m;_mask_sip); //SKINNED SIP
m_display.RenderSystemFont(RGB(255,255,255));
SIPTRANSITION trans;
trans.dwOpacityDelay = 1;
trans.dwFadeInDelay = trans.dwFadeOutDelay = 2;
CJoJoSIP::GetSingleton().SetTransition(SIP_TRANSITION_FADE_IN_OPACITY | SIP_TRANSITION_FADE_OUT_OPACITY | SIP_TRANSITION_FADE_IN_BOTTOM| SIP_TRANSITION_FADE_OUT_LEFT, &trans;);
//POINT p = {0, display.GetHeight()- 80}; //NO SKIN
POINT p = {0, display.GetHeight()- 69}; //SKINNED SIP
CJoJoSIP::GetSingleton().SetPosition(p);
CJoJoSIP::GetSingleton().SetVisible(TRUE);
return S_OK;
}