Skip to content

Commit

Permalink
Set default gate and use user selected track name
Browse files Browse the repository at this point in the history
  • Loading branch information
stylesuxx committed Dec 21, 2021
1 parent 6416d98 commit daa1dc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/Canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class Canvas extends React.Component {
}

if (!nextProps.canvas.trackRendered) {
const name = this.props.track.name;
const doubleLine = this.props.track.doubleLine;
const markerSpacing = this.props.track.markerSpacing;
const gateSpacing = this.props.track.gateSpacing;
Expand All @@ -55,7 +56,7 @@ class Canvas extends React.Component {
track.getTrackXML(this.props.track.name, this.props.track.map,
(value, id) => { this.props.actions.setTrackText({ id, value }); });

track.getRaceXML('Race 01',
track.getRaceXML(name,
(value, id) => { this.props.actions.setRaceText({ id, value }); });

this.props.actions.renderPreview();
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Liftoff/Track.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class Track {
const trackXML = '<?xml version="1.0" encoding="utf-16"?><Track xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><gameVersion>0.8.1</gameVersion><localID><str /><version>1</version><type>TRACK</type></localID><name /><description /><dependencies /><environment /><blueprints></blueprints><lastTrackItemID>0</lastTrackItemID></Track>';
const that = this;
const markerType = this.markerType;
const gateType = null;
const gateType = 'AirgateBigLiftoffDark01';
const z = this.maps[map].z;
const id = this.trackId;

Expand Down

0 comments on commit daa1dc7

Please sign in to comment.