diff --git a/Applications.cfg b/Applications.cfg index 7161808f..5e7f7710 100644 --- a/Applications.cfg +++ b/Applications.cfg @@ -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", diff --git a/Documentation/GUI.md b/Documentation/GUI.md index 4364f1ea..e63476dd 100644 --- a/Documentation/GUI.md +++ b/Documentation/GUI.md @@ -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 и т.д.), или же объект не имеет метода-обработчика, то обработка оставшихся дочерних элементов продолжится в прежнем виде. diff --git a/MineOS/Wallpapers/CloudyEvening.pic b/MineOS/Wallpapers/CloudyEvening.pic new file mode 100644 index 00000000..4f5dc80c Binary files /dev/null and b/MineOS/Wallpapers/CloudyEvening.pic differ diff --git a/MineOS/Wallpapers/Mystery2.pic b/MineOS/Wallpapers/Mystery2.pic new file mode 100644 index 00000000..98cc1992 Binary files /dev/null and b/MineOS/Wallpapers/Mystery2.pic differ diff --git a/MineOS/Wallpapers/SnowyBush.pic b/MineOS/Wallpapers/SnowyBush.pic new file mode 100644 index 00000000..07cdbb50 Binary files /dev/null and b/MineOS/Wallpapers/SnowyBush.pic differ diff --git a/MineOS/Wallpapers/WinterSunrise.pic b/MineOS/Wallpapers/WinterSunrise.pic new file mode 100644 index 00000000..512db926 Binary files /dev/null and b/MineOS/Wallpapers/WinterSunrise.pic differ