diff --git a/android/res/layout/main_menu.xml b/android/res/layout/main_menu.xml
deleted file mode 100644
index ec5010f..0000000
--- a/android/res/layout/main_menu.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/android/res/layout/settings_screen.xml b/android/res/layout/settings_screen.xml
deleted file mode 100644
index 3cc41bc..0000000
--- a/android/res/layout/settings_screen.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/android/res/values/user_interface_en.xml b/android/res/values/user_interface_en.xml
deleted file mode 100644
index 0b5b454..0000000
--- a/android/res/values/user_interface_en.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- About Us
- License
- Play Checkers
- Settings
- Visit Our Website
- Quit
-
\ No newline at end of file
diff --git a/android/res/values/user_interface_template.xml b/android/res/values/user_interface_template.xml
deleted file mode 100644
index ff029dc..0000000
--- a/android/res/values/user_interface_template.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
- x0
- Current Player
- Opposing Player
-
\ No newline at end of file
diff --git a/justcheckers/app.py b/justcheckers/app.py
index 56de761..bc88d8c 100644
--- a/justcheckers/app.py
+++ b/justcheckers/app.py
@@ -2,7 +2,7 @@ import os
import sys
from PySide.QtCore import QCoreApplication
-from PySide.QtGui import QWidget, QApplication, QLabel, QPushButton, QDesktopWidget, QVBoxLayout
+from PySide.QtGui import *
class MenuScreen(QWidget):
@@ -13,17 +13,41 @@ class MenuScreen(QWidget):
super(MenuScreen, self).__init__()
self.setWindowTitle('justCheckers')
self.setGeometry(300, 300, 800, 600)
+
+ self.setWindowIcon(QIcon('images/icon.png'))
+ self.add_backdrop()
+
self.setup_components()
self.center()
+ def add_backdrop(self):
+ tile = QPixmap('images/backdrop.jpg')
+ palette = QPalette()
+ palette.setBrush(QPalette.Background, tile)
+ self.setPalette(palette)
+
def setup_components(self):
"""Setup the components that make up the widget."""
print(self.get_system_info())
+
+ self.new_game = QPushButton('&New Game', self)
+ self.open_game = QPushButton('&Open Game', self)
+ self.save_game = QPushButton('&Save Game', self)
+ # TODO Render buttons greyed out.
+
+ self.about_game = QPushButton('About Game', self)
+ # TODO Add links to site and display license inside about game widget.
+ self.settings = QPushButton('Settings', self)
self.exit_button = QPushButton('Exit', self)
self.exit_button.clicked.connect(self.exit_app)
widget_layout = QVBoxLayout(self)
widget_layout.addStretch()
+ widget_layout.addWidget(self.new_game)
+ widget_layout.addWidget(self.open_game)
+ widget_layout.addWidget(self.save_game)
+ widget_layout.addWidget(self.about_game)
+ widget_layout.addWidget(self.settings)
widget_layout.addWidget(self.exit_button)
widget_layout.addStretch()
self.setLayout(widget_layout)
diff --git a/android/res/raw/gpl_3_license.txt b/justcheckers/assets/gpl_3_license.txt
similarity index 100%
rename from android/res/raw/gpl_3_license.txt
rename to justcheckers/assets/gpl_3_license.txt
diff --git a/android/res/raw/readme.txt b/justcheckers/assets/readme.txt
similarity index 100%
rename from android/res/raw/readme.txt
rename to justcheckers/assets/readme.txt
diff --git a/android/res/drawable-hdpi/attack_king.png b/justcheckers/images/attack_king.png
similarity index 100%
rename from android/res/drawable-hdpi/attack_king.png
rename to justcheckers/images/attack_king.png
diff --git a/android/res/drawable-hdpi/attack_pawn.png b/justcheckers/images/attack_pawn.png
similarity index 100%
rename from android/res/drawable-hdpi/attack_pawn.png
rename to justcheckers/images/attack_pawn.png
diff --git a/android/res/drawable-hdpi/backdrop.jpg b/justcheckers/images/backdrop.jpg
similarity index 100%
rename from android/res/drawable-hdpi/backdrop.jpg
rename to justcheckers/images/backdrop.jpg
diff --git a/android/res/drawable-hdpi/defend_king.png b/justcheckers/images/defend_king.png
similarity index 100%
rename from android/res/drawable-hdpi/defend_king.png
rename to justcheckers/images/defend_king.png
diff --git a/android/res/drawable-hdpi/defend_pawn.png b/justcheckers/images/defend_pawn.png
similarity index 100%
rename from android/res/drawable-hdpi/defend_pawn.png
rename to justcheckers/images/defend_pawn.png
diff --git a/android/res/drawable-hdpi/icon.png b/justcheckers/images/icon.png
similarity index 100%
rename from android/res/drawable-hdpi/icon.png
rename to justcheckers/images/icon.png
diff --git a/android/res/drawable-hdpi/idea.png b/justcheckers/images/idea.png
similarity index 100%
rename from android/res/drawable-hdpi/idea.png
rename to justcheckers/images/idea.png
diff --git a/android/res/drawable-hdpi/logo.png b/justcheckers/images/logo.png
similarity index 100%
rename from android/res/drawable-hdpi/logo.png
rename to justcheckers/images/logo.png
diff --git a/android/res/drawable-hdpi/non_play.png b/justcheckers/images/non_play.png
similarity index 100%
rename from android/res/drawable-hdpi/non_play.png
rename to justcheckers/images/non_play.png
diff --git a/android/res/drawable-hdpi/play.png b/justcheckers/images/play.png
similarity index 100%
rename from android/res/drawable-hdpi/play.png
rename to justcheckers/images/play.png
diff --git a/android/res/drawable-hdpi/splash.jpg b/justcheckers/images/splash.jpg
similarity index 100%
rename from android/res/drawable-hdpi/splash.jpg
rename to justcheckers/images/splash.jpg