Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Update cl_interface.lua #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions lua/rpjs/cl_interface.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ surface.CreateFont( "rpjs_desc", {
weight = 500
} )

local white = Color( 255, 255, 255, 255 )

net.Receive( "rpjs_openmenu", function( len, ply )
if !IsValid(LocalPlayer()) && !LocalPlayer():IsPlayer() && !LocalPlayer():Alive() then return end

Expand Down Expand Up @@ -83,13 +81,13 @@ net.Receive( "rpjs_openmenu", function( len, ply )
JobInfos.Paint = function( self, w, h)
draw.RoundedBox( 0, 0, 0, w, h, bgcolor)
draw.RoundedBox( 0, 0, 0, 5, h, rpjs.config.barscolor )
draw.SimpleText( v.name, "rpjs_jobname", 20, 10, white, TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP )
draw.SimpleText( v.name, "rpjs_jobname", 20, 10, color_white, TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP )
if v.max == 0 then
draw.SimpleText( team.NumPlayers( v.team ).."/∞", "rpjs_slots", 750, 10, white, TEXT_ALIGN_RIGHT, TEXT_ALIGN_TOP )
draw.SimpleText( team.NumPlayers( v.team ).."/∞", "rpjs_slots", 750, 10, color_white, TEXT_ALIGN_RIGHT, TEXT_ALIGN_TOP )
else
draw.SimpleText( team.NumPlayers( v.team ).."/"..v.max, "rpjs_slots", 750, 10, white, TEXT_ALIGN_RIGHT, TEXT_ALIGN_TOP )
draw.SimpleText( team.NumPlayers( v.team ).."/"..v.max, "rpjs_slots", 750, 10, color_white, TEXT_ALIGN_RIGHT, TEXT_ALIGN_TOP )
end
draw.SimpleText( DarkRP.getPhrase("salary", DarkRP.formatMoney( v.money ), ""), "rpjs_salary", 20, 80, white, TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP )
draw.SimpleText( DarkRP.getPhrase("salary", DarkRP.formatMoney( v.money ), ""), "rpjs_salary", 20, 80, color_white, TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP )
end
JobInfos.DoClick = function()
if LocalPlayer():IsPlayer() && IsValid(LocalPlayer()) && LocalPlayer():Alive() then
Expand Down Expand Up @@ -192,7 +190,7 @@ net.Receive( "rpjs_opennpcspawner", function( len, ply )
Validate:SetSize( 548, 40 )
Validate.Paint = function()
draw.RoundedBox( 0, 0, 0, Validate:GetWide(), Validate:GetTall(), rpjs.config.resumecolor )
draw.SimpleText( DarkRP.getPhrase("add"), 'rpjs_titleFont', 270, 20, Color(255,255,255,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
draw.SimpleText( DarkRP.getPhrase("add"), 'rpjs_titleFont', 270, 20, color_white, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
end
Validate.DoClick = function()
local npctable = {}
Expand All @@ -212,4 +210,4 @@ hook.Add("PlayerDeath", "CloseJobWindow", function()
if AdminFrame:IsActive() then
AdminFrame:Remove()
end
end)
end)