Karas Zone Selector API For B42

If you liked this item, please rate it up on Steam Workshop page.

Author: Karas

Last revision: 26 Jan at 16:22 UTC

File size: 151.48 KB

On Steam Workshop

Description:
This is a lightweight API I made for a friend, but feel free to use it too.

What does this mod do?

1 The Area Selector is a region selection API built for mod development.
2 It can quickly retrieve all GridSquares within the selected region and return them as a JavaList and a LuaTable.
3 You can choose to use either the JavaList or LuaTable traversal method.
4 This API supports two drawing modes: Unrestricted Region and Restricted Region, and you can manually configure their callback functions.
5 Lets users register a validation function the API determines the color of the selection box based on the RGBA color values returned by this function.

How does it work?

I’ll post detailed usage examples for this API in the Discussions tab.

Important Notes

Try not to directly copy its code into your mod—instead, use it as a required dependency mod. Unless someone’s holding a gun to your head and forcing you to do otherwise, of course.

Workshop ID: 3653913180
Mod ID: Karas Zone Selector API