Skip to content

Commit

Permalink
02/23/2012 *0.3 Build 212*
Browse files Browse the repository at this point in the history
--------------------------
* Fixed an issue when entering scene gets mouse input.
* Added to CAAT.Scene the following methods:
   + findActorAtPosition(CAAT.Point) : custom actor find procedure. This is overriden to attend at the priority input lists.
   + enableInputList(number) :  number of priority lists to set for this scene. A priority list is a list of actors to
                                which are suitable to receive input first. If no actor on the priority lists are under
                                the cursor, the whole scene graph is traversed instead.
   + addActorToInputList( actor, index, position ) : add an actor to a given priority list at certain position.
   + emptyInputList( index ) : remove all elements from a list.
   + removeActorFromInputList( actor, index ) : remove an actor from a list, or if no index list is supplied remove
       the actor from every list in which appears.
* Fixed Actor.setImageTransformation( CAAT.SpriteImage.prototype.TR_TILE ) which didn't honor actor position and offset
  to appropriately place the tiling image. Also the performance sink when using this flag with huge actors's been fixed.
  • Loading branch information
hyperandroid committed Feb 23, 2012
1 parent 11cad28 commit b665281
Show file tree
Hide file tree
Showing 59 changed files with 2,373 additions and 1,977 deletions.
4 changes: 2 additions & 2 deletions build/caat-box2d-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/caat-box2d.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Version: 0.3 build: 209
Version: 0.3 build: 213
Created on:
DATE: 2012-02-23
TIME: 17:04:10
TIME: 17:38:27
*/


Expand Down
22 changes: 11 additions & 11 deletions build/caat-css-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 14 additions & 9 deletions build/caat-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Version: 0.3 build: 209
Version: 0.3 build: 213
Created on:
DATE: 2012-02-23
TIME: 17:04:09
TIME: 17:38:26
*/


Expand Down Expand Up @@ -9670,6 +9670,9 @@ var cp1= proxy(
// transformar coordenada inversamente con affine transform de director.

var pt= new CAAT.Point( posx, posy );
if ( !this.modelViewMatrixI ) {
this.modelViewMatrixI= this.modelViewMatrix.getInverse();
}
this.modelViewMatrixI.transformCoord(pt);
posx= pt.x;
posy= pt.y
Expand Down Expand Up @@ -9762,6 +9765,8 @@ var cp1= proxy(
var lactor;
var pos;

var ct= this.currentScene ? this.currentScene.time : 0;

// drag

if (this.isMouseDown && null !== this.lastSelectedActor) {
Expand Down Expand Up @@ -9793,7 +9798,7 @@ var cp1= proxy(
new CAAT.Point(
this.screenMousePoint.x,
this.screenMousePoint.y),
this.currentScene.time));
ct));

this.prevMousePoint.x= pos.x;
this.prevMousePoint.y= pos.y;
Expand All @@ -9813,7 +9818,7 @@ var cp1= proxy(
e,
lactor,
this.screenMousePoint,
this.currentScene.time));
ct));
this.in_ = false;
}

Expand All @@ -9825,7 +9830,7 @@ var cp1= proxy(
e,
lactor,
this.screenMousePoint,
this.currentScene.time));
ct));
this.in_ = true;
}
}
Expand All @@ -9852,7 +9857,7 @@ var cp1= proxy(
e,
this.lastSelectedActor,
this.screenMousePoint,
this.currentScene.time));
ct));
}

if (null !== lactor) {
Expand All @@ -9866,7 +9871,7 @@ var cp1= proxy(
e,
lactor,
this.screenMousePoint,
this.currentScene.time));
ct));
}
}

Expand All @@ -9882,7 +9887,7 @@ var cp1= proxy(
e,
lactor,
this.screenMousePoint,
this.currentScene.time));
ct));
}

this.lastSelectedActor = lactor;
Expand Down Expand Up @@ -9937,7 +9942,7 @@ var cp1= proxy(
e,
lactor,
this.screenMousePoint,
this.currentScene.time);
this.currentScane ? this.currentScene.time : 0);

lactor.mouseOver(ev);
lactor.mouseEnter(ev);
Expand Down
Loading

0 comments on commit b665281

Please sign in to comment.