Help with CreateBrush metod arguments explain and more menu

These ads disappear when you log in.

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

    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!

    These ads disappear when you log in.

  2. #2
    Noobz's Avatar Member CoreCoins User
    Reputation
    4
    Join Date
    Mar 2017
    Posts
    135
    Thanks G/R
    5/3
    Trade Feedback
    0 (0%)
    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 ? 🐒 CoreCoins User
    Reputation
    501
    Join Date
    Mar 2017
    Posts
    591
    Thanks G/R
    42/464
    Trade Feedback
    0 (0%)
    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
    4
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    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 09:52 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved. Digital Point modules: Sphinx-based search