2016-06-04 18:08:18 -04:00
|
|
|
#:import math math
|
2016-06-05 02:04:53 -04:00
|
|
|
##:include debug.kv
|
2016-06-04 14:59:40 -04:00
|
|
|
|
|
|
|
<StrategyGame>:
|
2016-06-04 15:23:40 -04:00
|
|
|
id: _game
|
2016-06-04 15:06:41 -04:00
|
|
|
main_map: _main_map
|
2016-07-16 19:35:29 -04:00
|
|
|
status: _stats
|
2016-07-16 15:56:12 -04:00
|
|
|
map_rows: 15
|
2016-06-04 15:23:40 -04:00
|
|
|
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
|
2016-06-04 15:23:40 -04:00
|
|
|
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
|
2016-06-04 18:43:40 -04:00
|
|
|
Label:
|
|
|
|
id: _stats
|
2016-06-04 14:59:40 -04:00
|
|
|
text: 'status'
|
|
|
|
size_hint: 1, .66
|
2016-06-04 18:43:40 -04:00
|
|
|
canvas.before:
|
|
|
|
Color:
|
|
|
|
rgba: .49, .49, .81, 1
|
|
|
|
Rectangle:
|
|
|
|
pos: _stats.pos
|
|
|
|
size: _stats.size
|
|
|
|
Button:
|
2016-06-04 14:59:40 -04:00
|
|
|
text: 'mini-map'
|
|
|
|
size_hint: 1, .33
|
2016-06-04 18:43:40 -04:00
|
|
|
background_color: .75, .71, .99, 1
|
2016-06-04 17:41:13 -04:00
|
|
|
|
2016-06-04 18:08:18 -04:00
|
|
|
<HexMapCell>:
|
|
|
|
size_hint: 1, None
|
2016-06-05 01:20:00 -04:00
|
|
|
height: self.width / math.sqrt(3)
|