Script v1.7.1.0
- AI
- Animals
- Contracts
- Debug
- Economy
- Effects
- Events
- Farms
- GUI
- AnimalScreen
- AnimationElement
- BitmapElement
- BoxLayoutElement
- BreadcrumbsElement
- ButtonElement
- ButtonOverlay
- ChatWindow
- CheckedOptionElement
- ClearElement
- ContextActionDisplay
- DialogElement
- FieldInfoDisplay
- FillLevelsDisplay
- FlowLayoutElement
- FocusManager
- FrameElement
- FrameReferenceElement
- GameInfoDisplay
- GamePausedDisplay
- Gui
- GuiDataSource
- GuiElement
- GuiMixin
- GuiOverlay
- GuiProfile
- GuiSoundPlayer
- GuiTopDownCamera
- GuiUtils
- HUDDisplayElement
- HUDElement
- HUDFrameElement
- HUDPopupMessage
- HUDTextDisplay
- IndexChangeSubjectMixin
- IndexStateElement
- InGameIcon
- IngameMap
- IngameMapElement
- InputGlyphElement
- InputHelpDisplay
- ListElement
- ListItemElement
- MapHotspot
- MapOverlayGenerator
- MixerWagonHUDExtension
- MultiTextOptionElement
- MultiValueTween
- Overlay
- PagingElement
- PlaySampleMixin
- RenderElement
- RoundStatusBar
- ScreenElement
- SettingsModel
- SideNotification
- SliderElement
- SpeakerDisplay
- SpeedMeterDisplay
- StableListElement
- StatusBar
- TabbedMenu
- TabbedMenuFrameElement
- TabbedMenuWithDetails
- TableElement
- TableHeaderElement
- TextElement
- TextInputElement
- TimerElement
- ToggleButtonElement
- TopNotification
- Tween
- TweenSequence
- VehicleHUDExtension
- VehicleSchemaDisplay
- VideoElement
- 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
- Rendering
- Scenegraph
- Shape
- Sound
- Spline
- String
- Terrain Detail
- Text Rendering
- Tire Track
- XML
- general
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
39 | function FrameReferenceElement:copyAttributes(src) |
40 | FrameReferenceElement:superClass().copyAttributes(self, src) |
41 | self.referencedFrameName = src.referencedFrameName |
42 | end |
loadFromXML
DescriptionDefinitionloadFromXML()Code
31 | function FrameReferenceElement:loadFromXML(xmlFile, key) |
32 | FrameReferenceElement:superClass().loadFromXML(self, xmlFile, key); |
33 | |
34 | self.referencedFrameName = getXMLString(xmlFile, key .. "#ref") or "" |
35 | end |
new
DescriptionDefinitionnew()Code
18 | function FrameReferenceElement:new(target, custom_mt) |
19 | if custom_mt == nil then |
20 | custom_mt = FrameReferenceElement_mt |
21 | end |
22 | |
23 | local self = GuiElement:new(target, custom_mt); |
24 | self.referencedFrameName = "" |
25 | |
26 | return self |
27 | end |