7 self.vignetteTexture = getTexture("media/textures/vignette.png")
13 self.initializing = ISLabel:new((
self.
width - getTextManager():MeasureStringX(UIFont.Large, "Initializing...")) / 2, (
self.
height - getTextManager():MeasureStringY(UIFont.Large, "Initializing...")) / 2, 25, "Initializing...", 1, 1, 1, 1, UIFont.Large, true)
23 self.backgroundColor = {r=0.1, g=0.1, b=0.1,
a=1}
26 self.backgroundColor = {r=0, g=0, b=0, a=1}
29 self.cfw.backgroundColor = {r=1, g=1, b=1,
a=1}
30 self.cfw.scaledWidth =
self.cfwTexture:getWidth()
41 self.backgroundColor = {r=0.1, g=0.1, b=0.1,
a=1}
44 self.backgroundColor = {r=0, g=0, b=0, a=1}
47 self.hl2rp.backgroundColor = {r=1, g=1, b=1,
a=1}
48 self.hl2rp.scaledWidth =
self.hl2rpTexture:getWidth()
51 self.hl2rp:initialise()
59 self.backgroundColor = {r=0.1, g=0.1, b=0.1,
a=1}
64 self.backgroundColor = {r=0, g=0, b=0,
a=1}
66 local characterSelect =
PFW_MainMenu:
new(0, 0, getCore():getScreenWidth(), getCore():getScreenHeight(),
self.playerObject)
67 characterSelect:initialise()
68 characterSelect:addToUIManager()
71 self:setVisible(false)
72 self:removeFromUIManager()
81 local characterSelect =
PFW_MainMenu:new(0, 0, getCore():getScreenWidth(), getCore():getScreenHeight(),
self.playerObject)
82 characterSelect:initialise()
83 characterSelect:addToUIManager()
86 self:setVisible(false)
87 self:removeFromUIManager()
93local function calculateWidthHeight(originalAspectRatio,
width,
height, changeValue)
94 -- Scenario 1: Increase
width by 1 and adjust
height
98 -- Scenario 2: Increase
height by 1 and adjust
width
102 -- Calculate the aspect ratio difference for both scenarios
106 -- Choose the scenario with the smallest difference
114FrameworkZ.Timers:Create(
"IntroTick", 0.1, 0, function()
174 setmetatable(o,
self)
176 o.backgroundColor = {r=0, g=0, b=0,
a=1}
177 o.borderColor = {r=0, g=0, b=0,
a=1}
178 o.moveWithMouse =
false
179 o.playerObject = playerObject
void IntroGamemodeImage()
void InitializationDuration()
void IntroFrameworkImage()
void if instance cfw shrinking()
void instance cfw scaledWidth()
void instance cfw scaledHeight()
void processingNotification backgroundColor a()
Timers module for FrameworkZ. Allows for the creation of timers for delaying code executions.