-
Member
ocullus/sanctuary
How to disable those circles from thud ?
-
Contributor
Default theme customization 101
Hud.GetPlugin<OculusPlugin>().Enabled = false;
Hud.GetPlugin<PlayerSkillPlugin>(). InnerSanctuarySanctifiedGroundDecorator = false;
-
Post Thanks / Like - 1 Thanks
BezTwarzy (1 members gave Thanks to SeaDragon for this useful post)
-
Member
Thanks for help SeaDragon, and last question can i add 50 yards circle to know if i fully use zai gem?
-
Contributor
Originally Posted by
BezTwarzy
Thanks for help SeaDragon, and last question can i add 50 yards circle to know if i fully use zai gem?
Here you have:
[v7.2] [INTERNATIONAL] [glq] ZeiCircleForBoss
-
Post Thanks / Like - 1 Thanks
ADV2015 (1 members gave Thanks to MrOne for this useful post)
-
Member
Hello, i didnt wanna open a new thread so i will just ask here. How do i change color for inner sanctuary(outer ring)? do i have to make change for each rune or i can change them all together at once ? I admit i am not to bright for scripting and searching for colors numbers from tables... ive seen from mr. BM some nice oculus black circle ring customization, i would like to make it like that.
-
Active Member
InnerSanctuarySafeHavenDecorator = new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(100, 255, 26, 179, 4),
Radius = 15,
},
new GroundLabelDecorator(Hud)
{
CountDownFrom = 6,
TextFont = Hud.Render.CreateFont("tahoma", 8, 255, 3, 3, 3, true, false, 128, 0, 0, 0, true),
},
new GroundTimerDecorator(Hud)
{
CountDownFrom = 6,
BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
BackgroundBrushFill = Hud.Render.CreateBrush(100, 255, 26, 179, 0),
Radius = 35,
}
);
}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
using System.Linq;
namespace Turbo.Plugins.Default
{
public class OculusPlugin : BasePlugin, IInGameWorldPainter
{
public WorldDecoratorCollection Decorator { get; set; }
public OculusPlugin()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
Decorator = new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(255, 128, 255, 0, -4),
Radius = 10.0f,
},
new GroundLabelDecorator(Hud)
{
CountDownFrom = 7,
TextFont = Hud.Render.CreateFont("tahoma", 11, 255, 96, 255, 96, true, false, 128, 0, 0, 0, true),
},
new GroundTimerDecorator(Hud)
{
CountDownFrom = 7,
BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
BackgroundBrushFill = Hud.Render.CreateBrush(200, 0, 192, 0, 0),
Radius = 30,
}
);
}
public void PaintWorld(WorldLayer layer)
{
if (Hud.Game.IsInTown) return;
var actors = Hud.Game.Actors.Where(x => x.SnoActor.Sno == 4176 && x.GetAttributeValueAsInt(Hud.Sno.Attributes.Power_Buff_1_Visual_Effect_None, Hud.Sno.SnoPowers.OculusRing.Sno) == 1);
foreach (var actor in actors)
{
Decorator.Paint(layer, actor, actor.FloorCoordinate, null);
}
}
}
}
-
Post Thanks / Like - 1 Thanks
franehr (1 members gave Thanks to knight84 for this useful post)
-
Member
Originally Posted by
SeaDragon
Default theme customization 101
Hud.GetPlugin<OculusPlugin>().Enabled = false;
Hud.GetPlugin<PlayerSkillPlugin>(). InnerSanctuarySanctifiedGroundDecorator = false;
Hi SeadDragon. I am new to TurboHUD. I read the instruction and try to disable Monk Sanctuary by adding "Hud.GetPlugin<PlayerSkillPlugin>(). InnerSanctuarySanctifiedGroundDecorator = false" into my code. The code is in the folder Turbohud\plugins\User. But it does not work and make some other plugin disabled. When the TurboHUD opens, it writes "TurboHUD exceptions!(3)". Can u take a look at this? Thank you
------------------------------------------------
using Turbo.Plugins.Default;
namespace Turbo.Plugins.User
{
public class PluginInnerSanctuary : BasePlugin, ICustomizer
{
public PluginInnerSanctuary()
{
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()
{
Hud.GetPlugin<PlayerSkillPlugin>(). InnerSanctuarySanctifiedGroundDecorator = false;
}
}
}
-
Legendary
replace this line
Code:
Hud.GetPlugin<PlayerSkillPlugin>(). InnerSanctuarySanctifiedGroundDecorator = false;
with ..
Code:
Hud.GetPlugin<PlayerSkillPlugin>().InnerSanctuarySanctifiedGroundDecorator.Enabled = false;
-
Member
Originally Posted by
RNN
replace this line
Code:
Hud.GetPlugin<PlayerSkillPlugin>(). InnerSanctuarySanctifiedGroundDecorator = false;
with ..
Code:
Hud.GetPlugin<PlayerSkillPlugin>().InnerSanctuarySanctifiedGroundDecorator.Enabled = false;
Hi, thank you for your rapid reply, I tried but it does not work. Very stange. I have to use Hud.TogglePlugin<PlayerSkillPlugin>(false); instead. If possible, can u please check again? Thank you,
-
Legendary
The previous code only disables the sanctuary for a rune
If you want to disable it entirely (it is not advisable to do it if you play in a group)
Code:
Hud.GetPlugin<PlayerSkillPlugin>().InnerSanctuarySanctifiedGroundDecorator.Enabled = false;
Hud.GetPlugin<PlayerSkillPlugin>().InnerSanctuaryDefaultDecorator.Enabled = false;
Hud.GetPlugin<PlayerSkillPlugin>().InnerSanctuarySafeHavenDecorator.Enabled = false;
Hud.GetPlugin<PlayerSkillPlugin>().InnerSanctuaryTempleOfProtecteionDecorator.Enabled = false;