@ts-defold/types 1.2.6 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +34 -3
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Defold Types
2
- <a href="https://discord.gg/eukcq5m"><img alt="Chat with us!" src="https://img.shields.io/discord/766898804896038942.svg?colorB=7581dc&logo=discord&logoColor=white"></a>
3
2
  <a href="https://www.npmjs.com/package/@ts-defold/type-gen"><img alt="npm install" src="https://img.shields.io/npm/dt/@ts-defold/types?color=%23CA0000&label=npm&logo=npm"></a>
3
+ <a href="https://discord.gg/eukcq5m"><img alt="Chat with us!" src="https://img.shields.io/discord/766898804896038942.svg?colorB=7581dc&logo=discord&logoColor=white"></a>
4
4
  > TypeScript definitions for [Defold](https://defold.com/)
5
5
 
6
6
  ## Installation
package/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  /// <reference types="lua-types/5.1" />
3
3
  /// <reference types="typescript-to-lua/language-extensions" />
4
4
 
5
- // DEFOLD. stable version 1.2.189 (8894457f85514465165401c664f5ba79a7730804)
5
+ // DEFOLD. stable version 1.2.190 (d31d6397a72178541a5ef6e7ef2bed090d828f58)
6
6
  // =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= //
7
7
 
8
8
 
@@ -742,9 +742,12 @@ The id of the animated property.
742
742
  * gets a named property of the specified game object or component
743
743
  * @param url url of the game object or component having the property
744
744
  * @param property id of the property to retrieve
745
+ * @param options (optional) options table
746
+ index into array property (1 based)
747
+ name of internal property
745
748
  * @return value the value of the specified property
746
749
  */
747
- export function get(url: string | hash | url, property: string | hash): any
750
+ export function get(url: string | hash | url, property: string | hash, options: any): any
748
751
 
749
752
  /**
750
753
  * Returns or constructs an instance identifier. The instance id is a hash
@@ -848,8 +851,11 @@ The id of the animated property.
848
851
  * @param url url of the game object or component having the property
849
852
  * @param property id of the property to set
850
853
  * @param value the value to set
854
+ * @param options (optional) options table
855
+ index into array property (1 based)
856
+ name of internal property
851
857
  */
852
- export function set(url: string | hash | url, property: string | hash, value: any): void
858
+ export function set(url: string | hash | url, property: string | hash, value: any, options: any): void
853
859
 
854
860
  /**
855
861
  * Sets the parent for a game object instance. This means that the instance will exist in the geometrical space of its parent,
@@ -930,6 +936,12 @@ The id of the animated property.
930
936
  declare namespace gui {
931
937
 
932
938
 
939
+ /**
940
+ * The fonts used in the gui. The type of the property is hash.
941
+ * Key must be specified in options table.
942
+ */
943
+ export let fonts: any
944
+
933
945
  /**
934
946
  * fit adjust mode
935
947
  */
@@ -1523,6 +1535,12 @@ with a custom curve. See the animation guide for more information.
1523
1535
  */
1524
1536
  export function get_adjust_mode(node: node): any
1525
1537
 
1538
+ /**
1539
+ * gets the node alpha
1540
+ * @param node node from which to get alpha
1541
+ */
1542
+ export function get_alpha(node: node): void
1543
+
1526
1544
  /**
1527
1545
  * Returns the blend mode of a node.
1528
1546
  * Blend mode defines how the node will be blended with the background.
@@ -2139,6 +2157,13 @@ The rate with which the animation will be played. Must be positive
2139
2157
  */
2140
2158
  export function set_adjust_mode(node: node, adjust_mode: any): void
2141
2159
 
2160
+ /**
2161
+ * sets the node alpha
2162
+ * @param node node for which to set alpha
2163
+ * @param alpha 0..1 alpha color
2164
+ */
2165
+ export function set_alpha(node: node, alpha: number): void
2166
+
2142
2167
  /**
2143
2168
  * Set the blend mode of a node.
2144
2169
  * Blend mode defines how the node will be blended with the background.
@@ -2563,6 +2588,12 @@ The rate with which the animation will be played. Must be positive
2563
2588
 
2564
2589
 
2565
2590
 
2591
+ /**
2592
+ * The textures used in the gui. The type of the property is hash.
2593
+ * Key must be specified in options table.
2594
+ */
2595
+ export let textures: any
2596
+
2566
2597
 
2567
2598
  }
2568
2599
  // =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-defold/types",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "TypeScript definitions for Defold",
5
5
  "repository": "github:ts-defold/types",
6
6
  "keywords": [