Call of Duty 5: Menu Scripting: Difference between revisions
Jump to navigation
Jump to search
m (New page: {{note|List of stuff for menu editing}} == Actions == <pre> onListboxSelectionChange highlightTexture backgroundItemListbox selectIcon focusColor selectBorder gamemsgwindowmode gamemsgwi...) |
mNo edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
<pre> | <pre> | ||
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 | |||
setDvar | |||
setDvarFromLocString | |||
setDvarStringUsingTable | |||
setfocus | |||
setfocusbydvar | |||
setitemcolor | |||
setLocalVarBool | |||
setLocalVarFloat | |||
setLocalVarInt | |||
setLocalVarString | |||
showMenu | |||
statclearbitmask | |||
statGetInDvarUsingTable | |||
statsetbitmask | |||
statSetOnDvarStringValue | |||
statSetUsingTable | |||
</pre> | |||
== Events == | |||
<pre> | |||
onClose | |||
onESC | |||
onFocus | |||
onListboxSelectionChange | onListboxSelectionChange | ||
onOpen | |||
</pre> | |||
== Properties == | |||
<pre> | |||
align | |||
allowedBinding | |||
autowrapped | |||
backcolor | |||
background | |||
backgroundItemListbox | backgroundItemListbox | ||
blurWorld | |||
border | |||
bordercolor | |||
borderSize | |||
columns | |||
decoration | |||
disablecolor | |||
disableDvar | disableDvar | ||
dvar | |||
dvarEnumList | dvarEnumList | ||
dvarFloat | |||
dvarFloatList | dvarFloatList | ||
dvarStrList | dvarStrList | ||
dvarTest | |||
elementheight | |||
elementtype | elementtype | ||
elementwidth | |||
enableDvar | |||
exp | |||
fadeAmount | |||
fadeClamp | |||
fadeCycle | |||
fadein | |||
fadeInAmount | |||
fadeout | |||
feeder | feeder | ||
feederBottom | |||
feederTop | |||
focusColor | |||
focusDvar | |||
focusfirst | |||
focusSound | |||
forecolor | |||
gamemsgwindowindex | |||
gamemsgwindowmode | |||
group | group | ||
hiddenDuringFlashbang | hiddenDuringFlashbang | ||
hiddenDuringScope | hiddenDuringScope | ||
hiddenDuringUI | |||
hideDvar | |||
highlightTexture | |||
horizontalscroll | |||
itemDef | |||
legacySplitScreenScale | legacySplitScreenScale | ||
maxChars | |||
maxCharsGotoNext | |||
maxPaintChars | |||
noscrollbars | |||
notselectable | |||
outlinecolor | |||
outOfBoundsClick | |||
ownerdraw | |||
ownerdrawFlag | |||
popup | popup | ||
selectBorder | |||
selectIcon | |||
showDvar | |||
soundLoop | soundLoop | ||
special | |||
style | style | ||
textalign | |||
textalignx | |||
textaligny | |||
textcinematicsubtitle | |||
textfile | |||
textfont | |||
textsavegame | |||
textscale | |||
textstyle | |||
usepaging | |||
</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 | |||
milliseconds() = %i | |||
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> | </pre> | ||
--[[User:CoDEmanX|CoDEmanX]] 15:22, 29 July 2009 (UTC) | |||
[[Category:Call of Duty 5]] | |||
[[Category:Scripting]] | |||
[[Category:Menu]] | |||
[[Category:Modding]] |
Latest revision as of 23:26, 2 April 2012
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 setDvar 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 milliseconds() = %i 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)