Raised This Month: $12 Target: $400
 3% 

Image in HUD


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tonline_kms65
Member
Join Date: Aug 2016
Location: Ru. Komsomol-on-Amur
Old 04-16-2021 , 20:47   Image in HUD
Reply With Quote #1

Hello, everyone.
How can I display a picture in the HUD? Not text, but a picture.
Game counter-strike:source


PHP Code:
    char images[256] = "https://upload.wikimedia.org/wikipedia/commons/9/9a/PNG_transparency_demonstration_2";    
    
PrintHintText(iCreator"<font><img src='%s.png'</font>"images); 
As the picture does not format, just a string. What am I doing wrong?

Last edited by tonline_kms65; 04-17-2021 at 05:07.
tonline_kms65 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 04-17-2021 , 09:18   Re: Image in HUD
Reply With Quote #2

I think you have to use r_screenoverlay (if I understand correctly)

Check: https://forums.alliedmods.net/showthread.php?t=149750
__________________
Marttt is offline
tonline_kms65
Member
Join Date: Aug 2016
Location: Ru. Komsomol-on-Amur
Old 04-17-2021 , 10:00   Re: Image in HUD
Reply With Quote #3

Quote:
Originally Posted by Marttt View Post
I think you have to use r_screenoverlay (if I understand correctly)

Check: https://forums.alliedmods.net/showthread.php?t=149750
Thank you, but this is completely different.
tonline_kms65 is offline
tonline_kms65
Member
Join Date: Aug 2016
Location: Ru. Komsomol-on-Amur
Old 04-18-2021 , 03:11   Re: Image in HUD
Reply With Quote #4

I want to write a picture in bytecode. Attempt to use BfWriteShort, BfWriteEntity, etc. for this purpose. I can't figure out how to translate an image into bytecode. I try to use BfReadShort, BfReadEntity. Who has faced this, who has experience?

I need a minimap image on the player screen, for example, as in the vgui2 source code.
Or at least display the player image (I have my own ENT) "sprites/player_red_self" on the finished minimap (radar)

Last edited by tonline_kms65; 04-18-2021 at 03:18.
tonline_kms65 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode