Barotrauma

Barotrauma

Screen clock c#
Showing 1-10 of 13 entries
< 1  2 >
Update: 10 Apr @ 12:25pm

steam bug

Update: 10 Apr @ 12:23pm

Updated to 1.8.6.2

Update: 30 Jul, 2024 @ 8:37am

Now i use GameMain.GameSession?.RoundDuration instead of TotalTimeUnpaused if(Screen.Selected == GameMain.GameScreen)

because:
- it's more accurate
- TotalTimeUnpaused doesn't work with fast forward mod

I didn't want to use it because if there's no round then there's no RoundDuration
+ it sometimes jumps over 1 sec
But now i have to

Update: 2 Jul, 2024 @ 4:12pm

Did some refactor

Settings are now stored in xml

BackgroundColor - backround text color
TextPos - vector (0..1, 0..1)
OnlyInGame - if true clock drawn only in game

Added some commands:
clockbackgroundcolor, clocktextpos, clockonlyingame

call without arguments will print current value

Color commands now can read color name, space or comma separated color components
Colors are autocompleted, try pressing tab

also time from round start now ignores time in menu

Update: 24 Apr, 2024 @ 10:30am

tested in 1.4.4.1, should work as before

Update: 6 Apr, 2024 @ 11:49pm

fixed commands not permitted in multiplayer

Update: 12 Feb, 2024 @ 7:29pm

added some useless try catches

Update: 12 Feb, 2024 @ 7:11pm

found weird bug:
This mod in combinations with some other c# mods can increase loading time and crash the game without a report after multiple lobbies

idk what causing it, but there's no such problem with older version when i simple saved settings as text instead of xml

So i revert saving method

Also i forgot to remove Forced from RunConfig.xml and didn't notice because i have "treat forced mods as normal" in lua settings

setting it back to standard

Update: 1 Feb, 2024 @ 5:51pm

i just tried to play with it and realised that command names are too hard to remember and counterintuitive

all clock commands now starting with clock
clockcolor
clockdraw
clockstartingpoint

maybe not very self explanatory but easier to find with tab

if you have better ideas about names - suggest them

literally took me 1min to change it
and 10min to write this

Update: 18 Dec, 2023 @ 2:21am

added an option to count time from round start

now saving settings in xml

clock now react to settings change instantly

text background Color.Black * 0.5f -> Color.Black * 0.25f