Script v1.7.1.0
- AI
- Animals
- Contracts
- Debug
- Economy
- Effects
- Events
- Farms
- GUI
- Handtools
- I3d
- Materials
- Misc
- AbstractManager
- AsyncManager
- AutoSaveManager
- BaleTypeManager
- BrandColorManager
- ConnectionHoseManager
- DeferredLoadingManager
- DepthOfFieldManager
- FillTypeManager
- FruitTypeManager
- GameplayHintManager
- GroundTypeManager
- HelpLineManager
- MapManager
- PlaceableTypeManager
- SleepManager
- SplitTypeManager
- SprayTypeManager
- TensionBeltManager
- ToolTypeManager
- TreePlantManager
- 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
HelpLineManager
DescriptionThis class handles all basic functionality for map help lineParent
AbstractManagerFunctions
getCategories
DescriptionGets a list of all categoriesDefinition
getCategories()Return Values
table | categories | a list of categories |
135 | function HelpLineManager:getCategories() |
136 | return self.categories |
137 | end |
getCategory
DescriptionGets a category by category indexDefinition
getCategory(integer categoryIndex)Arguments
integer | categoryIndex | category index |
table | category | the corresponding category |
143 | function HelpLineManager:getCategory(categoryIndex) |
144 | if categoryIndex ~= nil then |
145 | return self.categories[categoryIndex] |
146 | end |
147 | return nil |
148 | end |
initDataStructures
DescriptionInitialize data structuresDefinition
initDataStructures()Code
28 | function HelpLineManager:initDataStructures() |
29 | self.categories = {} |
30 | self.categoryNames = {} |
31 | end |
loadMapData
DescriptionLoad data on map loadDefinition
loadMapData()Return Values
boolean | true | if loading was successful else false |
36 | function HelpLineManager:loadMapData(xmlFile, missionInfo) |
37 | HelpLineManager:superClass().loadMapData(self) |
38 | |
39 | local filename = Utils.getFilename(getXMLString(xmlFile, "map.helpline#filename"), g_currentMission.baseDirectory) |
40 | if filename == nil or filename == "" then |
41 | print("Error: Could not load helpline config file '"..tostring(filename).."'!") |
42 | return false |
43 | end |
44 | |
45 | self:loadFromXML(filename, missionInfo) |
46 | |
47 | return true |
48 | end |
new
DescriptionCreating managerDefinition
new()Return Values
table | instance | instance of object |
20 | function HelpLineManager:new(customMt) |
21 | local self = AbstractManager:new(customMt or HelpLineManager_mt) |
22 | |
23 | return self |
24 | end |