someone to have movement speed plugin?
someone to have movement speed plugin?
There's a speed indicator in that one :
Resu/README.md at master . User5981/Resu . GitHub
Supported version for all Resu plugins
i want something to show movement speed % if
//################################################################################
//# ..:: created with TCT Version 4.5 for THUD v7.1 (17.2.19.0) ::.. by RealGsus #
//################################################################################
using Turbo.Plugins.Default;
namespace Turbo.Plugins.User
{
public class TCTAttributLabelListPlugin : BasePlugin, ICustomizer
{
public TCTAttributLabelListPlugin()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
}
public void Customize()
{
//##### AttributLabeList Position: 10 #####
Hud.RunOnPlugin<AttributeLabelListPlugin>(plugin =>
{
var index = 9;
if (index < plugin.LabelList.LabelDecorators.Count && index >= 0) {
plugin.LabelList.LabelDecorators[index].TextFont = Hud.Render.CreateFont("tahoma", 7, 191, 255, 255, 255, true, false, true);
plugin.LabelList.LabelDecorators[index].BackgroundTexture1 = Hud.Texture.ButtonTextureBlue;
plugin.LabelList.LabelDecorators[index].BackgroundTexture2 = Hud.Texture.BackgroundTextureGreen;
plugin.LabelList.LabelDecorators[index].BackgroundTextureOpacity2 = 0.7f;
plugin.LabelList.LabelDecorators[index].TextFunc = () => (Hud.Game.Me.Stats.MoveSpeed).ToString("F0") + "%";
plugin.LabelList.LabelDecorators[index].HintFunc = () => "—корость";
}
});
}
}
}
thx works gg
Last edited by nkyp; 10-22-2019 at 10:23 AM.
I like the idea of showing the speed of movement in that place.
The above code overwrites the "experience per hour today" label. In order not to lose information I have an alternative: join "EHP current" and "EHP Max" and then insert the Speed Label (penultimate position, although it could be added at the end)
Insert in Plugins\User\PluginEnablerOrDisablerPlugin.cs:
Code:Hud.RunOnPlugin<AttributeLabelListPlugin>(plugin => { plugin.LabelList.LabelDecorators.RemoveAt(0); plugin.LabelList.LabelDecorators[0].TextFunc = () => ValueToString(Hud.Game.Me.Defense.EhpCur, ValueFormat.ShortNumber); plugin.LabelList.LabelDecorators[0].HintFunc = () => "EHP current"; plugin.LabelList.LabelDecorators[0].BackgroundTextureOpacity2 = 0.7f; plugin.LabelList.LabelDecorators[0].ExpandUpLabels.Insert(0, new TopLabelDecorator(Hud) { TextFont = Hud.Render.CreateFont("tahoma", 7, 180, 255, 255, 255, true, false, true), ExpandedHintFont = Hud.Render.CreateFont("tahoma", 7, 255, 200, 200, 200, false, false, true), ExpandedHintWidthMultiplier = 3, BackgroundTexture1 = Hud.Texture.ButtonTextureGray, BackgroundTexture2 = Hud.Texture.BackgroundTextureGreen, BackgroundTextureOpacity2 = 0.7f, TextFunc = () => ValueToString(Hud.Game.Me.Defense.EhpMax, ValueFormat.ShortNumber), HintFunc = () => "EHP max", } ); plugin.LabelList.LabelDecorators.Insert(8, new TopLabelDecorator(Hud) { TextFont = Hud.Render.CreateFont("tahoma", 7, 191, 255, 255, 255, true, false, true), BackgroundTexture1 = Hud.Texture.ButtonTextureBlue, BackgroundTexture2 = Hud.Texture.BackgroundTextureGreen, BackgroundTextureOpacity2 = 0.7f, TextFunc = () => (Hud.Game.Me.Stats.MoveSpeed).ToString("F0") + "%", HintFunc = () => "movement speed", } ); } );
Would you be so kind and tell me, where i can find other stats to add some like this myself? for example resource cost reduction and stuff. i cant seem to find the directory