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
FrameReferenceElement
DescriptionReference to a named frame to be displayed. The reference will be resolved on loading and this element will be removed if the resolution succeeds.Parent
GuiElementXML Configuration Parameters
GuiElement#ref | string Name of referenced frame. The frame must have this name on its root GuiElement to allow matching. |
Functions
copyAttributes
DescriptionDefinitioncopyAttributes()Code
36 | function FrameReferenceElement:copyAttributes(src) |
37 | FrameReferenceElement:superClass().copyAttributes(self, src) |
38 | self.referencedFrameName = src.referencedFrameName |
39 | end |
loadFromXML
DescriptionDefinitionloadFromXML()Code
28 | function FrameReferenceElement:loadFromXML(xmlFile, key) |
29 | FrameReferenceElement:superClass().loadFromXML(self, xmlFile, key) |
30 | |
31 | self.referencedFrameName = getXMLString(xmlFile, key .. "#ref") or "" |
32 | end |
new
DescriptionDefinitionnew()Code
18 | function FrameReferenceElement.new(target, custom_mt) |
19 | local self = GuiElement.new(target, custom_mt or FrameReferenceElement_mt) |
20 | |
21 | self.referencedFrameName = "" |
22 | |
23 | return self |
24 | end |