Skip to content

Commit

Permalink
Fix destroy issue reported Ezelia#7
Browse files Browse the repository at this point in the history
Fix uglify compatibility Ezelia#3
  • Loading branch information
Alaa-eddine committed May 15, 2015
1 parent 2413e3a commit 5434d2d
Show file tree
Hide file tree
Showing 15 changed files with 1,241 additions and 1,227 deletions.
184 changes: 92 additions & 92 deletions dist/EZGUI.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
/// <reference path="../lib/pixi.d.ts" />
/// <reference path="../lib/PIXI.d.ts" />
declare module EZGUI.Compatibility {
var PIXIVersion: number;
var isPhaser: boolean;
var BitmapText: any;
class TilingSprite {
constructor(texture: PIXI.Texture, width: number, height: number);
}
class GUIContainer extends PIXI.DisplayObjectContainer {
}
class GUIDisplayObjectContainer extends GUIContainer {
phaserGroup: any;
static globalPhaserGroup: any;
_listeners: any;
constructor();
}
function createRenderTexture(width: any, height: any): any;
}
declare module EZGUI {
var Easing: {
Linear: {
Expand Down Expand Up @@ -131,22 +148,30 @@ declare module EZGUI.utils {
trigger(event: any, ...args: any[]): void;
}
}
declare module EZGUI.Compatibility {
var PIXIVersion: number;
var isPhaser: boolean;
var BitmapText: any;
class TilingSprite {
constructor(texture: PIXI.Texture, width: number, height: number);
}
class GUIContainer extends PIXI.DisplayObjectContainer {
}
class GUIDisplayObjectContainer extends GUIContainer {
protected phaserGroup: any;
static phaserGroup: any;
_listeners: any;
constructor();
}
function createRenderTexture(width: any, height: any): any;
declare module EZGUI {
var VERSION: string;
var tilingRenderer: any;
var dragging: any;
var dsx: number;
var dsy: number;
var startDrag: {
x: any;
y: any;
t: any;
};
var game: any;
var themes: {};
var components: {};
var radioGroups: any;
var EventsHelper: utils.EventHandler;
/**
* generic settings object
* accepted parameters
* crossOrigin : true/false
*/
var settings: any;
function registerComponents(cpt: any, id?: any): void;
function create(settings: any, theme: any): any;
}
declare var Phaser: any;
declare module EZGUI {
Expand Down Expand Up @@ -178,31 +203,6 @@ declare module EZGUI {
applySkin(settings: any): any;
}
}
declare module EZGUI {
var VERSION: string;
var tilingRenderer: any;
var dragging: any;
var dsx: number;
var dsy: number;
var startDrag: {
x: any;
y: any;
t: any;
};
var game: any;
var themes: {};
var components: {};
var radioGroups: any;
var EventsHelper: utils.EventHandler;
/**
* generic settings object
* accepted parameters
* crossOrigin : true/false
*/
var settings: any;
function registerComponents(cpt: any, id?: any): void;
function create(settings: any, theme: any): any;
}
declare module EZGUI {
class MultistateSprite extends PIXI.Sprite {
stateTextures: any;
Expand Down Expand Up @@ -277,118 +277,114 @@ declare module EZGUI {
}
}
declare module EZGUI.Component {
class Label extends GUISprite {
class Button extends GUISprite {
_settings: any;
themeId: any;
constructor(_settings: any, themeId: any);
protected setupEvents(): void;
protected handleEvents(): void;
protected draw(): void;
}
}
declare module EZGUI.Component {
class Slider extends GUISprite {
class Checkbox extends Button {
_settings: any;
themeId: any;
value: number;
private slide;
private horizontalSlide;
protected _checked: boolean;
protected _checkmark: any;
checked: boolean;
text: string;
constructor(_settings: any, themeId: any);
protected setupEvents(): void;
protected drawText(): void;
protected handleEvents(): void;
protected draw(): void;
protected drawText(): void;
}
}
declare module EZGUI.Component {
class Layout extends GUISprite {
class Label extends GUISprite {
_settings: any;
themeId: any;
guiMask: any;
constructor(_settings: any, themeId: any);
protected setupEvents(): void;
protected handleEvents(): void;
protected draw(): void;
createChild(childSettings: any, order?: any): any;
addChildAt(child: any, index: any): PIXI.DisplayObject;
}
}
declare module EZGUI.Component {
class Window extends Layout {
class Layout extends GUISprite {
_settings: any;
themeId: any;
guiMask: any;
private titleBar;
constructor(_settings: any, themeId: any);
protected draw(): void;
protected handleEvents(): void;
setDraggable(val?: boolean): void;
protected draw(): void;
createChild(childSettings: any, order?: any): any;
addChildAt(child: any, index: any): PIXI.DisplayObject;
}
}
declare module EZGUI.Kit {
class MainScreen extends EZGUI.Component.Window {
declare module EZGUI.Component {
class List extends Layout {
_settings: any;
themeId: any;
private buttonsEvents;
private decelerationItv;
private decelerationSpeed;
private tween;
private slotSize;
private horizontalSlide;
constructor(_settings: any, themeId: any);
protected parseSettings(): void;
protected handleEvents(): void;
private decelerateScroll(endPos);
addChildAt(child: any, index: any): PIXI.DisplayObject;
removeChild(child: any): PIXI.DisplayObject;
slideBy(value: any, delay?: any): void;
slideTo(value: any, delay?: any): void;
}
}
declare module EZGUI.utils.ColorParser {
function parseToPixiColor(str: any): any;
function parseToRGB(str: any): any;
}
declare module EZGUI.Component {
class Button extends GUISprite {
class Radio extends Checkbox {
_settings: any;
themeId: any;
group: any;
static groups: any;
checked: boolean;
constructor(_settings: any, themeId: any);
private clearGroup();
protected handleEvents(): void;
protected draw(): void;
}
}
declare module EZGUI.Component {
class Checkbox extends Button {
class Slider extends GUISprite {
_settings: any;
themeId: any;
protected _checked: boolean;
protected _checkmark: any;
checked: boolean;
text: string;
value: number;
private slide;
private horizontalSlide;
constructor(_settings: any, themeId: any);
protected setupEvents(): void;
protected drawText(): void;
protected handleEvents(): void;
protected draw(): void;
protected drawText(): void;
}
}
declare module EZGUI.Component {
class Radio extends Checkbox {
class Window extends Layout {
_settings: any;
themeId: any;
group: any;
static groups: any;
checked: boolean;
guiMask: any;
private titleBar;
constructor(_settings: any, themeId: any);
private clearGroup();
protected handleEvents(): void;
protected draw(): void;
protected handleEvents(): void;
setDraggable(val?: boolean): void;
}
}
declare module EZGUI.Component {
class List extends Layout {
declare module EZGUI.Kit {
class MainScreen extends EZGUI.Component.Window {
_settings: any;
themeId: any;
private decelerationItv;
private decelerationSpeed;
private tween;
private slotSize;
private horizontalSlide;
private buttonsEvents;
constructor(_settings: any, themeId: any);
protected parseSettings(): void;
protected handleEvents(): void;
private decelerateScroll(endPos);
addChildAt(child: any, index: any): PIXI.DisplayObject;
removeChild(child: any): PIXI.DisplayObject;
slideBy(value: any, delay?: any): void;
slideTo(value: any, delay?: any): void;
}
}
declare module EZGUI {
Expand All @@ -399,6 +395,10 @@ declare module EZGUI {
setState(state?: string): void;
}
}
declare module EZGUI.utils.ColorParser {
function parseToPixiColor(str: any): any;
function parseToRGB(str: any): any;
}
declare module EZGUI.utils {
/**
* check if the the point defined by x and y outside a visible gui element
Expand Down
Loading

0 comments on commit 5434d2d

Please sign in to comment.