messaging.luac.lua
来自「htc manila 2 sourcecode」· LUA 代码 · 共 812 行 · 第 1/3 页
LUA
812 行
MessageAttachment.Rotation:Interpolate(MessageAttachmentOutRotation, l_18_0, l_18_1, Interpolate_EaseOutCirc)
MessageAttachment.Opacity:Interpolate(MessageAttachmentOutOpacity, l_18_0, l_18_1, Interpolate_EaseOutCirc)
MessageAttachment.Scale:Interpolate(MessageAttachmentOutScale, l_18_0, l_18_1, Interpolate_EaseOutCirc)
end
AnimateTextOnlyOut = function(l_19_0)
local l_19_1 = 10
AnimateMessageTextOut(l_19_1, 0, l_19_0)
end
AnimateTextOnlyIn = function(l_20_0)
local l_20_1 = 10
AnimateMessageTextIn(l_20_1, 0, l_20_0)
AnimateOutFunc = AnimateMessageTextOnlyOut
end
AnimateTextMessageOut = function(l_21_0)
local l_21_1 = 10
local l_21_2 = 2
if AnimationDelay1 == 3 then
AnimateSenderTextOut(l_21_1, l_21_2 * AnimationDelay1, l_21_0)
AnimateMessageTextOut(l_21_1, l_21_2 * AnimationDelay4, nil)
else
AnimateSenderTextOut(l_21_1, l_21_2 * AnimationDelay1, nil)
AnimateMessageTextOut(l_21_1, l_21_2 * AnimationDelay4, l_21_0)
end
AnimateSeperatorOut(l_21_1, l_21_2 * AnimationDelay2, nil)
AnimateDateTimeTextOut(l_21_1, l_21_2 * AnimationDelay3, nil)
if backdrop._visible == true then
AnimateBackDropOut(l_21_1, l_21_2 * BackDropOutDelay)
end
end
AnimateTextMessageIn = function(l_22_0)
local l_22_1 = 0
local l_22_2 = firstTime
if l_22_2 == false then
l_22_1 = 10
end
l_22_2 = false
firstTime = l_22_2
l_22_2 = 2
if AnimationDelay1 == 3 then
AnimateSenderTextIn(l_22_1, l_22_2 * AnimationDelay1, l_22_0)
AnimateMessageTextIn(l_22_1, l_22_2 * AnimationDelay4, nil)
else
AnimateSenderTextIn(l_22_1, l_22_2 * AnimationDelay1, nil)
AnimateMessageTextIn(l_22_1, l_22_2 * AnimationDelay4, l_22_0)
end
AnimateSeperatorIn(l_22_1, l_22_2 * AnimationDelay2, nil)
AnimateDateTimeTextIn(l_22_1, l_22_2 * AnimationDelay3, nil)
if backdrop._visible == true then
AnimateBackDropIn(l_22_1, l_22_2 * BackDropInDelay)
end
AnimateOutFunc = AnimateTextMessageOut
end
AnimateMMSMessageOut = function(l_23_0)
local l_23_1 = 10
local l_23_2 = 2
AnimateTextMessageOut(l_23_0)
AnimateAttachmentOut(l_23_1, l_23_2 * AnimationDelay2, nil)
end
AnimateMMSMessageIn = function(l_24_0)
local l_24_1 = 0
local l_24_2 = firstTime
if l_24_2 == false then
l_24_1 = 10
end
l_24_2 = 2
AnimateTextMessageIn(l_24_0)
AnimateAttachmentIn(l_24_1, l_24_2 * AnimationDelay2, nil)
AnimateOutFunc = AnimateMMSMessageOut
end
AnimateCurrentOut = function(l_25_0)
if AnimateOutFunc ~= nil then
AnimateOutFunc(l_25_0)
elseif l_25_0 ~= nil then
l_25_0()
end
end
SetDirectionValues = function(l_26_0)
if l_26_0 == nil then
AnimationDelay1 = 3
AnimationDelay2 = 2
AnimationDelay3 = 1
AnimationDelay4 = 0
SenderTextStartTarget = Vector3(InOutPositonX, 300, 0)
SeperatorLineStartTarget = Vector3(InOutPositonX, 300, 0)
DateTimeTextStartTarget = Vector3(InOutPositonX, 300, 0)
MessageTextStartTarget = Vector3(InOutPositonX, 300, 0)
MessageAttachmentStartTarget = Vector3(InOutPositonX, 300, 0)
SenderTextStartOpacity = 0
SeperatorLineStartOpacity = 0
DateTimeTextStartOpacity = 0
MessageTextStartOpacity = 0
MessageAttachmentStartOpacity = 0
SenderTextStartRotation = Vector3(0, -90, 0)
SeperatorLineStartRotation = Vector3(0, -90, 0)
DateTimeTextStartRotation = Vector3(0, -90, 0)
MessageTextStartRotation = Vector3(0, -90, 0)
MessageAttachmentStartRotation = Vector3(0, -90, 0)
SenderTextStartScale = Vector3(1, 1.2999877929688, 1)
SeperatorLineStartScale = Vector3(1, 1, 1)
DateTimeTextStartScale = Vector3(1, 1.2999877929688, 1)
MessageTextStartScale = Vector3(1, 1.0999908447266, 1)
MessageAttachmentStartScale = Vector3(1, 1, 1)
BackDropStartTarget = Vector3(InOutPositonX, 870, 0)
BackDropStartOpacity = 0
BackDropStartRotation = Vector3(0, -90, 0)
BackDropStartScale = Vector3(0.5, 0.5, 1)
SenderTextOutTarget = Vector3(InOutPositonX, InOutBottomY, 0)
SeperatorLineOutTarget = Vector3(InOutPositonX, InOutBottomY, 0)
DateTimeTextOutTarget = Vector3(InOutPositonX, InOutBottomY, 0)
MessageTextOutTarget = Vector3(InOutPositonX, InOutBottomY, 0)
MessageAttachmentOutTarget = Vector3(InOutPositonX, InOutBottomY, 0)
SenderTextOutOpacity = 0
SeperatorLineOutOpacity = 0
DateTimeTextOutOpacity = 0
MessageTextOutOpacity = 0
MessageAttachmentOutOpacity = 0
SenderTextOutRotation = Vector3(0, 90, 0)
SeperatorLineOutRotation = Vector3(0, 90, 0)
DateTimeTextOutRotation = Vector3(0, 90, 0)
MessageTextOutRotation = Vector3(0, 90, 0)
MessageAttachmentOutRotation = Vector3(0, 90, 0)
SenderTextOutScale = Vector3(1, 1.2999877929688, 1)
SeperatorLineOutScale = Vector3(1, 1, 1)
DateTimeTextOutScale = Vector3(1, 1.2999877929688, 1)
MessageTextOutScale = Vector3(1, 1.0999908447266, 1)
MessageAttachmentOutScale = Vector3(1, 1, 1)
BackDropOutTarget = Vector3(InOutPositonX, InOutBottomY, 0)
BackDropOutOpacity = 0
BackDropOutRotation = Vector3(0, 90, 0)
BackDropOutScale = Vector3(1, 1, 1)
else
AnimationDelay1 = 0
AnimationDelay2 = 1
AnimationDelay3 = 2
AnimationDelay4 = 3
SenderTextStartTarget = Vector3(InOutPositonX, InOutBottomY, 0)
SeperatorLineStartTarget = Vector3(InOutPositonX, InOutBottomY, 0)
DateTimeTextStartTarget = Vector3(InOutPositonX, InOutBottomY, 0)
MessageTextStartTarget = Vector3(InOutPositonX, InOutBottomY, 0)
MessageAttachmentStartTarget = Vector3(InOutPositonX, InOutBottomY, 0)
SenderTextStartOpacity = 0
SeperatorLineStartOpacity = 0
DateTimeTextStartOpacity = 0
MessageTextStartOpacity = 0
MessageAttachmentStartOpacity = 0
SenderTextStartRotation = Vector3(0, 90, 0)
SeperatorLineStartRotation = Vector3(0, 90, 0)
DateTimeTextStartRotation = Vector3(0, 90, 0)
MessageTextStartRotation = Vector3(0, 90, 0)
MessageAttachmentStartRotation = Vector3(0, 90, 0)
SenderTextStartScale = Vector3(1, 1.2999877929688, 1)
SeperatorLineStartScale = Vector3(1, 1, 1)
DateTimeTextStartScale = Vector3(1, 1.2999877929688, 1)
MessageTextStartScale = Vector3(1, 1.0999908447266, 1)
MessageAttachmentStartScale = Vector3(1, 1, 1)
BackDropStartTarget = Vector3(InOutPositonX, InOutBottomY, 0)
BackDropStartOpacity = 0
BackDropStartRotation = Vector3(0, 90, 0)
BackDropStartScale = Vector3(1, 1, 1)
SenderTextOutTarget = Vector3(InOutPositonX, 550, 0)
SeperatorLineOutTarget = Vector3(InOutPositonX, 550, 0)
DateTimeTextOutTarget = Vector3(InOutPositonX, 550, 0)
MessageTextOutTarget = Vector3(InOutPositonX, 550, 0)
MessageAttachmentOutTarget = Vector3(InOutPositonX, 550, 0)
SenderTextOutOpacity = 0
SeperatorLineOutOpacity = 0
DateTimeTextOutOpacity = 0
MessageTextOutOpacity = 0
MessageAttachmentOutOpacity = 0
SenderTextOutRotation = Vector3(0, -90, 0)
SeperatorLineOutRotation = Vector3(0, -90, 0)
DateTimeTextOutRotation = Vector3(0, -90, 0)
MessageTextOutRotation = Vector3(0, -90, 0)
MessageAttachmentOutRotation = Vector3(0, -90, 0)
SenderTextOutScale = Vector3(1, 1.2999877929688, 1)
SeperatorLineOutScale = Vector3(1, 1, 1)
DateTimeTextOutScale = Vector3(1, 1.2999877929688, 1)
MessageTextOutScale = Vector3(1, 1.0999908447266, 1)
MessageAttachmentOutScale = Vector3(1, 1, 1)
BackDropOutTarget = Vector3(InOutPositonX, 870, 0)
BackDropOutOpacity = 0
BackDropOutRotation = Vector3(0, -90, 0)
BackDropOutScale = Vector3(0.5, 0.5, 1)
end
SenderTextInTarget = SenderTextVector
SeperatorLineInTarget = SeperatorLineVector
DateTimeTextInTarget = DateTimeTextVector
MessageTextInTarget = MessageTextVector
MessageAttachmentInTarget = AttachmentVector
SenderTextInOpacity = 100
SeperatorLineInOpacity = 100
DateTimeTextInOpacity = 100
MessageTextInOpacity = 100
MessageAttachmentInOpacity = 100
SenderTextInRotation = Vector3(0, 0, 0)
SeperatorLineInRotation = Vector3(0, 0, 0)
DateTimeTextInRotation = Vector3(0, 0, 0)
MessageTextInRotation = Vector3(0, 0, 0)
MessageAttachmentInRotation = Vector3(0, 0, 0)
SenderTextInScale = Vector3(1, 1, 1)
SeperatorLineInScale = Vector3(1, 1, 1)
DateTimeTextInScale = Vector3(1, 1, 1)
MessageTextInScale = Vector3(1, 1, 1)
MessageAttachmentInScale = Vector3(1, 1, 1)
BackDropInTarget = Vector3(InOutPositonX, 115, 0)
BackDropInRotation = Vector3(0, 0, 0)
BackDropInOpacity = 100
BackDropInScale = Vector3(1, 1, 1)
BackDropInDelay = 0
BackDropOutDelay = 3
end
HandleItemsAdded = function(l_27_0, l_27_1)
trace("Got an item added event")
if SelectedMessageIndex == -1 then
SelectIndex(0)
else
if l_27_0 <= SelectedMessageIndex then
SelectedMessageIndex = SelectedMessageIndex + l_27_1
end
if SelectedMessageIndex >= MaxMessageCount then
SelectIndex(MaxMessageCount - 1)
end
UpdateDisplay()
end
end
HandleItemsRemoved = function(l_28_0, l_28_1)
trace("Got an item removed event")
local l_28_2 = false
local l_28_3 = 0
if l_28_0 <= SelectedMessageIndex then
if SelectedMessageIndex < l_28_0 + l_28_1 then
l_28_2 = true
l_28_3 = l_28_0
else
l_28_2 = false
l_28_3 = SelectedMessageIndex - l_28_1
end
end
if Messages:GetCount() <= l_28_3 or MaxMessageCount <= l_28_3 then
l_28_3 = Messages:GetCount() - 1
if MaxMessageCount <= l_28_3 then
l_28_3 = MaxMessageCount - 1
end
l_28_2 = true
elseif l_28_3 < 0 then
l_28_3 = 0
l_28_2 = true
end
if l_28_2 and l_28_3 >= 0 then
SelectIndex(l_28_3)
else
SelectedMessageIndex = l_28_3
UpdateDisplay()
end
end
HandleItemsReplaced = function(l_29_0, l_29_1)
trace("Got an item replaced event")
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?