Message
Message
Message
CreateFont("GrandlineRP:Font:Medium:25", {
font = "Montserrat Medium",
extended = false,
size = 25,
weight = 500
})
function RX(x)
return x / 1920 * ScrW()
end
function RY(y)
return y / 1080 * ScrH()
end
WalletGRandline:SetDraggable(false)
WalletGRandline:SetAlpha(100)
WalletGRandline:AlphaTo(255, 0.3, 0)
function WalletGRandline:Paint(w, h)
BSHADOWS.BeginShadow()
draw.RoundedBoxEx(12, RX(1920 / 2 - 250), RY(1080 / 2 - 100), w, RY(50),
Color(55, 55, 55, 255), true, true, false, false)
draw.RoundedBoxEx(12, RX(1920 / 2 - 250), RY(1080 / 2 - 50), w, h - RY(50),
Color(30, 30, 30, 255), false, false, true, true)
BSHADOWS.EndShadow(3, 2, 2)
draw.SimpleText("GRANDLINE - Portefeuille", "GrandlineRP:Font:Medium:25",
RX(13), RY(13), color_white)
draw.RoundedBox(4, RX(15), RY(66), RY(470), RX(55), Color(55, 55, 55, 255))
end
TextEntry:SetDrawBackground(false)
TextEntry:SetDrawBorder(false)
if self:IsHovered() then
local boxWidth = Lerp((CurTime() - self.FF4TimeBeforeHover) * 2, 0, w)
local boxX = (w - boxWidth) / 2
draw.RoundedBox(4, 0, 0, w, h, Color(55, 55,55, 255))
WalletGRandline.OnRemove = function()
WalletGRandline = nil
end
end
concommand.Add("grandline_wallet", GrandlineWallet)