#Set Float value for panel

1 messages · Page 1 of 1 (latest)

deft loom
#

I want to set float or string value as text for panel. There is SetAttributeInt() function that sets integer value. I did not find SetAttibuteFloat so tried to do with SetAtributeString. It did not help me too. When I set
teamPanel.SetAttributeString( "recent_score_count", "1,4" )
for some reason it returns 1, not "1.4" and not 1.4 , seems to autoconvert.
When I am trying to set "hello" it returns 0 (not displaying at all).
PS: overthrow_scoreboard_team_overlay.js.

wide jackal
#

just set the text in js

#

panel.text = "whatever you want";

deft loom
wide jackal
#

it does work that way assuming the panel is a label

deft loom
#

I tried it.