LUADOC - Farming Simulator 22

Script v1_7_1_0

Engine v1_7_1_0

Foundation Reference

FrameReferenceElement

Description
Reference 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
GuiElement
XML Configuration Parameters
GuiElement#refstring Name of referenced frame. The frame must have this name on its root GuiElement to allow matching.

Functions

copyAttributes

Description
Definition
copyAttributes()
Code
36function FrameReferenceElement:copyAttributes(src)
37 FrameReferenceElement:superClass().copyAttributes(self, src)
38 self.referencedFrameName = src.referencedFrameName
39end

loadFromXML

Description
Definition
loadFromXML()
Code
28function FrameReferenceElement:loadFromXML(xmlFile, key)
29 FrameReferenceElement:superClass().loadFromXML(self, xmlFile, key)
30
31 self.referencedFrameName = getXMLString(xmlFile, key .. "#ref") or ""
32end

new

Description
Definition
new()
Code
18function FrameReferenceElement.new(target, custom_mt)
19 local self = GuiElement.new(target, custom_mt or FrameReferenceElement_mt)
20
21 self.referencedFrameName = ""
22
23 return self
24end