Fixes android UI

This commit is contained in:
Gmanon
2022-12-29 03:37:07 -03:00
parent 2c0813f5a7
commit 43fc6cfd69
3 changed files with 123 additions and 123 deletions

View File

@ -422,65 +422,65 @@ define gui.language = "unicode"
## Mobile devices
################################################################################
init python:
# init python:
## This increases the size of the quick buttons to make them easier to touch
## on tablets and phones.
if renpy.variant("touch"):
# ## This increases the size of the quick buttons to make them easier to touch
# ## on tablets and phones.
# 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
## are easily visible on phones.
if renpy.variant("small"):
# ## This changes the size and spacing of various GUI elements to ensure they
# ## are easily visible on phones.
# if renpy.variant("small"):
## Font sizes.
gui.text_size = 45
gui.name_text_size = 54
gui.notify_text_size = 38
gui.interface_text_size = 45
gui.button_text_size = 45
gui.label_text_size = 51
# ## Font sizes.
# gui.text_size = 45
# gui.name_text_size = 54
# gui.notify_text_size = 38
# gui.interface_text_size = 45
# gui.button_text_size = 45
# gui.label_text_size = 51
## Adjust the location of the textbox.
gui.textbox_height = 360
gui.name_xpos = 120
gui.dialogue_xpos = 135
gui.dialogue_width = 1650
# ## Adjust the location of the textbox.
# gui.textbox_height = 360
# gui.name_xpos = 120
# gui.dialogue_xpos = 135
# gui.dialogue_width = 1650
## Change the size and spacing of various things.
gui.slider_size = 54
# ## Change the size and spacing of various things.
# gui.slider_size = 54
gui.choice_button_width = 1860
gui.choice_button_text_size = 45
# gui.choice_button_width = 1860
# gui.choice_button_text_size = 45
gui.navigation_spacing = 30
gui.pref_button_spacing = 15
# gui.navigation_spacing = 30
# gui.pref_button_spacing = 15
gui.history_height = 285
gui.history_text_width = 1035
# gui.history_height = 285
# gui.history_text_width = 1035
gui.quick_button_text_size = 30
# gui.quick_button_text_size = 30
## File button layout.
gui.file_slot_cols = 2
gui.file_slot_rows = 2
# ## File button layout.
# gui.file_slot_cols = 2
# gui.file_slot_rows = 2
## NVL-mode.
gui.nvl_height = 255
# ## NVL-mode.
# gui.nvl_height = 255
gui.nvl_name_width = 458
gui.nvl_name_xpos = 488
# gui.nvl_name_width = 458
# gui.nvl_name_xpos = 488
gui.nvl_text_width = 1373
gui.nvl_text_xpos = 518
gui.nvl_text_ypos = 8
# gui.nvl_text_width = 1373
# gui.nvl_text_xpos = 518
# gui.nvl_text_ypos = 8
gui.nvl_thought_width = 1860
gui.nvl_thought_xpos = 30
# gui.nvl_thought_width = 1860
# gui.nvl_thought_xpos = 30
gui.nvl_button_width = 1860
gui.nvl_button_xpos = 30
# gui.nvl_button_width = 1860
# gui.nvl_button_xpos = 30

View File

@ -1451,107 +1451,107 @@ style nvl_button_text:
## Mobile Variants
################################################################################
style pref_vbox:
variant "medium"
xsize 675
# style pref_vbox:
# variant "medium"
# xsize 675
## 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.
screen quick_menu():
variant "touch"
# ## 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.
# screen quick_menu():
# variant "touch"
zorder 100
# zorder 100
if quick_menu:
# if quick_menu:
hbox:
style_prefix "quick"
# hbox:
# style_prefix "quick"
xalign 0.5
yalign 1.0
# xalign 0.5
# yalign 1.0
textbutton _("Back") action Rollback()
textbutton _("Skip") action Skip() alternate Skip(fast=True, confirm=True)
textbutton _("Auto") action Preference("auto-forward", "toggle")
textbutton _("Menu") action ShowMenu()
# textbutton _("Back") action Rollback()
# textbutton _("Skip") action Skip() alternate Skip(fast=True, confirm=True)
# textbutton _("Auto") action Preference("auto-forward", "toggle")
# textbutton _("Menu") action ShowMenu()
style window:
variant "small"
background "gui/phone/textbox.png"
# style window:
# variant "small"
# background "gui/phone/textbox.png"
style radio_button:
variant "small"
foreground "gui/phone/button/radio_[prefix_]foreground.png"
# style radio_button:
# variant "small"
# foreground "gui/phone/button/radio_[prefix_]foreground.png"
style check_button:
variant "small"
foreground "gui/phone/button/check_[prefix_]foreground.png"
# style check_button:
# variant "small"
# foreground "gui/phone/button/check_[prefix_]foreground.png"
style nvl_window:
variant "small"
background "gui/phone/nvl.png"
# style nvl_window:
# variant "small"
# background "gui/phone/nvl.png"
style main_menu_frame:
variant "small"
background "gui/phone/overlay/main_menu.png"
# style main_menu_frame:
# variant "small"
# background "gui/phone/overlay/main_menu.png"
style game_menu_outer_frame:
variant "small"
background "gui/phone/overlay/game_menu.png"
# style game_menu_outer_frame:
# variant "small"
# background "gui/phone/overlay/game_menu.png"
style game_menu_navigation_frame:
variant "small"
xsize 510
# style game_menu_navigation_frame:
# variant "small"
# xsize 510
style game_menu_content_frame:
variant "small"
top_margin 0
# style game_menu_content_frame:
# variant "small"
# top_margin 0
style pref_vbox:
variant "small"
xsize 600
# style pref_vbox:
# variant "small"
# xsize 600
style bar:
variant "small"
ysize gui.bar_size
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)
# style bar:
# variant "small"
# ysize gui.bar_size
# 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)
style vbar:
variant "small"
xsize gui.bar_size
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)
# style vbar:
# variant "small"
# xsize gui.bar_size
# 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)
style scrollbar:
variant "small"
ysize gui.scrollbar_size
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)
# style scrollbar:
# variant "small"
# ysize gui.scrollbar_size
# 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)
style vscrollbar:
variant "small"
xsize gui.scrollbar_size
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)
# style vscrollbar:
# variant "small"
# xsize gui.scrollbar_size
# 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)
style slider:
variant "small"
ysize gui.slider_size
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"
# style slider:
# variant "small"
# ysize gui.slider_size
# 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"
style vslider:
variant "small"
xsize gui.slider_size
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"
# style vslider:
# variant "small"
# xsize gui.slider_size
# 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"
style slider_vbox:
variant "small"
xsize None
# style slider_vbox:
# variant "small"
# xsize None
style slider_slider:
variant "small"
xsize 900
# style slider_slider:
# variant "small"
# xsize 900

Binary file not shown.