-
Contributor
[v9.2] [INTERNATIONAL] [gjuz] Poolstate
Supported TurboHUD version: 9.2
Hi,
this plugin shows you: (next to your portrait frame)
- your current pool count
- your deaths (in total for the current hud session)
- your death in this GR
- your death timer for next death in this GR
and your partys pool count next to their portrait
for customisation:
Code:
Hud.RunOnPlugin<gjuz.PoolState>(plugin =>
{
plugin.ShowDeathCounter = true; //overall death counter
plugin.ShowGRDeathCounter = true; //death counter for current GR
plugin.ShowGRSecondsCounter = true; //death penalty time for current GR
plugin.BracketGRDeathCounter = true; //bracketing GR death counter for better reading
plugin.DeathsTotalSymbol = Char.ConvertFromUtf32(0x00002620); //Unicode Character 'SKULL AND CROSSBONES' (U+2620)
plugin.DeathsInRiftSymbol = Char.ConvertFromUtf32(0x0001F548); //Unicode Character 'CELTIC CROSS' (U+1F548)
plugin.HasPoolSymbol = Char.ConvertFromUtf32(0x00002B1F); //Unicode Character 'BLACK PENTAGON' (U+2B1F)
plugin.EmptyPoolSymbol = Char.ConvertFromUtf32(0x00002B20); //Unicode Character 'WHITE PENTAGON' (U+2B20)
plugin.PortraitInfoFont = Hud.Render.CreateFont("tahoma", 7f, 255, 180, 147, 109, false, false, true);
plugin.OffsetXmultiplier = 0.05f;
plugin.OffsetYmultiplier = 0.117f;
});
Plugin install to /plugins/gjuz/PoolState.cs
scr: [C#] PoolState.cs - Pastebin.com
#Hint :
if you want to change unicode symbols use
Code:
System.Char.ConvertFromUtf32(UTF-32 (hex) number);
the hexadecimal number can be found on Unicode Character 'SKULL AND CROSSBONES' (U+2620), just search for your symbol.
unicode.png
#Edit :
#Update :
support HUD [v9.2]
fixed "suspicious code" exception (unicode)
have fun
greetz gjuz
Last edited by gjuz; 11-18-2020 at 02:45 PM.
Reason: remarks
-
Post Thanks / Like - 9 Thanks
-
Savvy ? 🐒
Great, one less to do for me ^^'
Some quick remarks :
- public properties should be in CamelCase not camelCase.
- little typo in the method name 'wirtePlayerInfo' -> 'writePlayerInfo' (and personnaly i would have used 'draw' instead of 'write' but that's ok ;p)
- method names should be CamelCase as well not camelCase (private or public doesn't matter for methods)
- be sure someone will ask you to move the text around, you should make an option ;p
Good job overall.
-
-
Contributor
Originally Posted by
JackCeparou
Great, one less to do for me ^^'
Some quick remarks :
- public properties should be in CamelCase not camelCase. Done
- little typo in the method name 'wirtePlayerInfo' -> 'writePlayerInfo' (and personnaly i would have used 'draw' instead of 'write' but that's ok ;p) Done, yes Draw ist better
- method names should be CamelCase as well not camelCase (private or public doesn't matter for methods) Done
- be sure someone will ask you to move the text around, you should make an option ;p check OffsetXmultiplier & OffsetYmultiplier
Good job overall.
greetz gjuz
-
Active Member
gjuz, can you make it so we can see party member DeathsInRift count too?
Thnaks
-
Contributor
Originally Posted by
Csavo
gjuz, can you make it so we can see party member DeathsInRift count too?
Thnaks
No, Hud only counts other players correctly if they are in range...
you will notice this with pools, too.
Hud has to offer a precise state if players are alive - even if they are out of range.
if there is an update in future, i'll add this
greetz gjuz
-
-
Savvy ? 🐒
I think it's possible to clean up GetPlayerInfoText() a bit.
But it's ok for me.
-
Member
I'm sorry what is poolcount?
-
Active Member
-
Member
gjuz, how to disable death counts and keep only the pool count?
-
Contributor
Originally Posted by
cherouvim13
gjuz, how to disable death counts and keep only the pool count?
#Added option to enable/disable DeathCounter
use
PHP Code:
ShowDeathCounter = false;
greetz gjuz
-
Post Thanks / Like - 1 Thanks
cherouvim13 (1 members gave Thanks to gjuz for this useful post)
-
Active Member
can you make it that it remembers the last poolstate of a partymember in range?
-
Contributor
it usually remembers the state, for some time...
but i can add a variable to store data in, if player is not in range. if you like.
greetz gjuz
Last edited by gjuz; 10-06-2017 at 10:16 PM.
-
Post Thanks / Like - 1 Thanks
cherouvim13 (1 members gave Thanks to gjuz for this useful post)
-
Active Member
Is it possible to make an option for showing deaths in current hud session?