Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Improved Compatibility for GM Action Libraries #240
These are not regressions and existed in 16b4, the transparency is not removed and the image is not cropped to 24x24 as described below.
First addition is adding the /lib folder to .gitignore so nobody accidentally commits it.
In GameMaker, the bottom left pixel of an action image is used as the transparency key just like sprites. I decided to use the utility method for the transparency key because it already implements the correct behavior. I then crop the image to 24x24 as the manual by Mark Overmars states. This addresses the issue originally reported in #161. This is not a more elaborate fix like I constructed for the master branch. So, it is important to note that this means the action libraries can not be written back to disk by LGM, which is generally ok because LGM does not need to do that, only the action library editor does. LGM also doesn't even have the code to save the libraries if it wanted to.
From the official Mark Overmar's Action Library Maker the manual states:
To verify as best as I could, I created the following action image (must be BMP for GM's format, GitHub does not support BMP).
Also addressed is an issue where if there was no "- Label" action (the little caption above a group of actions) LGM would throw the actions onto the previous library tab (which could be null/lead to an exception), and that made no sense because it was not part of that library, it would leave its own library tab empty. That was addressed by moving the local inside the for loop, afterwards LGM behaves exactly as GM8.1.