# AdventureBoardActivity_View_AdventureBoardActivityHelpWindow_1391.luac
; fn @AdventureBoardActivityHelpWindow.lua  line 0-0 np=0 va=1 ms=3 code=15 consts=8 upvals=1 protos=1
;   K[0]='AdventureBoardActivityHelpWindow'
;   K[1]='setmetatable'
;   K[2]='windowMaskAlpha'
;   K[3]='EWindowMaskAlpha'
;   K[4]='Dark'
;   K[5]='ExtraBoardActivityBaseWindow'
;   K[6]='__index'
;   K[7]='Init'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K3('EWindowMaskAlpha')]
0003  GETTABLE  R2 = R2[K4('Dark')]
0004  SETTABLE  R1[K2('windowMaskAlpha')] = R2
0005  GETTABUP  R2 = _ENV[K5('ExtraBoardActivityBaseWindow')]
0006  CALL      R0 = call(R0, 1 args, 2 rets)
0007  SETTABUP  _ENV[K0('AdventureBoardActivityHelpWindow')] = R0
0008  GETTABUP  R0 = _ENV[K0('AdventureBoardActivityHelpWindow')]
0009  GETTABUP  R1 = _ENV[K0('AdventureBoardActivityHelpWindow')]
0010  SETTABLE  R0[K6('__index')] = R1
0011  GETTABUP  R0 = _ENV[K0('AdventureBoardActivityHelpWindow')]
0012  CLOSURE   R1 = closure proto0
0013  SETTABLE  R0[K7('Init')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 7-32 np=3 va=0 ms=15 code=119 consts=33 upvals=1 protos=0
  ;   K[0]='ExtraBoardActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]=3
  ;   K[3]=1
  ;   K[4]='SpriteUtil'
  ;   K[5]='SetImage'
  ;   K[6]='m_itemImg'
  ;   K[7]='GM'
  ;   K[8]='ItemDataModel'
  ;   K[9]='GetSpriteName'
  ;   K[10]='m_model'
  ;   K[11]='GetItemTypeByIndex'
  ;   K[12]=4
  ;   K[13]=5
  ;   K[14]='GetFogKeyItemByLevel'
  ;   K[15]='m_itemImg6'
  ;   K[16]='m_itemImg7'
  ;   K[17]='IsAcquireTypeValid'
  ;   K[18]='EActTokenAcquireType'
  ;   K[19]='CostEnergy'
  ;   K[20]='ProducerClick'
  ;   K[21]='UIUtil'
  ;   K[22]='SetActive'
  ;   K[23]='m_energyGo'
  ;   K[24]='FinishOrder'
  ;   K[25]='m_orderGo'
  ;   K[26]='IsTokenMode'
  ;   K[27]='extraboard_htptoken_title'
  ;   K[28]='extraboard_help_tip3'
  ;   K[29]='m_step3Desc'
  ;   K[30]='text'
  ;   K[31]='GameTextModel'
  ;   K[32]='GetText'
  ;   upvals: _ENV
  ;   locals: self(0-119), activityType(0-119), bUserClick(0-119), originIndex(7-119), (for index)(10-28), (for limit)(10-28), (for step)(10-28), i(11-27), (for index)(31-49), (for limit)(31-49), (for step)(31-49), i(32-48), bShowEnergyGo(87-119), bShowOrderGo(97-119), descKey(111-119)
  0000  GETTABUP  R3 = _ENV[K0('ExtraBoardActivityBaseWindow')]
  0001  GETTABLE  R3 = R3[K1('Init')]
  0002  MOVE      R4 = R0
  0003  MOVE      R5 = R0
  0004  MOVE      R6 = R0
  0005  CALL      R3 = call(R3, 0 args, 3 rets)
  0006  LOADK     R3 = K2 3
  0007  LOADK     R4 = K3 1
  0008  LOADK     R5 = K2 3
  0009  LOADK     R6 = K3 1
  0010  FORPREP   forprep R4(sBx=16)   -> 27
  0011  GETTABUP  R8 = _ENV[K4('SpriteUtil')]
  0012  GETTABLE  R8 = R8[K5('SetImage')]
  0013  LOADK     R9 = K6 'm_itemImg'
  0014  MOVE      R10 = R0
  0015  CONCAT    R9 = concat(R9..R9)
  0016  GETTABLE  R9 = R0[R9]
  0017  GETTABUP  R10 = _ENV[K7('GM')]
  0018  GETTABLE  R10 = R10[K8('ItemDataModel')]
  0019  SELF      R11 = R10[K9('GetSpriteName')] (self)
  0020  GETTABLE  R12 = R0[K10('m_model')]
  0021  SELF      R13 = R12[K11('GetItemTypeByIndex')] (self)
  0022  ADD       R14 = R7 add R3
  0023  CALL      R12 = call(R12, -1 args, 2 rets)
  0024  CALL      R10 = call(R10, 1 args, -1 rets)
  0025  LOADBOOL  R11 = true
  0026  CALL      R8 = call(R8, 0 args, 3 rets)
  0027  FORLOOP   forloop R4(sBx=-17)   -> 11
  0028  LOADK     R4 = K12 4
  0029  LOADK     R5 = K13 5
  0030  LOADK     R6 = K3 1
  0031  FORPREP   forprep R4(sBx=16)   -> 48
  0032  GETTABUP  R8 = _ENV[K4('SpriteUtil')]
  0033  GETTABLE  R8 = R8[K5('SetImage')]
  0034  LOADK     R9 = K6 'm_itemImg'
  0035  MOVE      R10 = R0
  0036  CONCAT    R9 = concat(R9..R9)
  0037  GETTABLE  R9 = R0[R9]
  0038  GETTABUP  R10 = _ENV[K7('GM')]
  0039  GETTABLE  R10 = R10[K8('ItemDataModel')]
  0040  SELF      R11 = R10[K9('GetSpriteName')] (self)
  0041  GETTABLE  R12 = R0[K10('m_model')]
  0042  SELF      R13 = R12[K14('GetFogKeyItemByLevel')] (self)
  0043  LOADK     R14 = K12 4
  0044  CALL      R12 = call(R12, -1 args, 2 rets)
  0045  CALL      R10 = call(R10, 1 args, -1 rets)
  0046  LOADBOOL  R11 = true
  0047  CALL      R8 = call(R8, 0 args, 3 rets)
  0048  FORLOOP   forloop R4(sBx=-17)   -> 32
  0049  GETTABUP  R4 = _ENV[K4('SpriteUtil')]
  0050  GETTABLE  R4 = R4[K5('SetImage')]
  0051  GETTABLE  R5 = R0[K15('m_itemImg6')]
  0052  GETTABUP  R6 = _ENV[K7('GM')]
  0053  GETTABLE  R6 = R6[K8('ItemDataModel')]
  0054  SELF      R7 = R6[K9('GetSpriteName')] (self)
  0055  GETTABLE  R8 = R0[K10('m_model')]
  0056  SELF      R9 = R8[K14('GetFogKeyItemByLevel')] (self)
  0057  LOADK     R10 = K13 5
  0058  CALL      R8 = call(R8, -1 args, 2 rets)
  0059  CALL      R6 = call(R6, 1 args, -1 rets)
  0060  LOADBOOL  R7 = true
  0061  CALL      R4 = call(R4, 0 args, 3 rets)
  0062  GETTABUP  R4 = _ENV[K4('SpriteUtil')]
  0063  GETTABLE  R4 = R4[K5('SetImage')]
  0064  GETTABLE  R5 = R0[K16('m_itemImg7')]
  0065  GETTABUP  R6 = _ENV[K7('GM')]
  0066  GETTABLE  R6 = R6[K8('ItemDataModel')]
  0067  SELF      R7 = R6[K9('GetSpriteName')] (self)
  0068  GETTABLE  R8 = R0[K10('m_model')]
  0069  SELF      R9 = R8[K14('GetFogKeyItemByLevel')] (self)
  0070  LOADK     R10 = K13 5
  0071  CALL      R8 = call(R8, -1 args, 2 rets)
  0072  CALL      R6 = call(R6, 1 args, -1 rets)
  0073  LOADBOOL  R7 = true
  0074  CALL      R4 = call(R4, 0 args, 3 rets)
  0075  GETTABLE  R4 = R0[K10('m_model')]
  0076  SELF      R5 = R4[K17('IsAcquireTypeValid')] (self)
  0077  GETTABUP  R6 = _ENV[K18('EActTokenAcquireType')]
  0078  GETTABLE  R6 = R6[K19('CostEnergy')]
  0079  CALL      R4 = call(R4, 1 args, 2 rets)
  0080  TEST      if not R4 then   -> -130989
  0081  JMP       (jump)   -> 87
  0082  GETTABLE  R4 = R0[K10('m_model')]
  0083  SELF      R5 = R4[K17('IsAcquireTypeValid')] (self)
  0084  GETTABUP  R6 = _ENV[K18('EActTokenAcquireType')]
  0085  GETTABLE  R6 = R6[K20('ProducerClick')]
  0086  CALL      R4 = call(R4, 1 args, 2 rets)
  0087  GETTABUP  R5 = _ENV[K21('UIUtil')]
  0088  GETTABLE  R5 = R5[K22('SetActive')]
  0089  GETTABLE  R6 = R0[K23('m_energyGo')]
  0090  MOVE      R7 = R0
  0091  CALL      R5 = call(R5, 0 args, 2 rets)
  0092  GETTABLE  R5 = R0[K10('m_model')]
  0093  SELF      R6 = R5[K17('IsAcquireTypeValid')] (self)
  0094  GETTABUP  R7 = _ENV[K18('EActTokenAcquireType')]
  0095  GETTABLE  R7 = R7[K24('FinishOrder')]
  0096  CALL      R5 = call(R5, 1 args, 2 rets)
  0097  GETTABUP  R6 = _ENV[K21('UIUtil')]
  0098  GETTABLE  R6 = R6[K22('SetActive')]
  0099  GETTABLE  R7 = R0[K25('m_orderGo')]
  0100  MOVE      R8 = R0
  0101  CALL      R6 = call(R6, 0 args, 2 rets)
  0102  GETTABLE  R6 = R0[K10('m_model')]
  0103  SELF      R7 = R6[K26('IsTokenMode')] (self)
  0104  CALL      R6 = call(R6, 1 args, 1 rets)
  0105  TEST      if not R6 then   -> -130965
  0106  JMP       (jump)   -> 110
  0107  LOADK     R6 = K27 'extraboard_htptoken_title'
  0108  TEST      if not R6 then   -> -130961
  0109  JMP       (jump)   -> 111
  0110  LOADK     R6 = K28 'extraboard_help_tip3'
  0111  GETTABLE  R7 = R0[K29('m_step3Desc')]
  0112  GETTABUP  R8 = _ENV[K7('GM')]
  0113  GETTABLE  R8 = R8[K31('GameTextModel')]
  0114  SELF      R9 = R8[K32('GetText')] (self)
  0115  MOVE      R10 = R0
  0116  CALL      R8 = call(R8, 1 args, 2 rets)
  0117  SETTABLE  R7[K30('text')] = R8
  0118  RETURN    return R0..R-1
