Skip to content

Commit

Permalink
Closes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
makc committed May 31, 2013
1 parent a750f72 commit a9c9260
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions ColtPlugin/PluginMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -507,10 +507,17 @@ private void OpenInCOLT()
stream.WriteLine("target=SWF"); // use project.MovieOptions.Platform switch ??

String outputPath = project.OutputPath;
// fixme: colt does not take paths atm
int lastSlash = outputPath.LastIndexOf(@"\");
if (lastSlash > -1) outputPath = outputPath.Substring(lastSlash + 1);
stream.WriteLine("outputFileName=" + outputPath);
if (lastSlash > -1)
{
stream.WriteLine("outputPath=" + outputPath.Substring(0, lastSlash));
stream.WriteLine("outputFileName=" + outputPath.Substring(lastSlash + 1));
}

else
{
stream.WriteLine("outputFileName=" + outputPath);
}

stream.WriteLine("useDefaultSDKConfiguration=true");

Expand All @@ -519,6 +526,11 @@ private void OpenInCOLT()
sourcePaths += EscapeForCOLT(project.GetAbsolutePath(sourcePath)) + ";";
stream.WriteLine("sourcePaths=" + sourcePaths);

// size, frame rate and background color
stream.WriteLine("compilerOptions=-default-size " + project.MovieOptions.Width + " " + project.MovieOptions.Height +
" -default-frame-rate " + project.MovieOptions.Fps +
" -default-background-color " + project.MovieOptions.BackgroundColorInt);

stream.Close();

// Open it with default app (COLT)
Expand Down

0 comments on commit a9c9260

Please # to comment.