Files
Elite-Gaming-FiveM/resources/mth-K9/RageUI/menu/panels/UISpritPanel.lua
T
2025-01-23 18:00:31 -08:00

21 lines
813 B
Lua

---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by iTexZ.
--- DateTime: 05/11/2020 02:17
---
local TextPanels = {
Background = { Dictionary = "commonmenu", Texture = "gradient_bgd", Y = 4, Width = 433, Height = 42 },
}
---@type Panel
function RageUI.RenderSprite(Dictionary, Texture)
local CurrentMenu = RageUI.CurrentMenu
if CurrentMenu ~= nil then
if CurrentMenu() then
RenderSprite(Dictionary, Texture, CurrentMenu.X, CurrentMenu.Y + TextPanels.Background.Y + CurrentMenu.SubtitleHeight + RageUI.ItemOffset + (RageUI.StatisticPanelCount * 42), TextPanels.Background.Width + CurrentMenu.WidthOffset, TextPanels.Background.Height + 200, 0, 255, 255, 255, 255);
RageUI.StatisticPanelCount = RageUI.StatisticPanelCount + 1
end
end
end