2002-03-16 00:00:14 +00:00
|
|
|
QuakeC Menu Coding Style
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
(by elmex <Robin Redeker>)
|
|
|
|
|
|
|
|
For QuakeC you should use the normal coding style, which is
|
|
|
|
describes in the file "CodingStyle" in doc/
|
|
|
|
|
|
|
|
But you may use not the same prefixes.
|
|
|
|
|
|
|
|
Use these prefixes where it makes sense:
|
2002-03-16 20:22:01 +00:00
|
|
|
CB_ Menu_Item callback
|
2002-03-16 00:00:14 +00:00
|
|
|
MENU_ Menu making function
|
2002-03-16 00:14:24 +00:00
|
|
|
DRAW_ Draw
|
2002-03-16 20:22:01 +00:00
|
|
|
KEYEV_ Keyevent callback
|
2002-03-19 16:20:54 +00:00
|
|
|
CB_ME_ Menu_EnterHook callback
|
|
|
|
CB_ML_ Menu_LeaveHook callback
|
2002-03-16 00:00:14 +00:00
|
|
|
|
|
|
|
Comment functions like this:
|
|
|
|
/*
|
|
|
|
[PREFIX_]FunctionName
|
|
|
|
|
|
|
|
Description
|
|
|
|
*/
|
|
|
|
returntype (args)
|
|
|
|
[PREFIX_]FunctionName =
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|