Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.

Visit our new games list, blog aggregator, IRC channel, and Discord (new).
Activation problem? Email pytom@bishoujo.us.
It is currently Wed Jun 28, 2017 10:13 am

All times are UTC - 5 hours [ DST ]


Forum rules


This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like, and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.



Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Fri Apr 21, 2017 4:10 am 
Regular

Joined: Tue Mar 21, 2017 11:10 pm
Posts: 60
how do you move this main menu text buttons into a single line horizontaly ?
Attachment:
menu1.png
menu1.png [ 1.82 MiB | Viewed 285 times ]


Attachment:
menu2.png
menu2.png [ 1.18 MiB | Viewed 285 times ]



into something like this?
for example
Attachment:
menu3.png
menu3.png [ 1.8 MiB | Viewed 285 times ]


Top
 Profile Send private message  
 
PostPosted: Fri Apr 21, 2017 4:29 am 
Miko-Class Veteran

Joined: Mon Dec 14, 2015 5:05 am
Posts: 640
Location: Your monitor
My internet won't load the images at the moment, but I can make two suggestions.
In the screen 'navigation', change all instances of "vbox" to "hbox"

Alternatively, use imagebuttons. You can position them with vboxes, hboxes, grids or xpos / ypos, etc.

Both of these methods will however, alter ALL screens. Its possible to do the menu only, and there's a few approaches, but I cannot go over them all at this time.

_________________
Image
Ren'Py Raspberry Pi portable console build


Top
 Profile Send private message  
 
PostPosted: Fri Apr 21, 2017 4:41 am 
Regular

Joined: Tue Mar 21, 2017 11:10 pm
Posts: 60
Imperf3kt wrote:
My internet won't load the images at the moment, but I can make two suggestions.
In the screen 'navigation', change all instances of "vbox" to "hbox"

Alternatively, use imagebuttons. You can position them with vboxes, hboxes, grids or xpos / ypos, etc.

Both of these methods will however, alter ALL screens. Its possible to do the menu only, and there's a few approaches, but I cannot go over them all at this time.

i could wair for your suggestion i really need it please


thank you


Top
 Profile Send private message  
 
PostPosted: Fri Apr 21, 2017 4:50 am 
Miko-Class Veteran

Joined: Mon Dec 14, 2015 5:05 am
Posts: 640
Location: Your monitor
Alright, I'll probably have time to go over it in about 2 to 3 hours.

In the meantime, could you either attach or PM me the "screens.rpy" file.
If you don't want to share it, then just copy the section with the man menu, game menu and navigation?

I'll edit it and explain what I did.

I can see via the images that you are using text buttons. The easiest method is to create a hbox and insert a grid, but I need to see how the rest of your navigation works in order to do so correctly.

_________________
Image
Ren'Py Raspberry Pi portable console build


Top
 Profile Send private message  
 
PostPosted: Fri Apr 21, 2017 7:42 am 
Regular

Joined: Tue Mar 21, 2017 11:10 pm
Posts: 60
Imperf3kt wrote:
Alright, I'll probably have time to go over it in about 2 to 3 hours.

In the meantime, could you either attach or PM me the "screens.rpy" file.
If you don't want to share it, then just copy the section with the man menu, game menu and navigation?

I'll edit it and explain what I did.

I can see via the images that you are using text buttons. The easiest method is to create a hbox and insert a grid, but I need to see how the rest of your navigation works in order to do so correctly.



it works no i somehow found and fixed what i wanted fiddling and thingy..

now my problem is the background for the buttons..


Top
 Profile Send private message  
 
PostPosted: Fri Apr 21, 2017 8:23 am 
Regular

Joined: Tue Mar 21, 2017 11:10 pm
Posts: 60
Imperf3kt wrote:
Alright, I'll probably have time to go over it in about 2 to 3 hours.

In the meantime, could you either attach or PM me the "screens.rpy" file.
If you don't want to share it, then just copy the section with the man menu, game menu and navigation?

I'll edit it and explain what I did.

I can see via the images that you are using text buttons. The easiest method is to create a hbox and insert a grid, but I need to see how the rest of your navigation works in order to do so correctly.


but there are still things that i need to fix so ill attach it so you can see


Top
 Profile Send private message  
 
PostPosted: Fri Apr 21, 2017 8:38 am 
Regular

Joined: Tue Mar 21, 2017 11:10 pm
Posts: 60
Imperf3kt wrote:
Alright, I'll probably have time to go over it in about 2 to 3 hours.

In the meantime, could you either attach or PM me the "screens.rpy" file.
If you don't want to share it, then just copy the section with the man menu, game menu and navigation?

I'll edit it and explain what I did.

I can see via the images that you are using text buttons. The easiest method is to create a hbox and insert a grid, but I need to see how the rest of your navigation works in order to do so correctly.

