forked from Cavemanon/Farelie-game
Fixes android UI
This commit is contained in:
86
game/gui.rpy
86
game/gui.rpy
@ -422,65 +422,65 @@ define gui.language = "unicode"
|
|||||||
## Mobile devices
|
## Mobile devices
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
init python:
|
# init python:
|
||||||
|
|
||||||
## This increases the size of the quick buttons to make them easier to touch
|
# ## This increases the size of the quick buttons to make them easier to touch
|
||||||
## on tablets and phones.
|
# ## on tablets and phones.
|
||||||
if renpy.variant("touch"):
|
# if renpy.variant("touch"):
|
||||||
|
|
||||||
gui.quick_button_borders = Borders(60, 21, 60, 0)
|
# gui.quick_button_borders = Borders(60, 21, 60, 0)
|
||||||
|
|
||||||
## This changes the size and spacing of various GUI elements to ensure they
|
# ## This changes the size and spacing of various GUI elements to ensure they
|
||||||
## are easily visible on phones.
|
# ## are easily visible on phones.
|
||||||
if renpy.variant("small"):
|
# if renpy.variant("small"):
|
||||||
|
|
||||||
## Font sizes.
|
# ## Font sizes.
|
||||||
gui.text_size = 45
|
# gui.text_size = 45
|
||||||
gui.name_text_size = 54
|
# gui.name_text_size = 54
|
||||||
gui.notify_text_size = 38
|
# gui.notify_text_size = 38
|
||||||
gui.interface_text_size = 45
|
# gui.interface_text_size = 45
|
||||||
gui.button_text_size = 45
|
# gui.button_text_size = 45
|
||||||
gui.label_text_size = 51
|
# gui.label_text_size = 51
|
||||||
|
|
||||||
## Adjust the location of the textbox.
|
# ## Adjust the location of the textbox.
|
||||||
gui.textbox_height = 360
|
# gui.textbox_height = 360
|
||||||
gui.name_xpos = 120
|
# gui.name_xpos = 120
|
||||||
gui.dialogue_xpos = 135
|
# gui.dialogue_xpos = 135
|
||||||
gui.dialogue_width = 1650
|
# gui.dialogue_width = 1650
|
||||||
|
|
||||||
## Change the size and spacing of various things.
|
# ## Change the size and spacing of various things.
|
||||||
gui.slider_size = 54
|
# gui.slider_size = 54
|
||||||
|
|
||||||
gui.choice_button_width = 1860
|
# gui.choice_button_width = 1860
|
||||||
gui.choice_button_text_size = 45
|
# gui.choice_button_text_size = 45
|
||||||
|
|
||||||
gui.navigation_spacing = 30
|
# gui.navigation_spacing = 30
|
||||||
gui.pref_button_spacing = 15
|
# gui.pref_button_spacing = 15
|
||||||
|
|
||||||
gui.history_height = 285
|
# gui.history_height = 285
|
||||||
gui.history_text_width = 1035
|
# gui.history_text_width = 1035
|
||||||
|
|
||||||
gui.quick_button_text_size = 30
|
# gui.quick_button_text_size = 30
|
||||||
|
|
||||||
## File button layout.
|
# ## File button layout.
|
||||||
gui.file_slot_cols = 2
|
# gui.file_slot_cols = 2
|
||||||
gui.file_slot_rows = 2
|
# gui.file_slot_rows = 2
|
||||||
|
|
||||||
## NVL-mode.
|
# ## NVL-mode.
|
||||||
gui.nvl_height = 255
|
# gui.nvl_height = 255
|
||||||
|
|
||||||
gui.nvl_name_width = 458
|
# gui.nvl_name_width = 458
|
||||||
gui.nvl_name_xpos = 488
|
# gui.nvl_name_xpos = 488
|
||||||
|
|
||||||
gui.nvl_text_width = 1373
|
# gui.nvl_text_width = 1373
|
||||||
gui.nvl_text_xpos = 518
|
# gui.nvl_text_xpos = 518
|
||||||
gui.nvl_text_ypos = 8
|
# gui.nvl_text_ypos = 8
|
||||||
|
|
||||||
gui.nvl_thought_width = 1860
|
# gui.nvl_thought_width = 1860
|
||||||
gui.nvl_thought_xpos = 30
|
# gui.nvl_thought_xpos = 30
|
||||||
|
|
||||||
gui.nvl_button_width = 1860
|
# gui.nvl_button_width = 1860
|
||||||
gui.nvl_button_xpos = 30
|
# gui.nvl_button_xpos = 30
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
160
game/screens.rpy
160
game/screens.rpy
@ -1451,107 +1451,107 @@ style nvl_button_text:
|
|||||||
## Mobile Variants
|
## Mobile Variants
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
style pref_vbox:
|
# style pref_vbox:
|
||||||
variant "medium"
|
# variant "medium"
|
||||||
xsize 675
|
# xsize 675
|
||||||
|
|
||||||
## Since a mouse may not be present, we replace the quick menu with a version
|
# ## Since a mouse may not be present, we replace the quick menu with a version
|
||||||
## that uses fewer and bigger buttons that are easier to touch.
|
# ## that uses fewer and bigger buttons that are easier to touch.
|
||||||
screen quick_menu():
|
# screen quick_menu():
|
||||||
variant "touch"
|
# variant "touch"
|
||||||
|
|
||||||
zorder 100
|
# zorder 100
|
||||||
|
|
||||||
if quick_menu:
|
# if quick_menu:
|
||||||
|
|
||||||
hbox:
|
# hbox:
|
||||||
style_prefix "quick"
|
# style_prefix "quick"
|
||||||
|
|
||||||
xalign 0.5
|
# xalign 0.5
|
||||||
yalign 1.0
|
# yalign 1.0
|
||||||
|
|
||||||
textbutton _("Back") action Rollback()
|
# textbutton _("Back") action Rollback()
|
||||||
textbutton _("Skip") action Skip() alternate Skip(fast=True, confirm=True)
|
# textbutton _("Skip") action Skip() alternate Skip(fast=True, confirm=True)
|
||||||
textbutton _("Auto") action Preference("auto-forward", "toggle")
|
# textbutton _("Auto") action Preference("auto-forward", "toggle")
|
||||||
textbutton _("Menu") action ShowMenu()
|
# textbutton _("Menu") action ShowMenu()
|
||||||
|
|
||||||
|
|
||||||
style window:
|
# style window:
|
||||||
variant "small"
|
# variant "small"
|
||||||
background "gui/phone/textbox.png"
|
# background "gui/phone/textbox.png"
|
||||||
|
|
||||||
style radio_button:
|
# style radio_button:
|
||||||
variant "small"
|
# variant "small"
|
||||||
foreground "gui/phone/button/radio_[prefix_]foreground.png"
|
# foreground "gui/phone/button/radio_[prefix_]foreground.png"
|
||||||
|
|
||||||
style check_button:
|
# style check_button:
|
||||||
variant "small"
|
# variant "small"
|
||||||
foreground "gui/phone/button/check_[prefix_]foreground.png"
|
# foreground "gui/phone/button/check_[prefix_]foreground.png"
|
||||||
|
|
||||||
style nvl_window:
|
# style nvl_window:
|
||||||
variant "small"
|
# variant "small"
|
||||||
background "gui/phone/nvl.png"
|
# background "gui/phone/nvl.png"
|
||||||
|
|
||||||
style main_menu_frame:
|
# style main_menu_frame:
|
||||||
variant "small"
|
# variant "small"
|
||||||
background "gui/phone/overlay/main_menu.png"
|
# background "gui/phone/overlay/main_menu.png"
|
||||||
|
|
||||||
style game_menu_outer_frame:
|
# style game_menu_outer_frame:
|
||||||
variant "small"
|
# variant "small"
|
||||||
background "gui/phone/overlay/game_menu.png"
|
# background "gui/phone/overlay/game_menu.png"
|
||||||
|
|
||||||
style game_menu_navigation_frame:
|
# style game_menu_navigation_frame:
|
||||||
variant "small"
|
# variant "small"
|
||||||
xsize 510
|
# xsize 510
|
||||||
|
|
||||||
style game_menu_content_frame:
|
# style game_menu_content_frame:
|
||||||
variant "small"
|
# variant "small"
|
||||||
top_margin 0
|
# top_margin 0
|
||||||
|
|
||||||
style pref_vbox:
|
# style pref_vbox:
|
||||||
variant "small"
|
# variant "small"
|
||||||
xsize 600
|
# xsize 600
|
||||||
|
|
||||||
style bar:
|
# style bar:
|
||||||
variant "small"
|
# variant "small"
|
||||||
ysize gui.bar_size
|
# ysize gui.bar_size
|
||||||
left_bar Frame("gui/phone/bar/left.png", gui.bar_borders, tile=gui.bar_tile)
|
# left_bar Frame("gui/phone/bar/left.png", gui.bar_borders, tile=gui.bar_tile)
|
||||||
right_bar Frame("gui/phone/bar/right.png", gui.bar_borders, tile=gui.bar_tile)
|
# right_bar Frame("gui/phone/bar/right.png", gui.bar_borders, tile=gui.bar_tile)
|
||||||
|
|
||||||
style vbar:
|
# style vbar:
|
||||||
variant "small"
|
# variant "small"
|
||||||
xsize gui.bar_size
|
# xsize gui.bar_size
|
||||||
top_bar Frame("gui/phone/bar/top.png", gui.vbar_borders, tile=gui.bar_tile)
|
# top_bar Frame("gui/phone/bar/top.png", gui.vbar_borders, tile=gui.bar_tile)
|
||||||
bottom_bar Frame("gui/phone/bar/bottom.png", gui.vbar_borders, tile=gui.bar_tile)
|
# bottom_bar Frame("gui/phone/bar/bottom.png", gui.vbar_borders, tile=gui.bar_tile)
|
||||||
|
|
||||||
style scrollbar:
|
# style scrollbar:
|
||||||
variant "small"
|
# variant "small"
|
||||||
ysize gui.scrollbar_size
|
# ysize gui.scrollbar_size
|
||||||
base_bar Frame("gui/phone/scrollbar/horizontal_[prefix_]bar.png", gui.scrollbar_borders, tile=gui.scrollbar_tile)
|
# base_bar Frame("gui/phone/scrollbar/horizontal_[prefix_]bar.png", gui.scrollbar_borders, tile=gui.scrollbar_tile)
|
||||||
thumb Frame("gui/phone/scrollbar/horizontal_[prefix_]thumb.png", gui.scrollbar_borders, tile=gui.scrollbar_tile)
|
# thumb Frame("gui/phone/scrollbar/horizontal_[prefix_]thumb.png", gui.scrollbar_borders, tile=gui.scrollbar_tile)
|
||||||
|
|
||||||
style vscrollbar:
|
# style vscrollbar:
|
||||||
variant "small"
|
# variant "small"
|
||||||
xsize gui.scrollbar_size
|
# xsize gui.scrollbar_size
|
||||||
base_bar Frame("gui/phone/scrollbar/vertical_[prefix_]bar.png", gui.vscrollbar_borders, tile=gui.scrollbar_tile)
|
# base_bar Frame("gui/phone/scrollbar/vertical_[prefix_]bar.png", gui.vscrollbar_borders, tile=gui.scrollbar_tile)
|
||||||
thumb Frame("gui/phone/scrollbar/vertical_[prefix_]thumb.png", gui.vscrollbar_borders, tile=gui.scrollbar_tile)
|
# thumb Frame("gui/phone/scrollbar/vertical_[prefix_]thumb.png", gui.vscrollbar_borders, tile=gui.scrollbar_tile)
|
||||||
|
|
||||||
style slider:
|
# style slider:
|
||||||
variant "small"
|
# variant "small"
|
||||||
ysize gui.slider_size
|
# ysize gui.slider_size
|
||||||
base_bar Frame("gui/phone/slider/horizontal_[prefix_]bar.png", gui.slider_borders, tile=gui.slider_tile)
|
# base_bar Frame("gui/phone/slider/horizontal_[prefix_]bar.png", gui.slider_borders, tile=gui.slider_tile)
|
||||||
thumb "gui/phone/slider/horizontal_[prefix_]thumb.png"
|
# thumb "gui/phone/slider/horizontal_[prefix_]thumb.png"
|
||||||
|
|
||||||
style vslider:
|
# style vslider:
|
||||||
variant "small"
|
# variant "small"
|
||||||
xsize gui.slider_size
|
# xsize gui.slider_size
|
||||||
base_bar Frame("gui/phone/slider/vertical_[prefix_]bar.png", gui.vslider_borders, tile=gui.slider_tile)
|
# base_bar Frame("gui/phone/slider/vertical_[prefix_]bar.png", gui.vslider_borders, tile=gui.slider_tile)
|
||||||
thumb "gui/phone/slider/vertical_[prefix_]thumb.png"
|
# thumb "gui/phone/slider/vertical_[prefix_]thumb.png"
|
||||||
|
|
||||||
style slider_vbox:
|
# style slider_vbox:
|
||||||
variant "small"
|
# variant "small"
|
||||||
xsize None
|
# xsize None
|
||||||
|
|
||||||
style slider_slider:
|
# style slider_slider:
|
||||||
variant "small"
|
# variant "small"
|
||||||
xsize 900
|
# xsize 900
|
||||||
|
Binary file not shown.
Reference in New Issue
Block a user