-
Savvy ? 🐒
Originally Posted by
Madara_55
Can you please more details where to enter it?
see my signature ;p
basically you just copy/paste it in a customize method
Last edited by JackCeparou; 09-04-2018 at 07:15 PM.
-
Member
Thanks It works. but this makes the solid color over the top. it's a bit not what I wanted. is there a chance to change the color of this beautiful button? and what about it?
QIP Shot - Screen 088.png
-
Member
How can i disable Other Players' ground decorators (player names), i dont mind to keep on-minimap players names, i just wish to disable only on-ground names, that's why i dont disable whole plugin, If it is not as easy as to write a single line of code, then i probably should still disable that plugin, but copy it's code to my own plugin and keep it without that groud decorator section, or is it still possible with 1 line of code (customize) ?
Upd.
Can not make it to work, something wrong with the namespace:
if i use "default", an exception says "i have to use my own namespace",
if i use my namespace, it says "error CS0246: The type or namespace name 'BasePlugin' could not be found (are you missing a using directive or an assembly reference?)" and same error for the 'WorldDecoratorCollection'.
I tried it in both, inside my own single file and as a separate .cs file (for that modded OtherPlayersPlugin code), how can i make it to work?
Ok, i copied those files, that were referenced and replaced inside them "using namespace.." from "Default" to my own, and it finally worked. Those were 2 files from the BasePlugin folder (all of them) and 3 files from the Decorators folder (those, that were referenced from the Exceptions's log file). Copied files can stay inside their subfolders (not necessary to place them to root directory).
This fixed it, finally.
Last edited by Saah; 09-24-2018 at 10:13 PM.
-
Member
Last edited by Saah; 09-25-2018 at 09:54 PM.
Reason: deleted
-
Member
Hi Jack, I absolutely love THud and luckily got it running on the first try with no issues whatsoever.
My only problem is I want to disable three plugins only but I can't write code to save my life, and I don't have excel to get TCT to work.
I know I have to edit the Plugindisabler file with Notepad++ and rename the file to .cs, I tried copying some of the presets you and others posted and change the code to the plugins I want to disable but to no avail.
Can I please get some help on this? The plugins I want gone are:
- EliteMonsterAffix (the text that hovers over them)
- Paragon tracker (the paragon box at the top center of the screen)
- Greyed out items
edit: I managed to remove the three things I wanted just by tinkering with the plugin files themselves and turning values to false. Might not be optimal but it got the trick done!
Last edited by Megalodon84; 02-04-2019 at 03:56 PM.
-
Savvy ? 🐒
Originally Posted by
Megalodon84
Can I please get some help on this? The plugins I want gone are:
- EliteMonsterAffix (the text that hovers over them)
- Paragon tracker (the paragon box at the top center of the screen)
- Greyed out items
edit: I managed to remove the three things I wanted just by tinkering with the plugin files themselves and turning values to false. Might not be optimal but it got the trick done!
If you want the configuration anyway :
Save as /plugins/user/Megalodon84.cs :
PHP Code:
using Turbo.Plugins.Default;
namespace Turbo.Plugins.User
{
public class Megalodon84 : BasePlugin, ICustomizer
{
public Megalodon84()
{
Enabled = true;
}
public void Customize()
{
Hud.TogglePlugin<EliteMonsterAffixPlugin>(false);
Hud.TogglePlugin<TopExperienceStatistics>(false);
Hud.RunOnPlugin<InventoryAndStashPlugin>(plugin =>
{
plugin.NotGoodDisplayEnabled = false;
});
}
}
}
Note: I'm not totally sure about the last one ;p
-
Post Thanks / Like - 1 Thanks
Megalodon84 (1 members gave Thanks to JackCeparou for this useful post)
-
Banned
i am having trouble with the doors plugin since season 17, anyone else have this problem or a fix?
-
Savvy ? 🐒
Originally Posted by
amcentee85
i am having trouble with the doors plugin since season 17, anyone else have this problem or a fix?
You should ask in the plugin thread.
Anyway, no issue on my side, you maybe have an old version, try to redownload.
-
Banned
Originally Posted by
JackCeparou
You should ask in the plugin thread.
Anyway, no issue on my side, you maybe have an old version, try to redownload.
Yep, that was all it was an old version, sorry to waste your time!
-
Member
Guys, any quick way to show alert if I'm missing archon -> slow time?
I just want one single alert for this, maybe someone already has a version fully configured which includes this too
I will try to learn how to configure this nice plugin, I just don't want to spend hours to figure it out if someone can do it in a minute.
Thank you .
edit: I think I asked this in the wrong forum, trying the plugins section instead sorry
Last edited by Mundzso; 08-27-2019 at 03:27 AM.
-
Member
[QUOTE=JackCeparou;3711699]
I want to disable ThisAwesomePlugin :
So I copy this "Hud.TogglePlugin<ThisAwesomePlugin>(false);" and paste it somewhere in a file, correct? But which file...?
-
Active Member
\plugins\User\PluginEnablerOrDisablerPlugin.cs
-
Member
Originally Posted by
Jembo
\plugins\User\PluginEnablerOrDisablerPlugin.cs
Thanks. I know nothing about coding but suppose there must be certain grammar to be followed, right? When I open the file, it reads like this:
--------------------------------------------------------------------------
using Turbo.Plugins.Default;
namespace Turbo.Plugins.User
{
public class PluginEnablerOrDisablerPlugin : BasePlugin, ICustomizer
{
public PluginEnablerOrDisablerPlugin()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
}
// "Customize" methods are automatically executed after every plugin is loaded.
// So these methods can use Hud.GetPlugin<class> to access the plugin instances' public properties (like decorators, Enabled flag, parameters, etc)
// Make sure you test the return value against null!
public void Customize()
{
// basic examples
// turn on MultiplayerExperienceRangePlugin
Hud.TogglePlugin<MultiplayerExperienceRangePlugin>(true);
// turn off sell darkening
Hud.GetPlugin<InventoryAndStashPlugin>().NotGoodDisplayEnabled = false;
// disable arcane affix label
Hud.GetPlugin<EliteMonsterAffixPlugin>().AffixDecorators.Remove(MonsterAffix.Arc ane);
// override an elite affix's text
Hud.GetPlugin<EliteMonsterAffixPlugin>().CustomAffixNames.Add(MonsterAffix.Desec rator, "DES");
}
}
}
--------------------------------------------------------------------------
So for example, I wanted to disable this "ExperienceOverBarPlugin" plugin, what I did was replacing the name in the yellow text and change "true" to "false". Apparently that didn't work. So where in this file do we paste that line? And what to do if I want to disable more than one plugin?
Appreciate any help!
-
Legendary
It is correct, you modify the text you have colored yellow. 3 examples:
Hud.TogglePlugin<TopExperienceStatistics>(false);
Hud.TogglePlugin<ExperienceOverBarPlugin>(false);
Hud.TogglePlugin<MultiplayerExperienceRangePlugin>(false);
If it does not work, it will probably be because you did not renamed the file to PluginEnablerOrDisablerPlugin.cs
Check that the file name is not PluginEnablerOrDisablerPlugin.txt or PluginEnablerOrDisablerPlugin.cs.txt
-
Member
Finally got it working. Thank you all!