Panda3D Manual: DirectCheckButton
  <<prev top next>>  

DirectCheckButtons are similar to buttons, except they represent a binary state that is toggled when it is clicked. Their usage is almost identical to regular buttons, except that the text area and box area can be modified separately.

KeywordDefinitionValue
text_scaleScale of the displayed text(sx,sz)
indicatorValueThe initial boolean state of the checkbox0 or 1
boxImageImage on the checkboxImage Path
boxImageColorColor of the image on the box(R,G,B,A)
boxImageScaleScale of the displayed imageNumber
boxPlacementPosition of the box relative to the text area'left','right'
boxReliefRelief appearance of the checkboxSUNKEN or RAISED
boxBorderSize of the border around the boxNumber
commandCommand the button performs when clicked
(0 or 1 is passed, depending on the state)
Function
extraArgsExtra arguments to the function specified in command[Extra Arguments]
commandButtonsWhich mouse button must be clicked to do the commandLMB, MMB, or RMB
rolloverSoundThe sound made when the cursor rolls over the buttonSound File Path
clickSoundThe sound made when the cursor clicks on the buttonSound File Path
pressEffectWhether or not the button sinks in when clicked<0 or 1>
  <<prev top next>>