10 ISPanel.initialise(
self)
12 self.initializing = ISLabel:new(
self.
width / 2, (
self.
height -
getTextManager():MeasureStringY(UIFont.Large, "Initializing")) / 2, 25, "Initializing", 1, 1, 1, 1, UIFont.Large, true)
13 self.initializing.center = true
19 FrameworkZ.Timers:Create("FZ_INIT_TICK", 0.2, 0, function()
21 if
self.currentTick == 0 then
22 self.initializing:setName("Initializing")
24 elseif
self.currentTick == 1 then
25 self.initializing:setName("Initializing.")
27 elseif
self.currentTick == 2 then
28 self.initializing:setName("Initializing..")
30 elseif
self.currentTick == 3 then
31 self.initializing:setName("Initializing...")
36 self.initializing:setName("--- Initialized ---")
47 self.backgroundColor = {r=0, g=0, b=0, a=1}
51 self.cfw.scaledWidth =
self.cfwTexture:getWidth()
65 self.backgroundColor = {r=0, g=0, b=0, a=1}
69 self.hl2rp.scaledWidth =
self.hl2rpTexture:getWidth()
93 self:setVisible(false)
94 self:removeFromUIManager()
109 self:setVisible(false)
110 self:removeFromUIManager()
119local function calculateWidthHeight(originalAspectRatio,
width,
height, changeValue)
120 -- Scenario 1: Increase
width by 1 and adjust
height
124 -- Scenario 2: Increase
height by 1 and adjust
width
128 -- Calculate the aspect ratio difference for both scenarios
132 -- Choose the scenario with the smallest difference
140FrameworkZ.Timers:Create(
"IntroTick", 0.1, 0, function()
200 setmetatable(o,
self)
202 o.backgroundColor = {r=0, g=0, b=0,
a=1}
203 o.borderColor = {r=0, g=0, b=0,
a=1}
204 o.moveWithMouse =
false
205 o.playerObject = playerObject
void FrameworkZ UI Introduction()
void self cfw shrinking()
void self cfw scaledWidth()
void self cfw scaledHeight()
void local characterSelect()
void self backgroundColor()
void self FrameworkZ UI self nil
void processingNotification backgroundColor a()
void FrameworkZ Foundation()
Timers module for FrameworkZ. Allows for the creation of timers for delaying code executions.
Contains all of the User Interfaces for FrameworkZ.