Not logged inOpenClonk Forum
Up Topic Development / Developer's Corner / CON_CancelMenu
- - By Sven2 [de] Date 2010-04-09 16:17
Why? We already have CON_ObjectMenuCancel and CON_MenuCancel.
Parent - - By Newton [de] Date 2010-04-09 16:53
CON_MenuCancel is used for the Player menu. CON_ObjectMenuCancel is used for engine menus that are called by script. CON_CancelMenu is used for scripted menus. I assumed that if the controls for CON_ObjectMenuCancel or CON_MenuCancel are issued, this is all handled in the engine and the control doesn't even reach global func PlayerControl. If I am wrong, CON_CancelMenu is not needed and you could change the code in Libraries/ClonkControl to CON_ObjectMenuCancel and delete the CON_CancelMenu stuff from the PlayerControls.txt
Parent - - By Sven2 [de] Date 2010-04-09 17:19
CON_ObjectMenuCancel  does not reach script at the moment. But since its engine implementation only closes the active cursor menu, it could be easily implemented in script instead of using the engine function.
Parent - By Newton [de] Date 2010-04-09 18:34
Looks like another feature request you can assign to yourself in the bugtracker :P
Up Topic Development / Developer's Corner / CON_CancelMenu

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill