-
Notifications
You must be signed in to change notification settings - Fork 1
/
radide.kv
89 lines (78 loc) · 2.78 KB
/
radide.kv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<WidgetProxyNode>:
text: self.widget.id
color_selected: (1,1,0,.5)
Button:
text: "+"
pos: (root.right-root.height-5, root.y) if root.is_selected else (-100,-100)
size: (root.height, root.height) if root.is_selected else (0,0)
on_release: root.editor.insert_new_widget(root)
Button:
text: "-"
pos: (root.right-(2*root.height)-10, root.y) if root.is_selected else (-100,-100)
size: (root.height, root.height) if root.is_selected else (0,0)
on_release: root.editor.delete_widget(root)
<PropertyDialog>:
cols:4
<AppEditor>
widget_tree: tree_widget
workspace: editor_workspace
controlls:
app_container: container_widget
app_resolution: (800,1280)
canvas.after:
Color:
rgba: (1,1,0,.5)
Quad:
points: self.highlight_box
BoxLayout:
Scatter:
id: editor_window
auto_bring_to_front:False
do_translation:False
do_rotation:False
do_scale:False
StencilView:
size: editor_window.size
canvas:
Color:
rgba: .4,.4,.4,0.5
Rectangle:
size: self.size
ScatterPlane:
id: editor_workspace
auto_bring_to_front:False
do_translation:True
do_rotation:False
do_scale:True
scale: 0.5
size: root.app_resolution
center: editor_window.width/2, editor_window.height/2
canvas.after:
Color:
rgba: .3,.4,.5,.5
Rectangle:
pos: -10*self.width, -10*self.height
size: 21*self.width, 10*self.height
Rectangle:
pos: -10*self.width, self.height
size: 21*self.width, 10*self.height
Rectangle:
pos: -10*self.width, 0
size: 10*self.width, self.height
Rectangle:
pos: self.width, 0
size: 10*self.width, self.height
AppContainer:
id: container_widget
size: root.app_resolution
editor: root
TreeView:
id: tree_widget
size_hint: (0.2,1)
root_options: {'text': "Widget Tree", 'no_select':True}
canvas:
Color:
rgba: .1,.1,.1,.9
Rectangle:
pos: self.pos
size:self.size