From 0179e68887fc83bb26a02ff0084ec3111984821b Mon Sep 17 00:00:00 2001 From: Insality Date: Sat, 23 Oct 2021 13:08:39 +0300 Subject: [PATCH] #91 Add license comments --- LICENSE | 2 +- druid/base/back_handler.lua | 2 ++ druid/base/blocker.lua | 2 ++ druid/base/button.lua | 2 ++ druid/base/drag.lua | 2 ++ druid/base/hover.lua | 2 ++ druid/base/scroll.lua | 2 ++ druid/base/static_grid.lua | 2 ++ druid/base/swipe.lua | 2 ++ druid/base/text.lua | 2 ++ druid/component.lua | 2 ++ druid/const.lua | 2 ++ druid/druid.lua | 2 ++ druid/event.lua | 2 ++ druid/extended/checkbox.lua | 2 ++ druid/extended/checkbox_group.lua | 2 ++ druid/extended/component.template.lua | 2 ++ druid/extended/data_list.lua | 2 ++ druid/extended/dynamic_grid.lua | 2 ++ druid/extended/input.lua | 2 ++ druid/extended/lang_text.lua | 2 ++ druid/extended/progress.lua | 2 ++ druid/extended/radio_group.lua | 2 ++ druid/extended/slider.lua | 2 ++ druid/extended/timer.lua | 2 ++ druid/helper.lua | 2 ++ druid/helper/druid_input.lua | 2 ++ druid/helper/formats.lua | 4 +++- druid/styles/default/anims.lua | 2 ++ druid/styles/default/style.lua | 2 ++ druid/styles/empty/style.lua | 2 ++ druid/styles/sprites/style.lua | 2 ++ druid/system/druid_instance.lua | 2 ++ druid/system/settings.lua | 2 ++ editor_scripts/gui_scheme.editor_script | 2 +- editor_scripts/setup_layers.py | 2 +- editor_scripts/setup_layers.sh | 2 +- 37 files changed, 71 insertions(+), 5 deletions(-) diff --git a/LICENSE b/LICENSE index 9dcf007..da6215f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 Maxim Tuprikov +Copyright (c) 2021 Maxim Tuprikov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/druid/base/back_handler.lua b/druid/base/back_handler.lua index 56632d6..4d09d61 100644 --- a/druid/base/back_handler.lua +++ b/druid/base/back_handler.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Component to handle back key (android, backspace) -- @module BackHandler -- @within BaseComponent diff --git a/druid/base/blocker.lua b/druid/base/blocker.lua index 80494bd..ed3a3cf 100644 --- a/druid/base/blocker.lua +++ b/druid/base/blocker.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Component to block input on specify zone by node -- @module Blocker -- @within BaseComponent diff --git a/druid/base/button.lua b/druid/base/button.lua index 910e492..0a748a0 100644 --- a/druid/base/button.lua +++ b/druid/base/button.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Component to handle basic GUI button -- @module Button -- @within BaseComponent diff --git a/druid/base/drag.lua b/druid/base/drag.lua index 6d31ee2..3312c52 100644 --- a/druid/base/drag.lua +++ b/druid/base/drag.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Component to handle drag action on node. -- Drag have correct handling for multitouch and swap -- touched while dragging. Drag will be processed even diff --git a/druid/base/hover.lua b/druid/base/hover.lua index cb48d50..ac947f9 100644 --- a/druid/base/hover.lua +++ b/druid/base/hover.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Component to handle hover node interaction -- @module Hover -- @within BaseComponent diff --git a/druid/base/scroll.lua b/druid/base/scroll.lua index 46b6224..7cc25dc 100644 --- a/druid/base/scroll.lua +++ b/druid/base/scroll.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Component to handle scroll content. -- Scroll consist from two nodes: scroll parent and scroll input -- Scroll input the user input zone, it's static diff --git a/druid/base/static_grid.lua b/druid/base/static_grid.lua index db6fdd5..4afb2f1 100644 --- a/druid/base/static_grid.lua +++ b/druid/base/static_grid.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Component to handle placing components by row and columns. -- Grid can anchor your elements, get content size and other -- @module StaticGrid diff --git a/druid/base/swipe.lua b/druid/base/swipe.lua index 4314ca7..51b2a32 100644 --- a/druid/base/swipe.lua +++ b/druid/base/swipe.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Component to handle swipe gestures on node. -- Swipe will be triggered, if swipe was started and -- ended on one node diff --git a/druid/base/text.lua b/druid/base/text.lua index ceeeedf..c4ce36d 100644 --- a/druid/base/text.lua +++ b/druid/base/text.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Component to handle all GUI texts. -- Druid text can adjust itself for text node size -- Text will never will be outside of his text size (even multiline) diff --git a/druid/component.lua b/druid/component.lua index 136213c..0e6cb87 100644 --- a/druid/component.lua +++ b/druid/component.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Basic class for all Druid components. -- To create you component, use `component.create` -- @module BaseComponent diff --git a/druid/const.lua b/druid/const.lua index 50d29ca..62c8e1a 100644 --- a/druid/const.lua +++ b/druid/const.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Druid constants -- @local -- @module DruidConst diff --git a/druid/druid.lua b/druid/druid.lua index 09fec0c..17f9be0 100644 --- a/druid/druid.lua +++ b/druid/druid.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Druid UI Library. -- Powerful Defold component based UI library. Use standart -- components or make your own game-specific components to diff --git a/druid/event.lua b/druid/event.lua index 08fa1f2..0a3373a 100644 --- a/druid/event.lua +++ b/druid/event.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Lua event small library -- @module DruidEvent -- @alias druid_event diff --git a/druid/extended/checkbox.lua b/druid/extended/checkbox.lua index 34796e4..e45caa8 100644 --- a/druid/extended/checkbox.lua +++ b/druid/extended/checkbox.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Druid checkbox component -- @module Checkbox -- @within BaseComponent diff --git a/druid/extended/checkbox_group.lua b/druid/extended/checkbox_group.lua index 443554a..2744f1c 100644 --- a/druid/extended/checkbox_group.lua +++ b/druid/extended/checkbox_group.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Checkbox group module -- @module CheckboxGroup -- @within BaseComponent diff --git a/druid/extended/component.template.lua b/druid/extended/component.template.lua index 587d0e8..3d2824c 100644 --- a/druid/extended/component.template.lua +++ b/druid/extended/component.template.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Druid component template -- @module druid.component -- @local diff --git a/druid/extended/data_list.lua b/druid/extended/data_list.lua index e3ebfb2..2f9f736 100644 --- a/druid/extended/data_list.lua +++ b/druid/extended/data_list.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Component to manage data for huge dataset in scroll. -- It requires Druid Scroll and Druid Grid (Static or Dynamic) components -- @module DataList diff --git a/druid/extended/dynamic_grid.lua b/druid/extended/dynamic_grid.lua index f4af402..b78fc91 100644 --- a/druid/extended/dynamic_grid.lua +++ b/druid/extended/dynamic_grid.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Component to handle placing components in row -- @module DynamicGrid -- @within BaseComponent diff --git a/druid/extended/input.lua b/druid/extended/input.lua index 0c79400..67fa3ef 100644 --- a/druid/extended/input.lua +++ b/druid/extended/input.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Druid input text component. -- Carry on user text input -- @author Part of code from Britzl gooey input component diff --git a/druid/extended/lang_text.lua b/druid/extended/lang_text.lua index 369e379..af4ba16 100644 --- a/druid/extended/lang_text.lua +++ b/druid/extended/lang_text.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Component to handle all GUI texts -- Good working with localization system -- @module LangText diff --git a/druid/extended/progress.lua b/druid/extended/progress.lua index 58e43bc..e42b228 100644 --- a/druid/extended/progress.lua +++ b/druid/extended/progress.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Basic progress bar component. -- For correct progress bar init it should be in max size from gui -- @module Progress diff --git a/druid/extended/radio_group.lua b/druid/extended/radio_group.lua index b0c5e48..c482bff 100644 --- a/druid/extended/radio_group.lua +++ b/druid/extended/radio_group.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Radio group module -- @module RadioGroup -- @within BaseComponent diff --git a/druid/extended/slider.lua b/druid/extended/slider.lua index 33e3842..d5185a3 100644 --- a/druid/extended/slider.lua +++ b/druid/extended/slider.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Druid slider component -- @module Slider -- @within BaseComponent diff --git a/druid/extended/timer.lua b/druid/extended/timer.lua index a5e763c..983a39c 100644 --- a/druid/extended/timer.lua +++ b/druid/extended/timer.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Component to handle GUI timers. -- Timer updating by game delta time. If game is not focused - -- timer will be not updated. diff --git a/druid/helper.lua b/druid/helper.lua index f7f2fbe..2a805da 100644 --- a/druid/helper.lua +++ b/druid/helper.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + -- Druid helper module for gui layouts -- @module helper diff --git a/druid/helper/druid_input.lua b/druid/helper/druid_input.lua index 6a447c8..3d9f710 100644 --- a/druid/helper/druid_input.lua +++ b/druid/helper/druid_input.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Druid inner module to acquire/release input -- @module helper.input -- @local diff --git a/druid/helper/formats.lua b/druid/helper/formats.lua index 626ee52..44ba2f6 100644 --- a/druid/helper/formats.lua +++ b/druid/helper/formats.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Druid module with utils on string formats -- @local -- @module helper.formats @@ -42,4 +44,4 @@ function M.interpolate_string(s, tab) end -return M \ No newline at end of file +return M diff --git a/druid/styles/default/anims.lua b/druid/styles/default/anims.lua index 5852d4e..7c07b39 100644 --- a/druid/styles/default/anims.lua +++ b/druid/styles/default/anims.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + local M = {} diff --git a/druid/styles/default/style.lua b/druid/styles/default/style.lua index 0bd125d..b8b175c 100644 --- a/druid/styles/default/style.lua +++ b/druid/styles/default/style.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + local const = require("druid.const") local settings = require("druid.system.settings") local anims = require("druid.styles.default.anims") diff --git a/druid/styles/empty/style.lua b/druid/styles/empty/style.lua index a564707..fa863e0 100644 --- a/druid/styles/empty/style.lua +++ b/druid/styles/empty/style.lua @@ -1 +1,3 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + return {} diff --git a/druid/styles/sprites/style.lua b/druid/styles/sprites/style.lua index 6840f10..932d7a1 100644 --- a/druid/styles/sprites/style.lua +++ b/druid/styles/sprites/style.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + local M = {} diff --git a/druid/system/druid_instance.lua b/druid/system/druid_instance.lua index 2d1b054..bd4380c 100644 --- a/druid/system/druid_instance.lua +++ b/druid/system/druid_instance.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Instance of Druid. Make one instance per gui_script with next code: -- -- local druid = require("druid.druid") diff --git a/druid/system/settings.lua b/druid/system/settings.lua index 039dd60..0b9cfd9 100644 --- a/druid/system/settings.lua +++ b/druid/system/settings.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2021 Maxim Tuprikov . This code is licensed under MIT license + --- Druid settings file -- @module settings -- @local diff --git a/editor_scripts/gui_scheme.editor_script b/editor_scripts/gui_scheme.editor_script index aa7235f..fbcc025 100644 --- a/editor_scripts/gui_scheme.editor_script +++ b/editor_scripts/gui_scheme.editor_script @@ -1,4 +1,4 @@ ---- @license MIT, Insality 2020 +--- @license MIT, Insality 2021 --- @source https://github.com/Insality/druid local M = {} diff --git a/editor_scripts/setup_layers.py b/editor_scripts/setup_layers.py index 94b1374..dd0d580 100644 --- a/editor_scripts/setup_layers.py +++ b/editor_scripts/setup_layers.py @@ -1,4 +1,4 @@ -# @license MIT, Insality 2020 +# @license MIT, Insality 2021 # @source https://github.com/Insality/druid import sys diff --git a/editor_scripts/setup_layers.sh b/editor_scripts/setup_layers.sh index f2191c4..36c76c1 100755 --- a/editor_scripts/setup_layers.sh +++ b/editor_scripts/setup_layers.sh @@ -1,5 +1,5 @@ #!/bin/bash -# @license MIT, Insality 2020 +# @license MIT, Insality 2021 # @source https://github.com/Insality/druid echo "Run bash for $1"