mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 11:06:06 -04:00
You can use down arrow back to the original text you had typed in before pressing up, also fix 'Hacks enabled' cycling the camera.
This commit is contained in:
parent
8023f9346f
commit
a6d0bf15b3
@ -39,7 +39,7 @@ namespace ClassicalSharp {
|
||||
new TextureRec( 0, 66/256f, 200/256f, 20/256f ) );
|
||||
static Texture selectedTex = new Texture( 0, 0, 0, 0, 0,
|
||||
new TextureRec( 0, 86/256f, 200/256f, 20/256f ) );
|
||||
static Texture disdabledTex = new Texture( 0, 0, 0, 0, 0,
|
||||
static Texture disabledTex = new Texture( 0, 0, 0, 0, 0,
|
||||
new TextureRec( 0, 46/256f, 200/256f, 20/256f ) );
|
||||
public string Text;
|
||||
public void SetText( string text ) {
|
||||
@ -61,7 +61,7 @@ namespace ClassicalSharp {
|
||||
if( !texture.IsValid )
|
||||
return;
|
||||
Texture backTex = Active ? selectedTex : shadowTex;
|
||||
if( Disabled ) backTex = disdabledTex;
|
||||
if( Disabled ) backTex = disabledTex;
|
||||
|
||||
backTex.ID = game.UseClassicGui ? game.GuiClassicTexId : game.GuiTexId;
|
||||
backTex.X1 = X; backTex.Y1 = Y;
|
||||
|
@ -89,7 +89,10 @@ namespace ClassicalSharp {
|
||||
}
|
||||
}
|
||||
|
||||
string originalText;
|
||||
void UpKey() {
|
||||
if( typingLogPos == game.Chat.InputLog.Count )
|
||||
originalText = chatInputText.ToString();
|
||||
if( game.Chat.InputLog.Count > 0 ) {
|
||||
typingLogPos--;
|
||||
if( typingLogPos < 0 ) typingLogPos = 0;
|
||||
@ -107,6 +110,7 @@ namespace ClassicalSharp {
|
||||
chatInputText.Clear();
|
||||
if( typingLogPos >= game.Chat.InputLog.Count ) {
|
||||
typingLogPos = game.Chat.InputLog.Count;
|
||||
chatInputText.Append( 0, originalText );
|
||||
} else {
|
||||
chatInputText.Append( 0, game.Chat.InputLog[typingLogPos] );
|
||||
}
|
||||
|
@ -365,7 +365,7 @@ namespace ClassicalSharp {
|
||||
//else if( Camera == forwardThirdPersonCam ) Camera = firstPersonZoomCam;
|
||||
else Camera = firstPersonCam;
|
||||
|
||||
if( !LocalPlayer.CanUseThirdPersonCamera )
|
||||
if( !LocalPlayer.CanUseThirdPersonCamera || !LocalPlayer.HacksEnabled )
|
||||
Camera = firstPersonCam;
|
||||
PerspectiveCamera newCam = (PerspectiveCamera)Camera;
|
||||
newCam.delta = oldCam.delta;
|
||||
|
Loading…
x
Reference in New Issue
Block a user