forked from Afterdie/octops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
octops.py
54 lines (39 loc) · 1.6 KB
/
octops.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# This file is final and shouldnt be changed
# Builder is used to generate all UI elements
# make use of the .kv files stored inside the screen folder
# This file simply builds the
# Define window behaviours here such as size, transition
#------------------------Imports-------------------------#
from kivy.config import Config
Config.set('kivy','window_icon','assets/img/main_mascot.png')
Config.set('graphics', 'resizable', False)
Config.set('input', 'mouse', 'mouse,disable_multitouch')
Config.set('kivy', 'exit_on_escape', '0')
from kivy.app import App
from kivy.core.window import Window
from kivy.uix.screenmanager import ScreenManager, Screen, NoTransition
#---------------------Screen Imports---------------------#
from screens.main import MainScreen
from screens.map import MapScreen
from screens.siteA import SiteAScreen
from screens.siteB import SiteBScreen
from screens.doors import DoorsScreen
from screens.spawn import SpawnScreen
from screens.map import MapScreen
#--------------------------App--------------------------#
Window.size = (600,600)
Window.borderless = True
class Octops(App):
def build(self):
sm = ScreenManager()
sm.transition = NoTransition()
sm.add_widget(MainScreen(name='main'))
sm.add_widget(MapScreen(name='map'))
sm.add_widget(SiteBScreen(name='siteb'))
sm.add_widget(SiteAScreen(name='sitea'))
sm.add_widget(DoorsScreen(name='doors'))
sm.add_widget(SpawnScreen(name='spawn'))
return sm
def open_settings(self, *largs):
pass
Octops().run()