LUADOC - Farming Simulator 19

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
39function FrameReferenceElement:copyAttributes(src)
40 FrameReferenceElement:superClass().copyAttributes(self, src)
41 self.referencedFrameName = src.referencedFrameName
42end

loadFromXML

Description
Definition
loadFromXML()
Code
31function FrameReferenceElement:loadFromXML(xmlFile, key)
32 FrameReferenceElement:superClass().loadFromXML(self, xmlFile, key);
33
34 self.referencedFrameName = getXMLString(xmlFile, key .. "#ref") or ""
35end

new

Description
Definition
new()
Code
18function 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
27end