View bobbing now saves as an option, add credits.txt

This commit is contained in:
UnknownShadow200 2015-11-24 21:23:58 +11:00
parent 66ab5ec52b
commit 5feff2b4df
6 changed files with 26 additions and 8 deletions

View file

@ -17,10 +17,8 @@ namespace ClassicalSharp {
// Column 1
Make( -140, -100, "Show hover names", Anchor.Centre, OnWidgetClick,
g => g.Players.ShowHoveredNames ? "yes" : "no",
(g, v) => {
g.Players.ShowHoveredNames = v == "yes";
Options.Set( OptionsKey.ShowHoveredNames, v == "yes" );
}),
(g, v) => { g.Players.ShowHoveredNames = v == "yes";
Options.Set( OptionsKey.ShowHoveredNames, v == "yes" ); }),
Make( -140, -50, "Speed multiplier", Anchor.Centre, OnWidgetClick,
g => g.LocalPlayer.SpeedMultiplier.ToString(),
@ -46,9 +44,10 @@ namespace ClassicalSharp {
Options.Set( OptionsKey.SingleplayerPhysics, v == "yes" );
}),
Make( 140, -100, "View bobbing (WIP)", Anchor.Centre, OnWidgetClick,
Make( 140, -100, "View bobbing", Anchor.Centre, OnWidgetClick,
g => g.ViewBobbing ? "yes" : "no",
(g, v) => g.ViewBobbing = v == "yes" ),
(g, v) => { g.ViewBobbing = v == "yes";
Options.Set( OptionsKey.ViewBobbing, v == "yes" ); }),
Make( 140, -50, "Auto close launcher", Anchor.Centre, OnWidgetClick,
g => Options.GetBool( OptionsKey.AutoCloseLauncher, false ) ? "yes" : "no",

View file

@ -235,9 +235,13 @@
<Compile Include="Utils\WrappableStringBuffer.cs" />
</ItemGroup>
<ItemGroup>
<None Include="..\credits.txt">
<Link>credits.txt</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="app.config" />
<None Include="..\readme.md">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>

View file

@ -52,7 +52,7 @@ namespace ClassicalSharp {
leftArmZRot = -idleZRot;
bobYOffset = (float)(Math.Abs( Math.Cos( walkTime ) ) * swing * (2/16f));
tilt = (float)Math.Cos( walkTime ) * swing * (0.2f * Utils.Deg2Rad);
tilt = (float)Math.Cos( walkTime ) * swing * (0.15f * Utils.Deg2Rad);
}
}
}

View file

@ -141,6 +141,7 @@ namespace ClassicalSharp {
AsyncDownloader = new AsyncDownloader( skinServer );
Drawer2D = new GdiPlusDrawer2D( Graphics );
Drawer2D.UseBitmappedChat = !Options.GetBool( OptionsKey.ArialChatFont, false );
ViewBobbing = Options.GetBool( OptionsKey.ViewBobbing, false );
TerrainAtlas1D = new TerrainAtlas1D( Graphics );
TerrainAtlas = new TerrainAtlas2D( Graphics, Drawer2D );

View file

@ -24,6 +24,7 @@ namespace ClassicalSharp {
public const string MouseRight = "mouseright";
public const string FpsLimit = "fpslimit";
public const string AutoCloseLauncher = "autocloselauncher";
public const string ViewBobbing = "viewbobbing";
}
// TODO: implement this

13
credits.txt Normal file
View file

@ -0,0 +1,13 @@
* UnknownShadow200 - Doing 99.9% of the development work, also came up with the
uninspired name of ClassicalSharp from "Classic" and "C#".
* 123DMWM - many suggestions, and assistance in identifying bugs and their causes.
* Goodlyay - many suggestions, and being a great second pairs of eyes for issues and
improvements with character modelling, animating, and view bobbing.
* AndrewPH - Advice on how to improve ui of both client and launcher, multiple
suggestions, and hosting the automatic build bot for ClassicalSharp.
* Cheesse - multiple suggestions, testing ClassicalSharp on AMD graphics cards.
* Hemsindor - testing ClassicalSharp on OSX.
* FabTheZen - suggestions about how to improve user experience, testing.
And a big thanks to everyone else in the ClassiCube community (who I didn't mention here),
who in the past have provided many suggestions and assisted in identifying bugs.