-
Contributor
[v7.6] [INTERNATIONAL] [gz] CustomGroundShapeDecorator
Supported TurboHUD version: 7.6
Deprecated - Use (Default) GroundShapeDecorator instead
This is a Helper Class to display N-Stars or regular N-Edge
usage:
PHP Code:
new CustomGroundShapeDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(255, 255, 255, 255, 5),
Radius = 10f,
Shape = CustomGroundShape.NStar,
HasShadow = true,
Vertices = 5,
Angle = 45f,
SkipVertices = 1,
Rotation = false,
RotationSpeed = 30
};
Rotation is optional, RotationSpeed: small int is faster
more examples:
PHP Code:
triangle: Vertices = 3
square: Vertices = 4
cross or plus: Vertices = 4, SkipVertices = 2
pentagon: Vertices = 5
pentagram: Vertices = 5, SkipVertices = 2, Angle = 45f
5-Star: Vertices = 5, SkipVertices = 2, Angle = 9f
2 trinagles: Vertices = 6, SkipVertices = 2
octagon: Vertices = 8
2 squares: Vertices = 8, SkipVertices = 2
3 trinagles: Vertices = 9, SkipVertices = 3
install [C#] CustomGroundShape.cs - Pastebin.com to plugins/gz/CustomGroundShape.cs
greetz gjuz
Last edited by gjuz; 11-23-2017 at 08:30 AM.
-
Post Thanks / Like - 2 Thanks
-
Savvy ? 🐒
I like the idea and was wondering when someone will finally do it.
Now I know ;p
However, I think that a better approach would be to add more entries to the default GroundShape enum and ask KJ to integrate them into GroundShapeDecorator.
-
great work!
stolen for the new 7.3 ground shape decorator infrastructure
-
genius as f*ck:
-
Post Thanks / Like - 3 Thanks
-
Member
Awesome guys! gjuz for the idea and KJ for integrating it into HUD.
One request, could you make it so the "-1" works for the Radius setting, where it uses the actual radius of the object ?
Thank you.
-
Contributor
You'd better post a new request thread
-
Contributor
Originally Posted by
Litespeed0
Awesome guys! gjuz for the idea and KJ for integrating it into HUD.
One request, could you make it so the "-1" works for the Radius setting, where it uses the actual radius of the object ?
Thank you.
should work with radius = -1
tested a few minutes ago.
*little changes in code. nothing special. works as before ( radius too )
greetz gjuz
-
Contributor
-
you can set the angle in the groundshapedecorator, not in the shapepainter
-
Post Thanks / Like - 1 Thanks
gjuz (1 members gave Thanks to KillerJohn for this useful post)
-
Contributor
ah ok, got it.
"Rotation" for "angle"
PHP Code:
new GroundShapeDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(255, 255, 255, 255, 3),
Radius = 15,
ShapePainter = WorldStarShapePainter.New5Star(Hud),
Rotation = 45f,
}
greetz gjuz
-
Member
hi bois, how can i implement the that red and black circle to glq cursor on monster plugin ? bonus question how can i change (replace) red color to green(same as indicate myself as seen on pictues) in that same black and red circle?