mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 03:25:14 -04:00
Option to disable clicking chat copies to input bar.
This commit is contained in:
parent
333a6b0c89
commit
c08ce14c92
@ -306,7 +306,7 @@ namespace ClassicalSharp {
|
|||||||
"Be careful - urls from strangers may link to websites that",
|
"Be careful - urls from strangers may link to websites that",
|
||||||
" may have viruses, or things you may not want to open/see."
|
" may have viruses, or things you may not want to open/see."
|
||||||
) );
|
) );
|
||||||
} else {
|
} else if( game.ClickableChat ) {
|
||||||
textInput.AppendText( text );
|
textInput.AppendText( text );
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@ -325,6 +325,7 @@ namespace ClassicalSharp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void AppendUrl( WarningScreen screen ) {
|
void AppendUrl( WarningScreen screen ) {
|
||||||
|
if( !game.ClickableChat ) return;
|
||||||
textInput.AppendText( (string)screen.Metadata );
|
textInput.AppendText( (string)screen.Metadata );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,6 +24,12 @@ namespace ClassicalSharp {
|
|||||||
g.RefreshHud();
|
g.RefreshHud();
|
||||||
} ),
|
} ),
|
||||||
|
|
||||||
|
Make( -140, 50, "Clickable chat", Anchor.Centre, OnWidgetClick,
|
||||||
|
g => g.ClickableChat ? "yes" : "no",
|
||||||
|
(g, v) => { g.ClickableChat = v == "yes";
|
||||||
|
Options.Set( OptionsKey.ClickableChat, v == "yes" );
|
||||||
|
} ),
|
||||||
|
|
||||||
// Column 2
|
// Column 2
|
||||||
Make( 140, -50, "Chat scale", Anchor.Centre, OnWidgetClick,
|
Make( 140, -50, "Chat scale", Anchor.Centre, OnWidgetClick,
|
||||||
g => g.ChatScale.ToString(),
|
g => g.ChatScale.ToString(),
|
||||||
@ -56,6 +62,7 @@ namespace ClassicalSharp {
|
|||||||
validators = new MenuInputValidator[] {
|
validators = new MenuInputValidator[] {
|
||||||
new BooleanValidator(),
|
new BooleanValidator(),
|
||||||
new RealValidator( 0.25f, 5f ),
|
new RealValidator( 0.25f, 5f ),
|
||||||
|
new BooleanValidator(),
|
||||||
|
|
||||||
new RealValidator( 0.25f, 5f ),
|
new RealValidator( 0.25f, 5f ),
|
||||||
new IntegerValidator( 1, 30 ),
|
new IntegerValidator( 1, 30 ),
|
||||||
|
@ -73,7 +73,7 @@ namespace ClassicalSharp {
|
|||||||
public Matrix4 View, Projection;
|
public Matrix4 View, Projection;
|
||||||
public int MouseSensitivity = 30;
|
public int MouseSensitivity = 30;
|
||||||
public int ChatLines = 12;
|
public int ChatLines = 12;
|
||||||
public bool HideGui = false, ShowFPS = true;
|
public bool ClickableChat, HideGui, ShowFPS;
|
||||||
internal float HudScale = 1.0f, ChatScale = 1.0f;
|
internal float HudScale = 1.0f, ChatScale = 1.0f;
|
||||||
|
|
||||||
public Animations Animations;
|
public Animations Animations;
|
||||||
@ -134,6 +134,7 @@ namespace ClassicalSharp {
|
|||||||
BlockInfo = new BlockInfo();
|
BlockInfo = new BlockInfo();
|
||||||
BlockInfo.Init();
|
BlockInfo.Init();
|
||||||
ChatLines = Options.GetInt( OptionsKey.ChatLines, 1, 30, 12 );
|
ChatLines = Options.GetInt( OptionsKey.ChatLines, 1, 30, 12 );
|
||||||
|
ClickableChat = Options.GetBool( OptionsKey.ClickableChat, true );
|
||||||
ModelCache = new ModelCache( this );
|
ModelCache = new ModelCache( this );
|
||||||
ModelCache.InitCache();
|
ModelCache.InitCache();
|
||||||
AsyncDownloader = new AsyncDownloader( skinServer );
|
AsyncDownloader = new AsyncDownloader( skinServer );
|
||||||
|
@ -13,6 +13,7 @@ namespace ClassicalSharp {
|
|||||||
public const string Sensitivity = "mousesensitivity";
|
public const string Sensitivity = "mousesensitivity";
|
||||||
public const string Speed = "speedmultiplier";
|
public const string Speed = "speedmultiplier";
|
||||||
public const string ChatLines = "chatlines";
|
public const string ChatLines = "chatlines";
|
||||||
|
public const string ClickableChat = "clickablechat";
|
||||||
public const string ArialChatFont = "arialchatfont";
|
public const string ArialChatFont = "arialchatfont";
|
||||||
public const string DefaultTexturePack = "defaulttexpack";
|
public const string DefaultTexturePack = "defaulttexpack";
|
||||||
public const string SingleplayerPhysics = "singleplayerphysics";
|
public const string SingleplayerPhysics = "singleplayerphysics";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user