|
|
@@ -1800,6 +1800,8 @@ declare module Atomic {
|
|
|
getChildAtIndex(index:number):Node;
|
|
|
createJSComponent(name:string, args?:{});
|
|
|
getJSComponent(name:string):JSComponent;
|
|
|
+ createChildPrefab(childName:string, prefabPath:string):Node;
|
|
|
+ loadPrefab(prefabPath:string):boolean;
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -1824,7 +1826,6 @@ declare module Atomic {
|
|
|
export class PrefabComponent extends Component {
|
|
|
|
|
|
prefabGUID: string;
|
|
|
- prefabNode: Node;
|
|
|
|
|
|
// Construct.
|
|
|
constructor();
|
|
|
@@ -1834,7 +1835,6 @@ declare module Atomic {
|
|
|
savePrefab(): boolean;
|
|
|
undoPrefab(): void;
|
|
|
breakPrefab(): void;
|
|
|
- getPrefabNode(): Node;
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -4566,8 +4566,8 @@ declare module Atomic {
|
|
|
onSetEnabled(): void;
|
|
|
// Set speed.
|
|
|
setSpeed(speed: number): void;
|
|
|
- // Set animation by animation set, name and loop mode.
|
|
|
- setAnimation(animationSet: AnimationSet2D, name: string, loopMode?: LoopMode2D): void;
|
|
|
+ // Set animation by name and loop mode.
|
|
|
+ setAnimation(name: string, loopMode?: LoopMode2D): void;
|
|
|
// Set animation set.
|
|
|
setAnimationSet(animationSet: AnimationSet2D): void;
|
|
|
// Set loop mode.
|
|
|
@@ -5206,7 +5206,7 @@ declare module Atomic {
|
|
|
|
|
|
export class Light2D extends Component {
|
|
|
|
|
|
- lightGroup: Light2DGroup;
|
|
|
+ lightGroupID: number;
|
|
|
color: Color;
|
|
|
numRays: number;
|
|
|
lightType: LightType2D;
|
|
|
@@ -5218,8 +5218,8 @@ declare module Atomic {
|
|
|
// Construct.
|
|
|
constructor();
|
|
|
|
|
|
- setLightGroup(group: Light2DGroup): void;
|
|
|
- getLightGroup(): Light2DGroup;
|
|
|
+ setLightGroupID(id: number): void;
|
|
|
+ getLightGroupID(): number;
|
|
|
getColor(): Color;
|
|
|
setColor(color: Color): void;
|
|
|
updateVertices(): void;
|
|
|
@@ -5277,17 +5277,20 @@ declare module Atomic {
|
|
|
|
|
|
physicsWorld: PhysicsWorld2D;
|
|
|
ambientColor: Color;
|
|
|
+ lightGroupID: number;
|
|
|
frustumBox: BoundingBox;
|
|
|
|
|
|
// Construct.
|
|
|
constructor();
|
|
|
|
|
|
- setPhysicsWorld(physicsWorld: PhysicsWorld2D): void;
|
|
|
getPhysicsWorld(): PhysicsWorld2D;
|
|
|
addLight2D(light: Light2D): void;
|
|
|
+ removeLight2D(light: Light2D): void;
|
|
|
setDirty(): void;
|
|
|
setAmbientColor(color: Color): void;
|
|
|
getAmbientColor(): Color;
|
|
|
+ setLightGroupID(id: number): void;
|
|
|
+ getLightGroupID(): number;
|
|
|
getFrustumBox(): BoundingBox;
|
|
|
|
|
|
}
|
|
|
@@ -7094,6 +7097,7 @@ declare module Atomic {
|
|
|
addRootItem(text: string, icon: string, id: string): number;
|
|
|
addChildItem(parentItemID: number, text: string, icon: string, id: string): number;
|
|
|
setItemText(id: string, text: string): void;
|
|
|
+ setItemTextSkin(id: string, skin: string): void;
|
|
|
setItemIcon(id: string, icon: string): void;
|
|
|
deleteItemByID(id: string): void;
|
|
|
setExpanded(itemID: number, value: boolean): void;
|