peoplegreetings.luac.lua
来自「htc manila 2 sourcecode」· LUA 代码 · 共 135 行
LUA
135 行
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l 10;0;0;0;0;0;0;0;0;0;0;0;0;0;; 7e588d28_manila.luac
require("facebook_svc")
require("people\\PeopleImageLoader")
PeopleGreetingComponent = class()
local l_0_0 = PeopleGreetingComponent
l_0_0.__init = function(l_1_0)
l_1_0._request = _request
l_1_0._request.NavigateOutTo:connect(l_1_0.Destroy, l_1_0)
FBmgr = FacebookManager_Instance()
BackGround.onPress:connect(l_1_0.PageHandle, l_1_0)
BackGround.onRelease:connect(l_1_0.PageHandle, l_1_0)
OpenButton.onPress:connect(l_1_0.OnOpenButtonPress, l_1_0)
OpenButton.onRelease:connect(l_1_0.OnOpenButtonRelease, l_1_0)
OpenButton.onReleaseOutside:connect(l_1_0.OnOpenButtonReleaseOutside, l_1_0)
CancelButton.onPress:connect(l_1_0.OnCancelButtonPress, l_1_0)
CancelButton.onRelease:connect(l_1_0.OnCancelButtonRelease, l_1_0)
CancelButton.onReleaseOutside:connect(l_1_0.OnCancelButtonReleaseOutside, l_1_0)
SendGroup.Opacity.value = 30
PeopleGreetings._visible = true
l_1_0.Phone = nil
_application.TouchFlo.HorizontalEnabled = false
_application.TouchFlo.VerticalEnabled = false
l_1_0.picloader = PicLoader_CreateInstance()
end
l_0_0 = PeopleGreetingComponent
l_0_0.SetSendButtonEvent = function(l_2_0)
SendButton.onPress:connect(l_2_0.OnSendButtonPress, l_2_0)
SendButton.onRelease:connect(l_2_0.OnSendButtonRelease, l_2_0)
SendButton.onReleaseOutside:connect(l_2_0.OnSendButtonReleaseOutside, l_2_0)
SendGroup.Opacity.value = 100
end
l_0_0 = PeopleGreetingComponent
l_0_0.SetAllElement = function(l_3_0, l_3_1, l_3_2, l_3_3, l_3_4)
PeopleImageLoader(AsyncPicLoader_CreateInstance(l_3_0.picloader), PersonPicture, l_3_4)
l_3_0.stroid = l_3_4
l_3_0.Phone = l_3_3
PersonName.String = l_3_1
GreetingsDate.String = l_3_2
if l_3_0.Phone ~= "" then
l_3_0:SetSendButtonEvent()
end
end
l_0_0 = PeopleGreetingComponent
l_0_0.Destroy = function(l_4_0)
l_4_0._request.NavigateOutTo:disconnect(l_4_0.Destroy, l_4_0)
if SendGroup.Opacity.value == 100 then
SendButton.onPress:disconnect(l_4_0.OnSendButtonPress, l_4_0)
SendButton.onRelease:disconnect(l_4_0.OnSendButtonRelease, l_4_0)
SendButton.onReleaseOutside:disconnect(l_4_0.OnSendButtonReleaseOutside, l_4_0)
end
BackGround.onPress:disconnect(l_4_0.AccountPageHandle, l_4_0)
BackGround.onRelease:disconnect(l_4_0.AccountPageHandle, l_4_0)
OpenButton.onPress:disconnect(l_4_0.OnOpenButtonPress, l_4_0)
OpenButton.onRelease:disconnect(l_4_0.OnOpenButtonRelease, l_4_0)
OpenButton.onReleaseOutside:disconnect(l_4_0.OnOpenButtonReleaseOutside, l_4_0)
CancelButton.onPress:disconnect(l_4_0.OnCancelButtonPress, l_4_0)
CancelButton.onRelease:disconnect(l_4_0.OnCancelButtonRelease, l_4_0)
CancelButton.onReleaseOutside:disconnect(l_4_0.OnCancelButtonReleaseOutside, l_4_0)
PeopleGreetings._visible = false
_application.TouchFlo.HorizontalEnabled = true
_application.TouchFlo.VerticalEnabled = true
l_4_0.picloader:StopThread()
end
l_0_0 = PeopleGreetingComponent
l_0_0.PageHandle = function(l_5_0, l_5_1, l_5_2)
l_5_2.value = true
end
l_0_0 = PeopleGreetingComponent
l_0_0.OnSendButtonPress = function(l_6_0, l_6_1, l_6_2)
SendButton:SetTexture("\\Windows\\HTC\\Assets\\Images\\People\\VGA\\ContactEditor_OpenCamera_Btn_Down.qtc")
SendButtonText.Color = Color(255, 255, 255, 255)
end
l_0_0 = PeopleGreetingComponent
l_0_0.OnSendButtonReleaseOutside = function(l_7_0, l_7_1, l_7_2)
SendButton:SetTexture("\\Windows\\HTC\\Assets\\Images\\People\\VGA\\ContactEditor_OpenCamera_Btn.qtc")
SendButtonText.Color = Color(0, 0, 0, 255)
end
l_0_0 = PeopleGreetingComponent
l_0_0.OnSendButtonRelease = function(l_8_0, l_8_1, l_8_2)
SendButton:SetTexture("\\Windows\\HTC\\Assets\\Images\\People\\VGA\\ContactEditor_OpenCamera_Btn.qtc")
SendButtonText.Color = Color(0, 0, 0, 255)
Shell_ComposeMessage("SMS", l_8_0.Phone)
l_8_0:Destroy()
end
l_0_0 = PeopleGreetingComponent
l_0_0.OnOpenButtonRelease = function(l_9_0, l_9_1, l_9_2)
OpenButton:SetTexture("\\Windows\\HTC\\Assets\\Images\\People\\VGA\\ContactEditor_OpenCamera_Btn.qtc")
OpenButtonText.Color = Color(0, 0, 0, 255)
FBmgr:OpenContactCard(l_9_0.stroid)
l_9_0:Destroy()
end
l_0_0 = PeopleGreetingComponent
l_0_0.OnOpenButtonPress = function(l_10_0, l_10_1, l_10_2)
OpenButton:SetTexture("\\Windows\\HTC\\Assets\\Images\\People\\VGA\\ContactEditor_OpenCamera_Btn_Down.qtc")
OpenButtonText.Color = Color(255, 255, 255, 255)
end
l_0_0 = PeopleGreetingComponent
l_0_0.OnOpenButtonReleaseOutside = function(l_11_0, l_11_1, l_11_2)
OpenButton:SetTexture("\\Windows\\HTC\\Assets\\Images\\People\\VGA\\ContactEditor_OpenCamera_Btn.qtc")
OpenButtonText.Color = Color(0, 0, 0, 255)
end
l_0_0 = PeopleGreetingComponent
l_0_0.OnCancelButtonRelease = function(l_12_0, l_12_1, l_12_2)
CancelButton:SetTexture("\\Windows\\HTC\\Assets\\Images\\People\\VGA\\ContactEditor_AddPhoto_Frame_Btn.qtc")
CancelButtonText.Color = Color(0, 0, 0, 255)
l_12_0:Destroy()
end
l_0_0 = PeopleGreetingComponent
l_0_0.OnCancelButtonPress = function(l_13_0, l_13_1, l_13_2)
CancelButton:SetTexture("\\Windows\\HTC\\Assets\\Images\\People\\VGA\\ContactEditor_AddPhoto_Frame_Btn_Down.qtc")
CancelButtonText.Color = Color(255, 255, 255, 255)
end
l_0_0 = PeopleGreetingComponent
l_0_0.OnCancelButtonReleaseOutside = function(l_14_0, l_14_1, l_14_2)
CancelButton:SetTexture("\\Windows\\HTC\\Assets\\Images\\People\\VGA\\ContactEditor_AddPhoto_Frame_Btn.qtc")
CancelButtonText.Color = Color(0, 0, 0, 255)
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?