8 ISPanel.initialise(
self)
10 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)
15 self.textLabel:initialise()
20 FrameworkZ.Timers:Create("NotificationSlide" ..
self.ID, 0, 0, function()
34 if
FrameworkZ.Timers:Exists("NotificationFadeDelay" ..
self.ID) then
38 FrameworkZ.Timers:Create("NotificationFadeDelay" ..
self.ID,
self.duration, 1, function()
44 ISPanel.onMouseMove(
self,
x,
y)
46 if not
self.hasEntered then
47 self.hasEntered = true
51 self.backgroundColor.
a = math.min(
self.originalAlpha - 0.25, 1)
57 ISPanel.onMouseMoveOutside(
self,
x,
y)
59 if
self.hasEntered then
60 self.hasEntered = false
63 self.backgroundColor.
a =
self.originalAlpha
75 local textWidth = getTextManager():MeasureStringX(UIFont.Medium, text)
76 local textHeight = getTextManager():MeasureStringY(UIFont.Medium, text)
78 local
x = getCore():getScreenWidth() - textWidth - padding - margin * 2
80 local
width = textWidth + margin * 2
81 local
height = textHeight + margin * 2
85 o = ISPanel:
new(getCore():getScreenWidth(),
y,
width,
height)
89 o.borderColor = {r=1, g=1, b=1,
a=
color.a}
90 o.moveWithMouse =
false
91 o.keepOnScreen =
false
94 o.playerObject = playerObject
99 o.originalAlpha =
color.a
void processingNotification backgroundColor a()
void processingNotification hasFullyExpired()
void notification isExpiring()
void onMouseMoveOutside(x, y)