mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 10:05:44 -04:00
Update readme, fix non-compliant GL calls.
This commit is contained in:
parent
df80b95714
commit
e01f24bebb
@ -10,8 +10,11 @@ namespace ClassicalSharp {
|
||||
}
|
||||
|
||||
public override void Render( double delta ) {
|
||||
base.Render( delta );
|
||||
RenderMenuBounds();
|
||||
graphicsApi.Texturing = true;
|
||||
RenderMenuButtons( delta );
|
||||
statusWidget.Render( delta );
|
||||
graphicsApi.Texturing = false;
|
||||
}
|
||||
|
||||
Font keyFont;
|
||||
|
@ -16,11 +16,14 @@ namespace ClassicalSharp {
|
||||
protected int okayIndex;
|
||||
|
||||
public override void Render( double delta ) {
|
||||
base.Render( delta );
|
||||
RenderMenuBounds();
|
||||
graphicsApi.Texturing = true;
|
||||
RenderMenuButtons( delta );
|
||||
if( inputWidget != null )
|
||||
inputWidget.Render( delta );
|
||||
if( descWidget != null )
|
||||
descWidget.Render( delta );
|
||||
graphicsApi.Texturing = false;
|
||||
}
|
||||
|
||||
public override bool HandlesKeyPress( char key ) {
|
||||
@ -66,7 +69,7 @@ namespace ClassicalSharp {
|
||||
if( descWidget != null )
|
||||
descWidget.Dispose();
|
||||
|
||||
string text = widget.Text + " : " + widget.GetValue( game );
|
||||
string text = widget.Text + ": " + widget.GetValue( game );
|
||||
descWidget = TextWidget.Create( game, 0, 100, text, Docking.Centre, Docking.Centre, regularFont );
|
||||
}
|
||||
|
||||
|
@ -11,14 +11,15 @@ namespace ClassicalSharp {
|
||||
protected ButtonWidget[] buttons;
|
||||
protected Font titleFont, regularFont;
|
||||
|
||||
public override void Render( double delta ) {
|
||||
protected void RenderMenuBounds() {
|
||||
graphicsApi.Draw2DQuad( 0, 0, game.Width, game.Height, new FastColour( 60, 60, 60, 160 ) );
|
||||
graphicsApi.Texturing = true;
|
||||
}
|
||||
|
||||
protected void RenderMenuButtons( double delta ) {
|
||||
for( int i = 0; i < buttons.Length; i++ ) {
|
||||
if( buttons[i] == null ) continue;
|
||||
buttons[i].Render( delta );
|
||||
}
|
||||
graphicsApi.Texturing = false;
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
|
@ -8,10 +8,6 @@ namespace ClassicalSharp {
|
||||
public OptionsScreen( Game game ) : base( game ) {
|
||||
}
|
||||
|
||||
public override void Render( double delta ) {
|
||||
base.Render( delta );
|
||||
}
|
||||
|
||||
public override void Init() {
|
||||
titleFont = new Font( "Arial", 16, FontStyle.Bold );
|
||||
regularFont = new Font( "Arial", 16, FontStyle.Regular );
|
||||
|
@ -9,6 +9,13 @@ namespace ClassicalSharp {
|
||||
public PauseScreen( Game game ) : base( game ) {
|
||||
}
|
||||
|
||||
public override void Render( double delta ) {
|
||||
RenderMenuBounds();
|
||||
graphicsApi.Texturing = true;
|
||||
RenderMenuButtons( delta );
|
||||
graphicsApi.Texturing = false;
|
||||
}
|
||||
|
||||
public override void Init() {
|
||||
titleFont = new Font( "Arial", 16, FontStyle.Bold );
|
||||
buttons = new ButtonWidget[] {
|
||||
|
@ -47,7 +47,7 @@
|
||||
<StartAction>Project</StartAction>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug_DX' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<OutputPath>..\output\debug\</OutputPath>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>Full</DebugType>
|
||||
|
@ -32,13 +32,11 @@ These are expected to be in the form: `<username> <mppass> <ip> <port> <skin ser
|
||||
|
||||
#### Key combinations
|
||||
* Press escape (after joining a world) to switch to the pause menu.
|
||||
* The pause menu lists all of the key combinations used by the client.
|
||||
These key combinations can be reassigned by clicking on a key combination.
|
||||
* Press escape or click "Back to game" to return to the game.
|
||||
* Pause menu -> Key mappings lists all of the key combinations used by the client.
|
||||
|
||||
Some points to note:
|
||||
* If the server has disabled hacks, key combinations such as fly and speed will not do anything.
|
||||
* Press F6 to change view distance. A smaller number of visible chunks can improve performance.
|
||||
* Press F6 to cycle view distance. A smaller number of visible chunks can improve performance.
|
||||
* Press F7 to toggle VSync on or off. (on minimises CPU usage)
|
||||
|
||||
#### Client commands
|
||||
|
Loading…
x
Reference in New Issue
Block a user