Script v1_7_1_0
- AI
- Animals
- Collections
- Contracts
- Debug
- Economy
- Elements
- EnvironmentalScore
- Errors
- Events
- GUI
- Handtools
- Hud
- I3d
- Input
- Jobs
- Maps
- Materials
- Misc
- Objects
- Parameters
- Placeables
- Placement
- Player
- Shop
- Sounds
- Specialization
- Specializations
- StateMachine
- Statistics
- Tasks
- Triggers
- Utils
- Vehicles
Engine v1_7_1_0
- AI
- Animation
- Camera
- Entity
- Fillplanes
- general
- General
- I3D
- Input
- Lighting
- Math
- Network
- Node
- NoteNode
- Overlays
- Particle System
- Physics
- Rendering
- Scenegraph
- Shape
- Sound
- Spline
- String
- Terrain Detail
- Text Rendering
- Tire Track
- VoiceChat
- XML
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.arrowTemplate = src.arrowTemplate |
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.arrowTemplate ~= nil then |
62 | self.arrowTemplate: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.arrowTemplate == nil then |
39 | self.ownsTemplates = true |
40 | |
41 | self.textTemplate = self:getFirstDescendant(function(element) return element:isa(TextBackdropElement) end) |
42 | if self.textTemplate ~= nil then |
43 | self.textTemplate:unlinkElement() |
44 | end |
45 | |
46 | self.arrowTemplate = self:getFirstDescendant(function(element) return element:isa(BitmapElement) end) |
47 | if self.arrowTemplate ~= nil then |
48 | self.arrowTemplate:unlinkElement() |
49 | end |
50 | end |
51 | end |