[CS:GO] HintText

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
velocity
Senior Member
Posts: 220
Joined: Sat May 10, 2014 6:17 pm

[CS:GO] HintText

Postby velocity » Sat Nov 03, 2018 9:03 pm

I cannot change the font size in a hinttext in CS:GO

This doesn't work

HintText("<font size='30'>Hello</font>").send(index)
Last edited by velocity on Sat Nov 03, 2018 9:23 pm, edited 1 time in total.
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: HintText

Postby Ayuto » Sat Nov 03, 2018 9:21 pm

Which game?
User avatar
velocity
Senior Member
Posts: 220
Joined: Sat May 10, 2014 6:17 pm

Re: HintText

Postby velocity » Sat Nov 03, 2018 9:22 pm

cs:go
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: [CS:GO] HintText

Postby Ayuto » Tue Nov 06, 2018 5:35 pm

https://forums.alliedmods.net/showthrea ... ost2604171

This is working fine for me:

Syntax: Select all

from messages import HintText
from events import Event

@Event('player_say')
def f(event):
HintText('<span class="fontSize-xs">Hello</span>').send()
decompile
Senior Member
Posts: 416
Joined: Sat Oct 10, 2015 10:37 am
Location: Germany
Contact:

Re: [CS:GO] HintText

Postby decompile » Wed Nov 07, 2018 10:30 pm

I saw many using the "<pre>" tag. Apparently it makes the font size visible and makes /t work again.
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: [CS:GO] HintText

Postby Ayuto » Thu Nov 08, 2018 9:40 am

As mentioned in the linked thread, you can only change the font size by using the style classes. The pre-tag won't help.

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 35 guests