Questions about savescreen

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
lentlen
Newbie
Posts: 13
Joined: Fri Jan 24, 2020 9:27 pm
Completed: Shoot in the head (ru)
Projects: Backerei
Discord: lentlen#1606
Contact:

Questions about savescreen

#1 Post by lentlen »

Hellow everyone~

I have some questions:
1. Is it real to make dissolve-effect between idle and hover save slot? I just can't imagine how to do that...
2. Is it real to change position of save slot name? I tried to use xalign and yalign but it doesn't work at all. perfectly if i was able to put this text on center or top os save slot.
3. i don't remember, maybe add it little later
_____
I REMEMBERED third question:
3. is it real to make rounded corners of screenshot in save slot? maybe some attribute of something? in gui there was only width and height of it and google don't tell me a lot of information about it sooo help please ;_;
Last edited by lentlen on Wed Feb 05, 2020 12:46 am, edited 1 time in total.

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Questions about savescreen

#2 Post by gas »

2 - The incriminated area is:

Code: Select all

                for i in range(gui.file_slot_cols * gui.file_slot_rows):

                    $ slot = i + 1

                    button:
                        action FileAction(slot)

                        has vbox 

                        add FileScreenshot(slot) xalign 0.5

                        text FileTime(slot, format=_("{#file_time}%A, %B %d %Y, %H:%M"), empty=_("empty slot")):
                            style "slot_time_text"

                        text FileSaveName(slot):
                            style "slot_name_text"

                        key "save_delete" action FileDelete(slot)
 
Seen that VBOX thing? Practically it determine that things are rendered one after another vertically. So, first the screenshot, then the time, then the name.
Moving around the name do nothing, you should move out the text name outside the vbox.
I CAN'T TEST IT RIGHT NOW, but it should work.

Code: Select all

                for i in range(gui.file_slot_cols * gui.file_slot_rows):

                    $ slot = i + 1

                    button:
                        action FileAction(slot)

                        add FileScreenshot(slot) xalign 0.5

                        text FileTime(slot, format=_("{#file_time}%A, %B %d %Y, %H:%M"), empty=_("empty slot")):
                            style "slot_time_text"
                            
                        text FileSaveName(slot):
                            style "slot_name_text"

                        key "save_delete" action FileDelete(slot)
 
Now you SHOULD be able to move things around using style properties. Mind that the button could have some strange alignement and size issue you should solve on your own, again with style properties.

3 - that's the best question I had in months.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

User avatar
lentlen
Newbie
Posts: 13
Joined: Fri Jan 24, 2020 9:27 pm
Completed: Shoot in the head (ru)
Projects: Backerei
Discord: lentlen#1606
Contact:

Re: Questions about savescreen

#3 Post by lentlen »

gas wrote: Tue Feb 04, 2020 11:02 pm 2 - The incriminated area is:

Code: Select all

                for i in range(gui.file_slot_cols * gui.file_slot_rows):

                    $ slot = i + 1

                    button:
                        action FileAction(slot)

                        has vbox 

                        add FileScreenshot(slot) xalign 0.5

                        text FileTime(slot, format=_("{#file_time}%A, %B %d %Y, %H:%M"), empty=_("empty slot")):
                            style "slot_time_text"

                        text FileSaveName(slot):
                            style "slot_name_text"

                        key "save_delete" action FileDelete(slot)
 
Seen that VBOX thing? Practically it determine that things are rendered one after another vertically. So, first the screenshot, then the time, then the name.
Moving around the name do nothing, you should move out the text name outside the vbox.
I CAN'T TEST IT RIGHT NOW, but it should work.

Code: Select all

                for i in range(gui.file_slot_cols * gui.file_slot_rows):

                    $ slot = i + 1

                    button:
                        action FileAction(slot)

                        add FileScreenshot(slot) xalign 0.5

                        text FileTime(slot, format=_("{#file_time}%A, %B %d %Y, %H:%M"), empty=_("empty slot")):
                            style "slot_time_text"
                            
                        text FileSaveName(slot):
                            style "slot_name_text"

                        key "save_delete" action FileDelete(slot)
 
Now you SHOULD be able to move things around using style properties. Mind that the button could have some strange alignement and size issue you should solve on your own, again with style properties.

3 - that's the best question I had in months.
thanks! i should test it after work :)

User avatar
Andredron
Miko-Class Veteran
Posts: 719
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: Questions about savescreen

#4 Post by Andredron »

3)

add AlphaMask (FileScreenshot (slot), "alpha.png") xalign 0.5


where alphа .png the mask to trim

User avatar
lentlen
Newbie
Posts: 13
Joined: Fri Jan 24, 2020 9:27 pm
Completed: Shoot in the head (ru)
Projects: Backerei
Discord: lentlen#1606
Contact:

Re: Questions about savescreen

#5 Post by lentlen »

thanks gas and Andredron, it's help a lot!
also first question still actual

Post Reply

Who is online

Users browsing this forum: Baidu [Spider]