Help with CreateBrush metod arguments explain and more menu

User Tag List

Results 1 to 4 of 4
  1. #1
    COMECOCO's Avatar Member
    Reputation
    1
    Join Date
    Dec 2017
    Posts
    5
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with CreateBrush metod arguments explain and more

    Im really trying to understand the methods to customize the plugins my way...so for example:

    CreateBrush(200, 250, 10, 10, 0);

    I was thinking the 200, 250, 10 was some kind of RGB arguments but its not...

    Can anyone explain the args for me? also the last 2 nums? (I think the last is the wide of the brush), i just want to customize the colors to my like...

    Also i will love to know if there is a guide to thud plugins methods? I see there is a lot of good plugin makers here but i have no idea how they do it, i will love to colaborate somehow but whatever info i try to find on google i only find people complaining about th

    Well thanks in advance!

    Help with CreateBrush metod arguments explain and more
  2. #2
    Noobz's Avatar Member
    Reputation
    6
    Join Date
    Mar 2017
    Posts
    143
    Thanks G/R
    8/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not an expert here, but since no one else has answered, 200 is the opacity or darkness of the brush. The 250, 10, 10 is the rgb value, and the last one is thickness I believe, but not sure on that one. Someone correct this if it is wrong please.

    Noobz

  3. #3
    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)
    Originally Posted by Noobz View Post
    Not an expert here, but since no one else has answered, 200 is the opacity or darkness of the brush. The 250, 10, 10 is the rgb value, and the last one is thickness I believe, but not sure on that one. Someone correct this if it is wrong please.

    Noobz
    I'm pretty sure to have answered that question before, but can't find the post.

    You can find most of the documentation in the code itself, all hud public api definition is located in /interfaces and the code is really straigthforward.

    In your case, you can find the method signature inside /interfaces/controllers/IRenderController.cs
    PHP Code:
        public interface IRenderController
        
    {
            
    //SNIP....
            
    IBrush CreateBrush(int aint rint gint bfloat strokeWidthDashStyle dash DashStyle.SolidCapStyle startCap CapStyle.FlatCapStyle endCap CapStyle.Flat);
            
    //SNIP....
        

    • a => alpha (0..255) (transparent to opaque)
    • r => red (0..255)
    • g => green (0..255)
    • b => blue (0..255)
    • strokeWidth => 0 mean filled, other values mean the 'border' thickness
    • other parameters have a default value and can be ignored (they are more advanced and a bit off-topic)


    Edit : question & answer added to my signature link ;p
    Last edited by JackCeparou; 05-31-2018 at 03:25 PM.
    Hide the Rum! --> Default theme customization 101 <--

  4. #4
    COMECOCO's Avatar Member
    Reputation
    1
    Join Date
    Dec 2017
    Posts
    5
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks so much, im looking right now what u guys said...100% correct! Now my eyes are open

Similar Threads

  1. i need help with a LUA teleport item and buff item...
    By trujillo in forum WoW EMU Questions & Requests
    Replies: 17
    Last Post: 09-16-2009, 02:05 AM
  2. Help with code to find boober and splash
    By Dalord Urgod in forum WoW Memory Editing
    Replies: 2
    Last Post: 03-13-2009, 09:18 PM
  3. help with getting TBC blood elfs and draenei
    By darknytte in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 11-04-2008, 02:29 PM
  4. WTS account with 70 rogue, tourny access and more $75
    By TheGreatRowaH in forum Members Only Accounts And CD Keys Buy Sell
    Replies: 3
    Last Post: 06-16-2008, 04:55 PM
All times are GMT -5. The time now is 01:10 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