AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Image in HUD (https://forums.alliedmods.net/showthread.php?t=331981)

tonline_kms65 04-16-2021 20:47

Image in HUD
 
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?

Marttt 04-17-2021 09:18

Re: Image in HUD
 
I think you have to use r_screenoverlay (if I understand correctly)

Check: https://forums.alliedmods.net/showthread.php?t=149750

tonline_kms65 04-17-2021 10:00

Re: Image in HUD
 
Quote:

Originally Posted by Marttt (Post 2744318)
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 04-18-2021 03:11

Re: Image in HUD
 
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)


All times are GMT -4. The time now is 01:55.

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