Skip to content

Commit f6bd4b9

Browse files
authored
EGP screen translucency option for sentCreate (#3490)
1 parent 7e6f499 commit f6bd4b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/wire/server/sents_registry.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,12 @@ register("gmod_wire_egp", {
554554
_preFactory = function(ply, self)
555555
self.model = self.Model
556556
end,
557+
_postFactory = function(ply, self, enttbl)
558+
self:SetTranslucent( enttbl.Translucent )
559+
end,
557560

558561
["Model"] = {TYPE_STRING, "models/kobilica/wiremonitorbig.mdl", "Path to model"},
562+
["Translucent"] = {TYPE_BOOL, false, "Transparent background"},
559563
})
560564

561565
register("gmod_wire_egp_hud", {

0 commit comments

Comments
 (0)