Modding Discussion widget.removeListItem() uses 0-based index

Discussion in 'Starbound Modding' started by Tobias1595, Sep 13, 2019.

  1. Tobias1595

    Tobias1595 Big Damn Hero

    The method widget.removeListItem(widgetName, at) uses 0-based indexing instead of the Lua-typical 1-based one. I.e. deleting the first item of a list requires at = 0, which is inconsistent with regular Lua behavior.
     
  2. Errors4l

    Errors4l Spaceman Spiff

    I forgot which API function it was but something related to list items is (or was) literally negative 1-based. This likely won't be fixed so it's just something you'll have to deal with.
     

Share This Page