Call of Duty 5: Menu Scripting: Difference between revisions

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
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
setDvar
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
bordersize
bordercolor
borderSize
borderSize
columns
columns
Line 19: Line 85:
disablecolor
disablecolor
disableDvar
disableDvar
doubleclick
dvar
dvar
dvarEnumList
dvarEnumList
Line 30: Line 95:
elementwidth
elementwidth
enableDvar
enableDvar
execKey
execKeyInt
exp
exp
fadeAmount
fadeAmount
fadeClamp
fadeClamp
fadeCycle
fadeCycle
fadein
fadeInAmount
fadeInAmount
fadeout
feeder
feeder
feederBottom
feederTop
focusColor
focusColor
focuscolor
focusDvar
focusDvar
focusfirst
focusSound
focusSound
forecolor
gamemsgwindowindex
gamemsgwindowindex
gamemsgwindowmode
gamemsgwindowmode
Line 52: Line 120:
horizontalscroll
horizontalscroll
itemDef
itemDef
leaveFocus
legacySplitScreenScale
legacySplitScreenScale
maxChars
maxChars
maxCharsGotoNext
maxCharsGotoNext
maxPaintChars
maxPaintChars
mouseEnter
mouseEnterText
mouseExit
mouseExitText
noscrollbars
noscrollbars
notselectable
notselectable
onClose
onESC
onFocus
onListboxSelectionChange
onOpen
outlinecolor
outlinecolor
outOfBoundsClick
outOfBoundsClick
Line 90: Line 148:
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
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>
--[[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

List of stuff for menu editing

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)