Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function()
- local L1_0
- function L1_0(A0_1)
- local L1_2, L2_3
- L1_2 = {}
- L2_3 = characterDialog
- L2_3 = L2_3.startDialog
- L2_3 = L2_3(L2_3, A0_1)
- if L2_3 == nil then
- L1_2[1] = {
- type = "SubjectPage",
- dialog = "MISSING TEXT: \"" .. A0_1 .. "\"",
- subject = {}
- }
- else
- repeat
- table.insert(L1_2, {
- type = "SubjectPage",
- dialog = L2_3.text,
- subject = {
- type = L2_3.portraitSprite,
- state = L2_3.portraitAnimation
- },
- imageCode = L2_3.imageCode
- })
- L2_3 = characterDialog:nextDialog()
- until L2_3 == nil
- end
- return L1_2
- end
- Storyteller_getPages = L1_0
- end)()
- ;(function()
- local L1_4
- function L1_4(A0_5, A1_6, A2_7, A3_8)
- local L4_9, L5_10, L6_11, L7_12, L8_13, L9_14, L10_15, L11_16, L12_17, L13_18, L14_19, L15_20, L16_21, L17_22, L18_23, L19_24, L20_25, L21_26, L22_27, L23_28, L24_29, L25_30, L26_31
- L4_9 = {
- L5_10,
- L6_11,
- L7_12,
- L8_13,
- [23] = L9_14(L10_15, L11_16)
- }
- L5_10 = cutscenes
- L6_11 = L5_10
- L5_10 = L5_10.createThread
- L7_12 = "StoryTeller_1"
- L5_10 = L5_10(L6_11, L7_12)
- L6_11 = cutscenes
- L7_12 = L6_11
- L6_11 = L6_11.createThread
- L8_13 = "StoryTeller_2"
- L6_11 = L6_11(L7_12, L8_13)
- L7_12 = cutscenes
- L8_13 = L7_12
- L7_12 = L7_12.createThread
- L9_14 = "StoryTeller_3"
- L7_12 = L7_12(L8_13, L9_14)
- L8_13 = cutscenes
- L9_14 = L8_13
- L8_13 = L8_13.createThread
- L10_15 = "StoryTeller_4"
- L8_13 = L8_13(L9_14, L10_15)
- L9_14 = cutscenes
- L10_15 = L9_14
- L9_14 = L9_14.createThread
- L11_16 = "StoryTeller_5"
- L26_31 = L9_14(L10_15, L11_16)
- ;({
- L5_10,
- L6_11,
- L7_12,
- L8_13,
- [23] = L9_14(L10_15, L11_16)
- })[5] = L9_14
- ;({
- L5_10,
- L6_11,
- L7_12,
- L8_13,
- [23] = L9_14(L10_15, L11_16)
- })[6] = L10_15
- ;({
- L5_10,
- L6_11,
- L7_12,
- L8_13,
- [23] = L9_14(L10_15, L11_16)
- })[7] = L11_16
- ;({
- L5_10,
- L6_11,
- L7_12,
- L8_13,
- [23] = L9_14(L10_15, L11_16)
- })[8] = L12_17
- ;({
- L5_10,
- L6_11,
- L7_12,
- L8_13,
- [23] = L9_14(L10_15, L11_16)
- })[9] = L13_18
- ;({
- L5_10,
- L6_11,
- L7_12,
- L8_13,
- [23] = L9_14(L10_15, L11_16)
- })[10] = L14_19
- ;({
- L5_10,
- L6_11,
- L7_12,
- L8_13,
- [23] = L9_14(L10_15, L11_16)
- })[11] = L15_20
- ;({
- L5_10,
- L6_11,
- L7_12,
- L8_13,
- [23] = L9_14(L10_15, L11_16)
- })[12] = L16_21
- ;({
- L5_10,
- L6_11,
- L7_12,
- L8_13,
- [23] = L9_14(L10_15, L11_16)
- })[13] = L17_22
- ;({
- L5_10,
- L6_11,
- L7_12,
- L8_13,
- [23] = L9_14(L10_15, L11_16)
- })[14] = L18_23
- ;({
- L5_10,
- L6_11,
- L7_12,
- L8_13,
- [23] = L9_14(L10_15, L11_16)
- })[15] = L19_24
- ;({
- L5_10,
- L6_11,
- L7_12,
- L8_13,
- [23] = L9_14(L10_15, L11_16)
- })[16] = L20_25
- ;({
- L5_10,
- L6_11,
- L7_12,
- L8_13,
- [23] = L9_14(L10_15, L11_16)
- })[17] = L21_26
- ;({
- L5_10,
- L6_11,
- L7_12,
- L8_13,
- [23] = L9_14(L10_15, L11_16)
- })[18] = L22_27
- ;({
- L5_10,
- L6_11,
- L7_12,
- L8_13,
- [23] = L9_14(L10_15, L11_16)
- })[19] = L23_28
- ;({
- L5_10,
- L6_11,
- L7_12,
- L8_13,
- [23] = L9_14(L10_15, L11_16)
- })[20] = L24_29
- ;({
- L5_10,
- L6_11,
- L7_12,
- L8_13,
- [23] = L9_14(L10_15, L11_16)
- })[21] = L25_30
- ;({
- L5_10,
- L6_11,
- L7_12,
- L8_13,
- [23] = L9_14(L10_15, L11_16)
- })[22] = L26_31
- L5_10 = cutscenes
- L6_11 = L5_10
- L5_10 = L5_10.createThread
- L7_12 = "ST_more"
- L5_10 = L5_10(L6_11, L7_12)
- L6_11, L7_12, L8_13, L9_14, L10_15, L11_16, L12_17, L13_18, L14_19 = nil, nil, nil, nil, nil, nil, nil, nil, nil
- L15_20 = {}
- L15_20.active = false
- L15_20.currentPage = nil
- L15_20.showMoreButton = nil
- L15_20.moreButtonIsActive = true
- L15_20.moreButtonIsPressed = false
- L15_20.noTwitter = false
- L15_20.noMore = false
- L15_20.forceDownArrow = false
- L15_20.noBg = false
- L15_20.pages = nil
- L15_20.removeHashTag = true
- L15_20.useAudio = true
- L15_20.twitterAnimating = false
- L15_20.camZoom = nil
- L16_21, L17_22, L18_23, L19_24, L20_25 = nil, nil, nil, nil, nil
- if not A3_8 then
- L21_26 = Capy
- L21_26 = L21_26.Vector3
- L22_27 = 0
- L23_28 = 50
- L24_29 = 0
- L21_26 = L21_26(L22_27, L23_28, L24_29)
- A3_8 = L21_26
- end
- L21_26 = convertY_fromTLtoTR
- L22_27 = 0
- L21_26 = L21_26(L22_27)
- L22_27 = convertX_fromTLtoTR
- L23_28 = graphics
- L24_29 = L23_28
- L23_28 = L23_28.getUIScreenWidth
- L23_28 = L23_28(L24_29)
- L23_28 = L23_28 + 1
- L22_27 = L22_27(L23_28)
- L23_28 = convertX_fromTLtoTR
- L24_29 = 0
- L23_28 = L23_28(L24_29)
- L24_29 = convertY_fromTLtoTR
- L25_30 = graphics
- L26_31 = L25_30
- L25_30 = L25_30.getUIScreenHeight
- L25_30 = L25_30(L26_31)
- L25_30 = L25_30 + 1
- L24_29 = L24_29(L25_30)
- L25_30 = convertX_fromTLtoTR
- L26_31 = graphics
- L26_31 = L26_31.getUIScreenWidth
- L26_31 = L26_31(L26_31)
- L26_31 = L26_31 / 2
- L25_30 = L25_30(L26_31)
- L26_31 = 60
- scene.ST_subject:setPosition(L26_31, L25_30, 0)
- if localeStrings:getLanguage() == "Japanese" then
- scene.ST_textbox:setPosition(100, 240, -5)
- scene.ST_tweet:setAnchor(Capy.Vector3(0.735, 0.48, 0))
- scene.ST_tweet:setFontScale(0.74)
- end
- engine:loadSounds("SSS/UI")
- engine:loadSounds("SSS/other")
- function L15_20.start(A0_32)
- local L1_33, L2_34, L3_35, L4_36, L5_37
- L1_33 = _UPVALUE0_
- L2_34 = L1_33
- L1_33 = L1_33.reset
- L1_33(L2_34)
- L1_33 = print
- L2_34 = "Starting story: "
- L3_35 = _UPVALUE1_
- L2_34 = L2_34 .. L3_35
- L1_33(L2_34)
- L1_33 = cutscenes
- L2_34 = L1_33
- L1_33 = L1_33.createThread
- L3_35 = "ST_rot"
- L4_36 = "rotSubjectRing"
- L1_33 = L1_33(L2_34, L3_35, L4_36)
- _UPVALUE2_ = L1_33
- L1_33 = scene
- L1_33 = L1_33.ST_moreTriangle
- L2_34 = L1_33
- L1_33 = L1_33.setRotation
- L3_35 = -90
- L1_33(L2_34, L3_35)
- L1_33 = _UPVALUE0_
- L1_33 = L1_33.noBg
- if not L1_33 then
- L1_33 = _UPVALUE3_
- L1_33 = L1_33[1]
- L2_34 = cutscenes
- L2_34 = L2_34.ST_slideInBg
- L1_33.current = L2_34
- else
- L1_33 = _UPVALUE3_
- L1_33 = L1_33[1]
- L2_34 = cutscenes
- L2_34 = L2_34.ST_noBg
- L1_33.current = L2_34
- end
- L1_33 = _UPVALUE3_
- L1_33 = L1_33[1]
- function L2_34()
- scene.ST_more.onClick = _UPVALUE0_
- scene.ST_more.onClickUp = _UPVALUE1_
- scene.ST_tweet.onClick = _UPVALUE2_
- _UPVALUE3_[1].current = cutscenes.ST_slideOutLBracket
- _UPVALUE3_[1]:addCurrent(cutscenes.ST_slideOutRBracket)
- _UPVALUE3_[1].onDead = function()
- _UPVALUE0_[1].onDead = nil
- _UPVALUE1_:nextPage()
- end
- end
- L1_33.onDead = L2_34
- L1_33 = _UPVALUE7_
- L1_33 = L1_33()
- if L1_33 then
- L1_33 = _UPVALUE8_
- if L1_33 then
- L1_33 = scene
- L1_33 = L1_33.ST_camFocus
- L2_34 = L1_33
- L1_33 = L1_33.setPosition
- L3_35 = _UPVALUE7_
- L3_35 = L3_35()
- L4_36 = L3_35
- L3_35 = L3_35.getPosition
- L3_35 = L3_35(L4_36)
- L4_36 = _UPVALUE9_
- L3_35 = L3_35 + L4_36
- L1_33(L2_34, L3_35)
- L1_33 = _UPVALUE8_
- L2_34 = L1_33
- L1_33 = L1_33.startCinemaMode
- L3_35 = scene
- L3_35 = L3_35.ST_camFocus
- L4_36 = false
- L5_37 = false
- L1_33(L2_34, L3_35, L4_36, L5_37)
- L1_33 = _UPVALUE0_
- L2_34 = _UPVALUE8_
- L2_34 = L2_34.zoomLevel
- L1_33.camZoom = L2_34
- end
- end
- L1_33 = _UPVALUE0_
- L1_33.active = true
- L1_33 = _G
- L1_33 = L1_33.getStats
- L1_33 = L1_33()
- L2_34 = L1_33
- L1_33 = L1_33.canOpenMegatome
- L1_33 = L1_33(L2_34)
- if L1_33 == true then
- L1_33 = engine
- L1_33 = L1_33.sceneName
- if L1_33 ~= "archetype" then
- L1_33 = engine
- L1_33 = L1_33.sceneName
- if L1_33 ~= "credits" then
- L1_33 = addLogBookEntry
- L2_34 = "URSULA"
- L3_35 = _UPVALUE1_
- L4_36 = false
- L1_33(L2_34, L3_35, L4_36)
- end
- end
- end
- L1_33 = _UPVALUE0_
- L1_33 = L1_33.useAudio
- if L1_33 == true then
- L1_33 = audio
- L2_34 = L1_33
- L1_33 = L1_33.playEvent
- L3_35 = "SSS/UI/dialogStart"
- L1_33(L2_34, L3_35)
- L1_33 = audio
- L2_34 = L1_33
- L1_33 = L1_33.playEvent
- L3_35 = "SSS/other/misc/NPCdialogloop"
- L1_33 = L1_33(L2_34, L3_35)
- _UPVALUE10_ = L1_33
- end
- L1_33 = _UPVALUE0_
- L2_34 = L1_33
- L1_33 = L1_33.setupUI
- L1_33(L2_34)
- L1_33 = 48
- L2_34 = convertX_fromTLtoTR
- L3_35 = graphics
- L4_36 = L3_35
- L3_35 = L3_35.getUIScreenWidth
- L3_35 = L3_35(L4_36)
- L3_35 = L3_35 + 76
- L2_34 = L2_34(L3_35)
- L3_35 = convertX_fromTLtoTR
- L4_36 = graphics
- L5_37 = L4_36
- L4_36 = L4_36.getUIScreenWidth
- L5_37 = L4_36(L5_37)
- L3_35 = L3_35(L4_36, L5_37, L4_36(L5_37))
- L4_36 = convertX_fromTLtoTR
- L5_37 = graphics
- L5_37 = L5_37.getUIScreenWidth
- L5_37 = L5_37(L5_37)
- L5_37 = L5_37 + 108
- L4_36 = L4_36(L5_37)
- L5_37 = -5
- cutscenes.ST_slideInTweet.m.destination:set(L1_33, L3_35, L5_37)
- cutscenes.ST_slideInTweet_2.m.destination:set(L1_33, L2_34, L5_37)
- cutscenes.ST_slideOutTweet.m.destination:set(L1_33, L2_34, L5_37)
- cutscenes.ST_fadeInTweet.m.destination:set(L1_33, L2_34, L5_37)
- cutscenes.ST_slideInTweeting.m.destination:set(L1_33, L3_35, L5_37)
- cutscenes.ST_fadeOutTweet.m.destination:set(L1_33, L4_36, L5_37)
- end
- function L15_20.setupUI(A0_38)
- hookFunction(engine, "onResolutionChanged", recomputeBoxInfo)
- hookFunction(engine, "onOrientationModeChanged", onOrientationModeChanged)
- recomputeBoxInfo()
- end
- function onOrientationModeChanged(A0_39)
- if A0_39 == "portrait" then
- scene.ST_textbg:setRenderAlpha(0)
- else
- scene.ST_textbg:setRenderAlpha(1)
- end
- end
- function recomputeBoxInfo()
- local L0_40, L1_41
- L0_40 = convertX_fromTLtoTR(0)
- L1_41 = convertY_fromTLtoTR(-300)
- cutscenes.ST_slideInBg.m.destination:set(L1_41, L0_40, 10)
- cutscenes.ST_slideOutBg.m.destination:set(L1_41, L0_40, 10)
- L1_41 = convertY_fromTLtoTR(-32)
- cutscenes.ST_slideInBG2.m.destination:set(L1_41, L0_40, 10)
- print("subject recompute box")
- end
- function L15_20.stop(A0_42)
- print("storystop")
- if not _UPVALUE0_.noBg then
- _UPVALUE1_[3].current = cutscenes.ST_slideOutBg
- else
- _UPVALUE1_[3].current = cutscenes.ST_noBg
- end
- _UPVALUE1_[2].onDead = function()
- _UPVALUE0_[2].onDead = nil
- _UPVALUE0_[5].current = cutscenes.ST_slideInLBracket
- _UPVALUE0_[5]:addCurrent(cutscenes.ST_slideInRBracket)
- _UPVALUE0_[5]:addCurrent(cutscenes.ST_fadeOutTweet)
- end
- _UPVALUE1_[3].onDead = function()
- _UPVALUE0_.active = false
- scene.ST_more.onClick = nil
- scene.ST_more.onClickUp = nil
- scene.ST_tweet.onClick = nil
- _UPVALUE1_[3].onDead = nil
- safeCall(_UPVALUE0_.onDone)
- _UPVALUE2_:clear()
- end
- if _UPVALUE3_() ~= nil and _UPVALUE4_ then
- _UPVALUE4_:startUserMode()
- end
- if _UPVALUE5_ then
- audio:stopEvent(_UPVALUE5_)
- end
- end
- function L15_20.reset(A0_43)
- A0_43.active = false
- A0_43.currentPage = nil
- A0_43.pages = Storyteller_getPages(_UPVALUE0_)
- end
- function L15_20.setDialog(A0_44, A1_45)
- _UPVALUE0_ = A1_45
- _UPVALUE1_:reset()
- end
- function L15_20.getFocusOffset(A0_46)
- local L1_47
- L1_47 = _UPVALUE0_
- return L1_47
- end
- function L15_20.setFocusOffset(A0_48, A1_49)
- _UPVALUE0_ = A1_49
- end
- function L15_20.setPage(A0_50, A1_51)
- local L2_52, L3_53
- L2_52 = _UPVALUE0_
- L2_52 = L2_52.currentPage
- L3_53 = A1_51
- if L2_52 == nil and L3_53 ~= nil and L3_53.type == "SubjectPage" then
- _UPVALUE1_(L3_53)
- elseif L2_52 ~= nil and L2_52.type == "SubjectPage" and L3_53 ~= nil and L3_53.type == "SubjectPage" then
- _UPVALUE2_(L2_52, L3_53)
- elseif L2_52 ~= nil and L2_52.type == "SubjectPage" and L3_53 == nil then
- _UPVALUE3_(L2_52)
- end
- _UPVALUE0_.currentPage = L3_53
- if not _UPVALUE0_.noTwitter and L3_53 and L3_53.dialog ~= "" then
- _UPVALUE4_[4]:addCurrent(cutscenes.ST_fadeInTweet)
- else
- _UPVALUE4_[4]:addCurrent(cutscenes.ST_fadeOutTweet)
- end
- if A1_51 == nil then
- _UPVALUE0_:stop()
- end
- end
- function L15_20.nextPage(A0_54)
- safeCall(_UPVALUE0_.onNextPage)
- _UPVALUE0_:setPage(table.remove(A0_54.pages, 1))
- end
- function L15_20.hasNextPage(A0_55)
- local L1_56
- L1_56 = A0_55.pages
- L1_56 = #L1_56
- L1_56 = L1_56 > 0
- return L1_56
- end
- function L15_20.more(A0_57)
- if _UPVALUE0_:hasNextPage() then
- _UPVALUE0_:nextPage()
- else
- _UPVALUE0_:setPage(nil)
- end
- _UPVALUE1_[4]:addCurrent(cutscenes.ST_slideOutTweet)
- _UPVALUE2_.current = cutscenes.ST_fadeOutMore
- scene.ST_more:unpressed()
- _UPVALUE0_.moreButtonIsActive = false
- _UPVALUE0_.moreButtonIsPressed = false
- end
- function L15_20.handleUrsula(A0_58, A1_59)
- local L2_60
- L2_60 = A1_59.stopUserInteraction
- L2_60(A1_59)
- L2_60 = ST_UrsulaTalkIdle
- L2_60 = L2_60(A1_59)
- A1_59:setCustomIdle(L2_60)
- if A1_59.currentSpeed == 0 then
- L2_60:onStopped()
- end
- end
- function L15_20.unhandleUrsula(A0_61, A1_62)
- A1_62:setCustomIdle(nil)
- A1_62:startUserInteraction()
- end
- function L10_15(A0_63)
- local L1_64
- L1_64 = A0_63.duration
- L1_64 = L1_64 or 0.5
- timer:setTimeout(_UPVALUE0_.showMoreButton, L1_64)
- end
- function L15_20.showMoreButton()
- if not _UPVALUE0_:hasNextPage() or _UPVALUE0_.forceDownArrow then
- scene.ST_moreTriangle:setRotation(0)
- scene.ST_more:setSoundEvent("SSS/UI/playButtonDown")
- else
- scene.ST_more:setSoundEvent("SSS/UI/playButtonNormal")
- end
- if not _UPVALUE0_.noMore then
- _UPVALUE1_.current = cutscenes.ST_fadeInMore
- function _UPVALUE1_.onDead()
- local L0_65, L1_66
- L0_65 = _UPVALUE0_
- L0_65.onDead = nil
- L0_65 = _UPVALUE1_
- L0_65.moreButtonIsActive = true
- end
- end
- end
- function L15_20.slideInTweetButton(A0_67)
- if _UPVALUE0_.currentPage ~= nil and not _UPVALUE0_.noTwitter then
- audio:playEvent("SSS/UI/tweetThisButtonAppears")
- _UPVALUE1_[4]:addCurrent(cutscenes.ST_slideInTweet)
- end
- end
- function L11_16()
- if _UPVALUE0_.moreButtonIsActive == true then
- scene.ST_more:pressed()
- _UPVALUE0_.moreButtonIsPressed = true
- end
- end
- function L12_17()
- if _UPVALUE0_.moreButtonIsActive == true and _UPVALUE0_.moreButtonIsPressed == true then
- _UPVALUE0_:more()
- end
- end
- function L14_19()
- local L0_68
- L0_68 = scene
- L0_68 = L0_68.ST_tweet
- L0_68 = L0_68.getAlpha
- L0_68 = L0_68(L0_68)
- if L0_68 ~= 1 then
- return
- end
- L0_68 = convertX_fromTLtoTR
- L0_68 = L0_68(graphics:getUIScreenWidth())
- if _UPVALUE0_.currentPage ~= nil and scene.ST_tweet:getPosY() == L0_68 and _UPVALUE0_.twitterAnimating == false then
- audio:playEvent("SSS/Gourd/pressTweetThisButton")
- if not engine:isLoggedInSocial() then
- _UPVALUE0_.twitterAnimating = true
- loadObject("TwitterLogin").onSuccess = function()
- local L0_69, L1_70
- L0_69 = _UPVALUE0_
- L0_69.onSuccess = nil
- L0_69 = true
- _UPVALUE1_ = L0_69
- end
- loadObject("TwitterLogin").onDone = function()
- _UPVALUE0_.twitterAnimating = false
- if _UPVALUE1_ == true then
- _UPVALUE0_:slideInTweetButton()
- end
- end
- loadObject("TwitterLogin"):start()
- else
- _UPVALUE1_()
- end
- elseif not _UPVALUE0_.noTwitter and _UPVALUE0_.twitterAnimating == false then
- audio:playEvent("SSS/UI/tweetThisButtonAppears")
- _UPVALUE2_[4]:addCurrent(cutscenes.ST_slideInTweet)
- _UPVALUE0_.twitterAnimating = true
- timer:setTimeout(function()
- local L1_71
- L1_71 = _UPVALUE0_
- L1_71.twitterAnimating = false
- end, 0.5)
- end
- end
- function L18_23()
- local L0_72
- L0_72 = _UPVALUE0_
- L0_72 = L0_72[4]
- L0_72.current = cutscenes.ST_slideInTweeting
- L0_72 = scene
- L0_72 = L0_72.ST_tweet
- L0_72 = L0_72.setText
- L0_72(L0_72, localeStrings:getString("TWITTER_TWEETING"))
- L0_72 = scene
- L0_72 = L0_72.ST_tweetWaves
- L0_72 = L0_72.setAnimationLoop
- L0_72(L0_72, -1)
- L0_72 = scene
- L0_72 = L0_72.ST_tweet
- L0_72.onClick = nil
- L0_72 = scene
- L0_72 = L0_72.ST_more
- L0_72.onClickUp = nil
- L0_72 = engine
- function L0_72.onRequestSucceeded()
- print("success!", _UPVALUE0_.currentPage.dialog)
- engine.onRequestSucceeded = nil
- engine.onRequestFailed = nil
- engine.onConnectionFailed = nil
- _UPVALUE1_(true)
- end
- L0_72 = engine
- function L0_72.onRequestFailed(A0_73, A1_74)
- engine.onRequestSucceeded = nil
- engine.onRequestFailed = nil
- engine.onConnectionFailed = nil
- print("request failed!", A0_73, A1_74)
- _UPVALUE0_(false)
- end
- L0_72 = engine
- function L0_72.onConnectionFailed(A0_75, A1_76)
- engine.onRequestSucceeded = nil
- engine.onRequestFailed = nil
- engine.onConnectionFailed = nil
- print("connection failed!", A0_75, A1_76)
- _UPVALUE0_(false)
- end
- L0_72 = _UPVALUE1_
- L0_72 = L0_72.currentPage
- L0_72 = L0_72.dialog
- L0_72 = L0_72 .. " " .. localeStrings:getString("HASHTAG_SWORCERY")
- if localeStrings:getLanguage() == "Japanese" and _UPVALUE1_.currentPage.imageCode ~= "" then
- L0_72 = L0_72 .. " http://sukimusu.jp/" .. _UPVALUE1_.currentPage.imageCode
- end
- print("TWEET: " .. L0_72)
- engine:publishSocial(L0_72)
- end
- function L19_24(A0_77)
- if A0_77 then
- scene.ST_tweet:setText(localeStrings:getString("TWITTER_SUCCESS"))
- scene.ST_tweetWaves:setAnimationLoop(1)
- timer:setTimeout(function()
- local L0_78, L1_79
- L0_78 = _UPVALUE0_
- L0_78 = L0_78[4]
- L1_79 = cutscenes
- L1_79 = L1_79.ST_fadeOutTweet
- L0_78.current = L1_79
- L0_78 = _UPVALUE0_
- L0_78 = L0_78[4]
- function L1_79()
- local L0_80, L1_81
- L0_80 = _UPVALUE0_
- L0_80 = L0_80[4]
- L0_80.onDead = nil
- L0_80 = scene
- L0_80 = L0_80.ST_tweet
- L1_81 = L0_80
- L0_80 = L0_80.setText
- L0_80(L1_81, localeStrings:getString("TWITTER_TWEET"))
- L0_80 = scene
- L0_80 = L0_80.ST_tweet
- L1_81 = _UPVALUE1_
- L0_80.onClick = L1_81
- L0_80 = scene
- L0_80 = L0_80.ST_more
- L1_81 = _UPVALUE2_
- L0_80.onClickUp = L1_81
- end
- L0_78.onDead = L1_79
- end, 2)
- else
- scene.ST_tweet:setText(localeStrings:getString("TWITTER_FAILED"))
- scene.ST_tweetWaves:setAnimationLoop(1)
- timer:setTimeout(function()
- local L0_82, L1_83
- L0_82 = _UPVALUE0_
- L0_82 = L0_82[4]
- L1_83 = cutscenes
- L1_83 = L1_83.ST_slideOutTweet
- L0_82.current = L1_83
- L0_82 = _UPVALUE0_
- L0_82 = L0_82[4]
- function L1_83()
- local L0_84, L1_85
- L0_84 = _UPVALUE0_
- L0_84 = L0_84[4]
- L0_84.onDead = nil
- L0_84 = scene
- L0_84 = L0_84.ST_tweet
- L1_85 = L0_84
- L0_84 = L0_84.setText
- L0_84(L1_85, localeStrings:getString("TWITTER_TWEET"))
- L0_84 = scene
- L0_84 = L0_84.ST_tweet
- L1_85 = _UPVALUE1_
- L0_84.onClick = L1_85
- L0_84 = scene
- L0_84 = L0_84.ST_more
- L1_85 = _UPVALUE2_
- L0_84.onClickUp = L1_85
- end
- L0_82.onDead = L1_83
- end, 2)
- end
- end
- function L7_12(A0_86)
- _UPVALUE0_(A0_86)
- _UPVALUE1_(A0_86.dialog)
- if A0_86.subject.state then
- _UPVALUE2_(A0_86.subject.type, A0_86.subject.state)
- _UPVALUE3_[1].current = cutscenes.ST_slideInSubject
- end
- _UPVALUE3_[2].current = cutscenes.ST_fadeInText
- end
- function L8_13(A0_87, A1_88)
- _UPVALUE0_(A1_88)
- if A0_87.subject.state ~= A1_88.subject.state or A0_87.subject.type ~= A1_88.subject.type then
- _UPVALUE1_(_UPVALUE2_[1], A1_88)
- end
- _UPVALUE2_[2].current = cutscenes.ST_fadeOutText
- _UPVALUE2_[2].onDead = function()
- _UPVALUE0_[2].onDead = nil
- if _UPVALUE1_.dialog ~= nil then
- _UPVALUE2_(_UPVALUE1_.dialog)
- _UPVALUE0_[2].current = cutscenes.ST_fadeInText
- end
- end
- end
- function L13_18(A0_89, A1_90)
- local L2_91, L3_92
- L2_91 = _UPVALUE0_
- L2_91 = L2_91[1]
- L3_92 = cutscenes
- L3_92 = L3_92.ST_shrinkOutSubject
- L2_91.current = L3_92
- L2_91 = A1_90.subject
- L2_91 = L2_91.state
- if L2_91 then
- L2_91 = _UPVALUE0_
- L2_91 = L2_91[1]
- function L3_92()
- _UPVALUE0_(_UPVALUE1_.subject.type, _UPVALUE1_.subject.state)
- _UPVALUE2_[1].onDead = nil
- _UPVALUE2_[1].current = cutscenes.ST_slideInSubject
- end
- L2_91.onDead = L3_92
- else
- L2_91 = _UPVALUE0_
- L2_91 = L2_91[1]
- L2_91.onDead = nil
- end
- end
- function L9_14(A0_93)
- _UPVALUE0_[1].current = cutscenes.ST_slideOutSubject
- _UPVALUE0_[2].current = cutscenes.ST_fadeOutText
- _UPVALUE0_[4]:addCurrent(cutscenes.ST_slideOutTweet)
- _UPVALUE1_.current = cutscenes.ST_fadeOutMore
- end
- function L16_21(A0_94)
- local L1_95, L2_96
- L1_95 = 1
- L2_96 = string
- L2_96 = L2_96.upper
- L2_96 = L2_96(A0_94)
- print(A0_94) //Che ho cambiato in L2_96=A0_94
- if _UPVALUE0_.removeHashTag == true then
- L2_96 = _G.removeHashTag(L2_96)
- end
- scene.ST_textbox:setText(L2_96)
- end
- function L17_22()
- local L0_97, L1_98
- L0_97 = _UPVALUE0_
- if not L0_97 then
- L0_97 = scene
- L0_97 = L0_97.TU_Ursula
- end
- return L0_97
- end
- return L15_20
- end
- Storyteller = L1_4
- end)()
- ;(function()
- local L1_99
- function L1_99(A0_100)
- local L1_101, L2_102, L3_103, L4_104
- L1_101 = {}
- L2_102 = A0_100.currentDirection
- L1_101.direction = L2_102
- L2_102, L3_103 = nil, nil
- function L4_104(A0_105, A1_106)
- _UPVALUE0_ = A1_106
- end
- L1_101.start = L4_104
- function L4_104(A0_107)
- _UPVALUE0_ = nil
- timer:clearTimer(_UPVALUE1_)
- end
- L1_101.stop = L4_104
- function L3_103()
- if _UPVALUE0_.direction == "S" then
- _UPVALUE0_.direction = "SE"
- elseif _UPVALUE0_.direction == "SE" then
- _UPVALUE0_.direction = "E"
- elseif _UPVALUE0_.direction == "E" then
- _UPVALUE0_.direction = "NE"
- elseif _UPVALUE0_.direction == "NE" then
- _UPVALUE0_.direction = "N"
- elseif _UPVALUE0_.direction == "SW" then
- _UPVALUE0_.direction = "W"
- elseif _UPVALUE0_.direction == "W" then
- _UPVALUE0_.direction = "NW"
- elseif _UPVALUE0_.direction == "NW" then
- _UPVALUE0_.direction = "N"
- end
- if _UPVALUE0_.direction == "N" then
- print("facing N for dialog")
- timer:clearTimer()
- end
- _UPVALUE1_:getEntity():setAnimation("travelstanding" .. _UPVALUE0_.direction)
- end
- function L4_104(A0_108)
- _UPVALUE0_.direction = _UPVALUE1_.currentDirection
- timer:setTimer(_UPVALUE2_, 0.5)
- end
- L1_101.onStopped = L4_104
- function L4_104(A0_109, A1_110)
- A1_110()
- end
- L1_101.requestInterrupt = L4_104
- function L4_104(A0_111)
- local L1_112
- end
- L1_101.onGo = L4_104
- function L4_104(A0_113)
- local L1_114
- end
- L1_101.onClick = L4_104
- function L4_104(A0_115)
- local L1_116
- end
- L1_101.onClickUp = L4_104
- function L4_104(A0_117, A1_118)
- end
- L1_101.look = L4_104
- function L4_104(A0_119)
- local L1_120
- end
- L1_101.stopLook = L4_104
- function L4_104(A0_121)
- local L1_122
- end
- L1_101.doAction = L4_104
- return L1_101
- end
- ST_UrsulaTalkIdle = L1_99
- end)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement