mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
Update ldoc code comments
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
--- Druid constants
|
||||
-- @module constants
|
||||
-- @module const
|
||||
|
||||
local M = {}
|
||||
|
||||
|
||||
-- Actions
|
||||
M.ACTION_TOUCH = hash("touch")
|
||||
M.ACTION_TEXT = hash("text")
|
||||
@@ -10,22 +11,25 @@ M.ACTION_BACKSPACE = hash("backspace")
|
||||
M.ACTION_ENTER = hash("enter")
|
||||
M.ACTION_BACK = hash("back")
|
||||
|
||||
|
||||
M.RELEASED = "released"
|
||||
M.PRESSED = "pressed"
|
||||
M.STRING = "string"
|
||||
M.TABLE = "table"
|
||||
M.ZERO = "0"
|
||||
|
||||
M.ALL = "all"
|
||||
|
||||
|
||||
--- Interests
|
||||
M.ON_MESSAGE = hash("on_message")
|
||||
M.ON_UPDATE = hash("on_update")
|
||||
|
||||
|
||||
-- Input
|
||||
M.ON_SWIPE = hash("on_swipe")
|
||||
M.ON_INPUT = hash("on_input")
|
||||
|
||||
|
||||
M.PIVOTS = {
|
||||
[gui.PIVOT_CENTER] = vmath.vector3(0),
|
||||
[gui.PIVOT_N] = vmath.vector3(0, 0.5, 0),
|
||||
@@ -38,11 +42,13 @@ M.PIVOTS = {
|
||||
[gui.PIVOT_NW] = vmath.vector3(-0.5, 0.5, 0),
|
||||
}
|
||||
|
||||
|
||||
M.SIDE = {
|
||||
X = "x",
|
||||
Y = "y"
|
||||
}
|
||||
|
||||
|
||||
M.UI_INPUT = {
|
||||
[M.ON_SWIPE] = true,
|
||||
[M.ON_INPUT] = true
|
||||
@@ -52,13 +58,34 @@ M.UI_INPUT = {
|
||||
M.ON_CHANGE_LANGUAGE = hash("on_change_language")
|
||||
M.ON_LAYOUT_CHANGED = hash("on_layout_changed")
|
||||
|
||||
|
||||
M.SPECIFIC_UI_MESSAGES = {
|
||||
[M.ON_CHANGE_LANGUAGE] = "on_change_language",
|
||||
[M.ON_LAYOUT_CHANGED] = "on_layout_changed"
|
||||
}
|
||||
|
||||
|
||||
-- Basic druid components
|
||||
M.COMPONENTS = {
|
||||
BUTTON = "button",
|
||||
BLOCKER = "blocker",
|
||||
BACK_HANDLER = "back_handler",
|
||||
TEXT = "text",
|
||||
LOCALE = "locale",
|
||||
TIMER = "timer",
|
||||
PROGRESS = "progress",
|
||||
GRID = "grid",
|
||||
SCROLL = "scroll",
|
||||
SLIDER = "slider",
|
||||
CHECKBOX = "checkbox",
|
||||
CHECKBOX_GROUP = "checkbox_group",
|
||||
RADIO_GROUP = "radio_group",
|
||||
}
|
||||
|
||||
|
||||
M.EMPTY_FUNCTION = function() end
|
||||
M.EMPTY_STRING = ""
|
||||
M.EMPTY_TABLE = {}
|
||||
|
||||
|
||||
return M
|
Reference in New Issue
Block a user