Rename bounce -> default style, start make new example pages

This commit is contained in:
Insality
2020-02-24 00:03:29 +03:00
parent 822db35e84
commit a81d49de9d
25 changed files with 50 additions and 24 deletions

View File

@@ -1,14 +1,16 @@
local druid = require("druid.druid")
local empty_style = require("druid.styles.empty.style")
local bounce_style = require("druid.styles.bounce.style")
local default_style = require("druid.styles.default.style")
local main_page = require("example.kenney.page.main")
local text_page = require("example.kenney.page.texts")
local pages = {
"main_page",
"texts_page"
"texts_page",
"button_page",
"scroll_page",
}
local function on_control_button(self, delta)
@@ -34,7 +36,7 @@ end
function init(self)
druid.set_default_style(bounce_style)
druid.set_default_style(default_style)
self.druid = druid.new(self)
init_top_panel(self)

View File

@@ -5,6 +5,8 @@ local M = {}
local en = {
main_page = "Main page",
texts_page = "Text page",
button_page = "Button page",
scroll_page = "Scroll page",
ui_section_button = "Button",
ui_section_text = "Text",
ui_section_timer = "Timer",
@@ -19,6 +21,8 @@ local en = {
local ru = {
main_page = "Основное",
texts_page = "Текст",
button_page = "Кнопки",
scroll_page = "Скролл",
ui_section_button = "Кнопка",
ui_section_text = "Текст",
ui_section_timer = "Таймер",