54 lines
1.1 KiB
Plaintext
54 lines
1.1 KiB
Plaintext
|
|
#:include debug.kv
|
|
|
|
<StrategyGame>:
|
|
id: _game
|
|
main_map: _main_map
|
|
map_rows: 10
|
|
map_cols: 10
|
|
BoxLayout:
|
|
orientation: 'horizontal'
|
|
GridLayout:
|
|
id: _main_map
|
|
game: _game
|
|
cols: root.map_cols
|
|
size_hint: .75, 1
|
|
BoxLayout:
|
|
orientation: 'vertical'
|
|
size_hint: .25, 1
|
|
DebugLabel:
|
|
text: 'status'
|
|
size_hint: 1, .66
|
|
DebugLabel:
|
|
text: 'mini-map'
|
|
size_hint: 1, .33
|
|
|
|
<BU>:
|
|
canvas:
|
|
Color:
|
|
rgba: (1,1,1,1)
|
|
Line:
|
|
points: (self.x, self.y, self.right, self.top)
|
|
width: 2
|
|
<TD>:
|
|
canvas:
|
|
Color:
|
|
rgba: (1,1,1,1)
|
|
Line:
|
|
points: (self.x, self.top, self.right, self.y)
|
|
width: 2
|
|
<L>:
|
|
canvas:
|
|
Color:
|
|
rgba: (1,1,1,1)
|
|
Line:
|
|
points: (self.x, self.y, self.x, self.top)
|
|
width: 2
|
|
<R>:
|
|
canvas:
|
|
Color:
|
|
rgba: (1,1,1,1)
|
|
Line:
|
|
points: (self.right, self.y, self.right, self.top)
|
|
width: 2
|