Attachment:
memu.png
memu.png [ 1.82 MiB | Viewed 271 times ]

as you can see its on horizontal mode but its not allighned though...

how do i fix that?

Attachment:
memu1.png
memu1.png [ 738.57 KiB | Viewed 271 times ]


on other menus too

here too
Attachment:
memu2.png
memu2.png [ 225.06 KiB | Viewed 271 times ]


Attachments:
screens.rpy [37.91 KiB]
Downloaded 5 times
Top
 Profile Send private message  
 
PostPosted: Fri Apr 21, 2017 5:22 pm 
Miko-Class Veteran

Joined: Mon Dec 14, 2015 5:05 am
Posts: 640
Location: Your monitor
You could use a grid.
Code:
grid 8 1:
    textbutton... etc

_________________
Image
Ren'Py Raspberry Pi portable console build


Top
 Profile Send private message  
 
PostPosted: Fri Apr 21, 2017 6:07 pm 
Newbie

Joined: Fri Apr 21, 2017 6:01 pm
Posts: 1
I'm having the same problems as mahyuringon, any chance you could expand on use a grid? where? how? or or point to a tutorial for the current version of renpy?

Ive spent 10+ hours trying to figure out how to move buttons and I'm starting to lose my mind...


Top
 Profile Send private message  
 
PostPosted: Fri Apr 21, 2017 8:56 pm 
Regular

Joined: Tue Mar 21, 2017 11:10 pm
Posts: 60
jehu wrote:
I'm having the same problems as mahyuringon, any chance you could expand on use a grid? where? how? or or point to a tutorial for the current version of renpy?

Ive spent 10+ hours trying to figure out how to move buttons and I'm starting to lose my mind...

getting crazy here~


Top
 Profile Send private message  
 
PostPosted: Fri Apr 21, 2017 9:06 pm 
Regular

Joined: Tue Mar 21, 2017 11:10 pm
Posts: 60
Imperf3kt wrote:
You could use a grid.
Code:
grid 8 1:
    textbutton... etc


on which part would i place the grid?


Top
 Profile Send private message  
 
PostPosted: Sat Apr 22, 2017 2:06 am 
Miko-Class Veteran

Joined: Mon Dec 14, 2015 5:05 am
Posts: 640
Location: Your monitor
Sorry, I was out all day and wasn't able to check the forums.

Place the grid in the navigation screen directly above your textbuttons.

So for example:
Code:
screen navigation():
    style_prefix "navigation"
#create a grid that is 8 columns wide and 1 row high
    grid 8 1:
#position the grid
        xalign 0.5
        yalign 0.8
#for more info on positioning, follow this link https://www.renpy.org/doc/html/style_properties.html#position-style-properties

#place the options
        textbutton... etc

#define spacing
        spacing 25#replace 25 with the number of pixels gap you want between each option

_________________
Image
Ren'Py Raspberry Pi portable console build


Top
 Profile Send private message  
 
PostPosted: Sat Apr 22, 2017 2:19 am 
Regular

Joined: Tue Mar 21, 2017 11:10 pm
Posts: 60
Imperf3kt wrote:
Sorry, I was out all day and wasn't able to check the forums.

Place the grid in the navigation screen directly above your textbuttons.

So for example:
Code:
screen navigation():
    style_prefix "navigation"
#create a grid that is 8 columns wide and 1 row high
    grid 8 1:
#position the grid
        xalign 0.5
        yalign 0.8
#for more info on positioning, follow this link https://www.renpy.org/doc/html/style_properties.html#position-style-properties

#place the options
        textbutton... etc

#define spacing
        spacing 25#replace 25 with the number of pixels gap you want between each option




it says grid expects a non- empty block...


Top
 Profile Send private message  
 
PostPosted: Sat Apr 22, 2017 2:56 am 
Miko-Class Veteran

Joined: Mon Dec 14, 2015 5:05 am
Posts: 640
Location: Your monitor
I was going by the documentation, though I did think it was incorrect.

Alright, try adding a frame.
Code:
screen navigation():
    style_prefix "navigation"
    frame:
        xalign 0.5
        yalign 0.8
        grid 8 1:

            textbutton... etc

            spacing 25

_________________
Image
Ren'Py Raspberry Pi portable console build


Top
 Profile Send private message  
 
PostPosted: Sat Apr 22, 2017 3:24 am 
Regular

Joined: Tue Mar 21, 2017 11:10 pm
Posts: 60
Imperf3kt wrote:
I was going by the documentation, though I did think it was incorrect.

Alright, try adding a frame.
Code:
screen navigation():
    style_prefix "navigation"
    frame:
        xalign 0.5
        yalign 0.8
        grid 8 1:

            textbutton... etc

            spacing 25



i cant seem to find where the Game menu is where the text thingis and put the code...

doing trial and error..


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: AsHLeX, Natsu Dragneel, vollschauer, wannabedamned


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group