mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-24 10:38:56 +01:00
Adjust Input prompt around OSK
This commit is contained in:
parent
6ac6fb8b44
commit
40686cf245
2 changed files with 7 additions and 8 deletions
|
@ -155,6 +155,7 @@ define gui.dialogue_width = 1460
|
|||
## aligned, 0.5 for centered, and 1.0 for right-aligned.
|
||||
define gui.dialogue_text_xalign = 0.0
|
||||
|
||||
define gui.input_yoffset = 0
|
||||
|
||||
## Buttons #####################################################################
|
||||
##
|
||||
|
@ -489,4 +490,7 @@ init python:
|
|||
gui.nvl_button_xpos = 30
|
||||
|
||||
|
||||
## Input, OSK, very specific
|
||||
if renpy.variant("small") or renpy.variant("touch"):
|
||||
gui.input_yoffset = -625
|
||||
|
||||
|
|
|
@ -176,12 +176,13 @@ screen input(prompt):
|
|||
style_prefix "input"
|
||||
|
||||
window:
|
||||
|
||||
add Image("gui/textbox_no_hitch.png", xalign=0.5, yalign=1.0, yoffset=gui.input_yoffset) #for mobile OSK
|
||||
vbox:
|
||||
xalign gui.dialogue_text_xalign
|
||||
xpos gui.dialogue_xpos
|
||||
xsize gui.dialogue_width
|
||||
ypos gui.dialogue_ypos
|
||||
yoffset gui.input_yoffset #for mobile OSK
|
||||
|
||||
text prompt style "input_prompt"
|
||||
input id "input"
|
||||
|
@ -425,12 +426,6 @@ screen main_menu():
|
|||
[ "Help & About", ShowMenu("extras") ], \
|
||||
[ "Quit", Quit(confirm=not main_menu) ] \
|
||||
] )
|
||||
#imagebutton auto "gui/button/menubuttons/startbutton_%s.png" action Start()
|
||||
#imagebutton auto "gui/button/menubuttons/loadbutton_%s.png" action ShowMenu("load")
|
||||
#imagebutton auto "gui/button/menubuttons/optionsbutton_%s.png" action ShowMenu("preferences")
|
||||
#imagebutton auto "gui/button/menubuttons/helpbutton_%s.png" action ShowMenu("extras")
|
||||
#imagebutton auto "gui/button/menubuttons/quitbutton_%s.png" action Quit(confirm=not main_menu)
|
||||
|
||||
|
||||
# if gui.show_name:
|
||||
#
|
||||
|
@ -788,7 +783,7 @@ screen file_slots(title, flag=False):
|
|||
|
||||
add FileScreenshot(slot) xalign 0.5
|
||||
|
||||
text FileTime(slot, format=_("{#file_time}%A, %B %d %Y, %H:%M"), empty=_("empty slot")):
|
||||
text FileTime(slot, format=_("{#file_time}%A, %B %d %Y, %H:%M"), empty=_("Empty Slot")):
|
||||
style "slot_time_text"
|
||||
|
||||
text FileSaveName(slot):
|
||||
|
|
Loading…
Reference in a new issue