Skip to content

Commit

Permalink
More precise fitting for money text
Browse files Browse the repository at this point in the history
  • Loading branch information
FPtje committed Oct 15, 2016
1 parent 8c492fc commit 333b481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entities/entities/spawned_money/cl_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function ENT:Draw()
local text = DarkRP.formatMoney(self:Getamount())
local TextWidth = surface.GetTextSize(text)

cam.Start3D2D(Pos + Ang:Up() * 0.9, Ang, 0.1)
cam.Start3D2D(Pos + Ang:Up() * 0.82, Ang, 0.1)
draw.WordBox(2, -TextWidth * 0.5, -10, text, "ChatFont", Color(140, 0, 0, 100), Color(255, 255, 255, 255))
cam.End3D2D()

Expand Down

2 comments on commit 333b481

@Kefta
Copy link
Contributor

@Kefta Kefta commented on 333b481 Oct 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a config variable for the distance in-case someone changed the model?

@FPtje
Copy link
Owner Author

@FPtje FPtje commented on 333b481 Oct 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No.
Going down that path would require an angle and scale too. Do not generalise that which cannot be generalised.

Please sign in to comment.