-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
SBARINFO
140 lines (130 loc) · 5.68 KB
/
SBARINFO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
/**
* Copyright (c) 2017-2022 DRRP-Team
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
base Doom;
height 32;
monospacefonts true, "0";
statusbar normal { // Standard Doom Status bar
drawimage "STBAR", 0, 168;
drawnumber 3, HUDFONT_DOOM, untranslated, ammo1, 44, 171;
IsSelected "HellHoundGun", "CerberusGun" {
drawnumber 3, HUDFONT_DOOM, Green, DRRPBasicArmor, drawshadow, 221, 171;
drawstring "bigfont", Green, "%", 233, 173;
} else IsSelected "DemonWolfGun" {
drawnumber 3, HUDFONT_DOOM, Green, DRRPBasicArmor, drawshadow, 221, 171;
drawstring "bigfont", Green, "%", 233, 173;
} else InInventory "DRRPBasicArmor", 1 {
drawnumber 3, HUDFONT_DOOM, Gray, DRRPBasicArmor, 221, 171;
drawstring "bigfont", Gray, "%", 233, 173;
} else {
drawnumber 3, HUDFONT_DOOM, Red, DRRPBasicArmor, 221, 171;
drawstring "bigfont", Red, "%", 233, 173;
}
// We get invulnerability each time the dialog window is shown
//IfInvulnerable {
// drawnumber 3, HUDFONT_DOOM, Gold, health, 90, 171;
// drawstring "bigfont", Gold, "%", 102, 173;
//} else
IfHealth 100 % {
drawnumber 3, HUDFONT_DOOM, Blue, health, 90, 171;
drawstring "bigfont", Blue, "%", 102, 173;
} else IfHealth not 35 % {
drawnumber 3, HUDFONT_DOOM, Red, health, 90, 171;
drawstring "bigfont", Red, "%", 102, 173;
} else {
drawnumber 3, HUDFONT_DOOM, Gray, health, 90, 171;
drawstring "bigfont", Gray, "%", 102, 173;
}
DrawSwitchableImage KeySlot 1, "nullimage", "STKEYS2", 239, 169; // Red
DrawSwitchableImage KeySlot 2, "nullimage", "STKEYS0", 239, 177; // Blue
DrawSwitchableImage KeySlot 3, "nullimage", "STKEYS1", 239, 185; // Yellow
DrawSwitchableImage KeySlot 4, "nullimage", "graphics/STKEYS9.png", 239, 193; // Green
drawnumber 3, INDEXFONT_DOOM, untranslated, ammo(Clip), 288, 173;
drawnumber 3, INDEXFONT_DOOM, untranslated, ammo(DRRPShell), 288, 179;
drawnumber 3, INDEXFONT_DOOM, untranslated, ammo(RocketAmmo), 288, 185;
drawnumber 3, INDEXFONT_DOOM, untranslated, ammo(Cell), 288, 191;
drawnumber 3, INDEXFONT_DOOM, untranslated, ammocapacity(Clip), 314, 173;
drawnumber 3, INDEXFONT_DOOM, untranslated, ammocapacity(DRRPShell), 314, 179;
drawnumber 3, INDEXFONT_DOOM, untranslated, ammocapacity(RocketAmmo), 314, 185;
drawnumber 3, INDEXFONT_DOOM, untranslated, ammocapacity(Cell), 314, 191;
gamemode deathmatch, teamgame {
drawnumber 2, HUDFONT_DOOM, untranslated, frags, 138, 171;
}
gamemode cooperative, singleplayer {
drawimage "STARMS", 104, 168;
drawswitchableimage weaponslot 2, "STGNUM2", "STYSNUM2", 111, 172;
drawswitchableimage weaponslot 3, "STGNUM3", "STYSNUM3", 123, 172;
drawswitchableimage weaponslot 4, "STGNUM4", "STYSNUM4", 135, 172;
drawswitchableimage weaponslot 5, "STGNUM5", "STYSNUM5", 111, 182;
drawswitchableimage weaponslot 6, "STGNUM6", "STYSNUM6", 123, 182;
drawswitchableimage weaponslot 7, "STGNUM7", "STYSNUM7", 135, 182;
}
gamemode cooperative, deathmatch, teamgame {
drawimage translatable "STFBANY", 143, 169;
}
drawselectedinventory alternateonempty, INDEXFONT, 143, 168 {
drawmugshot "STF", 5, 143, 168;
}
}
statusbar fullscreen, fullscreenoffsets {// ZDoom HUD
// Health
drawimage "MEDIA0", 20, -2, centerbottom;
// We get invulnerability each time the dialog window is shown
//IfInvulnerable {
// drawnumber 3, HUDFONT_DOOM, Gold, health, drawshadow, 82, -20;
//} else
IfHealth 100 % {
drawnumber 3, HUDFONT_DOOM, Blue, health, drawshadow, 82, -20;
} else IfHealth not 35 % {
drawnumber 3, HUDFONT_DOOM, Red, health, drawshadow, 82, -20;
} else {
drawnumber 3, HUDFONT_DOOM, Gray, health, drawshadow, 82, -20;
}
// Armor
drawimage "BON2A0", 20, -24, centerbottom;
IsSelected "HellHoundGun", "CerberusGun" {
drawnumber 3, HUDFONT_DOOM, Green, DRRPBasicArmor, drawshadow, 82, -39;
} else IsSelected "DemonWolfGun" {
drawnumber 3, HUDFONT_DOOM, Green, DRRPBasicArmor, drawshadow, 82, -39;
} else InInventory "DRRPBasicArmor", 1 {
drawnumber 3, HUDFONT_DOOM, Gray, DRRPBasicArmor, drawshadow, 82, -39;
} else {
drawnumber 3, HUDFONT_DOOM, Red, DRRPBasicArmor, drawshadow, 82, -39;
}
// Ammo
drawimage ammoicon1, -14, -4, centerbottom;
drawnumber 2147483647, HUDFONT_DOOM, untranslated, ammo1, drawshadow, -25, -20;
usesammo {
//secondary ammo and inventory
usessecondaryammo
{
drawimage ammoicon2, -14, -22, centerbottom;
drawnumber 2147483647, HUDFONT_DOOM, untranslated, ammo2, drawshadow, -25, -38;
inventorybarnotvisible
{
drawselectedinventory centerbottom, drawshadow, alwaysshowcounter, HUDFONT_DOOM, -14, -39, -26, -56, untranslated;
}
}
else //no secondary ammo
{
inventorybarnotvisible
{
drawselectedinventory centerbottom, drawshadow, alwaysshowcounter, HUDFONT_DOOM, -14, -21, -26, -38, untranslated;
}
}
} else { // no ammo but inventory
inventorybarnotvisible
{
drawselectedinventory centerbottom, drawshadow, alwaysshowcounter, HUDFONT_DOOM, -14, -3, -26, -20, untranslated;
}
}
gamemode deathmatch {
drawnumber 2147483647, HUDFONT_DOOM, untranslated, frags, drawshadow, -3, 1;
} else {
// let's hope no mod ever uses 100 keys...
drawkeybar 100, vertical, reverserows, auto, -10, 2, 0, 3, auto;
}
}