Merge pull request #52 from Eugene8388608/master

Обои подъехали и докуму поправил
This commit is contained in:
Igor Timofeev 2017-05-25 21:09:45 +03:00 committed by GitHub
commit 0343005bfc
6 changed files with 25 additions and 1 deletions

View File

@ -79,6 +79,30 @@
type="Wallpaper",
version=1.0,
},
{
path="/MineOS/Pictures/CloudyEvening.pic",
url="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/MineOS/Wallpapers/CloudyEvening.pic",
type="Wallpaper",
version=1.0,
},
{
path="/MineOS/Pictures/Mystery2.pic",
url="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/MineOS/Wallpapers/Mystery2.pic",
type="Wallpaper",
version=1.0,
},
{
path="/MineOS/Pictures/SnowyBush.pic",
url="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/MineOS/Wallpapers/SnowyBush.pic",
type="Wallpaper",
version=1.0,
},
{
path="/MineOS/Pictures/WinterSunrise.pic",
url="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/MineOS/Wallpapers/WinterSunrise.pic",
type="Wallpaper",
version=1.0,
},
{
path="/MineOS/System/OS/Localization/Russian.lang",
url="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/MineOS/Localization/Russian.lang",

View File

@ -88,7 +88,6 @@ local GUI = require("GUI")
buffer.clear(0x0)
GUI.error("Something went wrong here, my friend", {title = {text = "Alert", color = 0xFFDB40}})
```
Результат:
@ -145,6 +144,7 @@ button.eventHandler = function(mainContainer, button, eventData)
button.onTouch(mainContainer, object, eventData)
end
end
end
```
Ключевая деталь обработчика событий в том, что если событие "экранное", то есть относящееся к клику пользователя на монитор (touch, drag, drop, scroll), то метод-обработчик объекта будет вызван только в том случае, если пользователь "кликнул" на него, после чего обработка событий для оставшихся необработанных дочерних элементов завершится. Если событие не относится к экрану (key_down, clipboard и т.д.), или же объект не имеет метода-обработчика, то обработка оставшихся дочерних элементов продолжится в прежнем виде.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.