subsoap / defos

Extra native OS functions for games written using the Defold game engine
Creative Commons Zero v1.0 Universal
121 stars 16 forks source link

Linter warning #136

Closed padreputativo closed 3 months ago

padreputativo commented 3 months ago

I know it's silly, but it makes me nervous to see this warning every time I use the extension. I've been told that this website explains how to fix it, but I don't understand where or how to do it so I can't help.

Screenshot from 2024-08-18 11-13-19

https://defold.com/manuals/extensions-script-api/

padreputativo commented 3 months ago

It seems that writing a file named defos.script_api anywhere in the project and putting the following content solves it:

- name: defos
  type: table
  desc: The Defos extension provides functions to manage windows, cursors, displays, and events in the Defold game engine. It allows for advanced control over window properties, mouse events, and display configurations.

  members:
  - name: disable_maximize_button
    type: function
    desc: Disables the maximize button on the window.
    examples:
    - desc: Disables the maximize button, preventing users from maximizing the window.

Many thanks to Manga for the solution

padreputativo commented 3 months ago

I did a PR