-
Member
How to not show Leg names before ID'ing them?
I would like to know if anyone has been able to remove naming before ID'ing for the legendarys.
something like this?
-
Member
Alright, so i found this is plugins/default/Items/ItemsPlugin.cs
using System.Collections.Generic;
using System.Linq;
namespace Turbo.Plugins.Default
{
public class ItemsPlugin : BasePlugin, IInGameWorldPainter, ILootGeneratedHandler
{
public WorldDecoratorCollection LegendaryDecorator { get; set; }
public WorldDecoratorCollection AncientDecorator { get; set; }
public WorldDecoratorCollection PrimalDecorator { get; set; }
public WorldDecoratorCollection SetDecorator { get; set; }
public WorldDecoratorCollection AncientSetDecorator { get; set; }
public WorldDecoratorCollection PrimalSetDecorator { get; set; }
public WorldDecoratorCollection UtilityDecorator { get; set; }
public WorldDecoratorCollection NormalKeepDecorator { get; set; }
public WorldDecoratorCollection MagicKeepDecorator { get; set; }
public WorldDecoratorCollection RareKeepDecorator { get; set; }
public WorldDecoratorCollection LegendaryKeepDecorator { get; set; }
public WorldDecoratorCollection BookDecorator { get; set; }
public WorldDecoratorCollection DeathsBreathDecorator { get; set; }
public WorldDecoratorCollection InArmorySetDecorator { get; set; }
public bool EnableCustomSpeak { get; set; }
public Dictionary<ISnoItem, string> CustomSpeakTable { get; private set; }
public bool EnableSpeakLegendary { get; set; }
public bool EnableSpeakAncient { get; set; }
public bool EnableSpeakPrimal { get; set; }
public bool EnableSpeakSet { get; set; }
public bool EnableSpeakAncientSet { get; set; }
public bool EnableSpeakPrimalSet { get; set; }
public ItemsPlugin()
{
Enabled = true;
EnableSpeakLegendary = false;
EnableSpeakAncient = false;
EnableSpeakPrimal = false;
EnableSpeakSet = false;
EnableSpeakAncientSet = false;
EnableSpeakPrimalSet = false;
If i change the true to false it gets me the effect i would like, but i see that you shouldn't mess with the default theme, how would i turn this into a plugin?
-
Active Member
insert into \User\PluginEnablerOrDisablerPlugin.cs
PHP Code:
Hud.RunOnPlugin<ItemsPlugin>(plugin => plugin.LegendaryDecorator.ToggleDecorators<GroundLabelDecorator>(false));
Hud.RunOnPlugin<ItemsPlugin>(plugin => plugin.AncientDecorator.ToggleDecorators<GroundLabelDecorator>(false));
Hud.RunOnPlugin<ItemsPlugin>(plugin => plugin.PrimalDecorator.ToggleDecorators<GroundLabelDecorator>(false));
Hud.RunOnPlugin<ItemsPlugin>(plugin => plugin.SetDecorator.ToggleDecorators<GroundLabelDecorator>(false));
Hud.RunOnPlugin<ItemsPlugin>(plugin => plugin.AncientSetDecorator.ToggleDecorators<GroundLabelDecorator>(false));
Hud.RunOnPlugin<ItemsPlugin>(plugin => plugin.PrimalSetDecorator.ToggleDecorators<GroundLabelDecorator>(false));
-
Post Thanks / Like - 1 Thanks
amcentee85 (1 members gave Thanks to Csavo for this useful post)
-
Savvy ? 🐒
PHP Code:
Hud.RunOnPlugin<Plugins.Default.ItemsPlugin>(plugin =>
{
plugin.LegendaryDecorator.ToggleDecorators<GroundLabelDecorator>(false);
plugin.AncientDecorator.ToggleDecorators<GroundLabelDecorator>(false);
plugin.PrimalDecorator.ToggleDecorators<GroundLabelDecorator>(false);
plugin.SetDecorator.ToggleDecorators<GroundLabelDecorator>(false);
plugin.AncientSetDecorator.ToggleDecorators<GroundLabelDecorator>(false);
plugin.PrimalSetDecorator.ToggleDecorators<GroundLabelDecorator>(false);
});
Default theme customization 101
Edit : beaten to it, but anyway, there is no reason to call RunOnPlugin() 6 times.
-
Post Thanks / Like - 1 Thanks
amcentee85 (1 members gave Thanks to JackCeparou for this useful post)
-
Member
Awesome, thank you! works like i wanted it too, but i am getting execption errors, (2) now,
d:\TurboHud\plugins\User\PluginEnablerOrDisablerPlugin.cs(36,2) : error CS0116: A namespace cannot directly contain members such as fields or methods
2017.04.10 08:34:51.012 error while initializing plugins
anything to be worried about?
-
Active Member
whats the 36th line in your PluginEnablerOrDisablerPlugin.cs? because your exception is triggered from there.
-
Member
hmmm odd... 36 is completly blank,
35. Hud.GetPlugin<InventoryAndStashPlugin>().NotGoodDisplayEnabled = false;
36.
37. // disable arcane affix label
This was the stuff that was on there as the examples from the file when first downloaded, should i delete the example stuff?
-
Member
Thank you for the time and info, i figured it out! i had put in outside the brackets at the bottom of the file instead of inside them, derp. haha, thanks again! i used
Hud.RunOnPlugin<Plugins.Default.ItemsPlugin>(plugin =>
{
plugin.LegendaryDecorator.ToggleDecorators<GroundLabelDecorator>(false);
plugin.AncientDecorator.ToggleDecorators<GroundLabelDecorator>(false);
plugin.PrimalDecorator.ToggleDecorators<GroundLabelDecorator>(false);
plugin.SetDecorator.ToggleDecorators<GroundLabelDecorator>(false);
plugin.AncientSetDecorator.ToggleDecorators<GroundLabelDecorator>(false);
plugin.PrimalSetDecorator.ToggleDecorators<GroundLabelDecorator>(false);
});
if anyone else wants it!
-
Contributor
could you post your complete PluginEnablerOrDisablerPlugin.cs? you can surround it by [code] tags also.
//edit
okay, works now^^