Skip to content

feat: Extend Lua API#38

Merged
michyaraque merged 10 commits intoOTAcademy:masterfrom
michyaraque:extend-api
Jan 28, 2026
Merged

feat: Extend Lua API#38
michyaraque merged 10 commits intoOTAcademy:masterfrom
michyaraque:extend-api

Conversation

@michyaraque
Copy link
Collaborator

@michyaraque michyaraque commented Jan 24, 2026

This PR expands the Lua API with advanced UI styling, new widget containers, and improved map overlay interaction.

Lua API & UI

  • Styling: Added support for bgcolor, fgcolor, hover colors, fonts, margins, and padding in dialogs.
  • Widgets: Introduced panel() and endpanel() for better layout control.
  • Colors: Added a new global Color helper class.
  • Safety: Implemented a custom safe dofile for secure script execution.

Map Overlay

  • Added support for rendering sprites directly via the overlay API.
  • Improved event listener handling to prevent conflicts.

Documentation & Maintenance

  • Version: Bumped application version from 4.2.0 to 4.3.0.
  • Docs: Updated README.md and linter.lua definitions.
  • Examples: Updated hello_world script to demonstrate new capabilities.

This allows for the creation of richer, more stylized, and complex interfaces using Lua .

@michyaraque michyaraque requested a review from Erza January 24, 2026 21:54
Implemented a custom safe dofile function to restrict file access and prevent directory traversal.
@michyaraque michyaraque changed the title feat: Extend mapOverlay API feat: Extend Lua API Jan 28, 2026
@michyaraque michyaraque merged commit 5b179c2 into OTAcademy:master Jan 28, 2026
@michyaraque michyaraque deleted the extend-api branch January 28, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant