Closed Bozcx closed 8 months ago
Looks like in general StormFox is fucked on the framework
That error seems like it's tied to an non existing function, mind checking if it is present in SF?
function PANEL:Init()
self.bg = vgui_Create("DPanel",self)
function self.bg:IsSelected() return false end
function self.bg:GetToggle() return false end
local hour = vgui.Create("DTextEntry", self.bg)
self.hour = hour
local min = vgui.Create("DTextEntry", self.bg)
self.min = min
self.ampm = vgui.Create("DButton", self)
function self.bg:Paint( w, h )
local cDis = StormFox2.Setting.Get("12h_display")
self.Hovered = hour.Hovered or min.Hovered
self.Depressed= hour:IsEditing() or min:IsEditing()
derma.SkinHook( "Paint", "Button", self, w, h )
surface.SetFont("SF2_TimeSet")
local tw,th = surface.GetTextSize(":")
surface.SetTextColor(self.color or color_black)
surface.SetTextPos(w / 2 - tw / 2,h / 2 - th / 2 - 2)
surface.DrawText(":")
end
Line 963 being derma.SkinHook( "Paint", "Button", self, w, h )
Double check if SF2_TimeSet
exists, please
surface.CreateFont("SF2_TimeSet", {
font = "Arial", -- Use the font-name which is shown to you by your operating system Font Viewer, not the file name
extended = false,
size = 26,
weight = 50,
blursize = 0,
scanlines = 0,
antialias = true,
underline = false,
italic = false,
strikeout = false,
symbol = false,
rotary = false,
shadow = false,
additive = false,
outline = false,
} )
This is so weird. Remove compatibility and double check. If it does, then I am clueless on the issue
When using the StormFox VGUI in the context menu the following error will appear.
This is using the latest version of lilia