how to add somting to "start" or "short key" problem

02/05/2013 17:47 arnootie#1
hallo,

today i added teleport system to my source and i build source W/O errors(i had few warnings)
i can log in the game with my new bins just fine..

but how do i add it at he game, i know i need FuncApplet.cpp for shortkey, and WndTaskBar.cpp for the start menu..

i tryed to add it so short key and i addid this in FuncApplet.cpp


PHP Code:
#ifdef    _APP_TELEPORTER    
    
AddAppletFuncAppMain_wndappteleport APP_TELEPORTER             _T"WndTeleporter" )   , NULL   GETTEXTTID_TIP_DIALOG    ),  'U'  );
#endif 

but wen i try to go ingame notting heppens wen i press U.. how can i fix it and how do add somthing to the start menu?

thanks
02/05/2013 18:29 ThoughtfulDev#2
first it has to call
#ifdef __APP_TELEPORTER because you have too much spaces in there
and for the funcapplet just look onto the others
first the declare applet and then the addappletfunc
02/05/2013 18:34 Mognakor#3
The amount of spaces betwen "#if" and the name or the value of what is being declared is no limit, except being in the same line.
02/05/2013 18:43 arnootie#4
this is wath i have added:

PHP Code:
DECLAREAPPLETAppMain_wndappteleport  , new CWndTeleporter   ); 
and stil dont work, is it the same whare i put it? i added thad UNDER:

PHP Code:
DECLAREAPPLETAppMain_WndSelectChar   , new CWndSelectChar   ); 
is thad rong or what?

Quote:
Originally Posted by Shonenx33 View Post
first it has to call
#ifdef __APP_TELEPORTER because you have too much spaces in there
and for the funcapplet just look onto the others
first the declare applet and then the addappletfunc
and now it looks also like this:

PHP Code:
#ifdef _APP_TELEPORTER    
    
AddAppletFuncAppMain_wndappteleport APP_TELEPORTER             _T"WndTeleporter" )   , NULL   GETTEXTTID_TIP_DIALOG    ),  'U'  );
#endif 
stil dont work :s


this is my FuncApplet.cpp:

02/05/2013 19:17 ThoughtfulDev#5
you have _APP_TELEPORTER in your versioncommon.h too? because usually it is
__APP_TELEPORTER with 2 _
02/06/2013 07:45 xTwiLightx#6
Quote:
Originally Posted by Shonenx33 View Post
you have _APP_TELEPORTER in your versioncommon.h too? because usually it is
__APP_TELEPORTER with 2 _
Das ist völlig egal, wie viele underlines du hast, es wird nur benutzt, damit es mit keinen Windows/DirectX Definitionen in Konflikt gerät.
Theoretisch könntest du die underlines komplett weglassen -> APPTELEPORTER
02/06/2013 15:09 arnootie#7
thanks all, i got it fixed now :D thanks allot :)

stil.. how do i add it to the "star" window?