doric-engine/strategygame.kv

59 lines
1.2 KiB
Plaintext
Raw Normal View History

2016-06-04 18:08:18 -04:00
#:import math math
2016-06-04 14:59:40 -04:00
#:include debug.kv
<StrategyGame>:
id: _game
2016-06-04 15:06:41 -04:00
main_map: _main_map
2016-06-04 18:08:18 -04:00
map_rows: 30
map_cols: 10
2016-06-04 14:59:40 -04:00
BoxLayout:
orientation: 'horizontal'
2016-06-04 15:06:41 -04:00
GridLayout:
id: _main_map
game: _game
cols: root.map_cols
2016-06-04 14:59:40 -04:00
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
2016-06-04 17:41:13 -04:00
2016-06-04 18:08:18 -04:00
2016-06-04 17:41:13 -04:00
<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
2016-06-04 18:08:18 -04:00
<HexMapCell>:
size_hint: 1, None
height: self.width / math.sqrt(3)