Add layout to track hex selection.

This commit is contained in:
Dorian 2017-07-27 17:21:35 -04:00
parent ad550629a4
commit b7346b713a
2 changed files with 14 additions and 4 deletions

13
render_test/hexmap.kv Normal file
View File

@ -0,0 +1,13 @@
#:import utils kivy.utils
BoxLayout:
orientation: 'horizontal'
HexMap:
id: map
size_hint: .8, 1
MapLabel:
id: coords
size_hint: .2, 1
<MapLabel@Label>:
text: 'Change me'

View File

@ -4,8 +4,6 @@ from kivy.uix.widget import Widget
from kivy.utils import get_color_from_hex
HEX_SIZE = 100
NUMBER_OF_HEXES = 2
HORIZONTAL_BUFFER = 0.9
VERTICAL_BUFFER = 0.8
@ -64,8 +62,7 @@ class HexMap(Widget):
class HexMapApp(App):
def build(self):
return HexMap()
pass
if __name__ == '__main__':