Scripts / [SOLVED] [HUD] The text of the buttons does not change

Author
Message
DenZelik
6
Years of Service
User Offline
Joined: 4th Sep 2018
Location: Novoaltaisk
Posted: 21st Aug 2023 16:06
Hello everyone

I'm trying to change the text of the buttons through the script. All other parameters are successfully changed, except for the text. Maybe I'm doing something wrong.

All buttons have text like "test:1"; "test:2".

Here is the code executed in "_main".



I was guided by the code in the hud0.lua script

Thank you in advance!
Cryengine 5, GameGuru and UE4 - one love

The author of this post has marked a post as an answer.

Go to answer
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 24th Aug 2023 22:54
This post has been marked by the post author as the answer.
@ DenZelik
https://discord.com/channels/950796460683829329/951155041740394566/1144381152031948870
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
DenZelik
6
Years of Service
User Offline
Joined: 4th Sep 2018
Location: Novoaltaisk
Posted: 26th Aug 2023 12:05
@ 3com

Understood. Thank you so much for the answer!
Cryengine 5, GameGuru and UE4 - one love

Login to post a reply

Server time is: 2024-11-21 10:12:45
Your offset time is: 2024-11-21 10:12:45