Skip to content

Commit

Permalink
add a button to open the LupaDevStudio website
Browse files Browse the repository at this point in the history
  • Loading branch information
LupaDevStudio committed Dec 5, 2023
1 parent 37c7685 commit b221a57
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
Binary file added resources/images/lupa_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 14 additions & 10 deletions screens/menu.kv
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,6 @@
on_release:
root.manager.current = "settings"

# Label:
# id: high_score_label
# text: root.high_score
# bold: True
# color: TITLE_FONT_COLOR
# pos_hint: {"right":1, "y":0}
# size_hint: 0.2, 0.1
# font_name: root.font_name
# font_size: 30*root.font_ratio

Image:
source: PATH_IMAGES + "achievements_logo.png"
size_hint: None, side_logo_size
Expand All @@ -79,3 +69,17 @@
width: self.height
on_release:
root.manager.current = "achievements"

Image:
source: PATH_IMAGES + "lupa_logo.png"
size_hint: None, side_logo_size*0.7
pos_hint: {"center_x": 0.5, "y": 0.05}
allow_stretch: True
width: self.height
Button:
size_hint: None,side_logo_size*0.7
pos_hint: {"center_x": 0.5, "y": 0.05}
background_color: (0, 0, 0, 0)
width: self.height
on_release:
root.open_lupa_website()
7 changes: 7 additions & 0 deletions screens/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
### Imports ###
###############

### Python imports ###

import webbrowser

### Kivy imports ###

from kivy.clock import Clock
Expand Down Expand Up @@ -90,3 +94,6 @@ def start_game(self):
self.manager.current = "tutorial"
else:
self.manager.current = "game"

def open_lupa_website(self):
webbrowser.open("https://lupadevstudio.com", 2)

0 comments on commit b221a57

Please sign in to comment.