Sha256: 0827968ec06c233bcbfb9b570c75abc767b10d68fa25546176ac11670e0338f9

Contents?: true

Size: 830 Bytes

Versions: 8

Compression:

Stored size: 830 Bytes

Contents

re.c('group')
.defaults({
	posX:0,
	posY:0
})
.defines({
	
	group:function(){
		
		for(var i=0; i<arguments.length; i++){
			arguments[i].comp('group').group
		}
		
	},
	
	ungroup:function(e){
	
	},
	
	/*
	Overwrite old screen functions
	*/
	getScreenX:function(){
		var x = this.posX;
		if(this.group) x += this.group.posX;
		if(this.screen) x += this.screen.posX;
		return x;
	},
	
	getScreenY:function(){
		var y = this.posY;
		if(this.group) y += this.group.posY;
		if(this.screen) y += this.screen.posY;
		return y;
	},
	
	/*group:null,*/
	
	getGroupX:function(){
		var x = this.posX;
		if(this.group){
			x += this.group.posX;
		}
		return x;
	},
	
	getGroupY:function(){
		var y = this.posY;
		if(this.group){
			y += this.group.posY;
		}
		return y;
	},
	
	setGroupX:function(x){
	
	},
	
	setGroupY:function(y){
	
	}
	
});

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
entityjs-0.4.4 src/display/group.js
entityjs-0.4.3 src/display/group.js
entityjs-0.4.2 src/display/group.js
entityjs-0.4.1 src/display/group.js
entityjs-0.4.0 src/display/group.js
entityjs-0.3.2 src/display/group.js
entityjs-0.3.1 src/display/group.js
entityjs-0.3.0 src/display/group.js