mirror of
https://github.com/Insality/druid
synced 2025-09-27 18:12:21 +02:00
Add examples to component docs
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
--- Component to handle basic GUI button
|
||||
-- @module druid.button
|
||||
|
||||
--- Component events
|
||||
-- @tfield druid_event on_click
|
||||
-- @tfield druid_event on_hold_click
|
||||
-- @tfield druid_event on_long_click
|
||||
-- @tfield druid_event on_double_click
|
||||
-- @table events
|
||||
|
||||
--- Component fields
|
||||
-- @tfield node Main node
|
||||
-- @table fields
|
||||
|
||||
local Event = require("druid.event")
|
||||
local const = require("druid.const")
|
||||
local helper = require("druid.helper")
|
||||
|
@@ -7,6 +7,11 @@
|
||||
-- to how to do your custom complex components to
|
||||
-- separate UI game logic to small files
|
||||
--
|
||||
-- require("druid.druid")
|
||||
-- function init(self)
|
||||
-- self.druid = druid.new(self)
|
||||
-- end
|
||||
--
|
||||
-- @module druid
|
||||
|
||||
local const = require("druid.const")
|
||||
|
@@ -1,7 +1,9 @@
|
||||
--- Lua event small library
|
||||
-- @module druid_event
|
||||
|
||||
local class = require("druid.system.middleclass")
|
||||
|
||||
-- @class DruidEvent
|
||||
local M = class("druid.event")
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user