7 ISPanel.initialise(
self)
9 self.textLabel = ISLabel:new(
self.
uiHelper.GetMiddle(
self.
width, UIFont.Medium,
self.text),
self:getY() -
self:getHeight() / 2 +
getTextManager():MeasureStringY(UIFont.Medium,
self.text) / 2,
self:getHeight(),
self.text, 1, 1, 1, 1, UIFont.Medium, true)
14 self.textLabel:initialise()
33 if
FrameworkZ.Timers:Exists("NotificationFadeDelay" ..
self.ID) then
37 FrameworkZ.Timers:Create("NotificationFadeDelay" ..
self.ID,
self.duration, 1, function()
45 if not
self.hasEntered then
46 self.hasEntered = true
58 if
self.hasEntered then
59 self.hasEntered = false
74 local textWidth =
getTextManager():MeasureStringX(UIFont.Medium, text)
77 local
x = getCore():getScreenWidth() - textWidth - padding - margin * 2
79 local
width = textWidth + margin * 2
84 o = ISPanel:
new(getCore():getScreenWidth(),
y,
width,
height)
88 o.borderColor = {r=1, g=1, b=1,
a=
color.a}
89 o.moveWithMouse =
false
90 o.keepOnScreen =
false
93 o.playerObject = playerObject
98 o.originalAlpha =
color.a
void FrameworkZ UI Notification()
void processingNotification backgroundColor a()
void processingNotification hasFullyExpired()
void notification isExpiring()
void button onMouseMove()
void button onMouseMoveOutside()
void button backgroundColor()
void onMouseMoveOutside(x, y)
Contains all of the User Interfaces for FrameworkZ.