Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

[SOLVED] Padding Locked

A topic by BananaPumpkin created 22 days ago Views: 76 Replies: 5
This topic was locked by Hakuen Studio 21 days ago
Viewing posts 1 to 6
(1 edit)

I'm running into a conflict between your Face Window plugin and Aerosys' WYSIWYG Custom Menus plugin, specifically with padding. Aerosys' Main Menu plugin set global padding for all windows.  It appears the global window padding setting in the Main Menu plugin overrides the padding set in the Face Window plugin. 

I've tried a bunch of troubleshooting steps. It's clear that changing the padding setting in Aerosys' Main Menu global window settings affects the face window. Whatever number the global padding is changed to is clearly reflected in the position of the image in the face window. If it's set to 0, the image is aligned in the top left corner (no padding added).

I'm trying to use Face Window to put the bottom edge of a portrait image against the message window. It's working, except for this padding issue. If I turn off the global padding in Custom Menus, it messes up the menu templates because not all windows allow you to set custom padding. If I turn it on, I get this additional padding I cannot compensate for. I tried deleting the portion of the window width/height formula that adds padding in the Face Window script but that doesn't stop Custom Menu from adding padding to the face window.  Changing the window to transparent doesn't help because the face window just knocks out the window below and you get an ugly cutout where the transparent padding overlaps the message window.

I'm trying to figure out the easiest way to resolve this conflict, not knowing very much about programing or scripting myself. I'm guessing the reason this happens is because the new face window is using the base window code, and Custom Menus is editing the padding to that code that then gets pushed into the face window regardless of the padding settings in . I would appreciate if you have advice how to proceed with what looks like a simple fix that I just cannot figure out. 

Developer

Hi there!

Thanks for th detailed explanation. I think I may have fixed the issue. on the 3.0.2 version Let me know.

Thank you for the quick reply. With only Face Window on (no other plugins), it's still grabbing 12 px from somewhere even when the padding is set to 0 in the plugin.  With Custom Menus turned on, I'm getting the same behaviour as before, no padding if the global setting is 0 and padding if there's any number in the box. I made a new project with only Book+Face Window and UI Customizer and the behaviour is also the same. 

Developer

Understood. Did another attempt. Let's see if it will work now on version 3.0.3.

I don't know if MK UI is designed to only work on scene menu or to build menus on every scene. But if it is supposed to only wotk on Menu Scenes, it seems to be pretty agressive with his changes.  Because it changes and overwrites some functions of Window_Base without taking into consideration if the context is on a menu sce eor not. The result is that, Window_Base is also used outside of menu context. So every window seems to get be affected by his changes.

Hopefully this fix will do the trick now. Let me know.

(+1)

That worked! Thank you very much. I'll give your Patreon some love.

Developer

Thank you my friend! Glad I manage to help!

Have fun!

Developer locked this topic