Wardrobe 2.0 - Colour Picker

This commit is contained in:
LoafyLemon 2024-10-22 15:26:41 +01:00
parent 15258bf596
commit 9c29c1392d
8 changed files with 397 additions and 150 deletions

BIN
game/gui/creamy_pumpkin_pie/colorpicker/colorpicker_bar.png (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -34,10 +34,10 @@ init python:
def crop_whitespace_surface(displayable):
surf = renpy.render_to_surface(displayable, width=1010, height=1200)
size = surf.get_size()
box = tuple(surf.get_bounding_rect())
box = (int(i) for i in surf.get_bounding_rect())
if size[0] != 1010:
ratio = size[0]/1010
box = tuple(v//ratio for v in box)
box = tuple(int(v//ratio) for v in box)
return box
def crop_image_zoom(path, xsize, ysize, grayscale=False):

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff