 |
 |
 |
|
 |
 |
 |
|
 |
 |
Adding the time to the HUD |
|
1 2 3 4 | Next 10 events »| All Messages |
|
|
18:32:16 8 March 2009 |
|
bamah
Senior Resident
On forum: 02/10/2008
 Message edited by: bamah 03/08/2009 23:08:17
Messages: 911
|
Time display for hud no frame
Add to bind_stalker.script
--Time display for in game mini map
show_time()
--Time display for in game mini map
function show_time()
local hud = get_hud()
local cs = hud:GetCustomStatic("hud_show_time"
if cs == nil then
hud:AddCustomStatic("hud_show_time", true)
cs = hud:GetCustomStatic("hud_show_time"
end
local time_h = level.get_time_hours()
local time_m = level.get_time_minutes()
local msg
if time_m >= 10 then
msg = string.format(" d:d\\n", time_h, time_m)
else
msg = string.format(" d:d\\n", time_h, time_m)
end
if cs ~= nil then
cs:wnd():SetText(msg)
end
end
Add to ui_custom_msgs.xml
<hud_show_time x="90" y="204" width="900" height="100" complex_mode="1">
<text font="letterica18" r="255" g="255" b="255" a="255" align="l"/>
</hud_show_time>
edit
Parentheses for smiley
edit for BobQ
d: = percent zero two D colon |
04:18:55 9 March 2009 |
|
Storm Shadow
A machine, a Shadow Machine. (Resident)
 On forum: 11/14/2007
 Message edited by: Storm Shadow 03/09/2009 4:28:58
Messages: 1430
|
Bamah, bro if you put [ pre ] and [ /pre ] (without the spaces) headers around your code, it will display correctly. eg:
code:
(1 2 3 4")
d:
end code, etc.
edit: fucken forum software, nevermind my post, I don't seam to know what I'm talking about. lol.
edit2: the other way you can do it, is to put italic marks in between your code, eg:
%02d:
so, without spaces, it looks like this: %[ i ][ /i ]0[ i ][ /i ]2d:
_________________________________________________________________
STALKER Rebalanced v1.2
An Evolution in Stalker Gameplay
http://www.moddb.com/mods/rebalanced
|
05:26:11 9 March 2009 |
|
bamah
Senior Resident
On forum: 02/10/2008
Messages: 911
|
Romulous,
You have mail! |
|
1 2 3 4 | Next 10 events »| All Messages |
|
|
|
» » |
|
All short dates are in Month-Day-Year format. |
 |
|
 |
|
|
|
 |
 |
 |