AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [CSGO] New HTML Font supported hud element (https://forums.alliedmods.net/showthread.php?t=326935)

backwards 08-25-2020 06:43

Re: [CSGO] New HTML Font supported hud element
 
maybe its based on your game language? did you make any edits to the resource files for the green $ on hint text?

MAGNET12 08-25-2020 11:16

Re: [CSGO] New HTML Font supported hud element
 
Nah, I haven't modified any files. I might try to tamper in the language settings

Kubad 08-25-2020 12:53

Re: [CSGO] New HTML Font supported hud element
 
Quote:

Originally Posted by digin (Post 2715395)
it works for me
PHP Code:

newevent.SetString("funfact_token"" <img src='image_url'>"); 


i try use img but i have problem when i use it first time img is too small but when i used that second time img is okay maybe find some fix

MAGNET12 08-25-2020 15:49

Re: [CSGO] New HTML Font supported hud element
 
Quote:

Originally Posted by Kubad (Post 2715489)
i try use img but i have problem when i use it first time img is too small but when i used that second time img is okay maybe find some fix

Works exactly the same way on my server

Kubad 08-26-2020 07:42

Re: [CSGO] New HTML Font supported hud element
 
and i find 1 more bug with img when i used that its too small and text behind that doesnt show

OXYD 09-09-2020 21:30

Re: [CSGO] New HTML Font supported hud element
 
Quote:

Originally Posted by backwards (Post 2715462)
maybe its based on your game language? did you make any edits to the resource files for the green $ on hint text?

Which html tag u used to change the font size? cuz i can't edit it size too.

http://prntscr.com/uem0h3

PHP Code:

    Event text CreateEvent("cs_win_panel_round");
    
text.SetString("funfact_token"" <b><font size='15' color='#ffa500'>TEXT TEXT</font></b>"); 


bklol 09-18-2020 04:47

Re: [CSGO] New HTML Font supported hud element
 
Quote:

Originally Posted by OXYD (Post 2717325)
Which html tag u used to change the font size? cuz i can't edit it size too.

http://prntscr.com/uem0h3

PHP Code:

    Event text CreateEvent("cs_win_panel_round");
    
text.SetString("funfact_token"" <b><font size='15' color='#ffa500'>TEXT TEXT</font></b>"); 


PHP Code:

newevent_message.SetString("funfact_token""<u><span class='fontSize-xxl' color='#7FFF00'>(`ヮ´ )σ`∀´) ゚∀゚)σ</span></u> "); 


Oylsister 04-10-2021 00:14

Re: [CSGO] New HTML Font supported hud element
 
Is this possible for to make countdown timer on this HUD?

Ilusion9 08-27-2021 18:36

Re: [CSGO] New HTML Font supported hud element
 
Quote:

Originally Posted by Oylsister (Post 2743628)
Is this possible for to make countdown timer on this HUD?

yes, if you can override these variables:

PHP Code:

m_bShouldSetWinPanelExtraData true;
m_fSetWinPanelExtraDataTime gpGlobals->curtime 1.0f

from csgo code.

SHUFEN 08-30-2021 01:53

Re: [CSGO] New HTML Font supported hud element
 
Quote:

Originally Posted by Ilusion9 (Post 2756334)
yes, if you can override these variables:

PHP Code:

m_bShouldSetWinPanelExtraData true;
m_fSetWinPanelExtraDataTime gpGlobals->curtime 1.0f

from csgo code.

I was interested in that, but apparently that is on the client side, and cannot be changed from the server.


All times are GMT -4. The time now is 22:38.

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