Quote:
Originally Posted by omar125
the 5004 is for id of Ginterface file like
Code:
GDR_FLORIAN0:CIFflorian0
{
ClientRect=RECT,"0,0,0,0"
Color=COLOR,"255,8,214,78"
DDJ=STRING,"interface\\frame\\mframe_wnd_"
FontColor=COLOR,"255,255,255,255"
FontIndex=INTEGER,"0"
HAlign=INTEGER,"0"
ID=INTEGER,"1338"
Rect=RECT,"300,200,400,300"
Style=INTEGER,"0"
SubSection=STRING,""
Text=STRING,"UIIT_PAG_FLORIAN0"
UV_LB=POINT,"0,1"
UV_LT=POINT,"0,0"
UV_RB=POINT,"1,1"
UV_RT=POINT,"1,0"
VAlign=INTEGER,"0"
}
Code:
g_pCGInterface->m_IRM.GetResObj(5004, 1)->ShowGWnd(true);
5004 is the id of ginterface file
you can see florian Creating windows and he created guide in the devkit [Only registered and activated users can see links. Click Here To Register...]
|
Quote:
Originally Posted by kanka5252
i added but get crash -.-"
|
You must use unique ID so if ginterface form id =1338
how you will use it?
You can do it like
Code:
g_pCGInterface->m_IRM.GetResObj(5004, 1)->ShowGWnd(true);
GDR_FLORIAN0:CIFflorian0
{
ClientRect=RECT,"0,0,0,0"
Color=COLOR,"255,8,214,78"
DDJ=STRING,"interface\\frame\\mframe_wnd_"
FontColor=COLOR,"255,255,255,255"
FontIndex=INTEGER,"0"
HAlign=INTEGER,"0"
ID=INTEGER,"5004"
Rect=RECT,"300,200,400,300"
Style=INTEGER,"0"
SubSection=STRING,""
Text=STRING,"UIIT_PAG_FLORIAN0"
UV_LB=POINT,"0,1"
UV_LT=POINT,"0,0"
UV_RB=POINT,"1,1"
UV_RT=POINT,"1,0"
VAlign=INTEGER,"0"
}
.