Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #117 from modjke/dev
Browse files Browse the repository at this point in the history
Updates for Texture, Resource, ResourceLoader
  • Loading branch information
adireddy authored Mar 13, 2017
2 parents ecebae1 + 5965aeb commit 34a9ee7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
7 changes: 0 additions & 7 deletions src/pixi/core/textures/Texture.hx
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,6 @@ extern class Texture extends EventEmitter {
*/
var crop:Rectangle;

/**
* The pivot point to used for a sprite this texture belongs to.
*
* @member {Point}
*/
var spritePivot:Point;

/**
* The rotation value of the texture, copied to a sprite when assigned to it.
*
Expand Down
3 changes: 3 additions & 0 deletions src/pixi/loaders/Resource.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package pixi.loaders;

import pixi.core.textures.Spritesheet;
import pixi.core.textures.Texture;

extern class Resource {
Expand All @@ -23,6 +24,8 @@ extern class Resource {

var textures:Dynamic<Texture>;

var spritesheet:Spritesheet;

var bitmapFont:Dynamic;

/**
Expand Down
8 changes: 4 additions & 4 deletions src/pixi/loaders/ResourceLoader.hx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ extern class ResourceLoader extends EventEmitter {
* @param middleware {function} The middleware function to register.
* @return {Loader}
*/
function after(fn:Resource -> Dynamic -> Void):ResourceLoader;
function after(fn:Resource -> (Void->Void) -> Void):ResourceLoader;

/**
* Sets up a middleware function that will run *before* the
Expand All @@ -116,7 +116,7 @@ extern class ResourceLoader extends EventEmitter {
* @param middleware {function} The middleware function to register.
* @return {Loader}
*/
function before(fn:Resource -> Dynamic -> Void):ResourceLoader;
function before(fn:Resource -> (Void->Void) -> Void):ResourceLoader;

/**
* Resets the queue of the loader to prepare for a new load.
Expand Down Expand Up @@ -147,14 +147,14 @@ extern class ResourceLoader extends EventEmitter {
*
* @param {function} function to call
*/
function use(fn:Resource -> Dynamic -> Void):Void;
function use(fn:Resource -> (Void->Void) -> Void):Void;

/**
* Middleware function
*
* @param {function} function to call
*/
function pre(fn:Resource -> Dynamic -> Void):ResourceLoader;
function pre(fn:Resource -> (Void->Void) -> Void):ResourceLoader;
}

typedef ResourceObject = {
Expand Down

0 comments on commit 34a9ee7

Please sign in to comment.