Hello, when i making screens for my game, i had some problems.
like this picture, it isn't aligned.
and i want to hide the top and bottom image in left in this picture.
I tried to find solution to this problem for a day,
but i couldn't find solution to this.
This is code.↓
screen allchats():
zorder 45
viewport id "allchat":
scrollbars
mousewheel True
add "smartphone/allchats.png"
#xalign 0.5
#yalign 0.7
# xalign 0.7
#yalign 0.5
How to align scrollable images?
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.
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.
-
- Newbie
- Posts: 3
- Joined: Sun Feb 21, 2021 11:50 am
- Contact:
-
- Regular
- Posts: 37
- Joined: Thu Feb 04, 2021 9:04 am
- Contact:
Re: How to align scrollable images?
Could you specify more what you're trying to do?
What part do you want to align?
And what do you mean hide the images? Permanently, based on some conditions, etc.
Also the code definitely doesn't produce the whole screen you screenshotted, can you crop the image to the important part? Or if all is important, share more of the code?
What part do you want to align?
And what do you mean hide the images? Permanently, based on some conditions, etc.
Also the code definitely doesn't produce the whole screen you screenshotted, can you crop the image to the important part? Or if all is important, share more of the code?
Programmer @ Celestea Productions
NaNo demo out!
My code:
GalleryPlus - extending gallery functionality
NaNo demo out!
My code:
GalleryPlus - extending gallery functionality
-
- Newbie
- Posts: 3
- Joined: Sun Feb 21, 2021 11:50 am
- Contact:
Re: How to align scrollable images?
Code: Select all
screen allchats():
zorder 45
viewport id "allchat":
scrollbars
mousewheel True
add "smartphone/allchats.png"
the right screen of this picture is not important.
i want make this screen can scrolled in frame like a smart phone.
- hell_oh_world
- Miko-Class Veteran
- Posts: 777
- Joined: Fri Jul 12, 2019 5:21 am
- Contact:
Re: How to align scrollable images?
try giving an `xysize` to your viewport, this should be the size where this image is clipped (the size of the smartphone screen to be exact.)
-
- Newbie
- Posts: 3
- Joined: Sun Feb 21, 2021 11:50 am
- Contact:
Re: How to align scrollable images?
It works! thank you
Who is online
Users browsing this forum: Ahrefs [Bot], Ocelot