Skip to content

Commit

Permalink
Change default spell config import url
Browse files Browse the repository at this point in the history
  • Loading branch information
bittiez committed Feb 7, 2024
1 parent 5b99284 commit 69f117f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ClassicUO.Client/Configuration/Language.cs
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ public class TazUO
public string TextFormat { get; set; } = "Text format";
public string EnableSpellIndicatorSystem { get; set; } = "Enable spell indicator system";
public string ImportFromUrl { get; set; } = "Import from url";
public string InputRequestUrl { get; set; } = "Enter the url for the spell config. /c[red]This will override your current config.";
public string InputRequestUrl { get; set; } = "Enter the url for the spell config. \n/c[red]This will override your current config.";
public string Download { get; set; } = "Download";
public string Cancel { get; set; } = "Cancel";
public string AttemptingToDownloadSpellConfig { get; set; } = "Attempting to download spell config..";
Expand Down
4 changes: 2 additions & 2 deletions src/ClassicUO.Client/Game/UI/Gumps/InputRequest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using ClassicUO.Assets;
using ClassicUO.Game.Managers;
using ClassicUO.Game.UI.Controls;
using System;
using static ClassicUO.Game.UI.Gumps.OptionsGump;
Expand All @@ -8,7 +7,7 @@ namespace ClassicUO.Game.UI.Gumps
{
internal class InputRequest : Gump
{
public InputRequest(string message, string buttonText, string button2Text, Action<Result, string> result) : base(0, 0)
public InputRequest(string message, string buttonText, string button2Text, Action<Result, string> result, string defaultInputValue = "") : base(0, 0)
{
Width = 400;
Height = 0;
Expand All @@ -31,6 +30,7 @@ public InputRequest(string message, string buttonText, string button2Text, Actio
)
{ X = 0, Y = _.Y + _.Height + 15 };
Height += input.Height;
input.SetText(defaultInputValue);
Add(input);

NiceButton button1, button2;
Expand Down
2 changes: 1 addition & 1 deletion src/ClassicUO.Client/Game/UI/Gumps/ModernOptionsGump.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2361,7 +2361,7 @@ private void BuildTazUO()
});
}
}
})
}, "https://gist.githubusercontent.com/bittiez/c70ddcb58fc59f74a0c4d2c5b4fc6478/raw/SpellVisualRange.json")
{ X = (Client.Game.Window.ClientBounds.Width >> 1) - 50, Y = (Client.Game.Window.ClientBounds.Height >> 1) - 50 });
}
};
Expand Down

0 comments on commit 69f117f

Please sign in to comment.