by saegiru » Mon Feb 15, 2016 2:02 pm
Hi, after much searching I have yet to find a definitive answer for this - but would it be possible to add system time as an accessible display for DrawNumber or something in SBARINFO? I just find that it would be exceedingly convenient to have system time available to display as it already is on the AltHUD.
If there is a good reason that this can't be allowed, that is fine - but as it is already accessible via the AltHUD I don't see why it wouldn't be?
As for the why, it's mainly for convenience - I would like the capability to have it show on screen as something like "Earth Time: hh:mm:ss" just so that when I'm playing long sessions, I can keep an eye on what time it is. I even went so far as to create a "clock" ACS script that you set using CVARs, and runs "like" a clock, but after you save or load, it goes back to displaying the incorrect time so you would have to reset it if you die and reload, or start a new map, etc.
Maybe add a few new variables to SBARINFO for drawnumber... SysHr, SysMin, SysSec?
Example:
Drawstring SMALLFONT, Green, "Earth time: ", 50, 50;
Drawnumber 2, SMALLFONT, Green, SysHr, 60, 50;
Drawstring SMALLFONT, Green, ":", 60, 52;
Drawnumber 2, SMALLFONT, Green, SysMin, 60, 54;
Drawstring SMALLFONT, Green, ":", 60, 56;
Drawnumber 2, SMALLFONT, Green, SysSec, 60, 58;
Obviously that may or may not be lined up right - but that is the general idea... Again, if a similar function exists and I'm not aware - let me know, and if for some technical reason this can't be allowed - let me know as well
This is the one of the last things I want out of my perfect HUD at this point, and it is driving me crazy that i can't implement it.
Thanks!
Hi, after much searching I have yet to find a definitive answer for this - but would it be possible to add system time as an accessible display for DrawNumber or something in SBARINFO? I just find that it would be exceedingly convenient to have system time available to display as it already is on the AltHUD.
If there is a good reason that this can't be allowed, that is fine - but as it is already accessible via the AltHUD I don't see why it wouldn't be?
As for the why, it's mainly for convenience - I would like the capability to have it show on screen as something like "Earth Time: hh:mm:ss" just so that when I'm playing long sessions, I can keep an eye on what time it is. I even went so far as to create a "clock" ACS script that you set using CVARs, and runs "like" a clock, but after you save or load, it goes back to displaying the incorrect time so you would have to reset it if you die and reload, or start a new map, etc.
Maybe add a few new variables to SBARINFO for drawnumber... SysHr, SysMin, SysSec?
Example:
Drawstring SMALLFONT, Green, "Earth time: ", 50, 50;
Drawnumber 2, SMALLFONT, Green, SysHr, 60, 50;
Drawstring SMALLFONT, Green, ":", 60, 52;
Drawnumber 2, SMALLFONT, Green, SysMin, 60, 54;
Drawstring SMALLFONT, Green, ":", 60, 56;
Drawnumber 2, SMALLFONT, Green, SysSec, 60, 58;
Obviously that may or may not be lined up right - but that is the general idea... Again, if a similar function exists and I'm not aware - let me know, and if for some technical reason this can't be allowed - let me know as well
This is the one of the last things I want out of my perfect HUD at this point, and it is driving me crazy that i can't implement it.
Thanks!