Karas Zone Selector API For B42
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.
I’ll post detailed usage examples for this API in the Discussions tab.
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