@urso/core 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urso/core",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -22,7 +22,7 @@ class ModulesObjectsModelsCheckbox extends UrsoCoreModulesObjectsModelsToggle {
22
22
  this.contents = [];
23
23
 
24
24
  this.action = Urso.helper.recursiveGet('action', params, () => {
25
- this.emit(Urso.events.MODULES_OBJECTS_CHECKBOX_PRESS, { name: this.name, status: this.status })
25
+ this.emit(Urso.events.MODULES_OBJECTS_CHECKBOX_PRESS, { name: this.name, status: this.status, class: this.class })
26
26
  });
27
27
 
28
28
  this.lable = Urso.helper.recursiveGet('lable', params, false);
@@ -57,7 +57,6 @@ class ModulesObjectsModelsSpine extends Urso.Core.Modules.Objects.BaseModel {
57
57
  this._baseObject.state.timeScale = config.timeScale;
58
58
 
59
59
  if (config.onComplete) {
60
- window.asd = this._baseObject.state
61
60
  this._baseObject.state.clearListeners();
62
61
  this._baseObject.state.addListener({ complete: this.animation.onComplete });
63
62
  }
@@ -18,7 +18,7 @@ class ModulesObjectsModelsToggle extends UrsoCoreModulesObjectsModelsButton {
18
18
  super.setupParams(params);
19
19
 
20
20
  this.action = Urso.helper.recursiveGet('action', params, () => {
21
- this.emit(Urso.events.MODULES_OBJECTS_TOGGLE_PRESS, { name: this.name, status: this.status })
21
+ this.emit(Urso.events.MODULES_OBJECTS_TOGGLE_PRESS, { name: this.name, status: this.status, class: this.class })
22
22
  });
23
23
 
24
24
  this.buttonFrames = {
@@ -148,7 +148,7 @@ class ModulesObjectsModelsToggle extends UrsoCoreModulesObjectsModelsButton {
148
148
  this._changeTexture(`${this.status}Out`);
149
149
  }
150
150
 
151
- swithStatus() {
151
+ switchStatus() {
152
152
  this.status = this.status === 'pressed' ? 'unpressed' : 'pressed';
153
153
 
154
154
  if (this._isOver)