aboutsummaryrefslogtreecommitdiff
path: root/games/minimal/mods/stairs
diff options
context:
space:
mode:
authorBen Deutsch <ben@bendeutsch.de>2016-08-02 21:36:34 +0200
committerest31 <MTest31@outlook.com>2016-08-10 12:18:25 +0200
commit82494b8cc199fb92248c6c30ce7ef18b7e7133ae (patch)
tree651de3a5c07ebbe75321621c04b07ae0728d46a8 /games/minimal/mods/stairs
parentd1df09841d0eac7a88f638676b80ec848522cca5 (diff)
downloadminetest-82494b8cc199fb92248c6c30ce7ef18b7e7133ae.tar.gz
minetest-82494b8cc199fb92248c6c30ce7ef18b7e7133ae.tar.bz2
minetest-82494b8cc199fb92248c6c30ce7ef18b7e7133ae.zip
Zooming the camera requires the 'zoom' privilege
Diffstat (limited to 'games/minimal/mods/stairs')
0 files changed, 0 insertions, 0 deletions
class="hl opt">) == false then --close dialog on esc if event == "MenuQuit" then self:delete() return true end end end local dialog_metatable = { eventhandler = dialog_event_handler, get_formspec = function(self) if not self.hidden then return self.formspec(self.data) end end, handle_buttons = function(self,fields) if not self.hidden then return self.buttonhandler(self,fields) end end, handle_events = function(self,event) if not self.hidden then return self.eventhandler(self,event) end end, hide = function(self) self.hidden = true end, show = function(self) self.hidden = false end, delete = function(self) if self.parent ~= nil then self.parent:show() end ui.delete(self) end, set_parent = function(self,parent) self.parent = parent end } dialog_metatable.__index = dialog_metatable function dialog_create(name,get_formspec,buttonhandler,eventhandler) local self = {} self.name = name self.type = "toplevel" self.hidden = true self.data = {} self.formspec = get_formspec self.buttonhandler = buttonhandler self.user_eventhandler = eventhandler setmetatable(self,dialog_metatable) ui.add(self) return self end