How to display potion icon texture or potion buff in my code menu

User Tag List

Results 1 to 3 of 3
  1. #1
    takayo72's Avatar Active Member
    Reputation
    17
    Join Date
    Jan 2018
    Posts
    203
    Thanks G/R
    43/15
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How to display potion icon texture or potion buff in my code

    I ve wrote a plugin which display a text when potion is ready
    BaiduShurufa_2019-8-20_8-59-25.png

    Here is my code
    [C#] using System; using Turbo.Plugins.Default; namespace Turbo.Plugins.adrian { - Pastebin.com

    Now i want to display the potion icon texture instead of text.

    How could i modify the code ? Or should i display the potion buff icon instead ?

    How to display potion icon texture or potion buff in my code
  2. #2
    User5981's Avatar First Dev On The Internet
    Reputation
    379
    Join Date
    Aug 2017
    Posts
    765
    Thanks G/R
    30/358
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    potions — imgbb.com

    var texture = Hud.Texture.GetTexture(TEXTURENUMBERINIMAGEABOVE);
    var itemSizeX = 63f; // ADJUST TO RESPECT THE X Y RATIO OF THE POTION IMG
    var itemSizeY = 63f; // potions are squares 63 x63 pixels so use same X and Y
    texture.Draw(X, Y, itemSizeX, itemSizeY, itemOpacity);
    Supported version for all Resu plugins

  3. Thanks JarJarD3, RNN (2 members gave Thanks to User5981 for this useful post)
  4. #3
    JarJarD3's Avatar Contributor
    Reputation
    106
    Join Date
    Oct 2017
    Posts
    395
    Thanks G/R
    41/101
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Originally Posted by User5981 View Post
    potions — imgbb.com

    var texture = Hud.Texture.GetTexture(TEXTURENUMBERINIMAGEABOVE);
    var itemSizeX = 63f; // ADJUST TO RESPECT THE X Y RATIO OF THE POTION IMG
    var itemSizeY = 63f; // potions are squares 63 x63 pixels so use same X and Y
    texture.Draw(X, Y, itemSizeX, itemSizeY, itemOpacity);
    You're the man!

Similar Threads

  1. [How To] How to display specific buff icons besides the character?
    By a1dlez in forum TurboHUD Support
    Replies: 2
    Last Post: 08-02-2019, 01:54 AM
  2. [GUIDE] How to make items cost 'tokens' or 'event coins'
    By Bohater in forum WoW EMU Guides & Tutorials
    Replies: 81
    Last Post: 12-27-2010, 07:35 AM
  3. how to set player as gm or 6 persmision
    By ilovethissite in forum World of Warcraft General
    Replies: 1
    Last Post: 12-27-2006, 09:07 AM
  4. Replies: 4
    Last Post: 12-21-2006, 10:34 PM
  5. How to change models and textures client side only
    By Matt in forum World of Warcraft Guides
    Replies: 9
    Last Post: 11-29-2006, 12:35 AM
All times are GMT -5. The time now is 01:05 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