[v7.2] [INTERNATIONAL] [gz] CustomGroundShapeDecorator menu

User Tag List

Results 1 to 11 of 11
  1. #1
    gjuz's Avatar Contributor
    Reputation
    121
    Join Date
    Mar 2017
    Posts
    228
    Thanks G/R
    49/118
    Trade Feedback
    0 (0%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    [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(2552552552555),
        
    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:
    triangleVertices 3
    square
    Vertices 4
    cross 
    or plusVertices 4SkipVertices 2
    pentagon
    Vertices 5
    pentagram
    Vertices 5SkipVertices 2Angle 45f
    5
    -StarVertices 5SkipVertices 2Angle 9f
    2 trinagles
    Vertices 6SkipVertices 2
    octagon
    Vertices 8
    2 squares
    Vertices 8SkipVertices 2
    3 trinagles
    Vertices 9SkipVertices 
    install [C#] CustomGroundShape.cs - Pastebin.com to plugins/gz/CustomGroundShape.cs


    greetz gjuz
    Last edited by gjuz; 11-23-2017 at 08:30 AM.

    [v7.2] [INTERNATIONAL] [gz] CustomGroundShapeDecorator
  2. Thanks bobbydigital12, Litespeed0 (2 members gave Thanks to gjuz for this useful post)
  3. #2
    JackCeparou's Avatar Savvy ? 🐒
    Reputation
    534
    Join Date
    Mar 2017
    Posts
    588
    Thanks G/R
    51/490
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.
    Hide the Rum! --> Default theme customization 101 <--

  4. #3
    KillerJohn's Avatar TurboHUD HUDmaster CoreCoins Purchaser Authenticator enabled
    Reputation
    3693
    Join Date
    Jul 2012
    Posts
    2,532
    Thanks G/R
    46/3335
    Trade Feedback
    0 (0%)
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    great work!

    stolen for the new 7.3 ground shape decorator infrastructure

  5. #4
    KillerJohn's Avatar TurboHUD HUDmaster CoreCoins Purchaser Authenticator enabled
    Reputation
    3693
    Join Date
    Jul 2012
    Posts
    2,532
    Thanks G/R
    46/3335
    Trade Feedback
    0 (0%)
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    genius as f*ck:


  6. Thanks Litespeed0, gjuz, bobbydigital12 (3 members gave Thanks to KillerJohn for this useful post)
  7. #5
    Litespeed0's Avatar Member
    Reputation
    30
    Join Date
    Mar 2017
    Posts
    62
    Thanks G/R
    47/26
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  8. #6
    SeaDragon's Avatar Contributor
    Reputation
    321
    Join Date
    Aug 2016
    Posts
    1,041
    Thanks G/R
    140/299
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You'd better post a new request thread

  9. #7
    gjuz's Avatar Contributor
    Reputation
    121
    Join Date
    Mar 2017
    Posts
    228
    Thanks G/R
    49/118
    Trade Feedback
    0 (0%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Litespeed0 View Post
    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

  10. #8
    gjuz's Avatar Contributor
    Reputation
    121
    Join Date
    Mar 2017
    Posts
    228
    Thanks G/R
    49/118
    Trade Feedback
    0 (0%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by KillerJohn View Post
    great work!

    stolen for the new 7.3 ground shape decorator infrastructure
    Hi KJ,


    your 5 star and your pentagram makes no difference. that's why i have the option to set an angle to start with.



    as you see the "angle" turns the 5star (spike up) to a pentagram (spike down)

    this is what angle in my code does:



    your new structure is very nice, love this.
    request:
    • add the angle
    • add radius = -1 option



    greetz gjuz

  11. #9
    KillerJohn's Avatar TurboHUD HUDmaster CoreCoins Purchaser Authenticator enabled
    Reputation
    3693
    Join Date
    Jul 2012
    Posts
    2,532
    Thanks G/R
    46/3335
    Trade Feedback
    0 (0%)
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    you can set the angle in the groundshapedecorator, not in the shapepainter

  12. Thanks gjuz (1 members gave Thanks to KillerJohn for this useful post)
  13. #10
    gjuz's Avatar Contributor
    Reputation
    121
    Join Date
    Mar 2017
    Posts
    228
    Thanks G/R
    49/118
    Trade Feedback
    0 (0%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    ah ok, got it.
    "Rotation" for "angle"
    PHP Code:
    new GroundShapeDecorator(Hud)
    {
        
    Brush Hud.Render.CreateBrush(2552552552553),
        
    Radius 15,
        
    ShapePainter WorldStarShapePainter.New5Star(Hud),
        
    Rotation 45f,


    greetz gjuz

  14. #11
    franehr's Avatar Member
    Reputation
    6
    Join Date
    Oct 2017
    Posts
    82
    Thanks G/R
    34/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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?

Similar Threads

  1. Internal Mail Error
    By delldude1989 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 05-05-2008, 04:35 PM
  2. International Talk Like a Pirate Day!
    By Loveshock in forum Community Chat
    Replies: 13
    Last Post: 09-20-2007, 12:11 PM
  3. International Rules to Calling Shotgun
    By matswurld in forum Community Chat
    Replies: 1
    Last Post: 05-18-2007, 08:37 PM
  4. President Bush, CAUGHT SWEARING at international meeting
    By mantalcore in forum Community Chat
    Replies: 15
    Last Post: 08-14-2006, 09:41 AM
All times are GMT -5. The time now is 09:48 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search