Script v1.7.1.0
- AI
- Animals
- Contracts
- Debug
- Economy
- Effects
- Events
- Farms
- GUI
- Handtools
- I3d
- Materials
- Misc
- Objects
- Placeables
- Player
- Shop
- Sounds
- Specializations
- Triggers
- Utils
- Vehicles
- Weather
Engine v1.7.1.0
- AI
- Animation
- Camera
- Entity
- Fillplanes
- General
- I3D
- Input
- Lighting
- Math
- Network
- Node
- Overlays
- Particle System
- Physics
- JointConstructor:setActors
- JointConstructor:setJointTransforms
- addDifferential
- addForce
- addImpulse
- addTorque
- addTorqueImpulse
- addVehicleLink
- computeWheelShapeTireForces
- createCCT
- createWheelShape
- getAngularDamping
- getAngularVelocity
- getCCTCollisionFlags
- getCenterOfMass
- getCollisionMask
- getDensity
- getLinearDamping
- getLinearVelocity
- getMass
- getMotorRotationSpeed
- getRigidBodyType
- getVelocityAtLocalPos
- getVelocityAtWorldPos
- getVolume
- getWheelShapeAxleSpeed
- getWheelShapeContactForce
- getWheelShapeContactNormal
- getWheelShapeContactObject
- getWheelShapeContactPoint
- getWheelShapePosition
- getWheelShapeSlip
- moveCCT
- overlapBox
- overlapSphere
- raycastAll
- raycastClosest
- removeCCT
- setAngularDamping
- setAngularVelocity
- setCenterOfMass
- setCollisionMask
- setFrictionVelocity
- setJointDrive
- setLinearDamping
- setLinearVelocity
- setMass
- setRigidBodyType
- setSolverIterationCount
- setWheelShapeForcePoint
- setWheelShapeProps
- setWheelShapeTireFriction
- simulatePhysics
- simulatePhysicsTimeScale
- updateDifferential
- Rendering
- Scenegraph
- Shape
- Sound
- Spline
- String
- Terrain Detail
- Text Rendering
- Tire Track
- XML
- general
Foundation Reference
CheckedOptionElement
DescriptionTwo-value on/off state input element.Parent
MultiTextOptionElementFunctions
addElement
DescriptionDefinitionaddElement()Code
26 | function CheckedOptionElement:addElement(element) |
27 | CheckedOptionElement:superClass().addElement(self, element) |
28 | |
29 | if #self.elements == 3 then |
30 | self:setTexts({g_i18n:getText("ui_off"), g_i18n:getText("ui_on")}) |
31 | self:setIsChecked(self.isChecked) |
32 | end |
33 | end |
getIsChecked
DescriptionGet whether the element is checkedDefinition
getIsChecked()Code
37 | function CheckedOptionElement:getIsChecked() |
38 | return self.state == CheckedOptionElement.STATE_CHECKED |
39 | end |
new
DescriptionDefinitionnew()Code
18 | function CheckedOptionElement:new(target, custom_mt) |
19 | local self = MultiTextOptionElement:new(target, custom_mt or CheckedOptionElement_mt) |
20 | |
21 | return self |
22 | end |
setIsChecked
DescriptionSet whether the element is checkedDefinition
setIsChecked()Code
43 | function CheckedOptionElement:setIsChecked(isChecked) |
44 | if isChecked then |
45 | self:setState(CheckedOptionElement.STATE_CHECKED) |
46 | else |
47 | self:setState(CheckedOptionElement.STATE_UNCHECKED) |
48 | end |
49 | end |