fixed issue #1082 (SpriteFont UTF8 issue)
This commit is contained in:
parent
5b871f27fa
commit
a5f4931578
@ -33,12 +33,15 @@ namespace ANX.Framework.Content.Pipeline.Importer
|
||||
public override FontDescription Import(string filename, ContentImporterContext context)
|
||||
{
|
||||
_logger = context.Logger;
|
||||
var doc = XDocument.Load(filename);
|
||||
FontDescription fontDescription = DeserializeFont(doc);
|
||||
fontDescription.Identity = new ContentIdentity(new FileInfo(filename).FullName,
|
||||
"FontDescriptionImporter");
|
||||
using (TextReader tr = File.OpenText(filename))
|
||||
{
|
||||
var doc = XDocument.Load(tr);
|
||||
FontDescription fontDescription = DeserializeFont(doc);
|
||||
fontDescription.Identity = new ContentIdentity(new FileInfo(filename).FullName,
|
||||
"FontDescriptionImporter");
|
||||
|
||||
return fontDescription;
|
||||
return fontDescription;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -14,7 +14,6 @@ namespace ANX.InputDevices.Windows.ModernUI
|
||||
[PercentageComplete(80)]
|
||||
[TestState(TestStateAttribute.TestState.Untested)]
|
||||
[Developer("rene87")]
|
||||
|
||||
class Mouse : IMouse
|
||||
{
|
||||
private int _wheel;
|
||||
@ -25,16 +24,11 @@ namespace ANX.InputDevices.Windows.ModernUI
|
||||
private ButtonState _middle;
|
||||
private ButtonState _xButton1;
|
||||
private ButtonState _xButton2;
|
||||
|
||||
public IntPtr WindowHandle
|
||||
{
|
||||
get
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
set
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public Mouse()
|
||||
@ -54,7 +48,6 @@ namespace ANX.InputDevices.Windows.ModernUI
|
||||
|
||||
void Mouse_PointerWheelChanged(CoreWindow sender, PointerEventArgs args)
|
||||
{
|
||||
|
||||
this._wheel += args.CurrentPoint.Properties.MouseWheelDelta;
|
||||
}
|
||||
|
||||
@ -66,18 +59,22 @@ namespace ANX.InputDevices.Windows.ModernUI
|
||||
{
|
||||
this._left = ButtonState.Released;
|
||||
}
|
||||
|
||||
if (!args.CurrentPoint.Properties.IsMiddleButtonPressed)
|
||||
{
|
||||
this._middle = ButtonState.Released;
|
||||
}
|
||||
|
||||
if (!args.CurrentPoint.Properties.IsRightButtonPressed)
|
||||
{
|
||||
this._right = ButtonState.Released;
|
||||
}
|
||||
|
||||
if (!args.CurrentPoint.Properties.IsXButton1Pressed)
|
||||
{
|
||||
this._xButton1 = ButtonState.Released;
|
||||
}
|
||||
|
||||
if (!args.CurrentPoint.Properties.IsXButton2Pressed)
|
||||
{
|
||||
this._xButton2 = ButtonState.Released;
|
||||
@ -97,22 +94,27 @@ namespace ANX.InputDevices.Windows.ModernUI
|
||||
{
|
||||
this._left = ButtonState.Pressed;
|
||||
}
|
||||
|
||||
if (args.CurrentPoint.Properties.IsMiddleButtonPressed)
|
||||
{
|
||||
this._middle = ButtonState.Pressed;
|
||||
}
|
||||
|
||||
if (args.CurrentPoint.Properties.IsRightButtonPressed)
|
||||
{
|
||||
this._right = ButtonState.Pressed;
|
||||
}
|
||||
|
||||
if (args.CurrentPoint.Properties.IsXButton1Pressed)
|
||||
{
|
||||
this._xButton1 = ButtonState.Pressed;
|
||||
}
|
||||
|
||||
if (args.CurrentPoint.Properties.IsXButton2Pressed)
|
||||
{
|
||||
this._xButton2 = ButtonState.Pressed;
|
||||
}
|
||||
|
||||
this._x = (int)args.CurrentPoint.Position.X;
|
||||
this._y = (int)args.CurrentPoint.Position.Y;
|
||||
}
|
||||
@ -121,7 +123,6 @@ namespace ANX.InputDevices.Windows.ModernUI
|
||||
this._left = ButtonState.Pressed;
|
||||
this._x = (int)args.CurrentPoint.Position.X;
|
||||
this._y = (int)args.CurrentPoint.Position.Y;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -129,16 +130,13 @@ namespace ANX.InputDevices.Windows.ModernUI
|
||||
{
|
||||
this._x = args.MouseDelta.X;
|
||||
this._y = args.MouseDelta.Y;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public MouseState GetState()
|
||||
{
|
||||
|
||||
return new MouseState(this._x, this._y, this._wheel, this._left, this._middle, this._right, this._xButton1, this._xButton2);
|
||||
}
|
||||
|
||||
public void SetPosition(int x, int y)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
@ -1,5 +1,9 @@
|
||||
using ANX.Framework.NonXNA;
|
||||
#region Using Statements
|
||||
using ANX.Framework.NonXNA;
|
||||
using ANX.Framework.NonXNA.InputSystem;
|
||||
using ANX.Framework.NonXNA.Development;
|
||||
|
||||
#endregion
|
||||
|
||||
// This file is part of the ANX.Framework created by the
|
||||
// "ANX.Framework developer group" and released under the Ms-PL license.
|
||||
@ -7,13 +11,11 @@ using ANX.Framework.NonXNA.InputSystem;
|
||||
|
||||
namespace ANX.InputDevices.Windows.ModernUI
|
||||
{
|
||||
class MouseCreator : IMouseCreator
|
||||
[PercentageComplete(100)]
|
||||
[TestState(TestStateAttribute.TestState.Tested)]
|
||||
[Developer("Glatzemann")]
|
||||
public class MouseCreator : IMouseCreator
|
||||
{
|
||||
public IMouse CreateDevice()
|
||||
{
|
||||
return new Mouse();
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
@ -29,5 +31,10 @@ namespace ANX.InputDevices.Windows.ModernUI
|
||||
return 10;
|
||||
}
|
||||
}
|
||||
|
||||
public IMouse CreateDevice()
|
||||
{
|
||||
return new Mouse();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
|
||||
<Identity Name="SimpleNoContent" Publisher="CN=ANX-Team" Version="1.0.0.0" />
|
||||
<Identity Name="SimpleNoContent" Publisher="CN=Roland" Version="1.0.0.0" />
|
||||
<Properties>
|
||||
<DisplayName>SimpleNoContent</DisplayName>
|
||||
<PublisherDisplayName>ANX Developer Team</PublisherDisplayName>
|
||||
|
@ -36,15 +36,6 @@
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Game1.cs" />
|
||||
|
@ -11,7 +11,8 @@
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{BC8A1FFA-BEE3-4634-8014-F334798102B3};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<DefaultLanguage>en-US</DefaultLanguage>
|
||||
<PackageCertificateKeyFile>Test_TemporaryKey.pfx</PackageCertificateKeyFile>
|
||||
<PackageCertificateKeyFile>SimpleNoContent_WindowsMetro_TemporaryKey.pfx</PackageCertificateKeyFile>
|
||||
<PackageCertificateThumbprint>1C2E795E3865B788B3FBA2FE1F8BB56353190C08</PackageCertificateThumbprint>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
@ -35,18 +36,6 @@
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>anx.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Game1.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
@ -81,6 +70,7 @@
|
||||
</Target>
|
||||
-->
|
||||
<ItemGroup>
|
||||
<None Include="SimpleNoContent_WindowsMetro_TemporaryKey.pfx" />
|
||||
<None Include="Test_TemporaryKey.pfx" />
|
||||
<AppxManifest Include="Manifest.appxmanifest">
|
||||
<SubType>Designer</SubType>
|
||||
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
||||
// übernehmen, indem Sie "*" eingeben:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("0.4.1.*")]
|
||||
[assembly: AssemblyFileVersion("0.4.1.0")]
|
||||
[assembly: AssemblyVersion("0.4.2.*")]
|
||||
[assembly: AssemblyFileVersion("0.4.2.0")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user