Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Сменить десктопную разметку textbox на мобильную #6

Closed
4 tasks
saber-nyan opened this issue Dec 1, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@saber-nyan
Copy link
Owner

Думаю, стоит оставить возможность выбора между мобильным и десктопным вариантом. Мобильный по умолчанию.

Дергать придется это:

define -2 gui.text_size = 26
define -2 gui.name_text_size = 26
define -2 gui.interface_text_size = 26
define -2 gui.label_text_size = 30
define -2 gui.notify_text_size = 16
define -2 gui.title_text_size = 40

ddlc-android/game/gui.rpy

Lines 416 to 424 in 9034a8f

if False: # TO!DONE: problem: defaults!
gui.text_size = 30
gui.name_text_size = 36
gui.notify_text_size = 25
gui.interface_text_size = 36
gui.button_text_size = 34
gui.label_text_size = 36
и это:
init -1 style window: # TO!DONE: или же здесь?
xalign 0.5
xfill True
yalign gui.textbox_yalign
ysize gui.textbox_height
background Image("gui/textbox.png", xalign=0.5, yalign=1.0)
init -1 style window_monika is window:
background Image("gui/textbox_monika.png", xalign=0.5, yalign=1.0)
init -1 style namebox:
xpos gui.name_xpos
xanchor gui.name_xalign
xsize gui.namebox_width
ypos gui.name_ypos
ysize gui.namebox_height
background Frame("gui/namebox.png", gui.namebox_borders, tile=gui.namebox_tile, xalign=gui.name_xalign)
padding gui.namebox_borders.padding
init -1 style say_label:
color gui.accent_color
font gui.name_font
size gui.name_text_size
xalign gui.name_xalign
yalign 0.5
outlines [(3, "#b59", 0, 0), (1, "#b59", 1, 1)]
init -1 style say_dialogue: # TO!DONE: фикс положения должен быть здесь?
xpos gui.text_xpos
xanchor gui.text_xalign
xsize gui.text_width
ypos gui.text_ypos
text_align gui.text_xalign
layout ("subtitle" if gui.text_xalign else "tex")

  • Отресайзить game/gui/textbox.png и game/gui/textbox_monika.png (скорее всего, 33%)
  • (Опционально) затемнить textbox - глазкам трудно, слишком мало контраста
  • Увеличить шрифт
  • Переписать разметку (самое грустное, разработчики нагородили какой-то фигни)
@saber-nyan saber-nyan added this to the v1.0.0 milestone Dec 1, 2017
@saber-nyan saber-nyan self-assigned this Dec 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant