Skip to content

Commit

Permalink
update assets
Browse files Browse the repository at this point in the history
  • Loading branch information
shiburizu committed Dec 31, 2021
1 parent fc3c502 commit 7bb8fc5
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 17 deletions.
35 changes: 18 additions & 17 deletions Concerto.kv
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#:import threading threading
#:import res kivy.resources
#:import pyperclip pyperclip
#:import cfg config

<MenuBtn>
text_size: self.size
Expand Down Expand Up @@ -100,7 +101,7 @@
anchor_x: 'right'
anchor_y: 'bottom'
Image:
source: 'res/stage.png'
source: cfg.find_img('main_bg.png')
Image:
source: 'res/gradient.png'
Image:
Expand Down Expand Up @@ -131,7 +132,7 @@
text: '6. UPDATE'
on_release: root.update()
Image:
source: 'res/arc.png'
source: cfg.find_img('main.png')
Label:
id: version
size_hint: (0.97,0.1)
Expand All @@ -145,7 +146,7 @@
BoxLayout:
size_hint: (0.2, 0.1)
Label:
text: '[ref=x]By Bee Chan[/ref]'
text: cfg.img_credit('main.png','[ref=x]By Bee Chan[/ref]')
outline_width: 2
markup: True
font_name: 'res/texgyreheros-bolditalic.otf'
Expand All @@ -170,7 +171,7 @@
anchor_x: 'right'
anchor_y: 'bottom'
Image:
source: 'res/bg.png'
source: cfg.find_img('lobby_bg.png')
BoxLayout:
orientation: 'vertical'
BoxLayout:
Expand Down Expand Up @@ -215,7 +216,7 @@
anchor_x: 'left'
anchor_y: 'top'
Image:
source: 'res/bg.png'
source: cfg.find_img('lobby_bg.png')
BoxLayout:
orientation: 'vertical'
GridLayout:
Expand Down Expand Up @@ -285,7 +286,7 @@
anchor_x: 'left'
anchor_y: 'top'
Image:
source: 'res/bg.png'
source: cfg.find_img('lobby_bg.png')
Image:
source: 'res/lowergradient.png'
BoxLayout:
Expand Down Expand Up @@ -391,7 +392,7 @@
anchor_x: 'right'
anchor_y: 'bottom'
Image:
source: 'res/bg3.png'
source: cfg.find_img('online_bg.png')
Image:
source: 'res/gradient.png'
Image:
Expand Down Expand Up @@ -423,11 +424,11 @@
text: '0. BACK'
on_release: app.sm.current = 'Main'
Image:
source: 'res/sion.png'
source: cfg.find_img('online.png')
BoxLayout:
size_hint: (0.2, 0.1)
Label:
text: '[ref=x]By abitofBaileys[/ref]'
text: cfg.img_credit('online.png','[ref=x]By abitofBaileys[/ref]')
outline_width: 2
markup: True
font_name: 'res/texgyreheros-bolditalic.otf'
Expand All @@ -444,7 +445,7 @@
anchor_x: 'right'
anchor_y: 'bottom'
Image:
source: 'res/bg4.png'
source: cfg.find_img('resources_bg.png')
Image:
source: 'res/gradient.png'
Image:
Expand All @@ -471,11 +472,11 @@
text: '0. BACK'
on_release: app.sm.current = 'Main'
Image:
source: 'res/kohaku.png'
source: cfg.find_img('resources.png')
BoxLayout:
size_hint: (0.2, 0.1)
Label:
text: '[ref=x]By kohakudoori[/ref]'
text: cfg.img_credit('resources.png','[ref=x]By kohakudoori[/ref]')
outline_width: 2
markup: True
font_name: 'res/texgyreheros-bolditalic.otf'
Expand All @@ -492,7 +493,7 @@
anchor_x: 'left'
anchor_y: 'top'
Image:
source: 'res/bg.png'
source: cfg.find_img('lobby_bg.png')
BoxLayout:
orientation: 'vertical'
MenuBtn:
Expand Down Expand Up @@ -563,7 +564,7 @@
anchor_x: 'right'
anchor_y: 'bottom'
Image:
source: 'res/bg2.png'
source: cfg.find_img('offline_bg.png')
Image:
source: 'res/gradient.png'
Image:
Expand Down Expand Up @@ -608,11 +609,11 @@
on_release:
app.sm.current = 'Main'
Image:
source: 'res/ries.png'
source: cfg.find_img('offline.png')
BoxLayout:
size_hint: (0.2, 0.1)
Label:
text: '[ref=x]By Onemi[/ref]'
text: cfg.img_credit('offline.png','[ref=x]By Onemi[/ref]')
outline_width: 2
markup: True
font_name: 'res/texgyreheros-bolditalic.otf'
Expand All @@ -629,7 +630,7 @@
anchor_x: 'right'
anchor_y: 'bottom'
Image:
source: 'res/bg.png'
source: cfg.find_img('lobby_bg.png')
BoxLayout:
orientation: 'vertical'
BoxLayout:
Expand Down
12 changes: 12 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,15 @@
LOBBYURL = "https://concerto-mbaacc.shib.live/l"
VERSIONURL = "https://concerto-mbaacc.shib.live/v"
CURRENT_VERSION = '1.02'

def find_img(file):
if os.path.exists(file):
return PATH + file
else:
return 'res/%s' % file

def img_credit(file,txt):
if os.path.exists(file):
return ''
else:
return txt
Binary file removed res/bg1.png
Binary file not shown.
Binary file modified res/fuzzy.mp3
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit 7bb8fc5

Please sign in to comment.