Skip to content

Commit

Permalink
Removed timeline for master
Browse files Browse the repository at this point in the history
  • Loading branch information
luizzeroxis committed Jul 28, 2023
1 parent 2875ee8 commit 9234a44
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/editor/windows/HWindowTimeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ export default class HWindowTimeline extends HWindow {

parent(this.client);
parent( add( new HElement("div", {class: "panel-container window-timeline"}) ) );

this.divProperties = parent( add( new HElement("div", {class: "properties"}) ) );

this.inputName = add( new HTextInput("Name:", this.resource.name) );

/*
parent( add( new HElement("div") ) );
add( new HButton("Add", () => {
const step = parseInt(prompt("Indicate the moment:", (this.getSelectedMoment()?.step ?? -1) + 1));
Expand Down Expand Up @@ -118,6 +117,7 @@ export default class HWindowTimeline extends HWindow {
// }) );
// endparent();
*/

parent( add( new HElement("div") ) );
add( new HButton("OK", () => {
Expand All @@ -127,7 +127,7 @@ export default class HWindowTimeline extends HWindow {
endparent();

endparent();

/*
parent( add( new HElement("div", {class: "moments"}) ) );
this.selectMoments = add( new HSelect("Moments:", "moments-list") );
Expand All @@ -148,32 +148,34 @@ export default class HWindowTimeline extends HWindow {
moment.actions = actions;
this.onUpdate();
}, "a moment"));

*/
endparent();

endparent();

/*
this.updateSelectMoments();
this.selectMoments.setSelectedIndex(0);
this.actionsEditor.updateActions(this.getSelectedMoment()?.actions);

*/
setDeepOnUpdateOnElement(this.divProperties, () => this.onUpdate());
}

onAdd() {
super.onAdd();

/*
this.listeners = this.editor.project.dispatcher.listen({
changeResourceName: () => {
this.updateSelectMoments();
this.actionsEditor.updateActions();
},
});
*/
}

onRemove() {
/*
this.editor.project.dispatcher.stopListening(this.listeners);
*/
}

copyData() {
Expand All @@ -200,7 +202,7 @@ export default class HWindowTimeline extends HWindow {
updateTitle() {
this.setTitle("Time Line Properties: "+this.resource.name);
}

/*
getSelectedMoment() {
return this.resource.moments.find(moment => this.selectMoments.getValue() == moment.step.toString());
}
Expand All @@ -222,6 +224,7 @@ export default class HWindowTimeline extends HWindow {
this.selectMoments.setSelectedIndex(Math.min(index, this.resource.moments.length-1));
}
*/

close() {
if (this.modified) {
Expand Down

0 comments on commit 9234a44

Please sign in to comment.