-
Member
Turn off health pool world labels
I'd like to disable only the hp pool labels that display near the edge of the screen.
What line of code would I add to my PluginEnablerOrDisablerPlugin.cs file to do so?
Thank you.
-
Active Member
Are you using GlobesPlugin ([V9.1] [INTERNATIONAL] [RNN] GlobesPlugin) by @RNN?..
If so, configure the plugin in question by adding the lines below into the "PluginEnablerOrDisablerPlugin",
or change its value with colored line below if it already exists in "PluginEnablerOrDisablerPlugin":
Code:
Hud.GetPlugin<RNN.GlobesPlugin>().Enabled = true;
Hud.RunOnPlugin<RNN.GlobesPlugin>(plugin => {
plugin.LabelHealth = false;
});
Last edited by BeeAntOS; 12-07-2020 at 09:29 AM.
"When you reach the top, get ready to drop!"
-
Member
I'm not using that plugin but I'm trying to disable the labels at the edge of the screen within the play area, specifically the HP pools.
-
Active Member
Originally Posted by
Xaggee
I'm not using that plugin but I'm trying to disable the labels at the edge of the screen within the play area, specifically the HP pools.
Got it, in that case, I think you can do that by configuring official "MarkerPlugin.cs" via "PluginEnablerOrDisabler.cs".
Code:
public void Customize()
{
...
Hud.GetPlugin<MarkerPlugin>().HealingWellDecorator.ToggleDecorators<GroundLabelDecorator>(false);
...
}
"When you reach the top, get ready to drop!"
-
Member
Still seems to be enabled
Capture.PNG
-
Active Member
Originally Posted by
Xaggee
Hi...
I was away for a few days since I had to format my computer.
Would you also try this?
Code:
public void Customize()
{
...
Hud.GetPlugin<MarkerPlugin>().HealingWellDecorator.ToggleDecorators<GroundLabelDecorator>(groundLabelVisible = false);
...
}
"When you reach the top, get ready to drop!"
-
Member
error CS0103: The name 'groundLabelVisible' does not exist in the current context
-
Active Member
Originally Posted by
Xaggee
error CS0103: The name 'groundLabelVisible' does not exist in the current context
Even if the experts of this business do not come to our aid, let's continue looking for a solution...
Try this too, let's see what happens:
Code:
public void Customize()
{
...
Hud.RunOnPlugin<MarkerPlugin>(plugin => {
plugin.Enabled = true;
plugin.HealingWellDecorator.Remove(GroundLabelDecorator);
}
...
}
"When you reach the top, get ready to drop!"
-
Legendary
Line 81 does not "allow" to use ToogleDecorators in the custom code, undo your changes
Code:
decorator.ToggleDecorators<GroundLabelDecorator>(groundLabelVisible); // do not display ground labels when the actor is on the screen
(groundLabelVisible is a local variable, you cannot access it from elsewhere)
a quick way to remove the ground label would be to change that line to this one:
Code:
decorator.ToggleDecorators<GroundLabelDecorator>(false); // do not display ground labels when the actor is on the screen
Without modifying the original file (with custom Code):
Code:
Hud.RunOnPlugin<MarkerPlugin>(plugin =>
{
plugin.HealingWellDecorator.Decorators.RemoveAt(1);
} ) ;
( Decorators is a List, you can delete one by specifying the position , the first corresponds to 0 )
-
Post Thanks / Like - 2 Thanks
-
Member
Code:
Hud.RunOnPlugin<MarkerPlugin>(plugin =>
{
plugin.HealingWellDecorator.Decorators.RemoveAt(1);
} ) ;
This seems to work. I found a fleeting shrine and it displayed but a health pool did not. GGs and thank you.
-
Member
Code:
Hud.GetPlugin<MarkerPlugin>().HealingWellDecorator.Enabled = false;