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
BreadcrumbsElement
DescriptionBreadcrumbs for deeper layouts (shop, modhub)Parent
FlowLayoutElementFunctions
copyAttributes
DescriptionDefinitioncopyAttributes()Code
25 | function BreadcrumbsElement:copyAttributes(src) |
26 | BreadcrumbsElement:superClass().copyAttributes(self, src) |
27 | |
28 | self.textTemplate = src.textTemplate |
29 | self.dividerTemplate = src.dividerTemplate |
30 | self.ownsTemplates = false |
31 | end |
delete
DescriptionDefinitiondelete()Code
55 | function BreadcrumbsElement:delete() |
56 | if self.ownsTemplates then |
57 | if self.textTemplate ~= nil then |
58 | self.textTemplate:delete() |
59 | end |
60 | |
61 | if self.dividerTemplate ~= nil then |
62 | self.dividerTemplate:delete() |
63 | end |
64 | end |
65 | |
66 | BreadcrumbsElement:superClass().delete(self) |
67 | end |
new
DescriptionDefinitionnew()Code
15 | function BreadcrumbsElement:new(target, custom_mt) |
16 | local self = FlowLayoutElement:new(target, custom_mt or BreadcrumbsElement_mt) |
17 | |
18 | self.crumbs = {} |
19 | |
20 | return self |
21 | end |
onGuiSetupFinished
DescriptionDefinitiononGuiSetupFinished()Code
35 | function BreadcrumbsElement:onGuiSetupFinished() |
36 | BreadcrumbsElement:superClass().onGuiSetupFinished(self) |
37 | |
38 | if self.textTemplate == nil or self.dividerTemplate == nil then |
39 | self.ownsTemplates = true |
40 | |
41 | self.textTemplate = self:getFirstDescendant(function(element) return element:isa(TextElement) end) |
42 | if self.textTemplate ~= nil then |
43 | self.textTemplate:unlinkElement() |
44 | end |
45 | |
46 | self.dividerTemplate = self:getFirstDescendant(function(element) return element:isa(BitmapElement) end) |
47 | if self.dividerTemplate ~= nil then |
48 | self.dividerTemplate:unlinkElement() |
49 | end |
50 | end |
51 | end |