From ccdd381f964e2f8975d43bd4c91fc45f8573b42a Mon Sep 17 00:00:00 2001 From: Krzysztof Antoniak Date: Tue, 28 Feb 2023 22:04:53 -0800 Subject: [PATCH] Minor fixes to Lua documentation --- files/data/scripts/omw/settings/player.lua | 2 +- files/lua_api/openmw/self.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/files/data/scripts/omw/settings/player.lua b/files/data/scripts/omw/settings/player.lua index 0dd3ec4f1e..ae483935d5 100644 --- a/files/data/scripts/omw/settings/player.lua +++ b/files/data/scripts/omw/settings/player.lua @@ -131,7 +131,7 @@ return { -- { -- key = 'Flag', -- default = false, - -- renderer = 'yeNo', + -- renderer = 'checkbox', -- name = 'Flag', -- description = 'Flag toggle', -- }, diff --git a/files/lua_api/openmw/self.lua b/files/lua_api/openmw/self.lua index 423402f2d3..48d4f5914b 100644 --- a/files/lua_api/openmw/self.lua +++ b/files/lua_api/openmw/self.lua @@ -4,7 +4,8 @@ -- @module self -- @extends openmw.core#GameObject -- @usage local self = require('openmw.self') --- if self.type == 'Player' then -- All fields and functions of `GameObject` are available. +-- local types = require('openmw.types') +-- if self.type == types.Player then -- All fields and functions of `GameObject` are available. -- self:sendEvent("something", self.position) -- end