Skip to content

Commit

Permalink
resize decree center text area
Browse files Browse the repository at this point in the history
  • Loading branch information
LupaDevStudio committed Nov 22, 2023
1 parent 83bd831 commit bee6ef1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
16 changes: 12 additions & 4 deletions screens/game.kv
Original file line number Diff line number Diff line change
Expand Up @@ -309,15 +309,23 @@
text_color: TEXT_FONT_COLOR

# Decree background
ImageWithText:
id: decree_center
Image:
id: decree_center_bg
source: PATH_IMAGES + "decree_background.png"
size_hint: center_img_width, center_img_height
pos_hint: {"center_x": 0.5, "center_y": center_img_center_y}
allow_stretch: True
keep_ratio: False
text_font_name: root.font_name
text_color: TEXT_FONT_COLOR
Label:
id: decree_center
size_hint: 0.35, center_img_height
text_size: self.size
pos_hint: {"center_x": 0.5, "center_y": center_img_center_y}
font_name: root.font_name
color: TEXT_FONT_COLOR
halign: "center"
valign:"middle"
font_size: 15*root.font_ratio

# Decree left
ImageWithTextButton:
Expand Down
6 changes: 4 additions & 2 deletions screens/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def __init__(self, **kw):
self.decree_cards = ["decree_center",
"decree_left",
"decree_right",
"decree_down"]
"decree_down",
"decree_center_bg"]

self.event_cards = ["event", "next_button"]

Expand Down Expand Up @@ -173,7 +174,8 @@ def hide_cards(self, *_):
"plus_weapons",
"minus_weapons",
"plus_tools",
"minus_tools"]
"minus_tools",
"decree_center_bg"]

for card in cards_list:
self.disable_widget(card)
Expand Down

0 comments on commit bee6ef1

Please sign in to comment.