Difference between revisions of "MDE Scripting Changelog"
From Nomad DB
Line 1: | Line 1: | ||
{{Page_MDE}} | {{Page_MDE}} | ||
This page documents notable Lua changes from [[MDE ScriptHook]] from version 1.0 upwards. | This page documents notable Lua changes from [[MDE ScriptHook]] from version 1.0 upwards. | ||
+ | |||
+ | == Version 1.1.2 == | ||
+ | * [[ScriptHook.GetScript]] | ||
+ | * [[ScriptHook.GetAllScripts]] | ||
+ | * [[ScriptHook.RegisterKeyHandler]] now returns the key name as string | ||
== Version 1.1 == | == Version 1.1 == |
Latest revision as of 20:05, 8 October 2021
This page documents notable Lua changes from MDE ScriptHook from version 1.0 upwards.
Contents
Version 1.1.2
- ScriptHook.GetScript
- ScriptHook.GetAllScripts
- ScriptHook.RegisterKeyHandler now returns the key name as string
Version 1.1
Events
- Updated Script:OnUpdate event (added time parameter)
- Added Script:OnRender
UI: SimpleMenu
- Full documentation here
- Added UISimpleMenu:AddList, UISimpleMenu:AddText
- UISimpleMenu:GetSelectedListEntry
- UISimpleMenu:GetSelectedButtonEntry
- UISimpleMenu:SelectListEntryByIndex
- UISimpleMenu:SelectListEntryByValue
Rendering
- Full documentation here
- d3d.SetColor, d3d.DrawRect, d3d.DrawLine
- d3d.SetFont, d3d.DrawText, d3d.MeasureText
- d3d.DrawLine3D
Entity
- ScriptHook.GetAllEntities
- ScriptHook.GetEntitiesInRange
- ScriptHook.GetEntitiesByClassName
- ScriptHook.GetEntityClassNameByGuid
Experimental: CEF Integration
- Chromium Embedded Framework (CEF)
- Allows placing "WebFrames" in 2D/3D world
- Seperate download required (~70mb)
- Currently in experimental stage (no input possible, may cause frame drops)