peopleprofilemessage.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,2,5;0;0;0;0;0;0;0;0;; 5f876ef6_manila.luac 

require("CheckboxControl")
require("facebook_svc")
PeopleUpdateProfileMessage = class()
local l_0_0 = PeopleUpdateProfileMessage
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)
   l_1_0._application = _application
   BackGround.onPress:connect(l_1_0.PageHandle, l_1_0)
   BackGround.onRelease:connect(l_1_0.PageHandle, l_1_0)
   Button_Cancel.onPress:connect(l_1_0.OnRightButtonPress, l_1_0)
   Button_Cancel.onRelease:connect(l_1_0.OnRightButtonRelease, l_1_0)
   Button_Cancel.onReleaseOutside:connect(l_1_0.OnRightButtonReleaseOutside, l_1_0)
   CheckHitArea.onRelease:connect(l_1_0.OnCheckBoxRelease, l_1_0)
   Button_OK.Opacity.value = 30
   AccountMessage._visible = true
   InitializeCheckbox(CheckComponent, false)
   _application.TouchFlo.HorizontalEnabled = false
   _application.TouchFlo.VerticalEnabled = false
end

l_0_0 = PeopleUpdateProfileMessage
l_0_0.SetLeftButtonEvent = function(l_2_0)
   Button_OK.Opacity.value = 100
   Button_OK.onPress:connect(l_2_0.OnLeftButtonPress, l_2_0)
   Button_OK.onRelease:connect(l_2_0.OnLeftButtonRelease, l_2_0)
   Button_OK.onReleaseOutside:connect(l_2_0.OnLeftButtonReleaseOutside, l_2_0)
end

l_0_0 = PeopleUpdateProfileMessage
l_0_0.DisconnectLeftButtonEvent = function(l_3_0)
   Button_OK.onPress:disconnect(l_3_0.OnLeftButtonPress, l_3_0)
   Button_OK.onRelease:disconnect(l_3_0.OnLeftButtonRelease, l_3_0)
   Button_OK.onReleaseOutside:disconnect(l_3_0.OnLeftButtonReleaseOutside, l_3_0)
end

l_0_0 = PeopleUpdateProfileMessage
l_0_0.SetUI = function(l_4_0, l_4_1, l_4_2, l_4_3, l_4_4)
   local l_4_5 = FacebookManager_Instance()
   local l_4_6 = l_4_5:CropPic(l_4_3)
   ProMessage_PeopleName.String = l_4_1
   if l_4_2 == nil or l_4_2.Year == 0 then
      ProMessage_PeopleBirthday.String = ""
   else
      ProMessage_PeopleBirthday.String = l_4_2:GetDateString("MMM d yyyy")
   end
   if l_4_4 then
      ProfilePicture._visible = false
      UpdatingText.String = Locale:GetString("IDS_UPDATING")
      UpdatingText._visible = true
   elseif l_4_2 == nil then
      UpdatingText.String = Locale:GetString("IDS_DOWNLOADFAILED")
      UpdatingText._visible = true
   else
      if not l_4_6:HasValue() then
         UpdatingText._visible = false
         ProfilePicture._visible = true
         ProfilePicture:SetTexture("\\Windows\\HTC\\Assets\\Images\\People\\VGA\\PeoplePlaceholder.qtc")
         ProfilePicture.TextureCoords:set(0, 0, 0.92578125, 0.92578125)
      else
         UpdatingText._visible = false
         ProfilePicture._visible = true
         ProfilePicture:SetTexture(l_4_6:GetValue().Texture)
         ProfilePicture.TextureCoords.value = l_4_6:GetValue().UV
      end
   end
end

l_0_0 = PeopleUpdateProfileMessage
l_0_0.OnCheckBoxRelease = function(l_5_0)
   ToggleCheckbox(CheckComponent)
end

l_0_0 = PeopleUpdateProfileMessage
l_0_0.OnRightButtonPress = function(l_6_0, l_6_1, l_6_2)
   Button_Cancel_Text.Color = Color(255, 255, 255, 255)
   Button_Cancel:SetTexture("\\Windows\\HTC\\Assets\\Images\\People\\VGA\\ContactEditor_MsgBox_Btn_Down.qtc")
end

l_0_0 = PeopleUpdateProfileMessage
l_0_0.OnLeftButtonPress = function(l_7_0, l_7_1, l_7_2)
   Button_OK_Text.Color = Color(255, 255, 255, 255)
   Button_OK:SetTexture("\\Windows\\HTC\\Assets\\Images\\People\\VGA\\ContactEditor_MsgBox_Btn_Down.qtc")
end

l_0_0 = PeopleUpdateProfileMessage
l_0_0.OnLeftButtonReleaseOutside = function(l_8_0, l_8_1, l_8_2)
   Button_OK_Text.Color = Color(0, 0, 0, 255)
   Button_OK:SetTexture("\\Windows\\HTC\\Assets\\Images\\People\\VGA\\ContactEditor_MsgBox_Btn.qtc")
end

l_0_0 = PeopleUpdateProfileMessage
l_0_0.OnRightButtonReleaseOutside = function(l_9_0, l_9_1, l_9_2)
   Button_Cancel_Text.Color = Color(0, 0, 0, 255)
   Button_Cancel:SetTexture("\\Windows\\HTC\\Assets\\Images\\People\\VGA\\ContactEditor_MsgBox_Btn.qtc")
end

l_0_0 = PeopleUpdateProfileMessage
l_0_0.OnLeftButtonRelease = function(l_10_0, l_10_1, l_10_2)
   Button_OK_Text.Color = Color(0, 0, 0, 255)
   Button_OK:SetTexture("\\Windows\\HTC\\Assets\\Images\\People\\VGA\\ContactEditor_MsgBox_Btn.qtc")
   l_10_0:Destroy()
end

l_0_0 = PeopleUpdateProfileMessage
l_0_0.OnRightButtonRelease = function(l_11_0, l_11_1, l_11_2)
   Button_Cancel_Text.Color = Color(0, 0, 0, 255)
   Button_Cancel:SetTexture("\\Windows\\HTC\\Assets\\Images\\People\\VGA\\ContactEditor_MsgBox_Btn.qtc")
   l_11_0:Destroy()
end

l_0_0 = PeopleUpdateProfileMessage
l_0_0.PageHandle = function(l_12_0, l_12_1, l_12_2)
   l_12_2.value = true
end

l_0_0 = PeopleUpdateProfileMessage
l_0_0.Destroy = function(l_13_0)
   l_13_0._request.NavigateOutTo:disconnect(l_13_0.Destroy, l_13_0)
   BackGround.onPress:disconnect(l_13_0.AccountPageHandle, l_13_0)
   BackGround.onRelease:disconnect(l_13_0.PageHandle, l_13_0)
   Button_Cancel.onPress:disconnect(l_13_0.OnButtonPress, l_13_0)
   Button_Cancel.onRelease:disconnect(l_13_0.OnRightButtonRelease, l_13_0)
   Button_Cancel.onReleaseOutside:disconnect(l_13_0.ButtonReset, l_13_0)
   CheckHitArea.onRelease:disconnect(l_13_0.OnCheckBoxRelease, l_13_0)
   AccountMessage._visible = false
   _application.TouchFlo.HorizontalEnabled = true
   _application.TouchFlo.VerticalEnabled = true
end


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?