mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 18:00:26 +00:00
[lua] Add "properties" property to all objects with user data
This commit is contained in:
parent
427efef257
commit
e2024c6edd
@ -1,5 +1,5 @@
|
||||
// Aseprite
|
||||
// Copyright (C) 2018-2022 Igara Studio S.A.
|
||||
// Copyright (C) 2018-2023 Igara Studio S.A.
|
||||
// Copyright (C) 2018 David Capello
|
||||
//
|
||||
// This program is distributed under the terms of
|
||||
@ -160,6 +160,7 @@ const Property Cel_properties[] = {
|
||||
{ "opacity", Cel_get_opacity, Cel_set_opacity },
|
||||
{ "color", UserData_get_color<Cel>, UserData_set_color<Cel> },
|
||||
{ "data", UserData_get_text<Cel>, UserData_set_text<Cel> },
|
||||
{ "properties", UserData_get_properties<Cel>, UserData_set_properties<Cel> },
|
||||
{ nullptr, nullptr, nullptr }
|
||||
};
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Aseprite
|
||||
// Copyright (C) 2018-2022 Igara Studio S.A.
|
||||
// Copyright (C) 2018-2023 Igara Studio S.A.
|
||||
// Copyright (C) 2018 David Capello
|
||||
//
|
||||
// This program is distributed under the terms of
|
||||
@ -406,6 +406,7 @@ const Property Layer_properties[] = {
|
||||
{ "cels", Layer_get_cels, nullptr },
|
||||
{ "color", UserData_get_color<Layer>, UserData_set_color<Layer> },
|
||||
{ "data", UserData_get_text<Layer>, UserData_set_text<Layer> },
|
||||
{ "properties", UserData_get_properties<Layer>, UserData_set_properties<Layer> },
|
||||
{ "tileset", Layer_get_tileset, nullptr },
|
||||
{ nullptr, nullptr, nullptr }
|
||||
};
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Aseprite
|
||||
// Copyright (C) 2018-2022 Igara Studio S.A.
|
||||
// Copyright (C) 2018-2023 Igara Studio S.A.
|
||||
// Copyright (C) 2018 David Capello
|
||||
//
|
||||
// This program is distributed under the terms of
|
||||
@ -145,6 +145,7 @@ const Property Slice_properties[] = {
|
||||
{ "pivot", Slice_get_pivot, Slice_set_pivot },
|
||||
{ "color", UserData_get_color<Slice>, UserData_set_color<Slice> },
|
||||
{ "data", UserData_get_text<Slice>, UserData_set_text<Slice> },
|
||||
{ "properties", UserData_get_properties<Slice>, UserData_set_properties<Slice> },
|
||||
{ nullptr, nullptr, nullptr }
|
||||
};
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Aseprite
|
||||
// Copyright (C) 2018-2022 Igara Studio S.A.
|
||||
// Copyright (C) 2018-2023 Igara Studio S.A.
|
||||
// Copyright (C) 2015-2018 David Capello
|
||||
//
|
||||
// This program is distributed under the terms of
|
||||
@ -882,7 +882,7 @@ const Property Sprite_properties[] = {
|
||||
{ "gridBounds", Sprite_get_gridBounds, Sprite_set_gridBounds },
|
||||
{ "color", UserData_get_color<Sprite>, UserData_set_color<Sprite> },
|
||||
{ "data", UserData_get_text<Sprite>, UserData_set_text<Sprite> },
|
||||
{ "properties", UserData_get_properties<Sprite>, nullptr },
|
||||
{ "properties", UserData_get_properties<Sprite>, UserData_set_properties<Sprite> },
|
||||
{ "pixelRatio", Sprite_get_pixelRatio, Sprite_set_pixelRatio },
|
||||
{ "events", Sprite_get_events, nullptr },
|
||||
{ nullptr, nullptr, nullptr }
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Aseprite
|
||||
// Copyright (C) 2018-2022 Igara Studio S.A.
|
||||
// Copyright (C) 2018-2023 Igara Studio S.A.
|
||||
// Copyright (C) 2018 David Capello
|
||||
//
|
||||
// This program is distributed under the terms of
|
||||
@ -162,6 +162,7 @@ const Property Tag_properties[] = {
|
||||
{ "repeats", Tag_get_repeats, Tag_set_repeats }, // Cannot be "repeat" because it's a Lua keyword
|
||||
{ "color", UserData_get_color<Tag>, UserData_set_color<Tag> },
|
||||
{ "data", UserData_get_text<Tag>, UserData_set_text<Tag> },
|
||||
{ "properties", UserData_get_properties<Tag>, UserData_set_properties<Tag> },
|
||||
{ nullptr, nullptr, nullptr }
|
||||
};
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Aseprite
|
||||
// Copyright (C) 2019-2022 Igara Studio S.A.
|
||||
// Copyright (C) 2019-2023 Igara Studio S.A.
|
||||
//
|
||||
// This program is distributed under the terms of
|
||||
// the End-User License Agreement for Aseprite.
|
||||
@ -100,6 +100,7 @@ const Property Tileset_properties[] = {
|
||||
{ "baseIndex", Tileset_get_baseIndex, Tileset_set_baseIndex },
|
||||
{ "color", UserData_get_color<Tileset>, UserData_set_color<Tileset> },
|
||||
{ "data", UserData_get_text<Tileset>, UserData_set_text<Tileset> },
|
||||
{ "properties", UserData_get_properties<Tileset>, UserData_set_properties<Tileset> },
|
||||
{ nullptr, nullptr, nullptr }
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user