# SurpriseChest_Model_SurpriseChestManagerDefinition_766.luac
; fn @SurpriseChestManagerDefinition.lua  line 0-0 np=0 va=1 ms=8 code=229 consts=100 upvals=1 protos=1
;   K[0]=60
;   K[1]='SurpriseChestManagerDefinition'
;   K[2]='EntryButtonKey'
;   K[3]='ESceneViewHudButtonKey'
;   K[4]='SurpriseChest'
;   K[5]='SurpriseChestViewPrefabName'
;   K[6]='UIPrefabConfigName'
;   K[7]='SurpriseChestView'
;   K[8]='MainWindowPrefabName'
;   K[9]='SurpriseChestMainWindow'
;   K[10]='HelpWindowPrefabName'
;   K[11]='SurpriseChestHelpWindow'
;   K[12]='RewardWindowPrefabName'
;   K[13]='SurpriseChestRewardWindow'
;   K[14]='BuffType'
;   K[15]='SurpriseChestBuff'
;   K[16]='OrderTokenControlConfigKey'
;   K[17]='order_token_control'
;   K[18]='PropertyTriggerTime'
;   K[19]='EPropertyType'
;   K[20]='surpriseChest_30'
;   K[21]=30
;   K[22]='PropertyImage'
;   K[23]='ImageFileConfigName'
;   K[24]='surprise_chest_icon'
;   K[25]='PropertyConsumeCount'
;   K[26]=1
;   K[27]='StateChangedEvent'
;   K[28]='EEventType'
;   K[29]='SurpriseChestStateChanged'
;   K[30]='ConfigChangedEvent'
;   K[31]='ChestDataStateChangedEvent'
;   K[32]='SurpriseChestDataStateChanged'
;   K[33]='RefreshEntryEvent'
;   K[34]='SurpriseChestRefreshEntry'
;   K[35]='MainWindowClosedEvent'
;   K[36]='SurpriseChestMainWindowClosed'
;   K[37]='AcquireSurpriseChestEvent'
;   K[38]='SurpriseChestAcquireSurpriseChest'
;   K[39]='pairs'
;   K[40]='EPropertySprite'
;   K[41]='ESurpriseChestTriggerType'
;   K[42]='Activity'
;   K[43]='RewardBuff'
;   K[44]=2
;   K[45]='SurpriseChestUIConfig'
;   K[46]='box_mini'
;   K[47]='EntryPosition'
;   K[48]='Vector2'
;   K[49]=-0.5
;   K[50]=-3
;   K[51]='EntrySize'
;   K[52]=71
;   K[53]=77
;   K[54]='BubbleBackground'
;   K[55]='surprise_chest_bubble_1'
;   K[56]='BubbleArrow'
;   K[57]='surprise_chest_bubble_arrow_1'
;   K[58]='BubbleDescOutlineColor'
;   K[59]='UIUtil'
;   K[60]='ConvertHexColor2CSColor'
;   K[61]='B04043'
;   K[62]='RewardBackgroundColor'
;   K[63]='FFE1E1'
;   K[64]='box_green'
;   K[65]=0
;   K[66]=-4
;   K[67]=81
;   K[68]=68
;   K[69]='surprise_chest_bubble_2'
;   K[70]='surprise_chest_bubble_arrow_2'
;   K[71]='4E7600'
;   K[72]='EDFFDE'
;   K[73]='box_blue'
;   K[74]=-1.5
;   K[75]=87
;   K[76]='surprise_chest_bubble_3'
;   K[77]='surprise_chest_bubble_arrow_3'
;   K[78]='1B769B'
;   K[79]='DCF5FF'
;   K[80]='box_red'
;   K[81]=-2.5
;   K[82]=82
;   K[83]=89
;   K[84]='surprise_chest_bubble_4'
;   K[85]='surprise_chest_bubble_arrow_4'
;   K[86]='A1333C'
;   K[87]='FFC5C5'
;   K[88]='box_gold'
;   K[89]=0.5
;   K[90]=-1
;   K[91]=92
;   K[92]='surprise_chest_bubble_5'
;   K[93]='surprise_chest_bubble_arrow_5'
;   K[94]='A04400'
;   K[95]='FFF2BC'
;   K[96]='GameConfig'
;   K[97]='IsTestMode'
;   K[98]='setmetatable'
;   K[99]='__index'
;   upvals: _ENV
;   locals: Minute(1-229), (for generator)(54-61), (for state)(54-61), (for control)(54-61), propertyType(55-59), _(55-59)
0000  LOADK     R0 = K0 60
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K3('ESceneViewHudButtonKey')]
0003  GETTABLE  R2 = R2[K4('SurpriseChest')]
0004  SETTABLE  R1[K2('EntryButtonKey')] = R2
0005  GETTABUP  R2 = _ENV[K6('UIPrefabConfigName')]
0006  GETTABLE  R2 = R2[K7('SurpriseChestView')]
0007  SETTABLE  R1[K5('SurpriseChestViewPrefabName')] = R2
0008  GETTABUP  R2 = _ENV[K6('UIPrefabConfigName')]
0009  GETTABLE  R2 = R2[K9('SurpriseChestMainWindow')]
0010  SETTABLE  R1[K8('MainWindowPrefabName')] = R2
0011  GETTABUP  R2 = _ENV[K6('UIPrefabConfigName')]
0012  GETTABLE  R2 = R2[K11('SurpriseChestHelpWindow')]
0013  SETTABLE  R1[K10('HelpWindowPrefabName')] = R2
0014  GETTABUP  R2 = _ENV[K6('UIPrefabConfigName')]
0015  GETTABLE  R2 = R2[K13('SurpriseChestRewardWindow')]
0016  SETTABLE  R1[K12('RewardWindowPrefabName')] = R2
0017  GETTABUP  R2 = _ENV[K14('BuffType')]
0018  GETTABLE  R2 = R2[K15('SurpriseChestBuff')]
0019  SETTABLE  R1[K14('BuffType')] = R2
0020  SETTABLE  R1[K16('OrderTokenControlConfigKey')] = K17('order_token_control')
0021  NEWTABLE  R2 = {} (0 items)
0022  GETTABUP  R3 = _ENV[K19('EPropertyType')]
0023  GETTABLE  R3 = R3[K20('surpriseChest_30')]
0024  MUL       R4 = R0 mul K21(30)
0025  SETTABLE  R2[R3] = R4
0026  SETTABLE  R1[K18('PropertyTriggerTime')] = R2
0027  GETTABUP  R2 = _ENV[K23('ImageFileConfigName')]
0028  GETTABLE  R2 = R2[K24('surprise_chest_icon')]
0029  SETTABLE  R1[K22('PropertyImage')] = R2
0030  SETTABLE  R1[K25('PropertyConsumeCount')] = K26(1)
0031  GETTABUP  R2 = _ENV[K28('EEventType')]
0032  GETTABLE  R2 = R2[K29('SurpriseChestStateChanged')]
0033  SETTABLE  R1[K27('StateChangedEvent')] = R2
0034  GETTABUP  R2 = _ENV[K28('EEventType')]
0035  GETTABLE  R2 = R2[K29('SurpriseChestStateChanged')]
0036  SETTABLE  R1[K30('ConfigChangedEvent')] = R2
0037  GETTABUP  R2 = _ENV[K28('EEventType')]
0038  GETTABLE  R2 = R2[K32('SurpriseChestDataStateChanged')]
0039  SETTABLE  R1[K31('ChestDataStateChangedEvent')] = R2
0040  GETTABUP  R2 = _ENV[K28('EEventType')]
0041  GETTABLE  R2 = R2[K34('SurpriseChestRefreshEntry')]
0042  SETTABLE  R1[K33('RefreshEntryEvent')] = R2
0043  GETTABUP  R2 = _ENV[K28('EEventType')]
0044  GETTABLE  R2 = R2[K36('SurpriseChestMainWindowClosed')]
0045  SETTABLE  R1[K35('MainWindowClosedEvent')] = R2
0046  GETTABUP  R2 = _ENV[K28('EEventType')]
0047  GETTABLE  R2 = R2[K38('SurpriseChestAcquireSurpriseChest')]
0048  SETTABLE  R1[K37('AcquireSurpriseChestEvent')] = R2
0049  SETTABUP  _ENV[K1('SurpriseChestManagerDefinition')] = R1
0050  GETTABUP  R1 = _ENV[K39('pairs')]
0051  GETTABUP  R2 = _ENV[K1('SurpriseChestManagerDefinition')]
0052  GETTABLE  R2 = R2[K18('PropertyTriggerTime')]
0053  CALL      R1 = call(R1, 3 args, 1 rets)
0054  JMP       (jump)   -> 59
0055  GETTABUP  R6 = _ENV[K40('EPropertySprite')]
0056  GETTABUP  R7 = _ENV[K1('SurpriseChestManagerDefinition')]
0057  GETTABLE  R7 = R7[K22('PropertyImage')]
0058  SETTABLE  R6[R4] = R7
0059  TFORCALL  tforcall R1
0060  TFORLOOP  tforloop R3(sBx=-6)   -> 55
0061  NEWTABLE  R1 = {} (0 items)
0062  SETTABLE  R1[K42('Activity')] = K26(1)
0063  SETTABLE  R1[K43('RewardBuff')] = K44(2)
0064  SETTABUP  _ENV[K41('ESurpriseChestTriggerType')] = R1
0065  NEWTABLE  R1 = {} (0 items)
0066  GETTABUP  R2 = _ENV[K23('ImageFileConfigName')]
0067  GETTABLE  R2 = R2[K46('box_mini')]
0068  NEWTABLE  R3 = {} (0 items)
0069  GETTABUP  R4 = _ENV[K48('Vector2')]
0070  LOADK     R5 = K49 -0.5
0071  LOADK     R6 = K50 -3
0072  CALL      R4 = call(R4, 1 args, 2 rets)
0073  SETTABLE  R3[K47('EntryPosition')] = R4
0074  GETTABUP  R4 = _ENV[K48('Vector2')]
0075  LOADK     R5 = K52 71
0076  LOADK     R6 = K53 77
0077  CALL      R4 = call(R4, 1 args, 2 rets)
0078  SETTABLE  R3[K51('EntrySize')] = R4
0079  GETTABUP  R4 = _ENV[K23('ImageFileConfigName')]
0080  GETTABLE  R4 = R4[K55('surprise_chest_bubble_1')]
0081  SETTABLE  R3[K54('BubbleBackground')] = R4
0082  GETTABUP  R4 = _ENV[K23('ImageFileConfigName')]
0083  GETTABLE  R4 = R4[K57('surprise_chest_bubble_arrow_1')]
0084  SETTABLE  R3[K56('BubbleArrow')] = R4
0085  GETTABUP  R4 = _ENV[K59('UIUtil')]
0086  GETTABLE  R4 = R4[K60('ConvertHexColor2CSColor')]
0087  LOADK     R5 = K61 'B04043'
0088  CALL      R4 = call(R4, 1 args, 1 rets)
0089  SETTABLE  R3[K58('BubbleDescOutlineColor')] = R4
0090  GETTABUP  R4 = _ENV[K59('UIUtil')]
0091  GETTABLE  R4 = R4[K60('ConvertHexColor2CSColor')]
0092  LOADK     R5 = K63 'FFE1E1'
0093  CALL      R4 = call(R4, 1 args, 1 rets)
0094  SETTABLE  R3[K62('RewardBackgroundColor')] = R4
0095  SETTABLE  R1[R2] = R3
0096  GETTABUP  R2 = _ENV[K23('ImageFileConfigName')]
0097  GETTABLE  R2 = R2[K64('box_green')]
0098  NEWTABLE  R3 = {} (0 items)
0099  GETTABUP  R4 = _ENV[K48('Vector2')]
0100  LOADK     R5 = K65 0
0101  LOADK     R6 = K66 -4
0102  CALL      R4 = call(R4, 1 args, 2 rets)
0103  SETTABLE  R3[K47('EntryPosition')] = R4
0104  GETTABUP  R4 = _ENV[K48('Vector2')]
0105  LOADK     R5 = K67 81
0106  LOADK     R6 = K68 68
0107  CALL      R4 = call(R4, 1 args, 2 rets)
0108  SETTABLE  R3[K51('EntrySize')] = R4
0109  GETTABUP  R4 = _ENV[K23('ImageFileConfigName')]
0110  GETTABLE  R4 = R4[K69('surprise_chest_bubble_2')]
0111  SETTABLE  R3[K54('BubbleBackground')] = R4
0112  GETTABUP  R4 = _ENV[K23('ImageFileConfigName')]
0113  GETTABLE  R4 = R4[K70('surprise_chest_bubble_arrow_2')]
0114  SETTABLE  R3[K56('BubbleArrow')] = R4
0115  GETTABUP  R4 = _ENV[K59('UIUtil')]
0116  GETTABLE  R4 = R4[K60('ConvertHexColor2CSColor')]
0117  LOADK     R5 = K71 '4E7600'
0118  CALL      R4 = call(R4, 1 args, 1 rets)
0119  SETTABLE  R3[K58('BubbleDescOutlineColor')] = R4
0120  GETTABUP  R4 = _ENV[K59('UIUtil')]
0121  GETTABLE  R4 = R4[K60('ConvertHexColor2CSColor')]
0122  LOADK     R5 = K72 'EDFFDE'
0123  CALL      R4 = call(R4, 1 args, 1 rets)
0124  SETTABLE  R3[K62('RewardBackgroundColor')] = R4
0125  SETTABLE  R1[R2] = R3
0126  GETTABUP  R2 = _ENV[K23('ImageFileConfigName')]
0127  GETTABLE  R2 = R2[K73('box_blue')]
0128  NEWTABLE  R3 = {} (0 items)
0129  GETTABUP  R4 = _ENV[K48('Vector2')]
0130  LOADK     R5 = K74 -1.5
0131  LOADK     R6 = K44 2
0132  CALL      R4 = call(R4, 1 args, 2 rets)
0133  SETTABLE  R3[K47('EntryPosition')] = R4
0134  GETTABUP  R4 = _ENV[K48('Vector2')]
0135  LOADK     R5 = K67 81
0136  LOADK     R6 = K75 87
0137  CALL      R4 = call(R4, 1 args, 2 rets)
0138  SETTABLE  R3[K51('EntrySize')] = R4
0139  GETTABUP  R4 = _ENV[K23('ImageFileConfigName')]
0140  GETTABLE  R4 = R4[K76('surprise_chest_bubble_3')]
0141  SETTABLE  R3[K54('BubbleBackground')] = R4
0142  GETTABUP  R4 = _ENV[K23('ImageFileConfigName')]
0143  GETTABLE  R4 = R4[K77('surprise_chest_bubble_arrow_3')]
0144  SETTABLE  R3[K56('BubbleArrow')] = R4
0145  GETTABUP  R4 = _ENV[K59('UIUtil')]
0146  GETTABLE  R4 = R4[K60('ConvertHexColor2CSColor')]
0147  LOADK     R5 = K78 '1B769B'
0148  CALL      R4 = call(R4, 1 args, 1 rets)
0149  SETTABLE  R3[K58('BubbleDescOutlineColor')] = R4
0150  GETTABUP  R4 = _ENV[K59('UIUtil')]
0151  GETTABLE  R4 = R4[K60('ConvertHexColor2CSColor')]
0152  LOADK     R5 = K79 'DCF5FF'
0153  CALL      R4 = call(R4, 1 args, 1 rets)
0154  SETTABLE  R3[K62('RewardBackgroundColor')] = R4
0155  SETTABLE  R1[R2] = R3
0156  GETTABUP  R2 = _ENV[K23('ImageFileConfigName')]
0157  GETTABLE  R2 = R2[K80('box_red')]
0158  NEWTABLE  R3 = {} (0 items)
0159  GETTABUP  R4 = _ENV[K48('Vector2')]
0160  LOADK     R5 = K81 -2.5
0161  LOADK     R6 = K44 2
0162  CALL      R4 = call(R4, 1 args, 2 rets)
0163  SETTABLE  R3[K47('EntryPosition')] = R4
0164  GETTABUP  R4 = _ENV[K48('Vector2')]
0165  LOADK     R5 = K82 82
0166  LOADK     R6 = K83 89
0167  CALL      R4 = call(R4, 1 args, 2 rets)
0168  SETTABLE  R3[K51('EntrySize')] = R4
0169  GETTABUP  R4 = _ENV[K23('ImageFileConfigName')]
0170  GETTABLE  R4 = R4[K84('surprise_chest_bubble_4')]
0171  SETTABLE  R3[K54('BubbleBackground')] = R4
0172  GETTABUP  R4 = _ENV[K23('ImageFileConfigName')]
0173  GETTABLE  R4 = R4[K85('surprise_chest_bubble_arrow_4')]
0174  SETTABLE  R3[K56('BubbleArrow')] = R4
0175  GETTABUP  R4 = _ENV[K59('UIUtil')]
0176  GETTABLE  R4 = R4[K60('ConvertHexColor2CSColor')]
0177  LOADK     R5 = K86 'A1333C'
0178  CALL      R4 = call(R4, 1 args, 1 rets)
0179  SETTABLE  R3[K58('BubbleDescOutlineColor')] = R4
0180  GETTABUP  R4 = _ENV[K59('UIUtil')]
0181  GETTABLE  R4 = R4[K60('ConvertHexColor2CSColor')]
0182  LOADK     R5 = K87 'FFC5C5'
0183  CALL      R4 = call(R4, 1 args, 1 rets)
0184  SETTABLE  R3[K62('RewardBackgroundColor')] = R4
0185  SETTABLE  R1[R2] = R3
0186  GETTABUP  R2 = _ENV[K23('ImageFileConfigName')]
0187  GETTABLE  R2 = R2[K88('box_gold')]
0188  NEWTABLE  R3 = {} (0 items)
0189  GETTABUP  R4 = _ENV[K48('Vector2')]
0190  LOADK     R5 = K89 0.5
0191  LOADK     R6 = K90 -1
0192  CALL      R4 = call(R4, 1 args, 2 rets)
0193  SETTABLE  R3[K47('EntryPosition')] = R4
0194  GETTABUP  R4 = _ENV[K48('Vector2')]
0195  LOADK     R5 = K82 82
0196  LOADK     R6 = K91 92
0197  CALL      R4 = call(R4, 1 args, 2 rets)
0198  SETTABLE  R3[K51('EntrySize')] = R4
0199  GETTABUP  R4 = _ENV[K23('ImageFileConfigName')]
0200  GETTABLE  R4 = R4[K92('surprise_chest_bubble_5')]
0201  SETTABLE  R3[K54('BubbleBackground')] = R4
0202  GETTABUP  R4 = _ENV[K23('ImageFileConfigName')]
0203  GETTABLE  R4 = R4[K93('surprise_chest_bubble_arrow_5')]
0204  SETTABLE  R3[K56('BubbleArrow')] = R4
0205  GETTABUP  R4 = _ENV[K59('UIUtil')]
0206  GETTABLE  R4 = R4[K60('ConvertHexColor2CSColor')]
0207  LOADK     R5 = K94 'A04400'
0208  CALL      R4 = call(R4, 1 args, 1 rets)
0209  SETTABLE  R3[K58('BubbleDescOutlineColor')] = R4
0210  GETTABUP  R4 = _ENV[K59('UIUtil')]
0211  GETTABLE  R4 = R4[K60('ConvertHexColor2CSColor')]
0212  LOADK     R5 = K95 'FFF2BC'
0213  CALL      R4 = call(R4, 1 args, 1 rets)
0214  SETTABLE  R3[K62('RewardBackgroundColor')] = R4
0215  SETTABLE  R1[R2] = R3
0216  SETTABUP  _ENV[K45('SurpriseChestUIConfig')] = R1
0217  GETTABUP  R1 = _ENV[K96('GameConfig')]
0218  GETTABLE  R1 = R1[K97('IsTestMode')]
0219  CALL      R1 = call(R1, 1 args, 0 rets)
0220  TEST      if not R1 then   -> -130850
0221  JMP       (jump)   -> 228
0222  GETTABUP  R1 = _ENV[K98('setmetatable')]
0223  GETTABUP  R2 = _ENV[K45('SurpriseChestUIConfig')]
0224  NEWTABLE  R3 = {} (0 items)
0225  CLOSURE   R4 = closure proto0
0226  SETTABLE  R3[K99('__index')] = R4
0227  CALL      R1 = call(R1, 0 args, 2 rets)
0228  RETURN    return R0..R-1
; ---------- proto0 [__index] ----------
  ; fn ?  line 120-123 np=2 va=0 ms=6 code=11 consts=4 upvals=1 protos=0
  ;   K[0]='Log'
  ;   K[1]='Error'
  ;   K[2]='SurpriseChestUIConfig 中缺少定义: '
  ;   K[3]='tostring'
  ;   upvals: _ENV
  ;   locals: _(0-11), key(0-11)
  0000  GETTABUP  R2 = _ENV[K0('Log')]
  0001  GETTABLE  R2 = R2[K1('Error')]
  0002  LOADK     R3 = K2 'SurpriseChestUIConfig 中缺少定义: '
  0003  GETTABUP  R4 = _ENV[K3('tostring')]
  0004  MOVE      R5 = R0
  0005  CALL      R4 = call(R4, 1 args, 1 rets)
  0006  CONCAT    R3 = concat(R3..R3)
  0007  CALL      R2 = call(R2, 0 args, 1 rets)
  0008  LOADNIL   R2..R2 = nil
  0009  RETURN    return R2..R1
  0010  RETURN    return R0..R-1
