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

[New Feature] Generalized mesh Frame #2827

Open
Gouvernathor opened this issue May 26, 2021 · 3 comments
Open

[New Feature] Generalized mesh Frame #2827

Gouvernathor opened this issue May 26, 2021 · 3 comments
Labels
duration - day Resolving this is estimated to a day of development enhancement A proposed or requested enhancement or improvement to renpy's features.

Comments

@Gouvernathor
Copy link
Member

A more general 2D mesh system which Frame and Tile could be special cases of.
It would basically allow slicing an image horizontally and vertically into rectangular zones, and arbitrarily saying which and how much each is tiled and/or stretched.

@renpytom
Copy link
Member

Just tossing an idea out here - the px type/object, as part of specifying these.

The idea would be something like a shorter name for absolute that could combine with object. For example, to specify the x expansion, one could do:

[ 0px, 10px, 0.5 - 10*px, 0.5 + 10*px, 1.0 - 10*px, 1.0 ]

Where 1.0 - 10 * px means "10 pixels to the left of the right side of the screen."

@RenpyRemix
Copy link
Contributor

Theoretically, now we have access to GPU based rendering, 9-patch (using opaque/transparent pixels along two sides to dictate the (possibly multiple) stretch parts) should be quite feasible.

@renpytom
Copy link
Member

Ren'Py's Frame is nine-patch.

@renpytom renpytom added enhancement A proposed or requested enhancement or improvement to renpy's features. enhancement - day and removed enhancement A proposed or requested enhancement or improvement to renpy's features. labels Mar 20, 2022
@Gouvernathor Gouvernathor added enhancement A proposed or requested enhancement or improvement to renpy's features. duration - day Resolving this is estimated to a day of development and removed enhancement - day labels May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duration - day Resolving this is estimated to a day of development enhancement A proposed or requested enhancement or improvement to renpy's features.
Projects
None yet
Development

No branches or pull requests

3 participants