PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

JoJoSIP for GD2.04

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

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;
}
nicholsr · 19 Sep 2003, 21:03 UTC — Version
Did you do this with the jojosipdemosource100.zip code?

And if so, do you have to 1.04 lib and dll that are referenced in at the top of the minimal.cpp file?

Anyway, I'm building a seperate app to see if I can get it through my thick head...

Thanks
Richard
Except for some minor changes that's the code I used for the demosource100. The few changes that had to be done is commented i the download section at http://jojosoft.gapidraw.com.

I see no real point in giving you the 1.04 lib/dll but I have uploaded the source code for the latest 2.04 version of the demo at the jojosoft-site.