Call of Duty 5: Menu Scripting: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
accept | accept | ||
action | action | ||
close | |||
closeforgametype | |||
doubleclick | |||
execKey | |||
execKeyInt | |||
execnow | |||
execNowOnDvarFloatValue | |||
execNowOnDvarIntValue | |||
execNowOnDvarStringValue | |||
execOnDvarFloatValue | |||
execOnDvarIntValue | |||
execOnDvarStringValue | |||
getautoupdate | |||
hideMenu | |||
ingameclose | |||
ingameopen | |||
inviteToSquad | |||
joinNewSquad | |||
leaveFocus | |||
mouseEnter | |||
mouseEnterText | |||
mouseExit | |||
mouseExitText | |||
open | |||
openforgametype | |||
play | |||
removeFromSquad | |||
scriptMenuRespondOnDvarFloatValue | |||
scriptMenuRespondOnDvarIntValue | |||
scriptMenuRespondOnDvarStringValue | |||
scriptmenuresponse | |||
setAttachmentOnType | |||
setbackground | |||
setcolor | |||
setDvarFromLocString | |||
setDvarStringUsingTable | |||
setfocus | |||
setfocusbydvar | |||
setitemcolor | |||
setLocalVarBool | |||
setLocalVarFloat | |||
setLocalVarInt | |||
setLocalVarString | |||
showMenu | |||
statclearbitmask | |||
statGetInDvarUsingTable | |||
statsetbitmask | |||
statSetOnDvarStringValue | |||
statSetUsingTable | |||
</pre> | |||
== Events == | |||
<pre> | |||
onClose | |||
onESC | |||
onFocus | |||
onListboxSelectionChange | |||
onOpen | |||
</pre> | |||
== Properties == | |||
<pre> | |||
align | align | ||
allowedBinding | allowedBinding | ||
autowrapped | autowrapped | ||
backcolor | |||
background | background | ||
backgroundItemListbox | backgroundItemListbox | ||
blurWorld | blurWorld | ||
border | border | ||
bordercolor | |||
borderSize | borderSize | ||
columns | columns | ||
Line 19: | Line 84: | ||
disablecolor | disablecolor | ||
disableDvar | disableDvar | ||
dvar | dvar | ||
dvarEnumList | dvarEnumList | ||
Line 30: | Line 94: | ||
elementwidth | elementwidth | ||
enableDvar | enableDvar | ||
exp | exp | ||
fadeAmount | fadeAmount | ||
fadeClamp | fadeClamp | ||
fadeCycle | fadeCycle | ||
fadein | |||
fadeInAmount | fadeInAmount | ||
fadeout | |||
feeder | feeder | ||
feederBottom | |||
feederTop | |||
focusColor | focusColor | ||
focusDvar | focusDvar | ||
focusfirst | |||
focusSound | focusSound | ||
forecolor | |||
gamemsgwindowindex | gamemsgwindowindex | ||
gamemsgwindowmode | gamemsgwindowmode | ||
Line 52: | Line 119: | ||
horizontalscroll | horizontalscroll | ||
itemDef | itemDef | ||
legacySplitScreenScale | legacySplitScreenScale | ||
maxChars | maxChars | ||
maxCharsGotoNext | maxCharsGotoNext | ||
maxPaintChars | maxPaintChars | ||
noscrollbars | noscrollbars | ||
notselectable | notselectable | ||
outlinecolor | outlinecolor | ||
outOfBoundsClick | outOfBoundsClick | ||
Line 90: | Line 147: | ||
usepaging | usepaging | ||
</pre> | </pre> | ||
==When expressions== | |||
For example: | |||
<pre> | |||
itemdef | |||
{ | |||
// ... | |||
visible when( !dvarBool( ui_show_loadout ) ) | |||
} | |||
</pre> | |||
{|border=1 | |||
|- | |||
|%f | |||
|float | |||
|- | |||
|%.2f | |||
|float, 2 digits after the decimal point | |||
|- | |||
|%i | |||
|integer | |||
|- | |||
|%s | |||
|string | |||
|} | |||
<pre> | |||
adsjavelin() = %i | |||
AloneInPrivateParty() = %i | |||
CheckIfPlayerAlreadyInvitedToSquad() = %i | |||
clipAmmo | |||
cos( %f ) = %f | |||
dpad | |||
dvarbool( %s ) = %i | |||
dvarfloat( %s ) = %f | |||
dvarint( %s ) = %i | |||
dvarstring( %s ) = %s | |||
flashbanged() = %i | |||
GameHost() = %i | |||
GetPlayerSquadId() = %i | |||
GetSquadId() = %i | |||
InKillcam() = %i | |||
InLobby() = %i | |||
InPrivateParty() = %i | |||
IsArtillery() = %i | |||
IsCinematicFinished() = %i | |||
isIntermission() = %i | |||
ismenuopen( %s ) = %i | |||
IsSquadLeader() = %i | |||
localVarBool( %s ) = %i | |||
localVarFloat( %s ) = %f | |||
localVarInt( %s ) = %i | |||
localVarString( %s ) = %s | |||
otherteamname | |||
player( %s ) = %i | |||
player( %s ) = %s | |||
PrivatePartyHost() = %i | |||
PrivatePartyHostInLobby() = %i | |||
scoped() = %i | |||
scoreboard | |||
scoreboard_visible() = %i | |||
secondsToCountdown() = %s | |||
secondsToTime() = %s | |||
selecting_location() = %i | |||
sin( %f ) = %f | |||
Splitscreen() = %i | |||
SplitscreenHost() = %i | |||
SplitscreenNum() = %i | |||
stat( %i ) = %i | |||
statRangeAnyBitsSet( %i, %i, %i ) = %i | |||
team(%i)( %s ) = %i | |||
team(%i)( %s ) = %s | |||
teamname | |||
ui_active() = %i | |||
weapattackdirect() = %i | |||
weapattacktop() = %i | |||
weaplockblink( %.2f ) = %i | |||
writingdata() = %i | |||
</pre> | |||
== Pre-Processor commands == | |||
<pre> | |||
#define | |||
#else | |||
#endif | |||
#ifdef | |||
#ifndef | |||
#include | |||
#undef | |||
</pre> | |||
--[[User:CoDEmanX|CoDEmanX]] 15:22, 29 July 2009 (UTC) | |||
[[Category:Call of Duty 5]] | |||
[[Category:Scripting]] | |||
[[Category:Menu]] | |||
[[Category:Modding]] |
Revision as of 18:22, 29 July 2009
Actions
accept action close closeforgametype doubleclick execKey execKeyInt execnow execNowOnDvarFloatValue execNowOnDvarIntValue execNowOnDvarStringValue execOnDvarFloatValue execOnDvarIntValue execOnDvarStringValue getautoupdate hideMenu ingameclose ingameopen inviteToSquad joinNewSquad leaveFocus mouseEnter mouseEnterText mouseExit mouseExitText open openforgametype play removeFromSquad scriptMenuRespondOnDvarFloatValue scriptMenuRespondOnDvarIntValue scriptMenuRespondOnDvarStringValue scriptmenuresponse setAttachmentOnType setbackground setcolor setDvarFromLocString setDvarStringUsingTable setfocus setfocusbydvar setitemcolor setLocalVarBool setLocalVarFloat setLocalVarInt setLocalVarString showMenu statclearbitmask statGetInDvarUsingTable statsetbitmask statSetOnDvarStringValue statSetUsingTable
Events
onClose onESC onFocus onListboxSelectionChange onOpen
Properties
align allowedBinding autowrapped backcolor background backgroundItemListbox blurWorld border bordercolor borderSize columns decoration disablecolor disableDvar dvar dvarEnumList dvarFloat dvarFloatList dvarStrList dvarTest elementheight elementtype elementwidth enableDvar exp fadeAmount fadeClamp fadeCycle fadein fadeInAmount fadeout feeder feederBottom feederTop focusColor focusDvar focusfirst focusSound forecolor gamemsgwindowindex gamemsgwindowmode group hiddenDuringFlashbang hiddenDuringScope hiddenDuringUI hideDvar highlightTexture horizontalscroll itemDef legacySplitScreenScale maxChars maxCharsGotoNext maxPaintChars noscrollbars notselectable outlinecolor outOfBoundsClick ownerdraw ownerdrawFlag popup selectBorder selectIcon showDvar soundLoop special style textalign textalignx textaligny textcinematicsubtitle textfile textfont textsavegame textscale textstyle usepaging
When expressions
For example:
itemdef { // ... visible when( !dvarBool( ui_show_loadout ) ) }
%f | float |
%.2f | float, 2 digits after the decimal point |
%i | integer |
%s | string |
adsjavelin() = %i AloneInPrivateParty() = %i CheckIfPlayerAlreadyInvitedToSquad() = %i clipAmmo cos( %f ) = %f dpad dvarbool( %s ) = %i dvarfloat( %s ) = %f dvarint( %s ) = %i dvarstring( %s ) = %s flashbanged() = %i GameHost() = %i GetPlayerSquadId() = %i GetSquadId() = %i InKillcam() = %i InLobby() = %i InPrivateParty() = %i IsArtillery() = %i IsCinematicFinished() = %i isIntermission() = %i ismenuopen( %s ) = %i IsSquadLeader() = %i localVarBool( %s ) = %i localVarFloat( %s ) = %f localVarInt( %s ) = %i localVarString( %s ) = %s otherteamname player( %s ) = %i player( %s ) = %s PrivatePartyHost() = %i PrivatePartyHostInLobby() = %i scoped() = %i scoreboard scoreboard_visible() = %i secondsToCountdown() = %s secondsToTime() = %s selecting_location() = %i sin( %f ) = %f Splitscreen() = %i SplitscreenHost() = %i SplitscreenNum() = %i stat( %i ) = %i statRangeAnyBitsSet( %i, %i, %i ) = %i team(%i)( %s ) = %i team(%i)( %s ) = %s teamname ui_active() = %i weapattackdirect() = %i weapattacktop() = %i weaplockblink( %.2f ) = %i writingdata() = %i
Pre-Processor commands
#define #else #endif #ifdef #ifndef #include #undef
--CoDEmanX 15:22, 29 July 2009 (UTC)