-
Member
How to change the color of monk's "Inner Sanctuary " in TH
HI, guys
as title , how to change the color of monk's "Inner Sanctuary ",
because Inner Sanctuary color is dark gold and not obvious in GR
monk.jpg
-
Contributor
try to add the following code in PluginEnablerOrDisablerPlugin.cs
Hud.RunOnPlugin<PlayerSkillPlugin>(plugin => {
plugin.InnerSanctuaryTempleOfProtecteionDecorator.Decorators.Clear();
plugin.InnerSanctuaryTempleOfProtecteionDecorator.Decorators.Add(new GroundCircleDecorator(Hud) {
Brush = Hud.Render.CreateBrush(100, 255, 204, 0, 4), // adjust the color here
Radius = 11,
});
plugin.InnerSanctuaryTempleOfProtecteionDecorator.Decorators.Add(new GroundLabelDecorator(Hud) {
CountDownFrom = 6,
TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 100, 255, 150, true, false, 128, 0, 0, 0, true),
});
plugin.InnerSanctuaryTempleOfProtecteionDecorator.Decorators.Add(new GroundTimerDecorator(Hud) {
CountDownFrom = 6,
BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
BackgroundBrushFill = Hud.Render.CreateBrush(100, 255, 204, 0, 0),
Radius = 35,
});
}
-
Member
Originally Posted by
s4000
try to add the following code in PluginEnablerOrDisablerPlugin.cs
Hud.RunOnPlugin<PlayerSkillPlugin>(plugin => {
plugin.InnerSanctuaryTempleOfProtecteionDecorator.Decorators.Clear();
plugin.InnerSanctuaryTempleOfProtecteionDecorator.Decorators.Add(new GroundCircleDecorator(Hud) {
Brush = Hud.Render.CreateBrush(100, 255, 204, 0, 4), // adjust the color here
Radius = 11,
});
plugin.InnerSanctuaryTempleOfProtecteionDecorator.Decorators.Add(new GroundLabelDecorator(Hud) {
CountDownFrom = 6,
TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 100, 255, 150, true, false, 128, 0, 0, 0, true),
});
plugin.InnerSanctuaryTempleOfProtecteionDecorator.Decorators.Add(new GroundTimerDecorator(Hud) {
CountDownFrom = 6,
BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
BackgroundBrushFill = Hud.Render.CreateBrush(100, 255, 204, 0, 0),
Radius = 35,
});
}
i get exceptions with that
-
Contributor
Modified, should be OK, color reference can be find in RGB Color Codes Chart
Hud.RunOnPlugin<PlayerSkillPlugin>(plugin => {
plugin.InnerSanctuaryTempleOfProtecteionDecorator.Decorators.Clear();
plugin.InnerSanctuaryTempleOfProtecteionDecorator.Decorators.Add(new GroundCircleDecorator(Hud) {
Brush = Hud.Render.CreateBrush(100, 255, 204, 0, 4), // adjust the color here
Radius = 11,
});
plugin.InnerSanctuaryTempleOfProtecteionDecorator.Decorators.Add(new GroundLabelDecorator(Hud) {
CountDownFrom = 6,
TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 100, 255, 150, true, false, 128, 0, 0, 0, true),
});
plugin.InnerSanctuaryTempleOfProtecteionDecorator.Decorators.Add(new GroundTimerDecorator(Hud) {
CountDownFrom = 6,
BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
BackgroundBrushFill = Hud.Render.CreateBrush(100, 255, 204, 0, 0),
Radius = 35,
});
});
-
Post Thanks / Like - 1 Thanks
van9999 (1 members gave Thanks to s4000 for this useful post)
-
Member