From bc62c5c14cf3b7b5d1cde54717002cd96e0e8cd0 Mon Sep 17 00:00:00 2001 From: Dorian Pula Date: Sat, 4 Jun 2016 11:59:40 -0700 Subject: [PATCH] Add initial screen layout. --- helloworld.kv | 6 ------ main.py | 10 ++++++---- strategygame.kv | 18 ++++++++++++++++++ 3 files changed, 24 insertions(+), 10 deletions(-) delete mode 100644 helloworld.kv create mode 100644 strategygame.kv diff --git a/helloworld.kv b/helloworld.kv deleted file mode 100644 index 97643d1..0000000 --- a/helloworld.kv +++ /dev/null @@ -1,6 +0,0 @@ - -#:include debug.kv - -: - DebugLabel: - text: 'hello world' \ No newline at end of file diff --git a/main.py b/main.py index a437177..dc2986e 100644 --- a/main.py +++ b/main.py @@ -1,12 +1,14 @@ from kivy.app import App from kivy.uix.floatlayout import FloatLayout -class HelloWorld(FloatLayout): + +class StrategyGame(FloatLayout): pass -class HelloWorldApp(App): + +class StrategyGameApp(App): def build(self): - return HelloWorld() + return StrategyGame() if __name__ == '__main__': - HelloWorldApp().run() + StrategyGameApp().run() diff --git a/strategygame.kv b/strategygame.kv new file mode 100644 index 0000000..d5b66af --- /dev/null +++ b/strategygame.kv @@ -0,0 +1,18 @@ + +#:include debug.kv + +: + BoxLayout: + orientation: 'horizontal' + DebugLabel: + text: 'Main map' + 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