ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
How UI icons work?

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  22:46:16  8 August 2014
profilee-mailreply Message URLTo the Top
Senior Resident

On forum: 02/23/2013
Messages: 221
How UI icons work?

I guess I don't understand how implementing icons for your hud like health bar and stanima works. I know how to make icons that appear in your inventory work, but not for on screen when you are out of your inventory. How do I figure out where my icons go when putting them on the HUD?
  13:00:38  9 August 2014
profilee-mailreply Message URLTo the Top
Senior Resident

On forum: 01/25/2013
Messages: 454
The easiest way is just to add an entry to ui_custom_msgs.xml. Keep in mind that the coordinates are based on 1024x768 and then stretched to whatever the actual display resolution is. You can then add your new element from a script with

get_hud():AddCustomStatic( "whatever_the_name_is", true )

and remove it with

get_hud():RemoveCustomStatic( "whatever_the_name_is" )

Each word should be at least 3 characters long.
Search conditions:    - spaces as AND    - spaces as OR   
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion

All short dates are in Month-Day-Year format.


Copyright © 1995-2021 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.