Commit MetaInfo

Revision5632f52ade6280b5f09a8f783373b4b95046c918 (tree)
Time2007-03-28 04:27:12
Authorsmirlreverend
Commitersmirlreverend

Log Message

[svn r22] Ported my GDI+ Example from ShuttleVB to C# and Added to DrawHUD in ShuttlePBdotNET.dll
Changed the output directory for StockVessels to /Modules/DotNET instead of /bin/Debug
Changed the output directory for Interfaces and Wrapper to the Orbiter Root folder. This relieves the need to add those Assemblies to the GAC, allowing plugins to be distributed as Zip files without the need for an installer).

Change Summary

Incremental Difference

diff -r aee5dd2139c2 -r 5632f52ade62 Orbiter.Interfaces.dll
Binary file Orbiter.Interfaces.dll has changed
diff -r aee5dd2139c2 -r 5632f52ade62 Orbiter.Wrapper.dll
Binary file Orbiter.Wrapper.dll has changed
diff -r aee5dd2139c2 -r 5632f52ade62 Orbitersdk/samples/Orbiter.NET/Orbiter.Interfaces/Orbiter.Interfaces.csproj
--- a/Orbitersdk/samples/Orbiter.NET/Orbiter.Interfaces/Orbiter.Interfaces.csproj Tue Mar 27 20:56:27 2007 +0200
+++ b/Orbitersdk/samples/Orbiter.NET/Orbiter.Interfaces/Orbiter.Interfaces.csproj Tue Mar 27 21:27:12 2007 +0200
@@ -18,7 +18,7 @@
1818 <DebugSymbols>true</DebugSymbols>
1919 <DebugType>full</DebugType>
2020 <Optimize>false</Optimize>
21- <OutputPath>bin\Debug\</OutputPath>
21+ <OutputPath>..\..\..\..\</OutputPath>
2222 <DefineConstants>DEBUG;TRACE</DefineConstants>
2323 <ErrorReport>prompt</ErrorReport>
2424 <WarningLevel>4</WarningLevel>
diff -r aee5dd2139c2 -r 5632f52ade62 Orbitersdk/samples/Orbiter.NET/Orbiter.Interfaces/bin/Debug/Orbiter.Interfaces.dll
Binary file Orbitersdk/samples/Orbiter.NET/Orbiter.Interfaces/bin/Debug/Orbiter.Interfaces.dll has changed
diff -r aee5dd2139c2 -r 5632f52ade62 Orbitersdk/samples/Orbiter.NET/Orbiter.StockVessels/Orbiter.StockVessels.csproj
--- a/Orbitersdk/samples/Orbiter.NET/Orbiter.StockVessels/Orbiter.StockVessels.csproj Tue Mar 27 20:56:27 2007 +0200
+++ b/Orbitersdk/samples/Orbiter.NET/Orbiter.StockVessels/Orbiter.StockVessels.csproj Tue Mar 27 21:27:12 2007 +0200
@@ -17,11 +17,11 @@
1717 <DebugSymbols>true</DebugSymbols>
1818 <DebugType>full</DebugType>
1919 <Optimize>false</Optimize>
20- <OutputPath>bin\Debug\</OutputPath>
20+ <OutputPath>..\..\..\..\Modules\DotNet\</OutputPath>
2121 <DefineConstants>DEBUG;TRACE</DefineConstants>
2222 <ErrorReport>prompt</ErrorReport>
2323 <WarningLevel>4</WarningLevel>
24- <DocumentationFile>Orbiter.StockVessels.xml</DocumentationFile>
24+ <DocumentationFile>bin\Debug\Orbiter.StockVessels.XML</DocumentationFile>
2525 </PropertyGroup>
2626 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2727 <DebugType>pdbonly</DebugType>
diff -r aee5dd2139c2 -r 5632f52ade62 Orbitersdk/samples/Orbiter.NET/Orbiter.StockVessels/ShuttlePB.cs
--- a/Orbitersdk/samples/Orbiter.NET/Orbiter.StockVessels/ShuttlePB.cs Tue Mar 27 20:56:27 2007 +0200
+++ b/Orbitersdk/samples/Orbiter.NET/Orbiter.StockVessels/ShuttlePB.cs Tue Mar 27 21:27:12 2007 +0200
@@ -1,11 +1,12 @@
11 using System;
2+using System.Drawing;
23 using Orbiter.Interfaces;
34
45 namespace Orbiter.StockVessels
56 {
67 public class ShuttlePB:Vessel2
78 {
8- private const Vessel2Callback callbacks=Vessel2Callback.SetClassCaps;
9+ private const Vessel2Callback callbacks=Vessel2Callback.SetClassCaps | Vessel2Callback.DrawHUD;
910 private const double fuelMass = 750.0;
1011 private const double isp = 5e4;
1112 private const double maximumMainThrust = 3e4;
@@ -222,7 +223,11 @@
222223
223224 public void DrawHUD(int mode, HudPaintSpecification hps, IntPtr hDC)
224225 {
225- throw new NotImplementedException();
226+ Graphics MyHUD = Graphics.FromHdc(hDC);
227+ Font MyFont = new Font("Arial", 10.0F, FontStyle.Regular, GraphicsUnit.Pixel, (byte)(0));
228+ Brush MyBrush = Brushes.Red;
229+ MyHUD.DrawString(".NET Graphics Test (GDI+)", MyFont, MyBrush, 10, 250);
230+ Base.DrawHUD(mode, hps, hDC);
226231 }
227232
228233 public void RCSMode(int mode)
diff -r aee5dd2139c2 -r 5632f52ade62 Orbitersdk/samples/Orbiter.NET/Orbiter.StockVessels/bin/Debug/Orbiter.StockVessels.dll
Binary file Orbitersdk/samples/Orbiter.NET/Orbiter.StockVessels/bin/Debug/Orbiter.StockVessels.dll has changed
diff -r aee5dd2139c2 -r 5632f52ade62 Orbitersdk/samples/Orbiter.NET/Orbiter.Wrapper/Orbiter.Wrapper.vcproj
--- a/Orbitersdk/samples/Orbiter.NET/Orbiter.Wrapper/Orbiter.Wrapper.vcproj Tue Mar 27 20:56:27 2007 +0200
+++ b/Orbitersdk/samples/Orbiter.NET/Orbiter.Wrapper/Orbiter.Wrapper.vcproj Tue Mar 27 21:27:12 2007 +0200
@@ -1,7 +1,7 @@
11 <?xml version="1.0" encoding="Windows-1252"?>
22 <VisualStudioProject
33 ProjectType="Visual C++"
4- Version="8,00"
4+ Version="8.00"
55 Name="Orbiter.Wrapper"
66 ProjectGUID="{326F9CD9-06DC-4749-999C-CDCC8C50042A}"
77 RootNamespace="Orbiter.Wrapper"
@@ -64,7 +64,7 @@
6464 <Tool
6565 Name="VCLinkerTool"
6666 AdditionalDependencies="orbitersdk.lib orbiter.lib"
67- OutputFile="bin\Debug\Orbiter.Wrapper.dll"
67+ OutputFile="..\..\..\..\Orbiter.Wrapper.dll"
6868 Version="1.0.0.0"
6969 LinkIncremental="1"
7070 AdditionalLibraryDirectories="..\..\..\lib"
diff -r aee5dd2139c2 -r 5632f52ade62 Orbitersdk/samples/Orbiter.NET/Orbiter.Wrapper/bin/debug/Orbiter.Wrapper.dll
Binary file Orbitersdk/samples/Orbiter.NET/Orbiter.Wrapper/bin/debug/Orbiter.Wrapper.dll has changed
diff -r aee5dd2139c2 -r 5632f52ade62 modules/DotNET/Orbiter.StockVessels.dll
Binary file modules/DotNET/Orbiter.StockVessels.dll has changed
diff -r aee5dd2139c2 -r 5632f52ade62 modules/DotNET/ShuttlePBdotNET.dll
Binary file modules/DotNET/ShuttlePBdotNET.dll has changed
diff -r aee5dd2139c2 -r 5632f52ade62 modules/DotNET/ShuttleVBdotNET.dll
Binary file modules/DotNET/ShuttleVBdotNET.dll has changed
diff -r aee5dd2139c2 -r 5632f52ade62 modules/ShuttlePBdotNET.dll
Binary file modules/ShuttlePBdotNET.dll has changed
Show on old repository browser