Switch to labels and added two ways to colour backgrounds.

This commit is contained in:
Dorian 2016-06-04 15:43:40 -07:00
parent b464c015f5
commit bbf851d467
1 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,4 @@
#:import math math #:import math math
#:include debug.kv
<StrategyGame>: <StrategyGame>:
id: _game id: _game
@ -16,12 +15,20 @@
BoxLayout: BoxLayout:
orientation: 'vertical' orientation: 'vertical'
size_hint: .25, 1 size_hint: .25, 1
DebugLabel: Label:
id: _stats
text: 'status' text: 'status'
size_hint: 1, .66 size_hint: 1, .66
DebugLabel: canvas.before:
Color:
rgba: .49, .49, .81, 1
Rectangle:
pos: _stats.pos
size: _stats.size
Button:
text: 'mini-map' text: 'mini-map'
size_hint: 1, .33 size_hint: 1, .33
background_color: .75, .71, .99, 1
<BU>: <BU>: