Page 1 of 1

Change the position of the Back button

Posted: Fri Nov 08, 2019 3:03 pm
by Line of lust
Hello, I had a problem, I placed the text next to the main menu, but it looks uneven in the mobile version, how can I fix it and attach it to the menu?

And I faced the problem of accessing the menu from the Android version, I want to add the settings icon when you are sitting on the phone during the game, but I can’t find the function, I will be very grateful for the help!

Image

Re: Change the position of the Back button

Posted: Sat Nov 09, 2019 2:52 pm
by Line of lust
Help

Re: Change the position of the Back button

Posted: Sat Nov 09, 2019 3:30 pm
by papillon
Line of lust wrote:
Fri Nov 08, 2019 3:03 pm
Hello, I had a problem, I placed the text next to the main menu, but it looks uneven in the mobile version, how can I fix it and attach it to the menu?
What code are you currently using? What does it currently look like, and what do you want it to look like?

RIght now, when you say you "placed the text next to the main menu", I have no idea what you mean. Which main menu, where? What text? What does 'it looks uneven' mean?

The more details you provide the easier it will be to see what needs fixing.

Re: Change the position of the Back button

Posted: Sat Nov 09, 2019 3:32 pm
by XxrenxX
You can always add xalign 0.5 to the style for the buttons to make them all centered.

As for the settings button, you'd have to make a button the player can click, I assume you want it always present so it would be something similar to the quick menu that's always present on the dialogue box. Am I understanding correctly?

Re: Change the position of the Back button

Posted: Sat Nov 09, 2019 7:23 pm
by isobellesophia
Pc and Android were in different positions, so i suggest you to edit the screen.rpy or the gui.rpy for android version, supposed to be you need to use xaligns for simple.


Plus, might be better if you showed the code so it can be specific.

Re: Change the position of the Back button

Posted: Sun Nov 10, 2019 2:10 am
by Line of lust
papillon wrote:
Sat Nov 09, 2019 3:30 pm
Line of lust wrote:
Fri Nov 08, 2019 3:03 pm
Hello, I had a problem, I placed the text next to the main menu, but it looks uneven in the mobile version, how can I fix it and attach it to the menu?
What code are you currently using? What does it currently look like, and what do you want it to look like?

RIght now, when you say you "placed the text next to the main menu", I have no idea what you mean. Which main menu, where? What text? What does 'it looks uneven' mean?

The more details you provide the easier it will be to see what needs fixing.
The button itself is in screen game_menu, and I need this button to function along with main_menu, as I described above, but if I remove from game_menu, I can’t return from the section to the main menu ...

Image
Image

Re: Change the position of the Back button

Posted: Sun Nov 10, 2019 4:12 pm
by Line of lust
XxrenxX wrote:
Sat Nov 09, 2019 3:32 pm
You can always add xalign 0.5 to the style for the buttons to make them all centered.

As for the settings button, you'd have to make a button the player can click, I assume you want it always present so it would be something similar to the quick menu that's always present on the dialogue box. Am I understanding correctly?
The button itself is in screen game_menu, and I need this button to function along with main_menu, as I described above, but if I remove from game_menu, I can’t return from the section to the main menu ...

Re: Change the position of the Back button

Posted: Sun Nov 10, 2019 4:13 pm
by Line of lust
isobellesophia wrote:
Sat Nov 09, 2019 7:23 pm
Pc and Android were in different positions, so i suggest you to edit the screen.rpy or the gui.rpy for android version, supposed to be you need to use xaligns for simple.


Plus, might be better if you showed the code so it can be specific.
The button itself is in screen game_menu, and I need this button to function along with main_menu, as I described above, but if I remove from game_menu, I can’t return from the section to the main menu ...

Re: Change the position of the Back button

Posted: Mon Nov 11, 2019 10:40 am
by papillon
Sorry, it is difficult to explain code situations with a slight language barrier. I'm having trouble understanding what you mean, exactly. I can see that the text is misaligned in the screenshot that you've posted, but I can't see what that screenshot is meant to be of, or what code is drawing it.

You've pasted the code for the navigation screen but you haven't pasted the code for the screen that your return button is actually inside? The code you've screenshotted says nothing about where the return button is being placed.

A larger section of your screens.rpy (as text so that we can paste and edit) might help.

Right now my best guess (which may be wrong) is that you've tried to insert a button into the generic game_menu screen which gets used for multiple purposes, and therefore it's coming out in strange places? It is probably better to manually insert it into the specific screens that you want it to be in, so that it can line up properly with the elements of those screens.

Re: Change the position of the Back button

Posted: Tue Nov 12, 2019 10:13 am
by isobellesophia
If you please dont post thrice in your same post, all of people seen this can still help you out.




How about if you try replace it with the default main menu button code as in like in the new project?
Maybe it is something within your code.. and you may dont know if that code was affecting it.

Re: Change the position of the Back button

Posted: Wed Nov 13, 2019 5:09 am
by Line of lust
papillon wrote:
Mon Nov 11, 2019 10:40 am
Sorry, it is difficult to explain code situations with a slight language barrier. I'm having trouble understanding what you mean, exactly. I can see that the text is misaligned in the screenshot that you've posted, but I can't see what that screenshot is meant to be of, or what code is drawing it.

You've pasted the code for the navigation screen but you haven't pasted the code for the screen that your return button is actually inside? The code you've screenshotted says nothing about where the return button is being placed.

A larger section of your screens.rpy (as text so that we can paste and edit) might help.

Right now my best guess (which may be wrong) is that you've tried to insert a button into the generic game_menu screen which gets used for multiple purposes, and therefore it's coming out in strange places? It is probably better to manually insert it into the specific screens that you want it to be in, so that it can line up properly with the elements of those screens.
screen game_menu:

Image

screen main menu/navigation:

Image

Here are the screens, and where the arrow indicates, there should be a script from game_menu, but if I transfer it there, then when I go to the section through the main menu I will not see this code from game_menu. I hope you understand, if not, I will try to explain on my fingers ...

Re: Change the position of the Back button

Posted: Mon Nov 25, 2019 8:22 am
by Line of lust
help me please

Re: Change the position of the Back button

Posted: Mon Nov 25, 2019 6:21 pm
by Line of lust
close