mirror of
https://github.com/Insality/druid
synced 2025-09-27 10:02:19 +02:00
Rename bounce -> default style, start make new example pages
This commit is contained in:
@@ -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)
|
||||
|
@@ -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 = "Таймер",
|
||||
|
Reference in New Issue
Block a user