mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
Update documentation, refactoring
This commit is contained in:
@@ -5925,7 +5925,7 @@ nodes {
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
x: -300.0
|
||||
x: -287.0
|
||||
y: 0.0
|
||||
z: 0.0
|
||||
w: 1.0
|
||||
@@ -7174,6 +7174,69 @@ nodes {
|
||||
template_node_child: false
|
||||
size_mode: SIZE_MODE_MANUAL
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
x: -197.0
|
||||
y: 223.0
|
||||
z: 0.0
|
||||
w: 1.0
|
||||
}
|
||||
rotation {
|
||||
x: 0.0
|
||||
y: 0.0
|
||||
z: 0.0
|
||||
w: 1.0
|
||||
}
|
||||
scale {
|
||||
x: 1.0
|
||||
y: 1.0
|
||||
z: 1.0
|
||||
w: 1.0
|
||||
}
|
||||
size {
|
||||
x: 200.0
|
||||
y: 100.0
|
||||
z: 0.0
|
||||
w: 1.0
|
||||
}
|
||||
color {
|
||||
x: 1.0
|
||||
y: 1.0
|
||||
z: 1.0
|
||||
w: 1.0
|
||||
}
|
||||
type: TYPE_TEXT
|
||||
blend_mode: BLEND_MODE_ALPHA
|
||||
text: "View"
|
||||
font: "game"
|
||||
id: "scroll_smaller_view_hint"
|
||||
xanchor: XANCHOR_NONE
|
||||
yanchor: YANCHOR_NONE
|
||||
pivot: PIVOT_CENTER
|
||||
outline {
|
||||
x: 1.0
|
||||
y: 1.0
|
||||
z: 1.0
|
||||
w: 1.0
|
||||
}
|
||||
shadow {
|
||||
x: 1.0
|
||||
y: 1.0
|
||||
z: 1.0
|
||||
w: 1.0
|
||||
}
|
||||
adjust_mode: ADJUST_MODE_FIT
|
||||
line_break: false
|
||||
parent: "scroll_smaller_view"
|
||||
layer: ""
|
||||
inherit_alpha: true
|
||||
alpha: 1.0
|
||||
outline_alpha: 0.0
|
||||
shadow_alpha: 0.0
|
||||
template_node_child: false
|
||||
text_leading: 1.0
|
||||
text_tracking: 0.0
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
x: 0.0
|
||||
@@ -7264,7 +7327,7 @@ nodes {
|
||||
blend_mode: BLEND_MODE_ALPHA
|
||||
text: "Content"
|
||||
font: "game"
|
||||
id: "text"
|
||||
id: "scroll_smaller_content_hint"
|
||||
xanchor: XANCHOR_NONE
|
||||
yanchor: YANCHOR_NONE
|
||||
pivot: PIVOT_CENTER
|
||||
|
@@ -31,6 +31,7 @@ end
|
||||
|
||||
|
||||
local function init_top_panel(self)
|
||||
self.druid:new_blocker("panel_top")
|
||||
self.druid:new_button("button_left/button", on_control_button, -1)
|
||||
self.druid:new_button("button_right/button", on_control_button, 1)
|
||||
self.header = self.druid:new_lang_text("text_header", "main_page")
|
||||
@@ -60,9 +61,9 @@ function init(self)
|
||||
|
||||
window.set_listener(on_window_callback)
|
||||
|
||||
init_top_panel(self)
|
||||
init_swipe_control(self)
|
||||
self.page = 4
|
||||
|
||||
self.page = 1
|
||||
main_page.setup_page(self)
|
||||
text_page.setup_page(self)
|
||||
button_page.setup_page(self)
|
||||
@@ -70,6 +71,8 @@ function init(self)
|
||||
slider_page.setup_page(self)
|
||||
input_page.setup_page(self)
|
||||
|
||||
init_top_panel(self)
|
||||
|
||||
-- Refresh state
|
||||
on_control_button(self, 0)
|
||||
end
|
||||
|
Reference in New Issue
Block a user