-
Notifications
You must be signed in to change notification settings - Fork 1
/
SDR2_Translate.rpj
4827 lines (4827 loc) · 89.4 KB
/
SDR2_Translate.rpj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(lp1
(dp2
S'ModulePrevious'
p3
S'ResViewer'
p4
sS'ModuleCurrent'
p5
S'SDR2_Translate'
p6
sS'Version'
p7
I1
sS'Geometry'
p8
S'1024x556+0+20'
p9
sS'ProjectName'
p10
g6
sS'ImportTypes'
p11
(lp12
(S'Pmw'
p13
S'import'
p14
tp15
a(S'Tkinter'
p16
S'from'
p17
tp18
asS'EditorWidths'
p19
((lp20
L132L
aL132L
a(lp21
L132L
aL132L
a(lp22
L130L
aL130L
atp23
sS'ID'
p24
S'Rapyd Project'
p25
sS'ParkingLot'
p26
(dp27
S'SelectedWidreq'
p28
NsS'Widreqs'
p29
(lp30
ssa(dp31
S'PreviousForm'
p32
S'checkProgressForm'
p33
sS'OnTab'
p34
L1L
sS'-Main-'
p35
(dp36
S'Cursor'
p37
S'1.12'
p38
sS'Text'
p39
(lp40
S''
aS'#coding=utf8\n\n'
p41
aS'import rpErrorHandler\nfrom Tkinter import *\n'
p42
aS"import re, ttk, tkMessageBox\nimport os\nfrom os import listdir, walk\nfrom os.path import isfile, join\n\n# Data path is a dictionary with 3 paths - 'orig', 'proc' and 'done'\ndef checkProgress(DataPath):\n Root = Tk()\n Root.title('Progress')\n GetFn = checkProgressForm(Root)\n GetFn.pack(expand='yes',fill='both')\n GetFn.populateTree(DataPath)\n Root.mainloop()\n try:\n Root.destroy()\n except:\n pass\n return GetFn.returning"
p43
asg7
I0
sS'Sha'
p44
I10916991
ssS'Forms'
p45
(lp46
(dp47
S'Requested'
p48
S'Gui'
p49
sS'Name'
p50
g33
sg28
NsS'Type'
p51
S'Tkinter.Frame'
p52
sS'Lines'
p53
(lp54
(lp55
I4993
aI7585
aI0
aasg39
(dp56
g37
S'99.0'
p57
sg39
(lp58
S'#------------------------------------------------------------------------------#\n# #\n# checkProgressForm #\n# #\n#------------------------------------------------------------------------------#\nclass checkProgressForm(Frame):\n def __init__(self,Master=None,*pos,**kw):\n'
p59
aS" #\n #Your code here\n #\n self.returning = ''\n self.DataPath = {}\n self.root = Master\n"
p60
aS"\n apply(Frame.__init__,(self,Master),kw)\n self._Frame2 = Frame(self)\n self._Frame2.pack(side='top')\n self._TreeView = ttk.Treeview(self._Frame2)\n self._TreeView.pack(side='left')\n self._TreeView.bind('<Double-1>',self._onTreeViewDblClick)\n self._TreeScroll = Scrollbar(self._Frame2)\n self._TreeScroll.pack(expand='yes',fill='y',side='left')\n self._Frame1 = Frame(self)\n self._Frame1.pack(expand='yes',fill='x',side='top')\n self._Button1 = Button(self._Frame1)\n self._Button1.pack(anchor='w',expand='yes',fill='x',side='left')\n self._Button2 = Button(self._Frame1)\n self._Button2.pack(anchor='e',expand='yes',fill='x',side='left')\n"
p61
aS" #\n #Your code here\n #\n self._TreeView.insert('', 'end', 'ep_0', text='Prologue')\n self._TreeView.insert('', 'end', 'ep_1', text='Episode 1')\n self._TreeView.insert('', 'end', 'ep_2', text='Episode 2')\n self._TreeView.insert('', 'end', 'ep_3', text='Episode 3')\n self._TreeView.insert('', 'end', 'ep_4', text='Episode 4')\n self._TreeView.insert('', 'end', 'ep_5', text='Episode 5')\n self._TreeView.insert('', 'end', 'ep_M', text='Monokuma Theater')\n self._TreeView.insert('', 'end', 'ep_F', text='Free Time')\n self._TreeView.insert('', 'end', 'ep_O', text='Other')\n # Scrollbar\n self._TreeScroll.config( command = self._TreeView.yview )\n self._TreeView['yscrollcommand'] = self._TreeScroll.set\n"
p62
aS' #\n #Start of event handler methods\n #\n'
p63
aS" def populateTree(self, DataPath):\n self.DataPath = DataPath\n # Populate lists\n orig = []\n for (dirpath, dirnames, filenames) in walk(DataPath['orig']):\n orig.extend(filenames)\n proc = []\n for (dirpath, dirnames, filenames) in walk(DataPath['proc']):\n proc.extend(filenames)\n done = []\n for (dirpath, dirnames, filenames) in walk(DataPath['done']):\n done.extend(filenames)\n print proc\n # Episodes\n regexDict = {'ep_0': 'e00', \n 'ep_1': 'e01', \n 'ep_2': 'e02', \n 'ep_3': 'e03', \n 'ep_4': 'e04', \n 'ep_5': 'e05'}\n for key, regex in regexDict.iteritems():\n epList = filter(lambda fn: re.match(r'%s' % regex, fn) != None, orig)\n for ep in epList:\n if ep in proc:\n self._TreeView.insert(key, 'end', ep, text='%s' % ep, tags='proc')\n elif ep in done:\n self._TreeView.insert(key, 'end', ep, text='%s' % ep, tags='done')\n else:\n self._TreeView.insert(key, 'end', ep, text='%s' % ep, tags='orig')\n self._TreeView.tag_configure('proc', background='orange')\n self._TreeView.tag_configure('done', background='green')\n pass\n"
p64
aS'\n def _onTreeViewDblClick(self'
p65
aS',Event=None):\n item = self._TreeView.selection()[0]\n fn = None\n # Create filename using tags\n if \'proc\' in self._TreeView.item(item, \'tags\'):\n fn = join(self.DataPath[\'proc\'], \'jp\', \'script\', self._TreeView.item(item,"text"))\n elif \'done\' in self._TreeView.item(item, \'tags\'):\n fn = join(self.DataPath[\'done\'], \'jp\', \'script\', self._TreeView.item(item,"text"))\n elif \'orig\' in self._TreeView.item(item, \'tags\'):\n fn = join(self.DataPath[\'orig\'], \'jp\', \'script\', self._TreeView.item(item,"text"))\n else:\n # Exit if there\'s no tag (e.g. category)\n pass\n # Confirm\n question = \'Open file: %s?\' % self._TreeView.item(item,"text")\n confirm = tkMessageBox.askyesno("Confirm action", question)\n if confirm:\n # Return filename and close popup\n self.returning = fn\n self.root.quit()\n pass\n'
p66
aS' #\n #Start of non-Rapyd user code\n #\n'
p67
aS''
asg7
I0
sg44
I15885439
ssg29
(lp68
(dp69
S'ModuleName'
p70
S'Tkinter'
p71
sg50
S'_Button1'
p72
sS'WidgetName'
p73
S'Button'
p74
sS'PackOptions'
p75
(lp76
(dp77
g50
S'anchor'
p78
sS'Value'
p79
S'w'
sa(dp80
g50
S'expand'
p81
sg79
S'yes'
p82
sa(dp83
g50
S'fill'
p84
sg79
S'x'
sasg24
NsS'XY'
p85
(lp86
I3272
aI8793
asS'Bindings'
p87
(lp88
sS'Options'
p89
(lp90
sa(dp91
g70
g71
sg50
S'_Button2'
p92
sg73
g74
sg75
(lp93
(dp94
g50
g78
sg79
S'e'
sa(dp95
g50
g81
sg79
g82
sa(dp96
g50
g84
sg79
S'x'
sasg24
Nsg85
(lp97
I5854
aI8845
asg87
(lp98
sg89
(lp99
sa(dp100
g70
S'Tkinter'
p101
sg50
S'_Frame1'
p102
sg73
S'Frame'
p103
sg75
(lp104
(dp105
g50
g81
sg79
g82
sa(dp106
g50
g84
sg79
S'x'
sasg24
(L0L
L1L
tp107
sg85
(I0
I0
tp108
sg87
(lp109
sg89
(lp110
sa(dp111
g70
g101
sg50
S'_Frame2'
p112
sg73
g103
sg75
(lp113
sg24
(L0L
L0L
tp114
sg85
g108
sg87
(lp115
sg89
(lp116
sa(dp117
g70
S'Tkinter'
p118
sg50
S'_TreeScroll'
p119
sg73
S'Scrollbar'
p120
sg75
(lp121
(dp122
g50
g81
sg79
S'yes'
p123
sa(dp124
g50
g84
sg79
S'y'
sasg24
Nsg85
(lp125
I5111
aI4199
asg87
(lp126
sg89
(lp127
sa(dp128
g70
g71
sg50
S'_TreeView'
p129
sg73
S'Listbox'
p130
sg75
(lp131
sg24
Nsg85
(lp132
I4329
aI4147
asg87
(lp133
(dp134
S'Handler'
p135
S'_onTreeViewDblClick'
p136
sS'Component'
p137
S''
sS'Event'
p138
S'<Double-1>'
p139
sasg89
(lp140
(dp141
g50
S'pyclass'
p142
sg79
S'ttk.Treeview'
p143
sS'Extra'
p144
Nsasa(dp145
g70
S'Tkinter'
p146
sg50
g33
sg73
S'Frame'
p147
sg75
(lp148
sg24
(I0
tp149
sg85
g108
sg87
(lp150
sg89
(lp151
sasS'BaseClass'
p152
g52
sg34
L1L
sasS'VisibleForm'
p153
g35
sS'SelectedForm'
p154
g35
sg50
S'checkProgress'
p155
sa(dp156
g32
S'SDR2_Translate'
p157
sg34
L1L
sg35
(dp158
g37
S'43.0'
p159
sg39
(lp160
S''
aS'#!/usr/bin/python\n#coding=utf8\nimport __future__\n'
p161
aS'import rpErrorHandler\nfrom Tkinter import *\n'
p162
aS'\n\ntry:\n #--------------------------------------------------------------------------#\n # User code should go after this comment so it is inside the "try". #\n # This allows rpErrorHandler to gain control on an error so it #\n # can properly display a Rapyd-aware error message. #\n #--------------------------------------------------------------------------#\n\n #Adjust sys.path so we can find other modules of this project\n import sys\n if \'.\' not in sys.path:\n sys.path.append(\'.\')\n #Put lines to import other modules of this project here\n import ttk, PIL, tkMessageBox, os, re, struct, tkFileDialog, tkSimpleDialog\n import GuiFuncs, ConfigParser\n from PIL import Image, ImageTk, ImageDraw, ImageFont\n from GimFile import GimFile, GmoFile\n from PakFile import PakFile\n from OpCodes import *\n from Common import *\n from Scene import Scene\n from clt import *\n from Character import *\n from LinFile import *\n from enum import *\n from GUI_Additional import IntegerEntry\n from checkProgress import *\n \n if __name__ == \'__main__\':\n # Read config\n config_ok = False\n while not config_ok:\n config = ConfigParser.ConfigParser()\n config.read(\'config.cfg\')\n try:\n GameDataLoc = os.path.normpath(config.get(\'Game Data\', \'Game_Data_Location\'))\n InProcDataLoc = os.path.normpath(config.get(\'Game Data\', \'InProc_Data_Location\'))\n DoneDataLoc = os.path.normpath(config.get(\'Game Data\', \'Done_Data_Location\'))\n if not os.path.exists(GameDataLoc):\n raise Exception(\'Bad path\')\n if not os.path.exists(DoneDataLoc):\n raise Exception(\'Bad path\')\n config_ok = True\n except:\n w = GameData()\n # Wait for the window to close\n w.wait_window(w)\n \n # Load GUI\n'
p163
aS" Root = Tk()\n import Tkinter\n Tkinter.CallWrapper = rpErrorHandler.CallWrapper\n del Tkinter\n App = SDR2_Translate(Root)\n App.pack(expand='yes',fill='both')\n"
p164
aS" Root.geometry('640x480+10+10')\n Root.title('SDR2 Translate')\n Root.mainloop()\n \n #--------------------------------------------------------------------------#\n # User code should go above this comment. #\n #--------------------------------------------------------------------------#\nexcept:\n rpErrorHandler.RunError()"
p165
asg7
I0
sg44
I15555455
ssg45
(lp166
(dp167
S'Requested'
p168
S'Text'
p169
sS'Type'
p170
S'Tkinter.Toplevel'
p171
sS'Name'
p172
S'Filter'
p173
sS'SelectedWidreq'
p174
Nsg169
(dp175
g37
S'32.0'
p176
sg39
(lp177
S'#------------------------------------------------------------------------------#\n# #\n# Filter #\n# #\n#------------------------------------------------------------------------------#\nclass Filter(Toplevel):\n def __init__(self,Master=None,*pos,**kw):\n'
p178
aS' #\n #Your code here\n #\n'
p179
aS"\n apply(Toplevel.__init__,(self,Master),kw)\n self.bind('<Map>',self.on_Filter_Map)\n self._OpCodesFrame = Frame(self)\n self._OpCodesFrame.pack(side='top')\n self._OkFrame = Frame(self)\n self._OkFrame.pack(side='top')\n self._CancelBtn = Button(self._OkFrame,text='Cancel')\n self._CancelBtn.pack(anchor='e',side='right')\n self._OkBtn = Button(self._OkFrame,text='OK')\n self._OkBtn.pack(anchor='e',side='right')\n self._VisibleFrame = Frame(self._OpCodesFrame)\n self._VisibleFrame.pack(side='left')\n self._VisibleCodesLbl = Label(self._VisibleFrame,text='Visible OpCodes')\n self._VisibleCodesLbl.pack(side='top')\n self._VisibleCodeList = Listbox(self._VisibleFrame)\n self._VisibleCodeList.pack(side='top')\n self._VisibleCodeList.bind('<<ListboxSelect>>' \\\n ,self._on_VisibleCodeList_select)\n self._BtnFrame = Frame(self._OpCodesFrame)\n self._BtnFrame.pack(side='left')\n self._HideBtn = Button(self._BtnFrame,state='disabled',text='=>')\n self._HideBtn.pack(side='top')\n self._HideBtn.bind('<ButtonPress-1>',self._on_HideBtn_Button_1)\n self._ShowBtn = Button(self._BtnFrame,state='disabled',text='<=')\n self._ShowBtn.pack(side='top')\n self._ShowBtn.bind('<ButtonPress-1>',self._on_ShowBtn_Button_1)\n self._HiddenFrame = Frame(self._OpCodesFrame)\n self._HiddenFrame.pack(side='left')\n self._HiddenCodeLbl = Label(self._HiddenFrame,text='Hidden OpCodes')\n self._HiddenCodeLbl.pack(side='top')\n self._HiddenCodeList = Listbox(self._HiddenFrame)\n self._HiddenCodeList.pack(side='top')\n self._HiddenCodeList.bind('<<ListboxSelect>>' \\\n ,self._on_HiddenCodeList_select)\n"
p180
aS' #\n #Your code here\n #\n self.Master = Master\n self.visible_list = {}\n self.hidden_list = {}\n'
p181
aS' #\n #Start of event handler methods\n #\n'
p182
aS" def initLists(self, hidden, visible):\n self.hidden_list = hidden\n self.visible_list = visible\n self.populate()\n pass\n\n def populate(self):\n self._VisibleCodeList.delete(0,END)\n self._HiddenCodeList.delete(0,END)\n for code,value in self.hidden_list.items():\n if value != '':\n self._HiddenCodeList.insert(END, value)\n else:\n self._HiddenCodeList.insert(END, 'op_'+code)\n for code,value in self.visible_list.items():\n if value != '':\n self._VisibleCodeList.insert(END, value)\n else:\n self._VisibleCodeList.insert(END, 'op_'+code)\n pass\n"
p183
aS'\n def _on_HiddenCodeList_select(self'
p184
aS",Event=None):\n self._ShowBtn['state'] = 'normal'\n self._HideBtn['state'] = 'disabled'\n pass\n"
p185
aS'\n def _on_HideBtn_Button_1(self'
p186
aS',Event=None):\n # Delete from the Visible list\n i = int(self._FlowList.curselection()[0]) \n \n self._VisibleCodeList.delete(i)\n # Insert into the Hidden list\n self._HiddenCodeList.insert\n pass\n'
p187
aS'\n def _on_ShowBtn_Button_1(self'
p188
aS',Event=None):\n pass\n'
p189
aS'\n def _on_VisibleCodeList_select(self'
p190
aS",Event=None):\n self._ShowBtn['state'] = 'disabled'\n self._HideBtn['state'] = 'normal'\n pass\n"
p191
aS'\n def on_Filter_Map(self'
p192
aS',Event=None):\n # Grab the focus\n self.focus_set()\n self.grab_set()\n self.transient(self.Master)\n pass\n'
p193
aS' #\n #Start of non-Rapyd user code\n #\n'
p194
aS''
asg7
I0
sg44
I8776831
ssS'Lines'
p195
(lp196
(lp197
L4997L
aL8768L
aL0L
aa(lp198
L3384L
aL4378L
aL1L
aa(lp199
L4973L
aL4378L
aL1L
aasS'Widreqs'
p200
(lp201
(dp202
S'ModuleName'
p203
S'Tkinter'
p204
sg172
g173
sS'WidgetName'
p205
S'Toplevel'
p206
sS'PackOptions'
p207
(lp208
sS'ID'
p209
(L0L
tp210
sS'XY'
p211
(L0L
L0L
tp212
sS'Bindings'
p213
(lp214
(dp215
S'Handler'
p216
S'on_Filter_Map'
p217
sS'Component'
p218
S''
sS'Event'
p219
S'<Map>'
p220
sasS'Options'
p221
(lp222
sa(dp223
g203
S'Tkinter'
p224
sg172
S'_BtnFrame'
p225
sg205
S'Frame'
p226
sg207
(lp227
sg209
(L0L
L0L
L1L
tp228
sg211
g212
sg213
(lp229
sg221
(lp230
sa(dp231
g203
S'Tkinter'
p232
sg172
S'_CancelBtn'
p233
sg205
S'Button'
p234
sg207
(lp235
(dp236
g172
S'anchor'
p237
sS'Value'
p238
S'e'
sasg209
Nsg211
(lp239
L8138L
aL9306L
asg213
(lp240
sg221
(lp241
(dp242
g172
S'text'
p243
sg238
S'Cancel'
p244
sS'Extra'
p245
Nsasa(dp246
g203
g232
sg172
S'_HiddenCodeLbl'
p247
sg205
S'Label'
p248
sg207
(lp249
sg209
Nsg211
(lp250
L6962L
aL203L
asg213
(lp251
sg221
(lp252
(dp253
g172
S'text'
p254
sg238
S'Hidden OpCodes'
p255
sg245
Nsasa(dp256
g203
g232
sg172
S'_HiddenCodeList'
p257
sg205
S'Listbox'
p258
sg207
(lp259
sg209
Nsg211
(lp260
L6847L
aL4545L
asg213
(lp261
(dp262
g216
S'_on_HiddenCodeList_select'
p263
sg218
S''
sg219
S'<<ListboxSelect>>'
p264
sasg221
(lp265
sa(dp266
g203
g224
sg172
S'_HiddenFrame'
p267
sg205
g226
sg207
(lp268
sg209
(L0L
L0L
L2L
tp269
sg211
g212
sg213
(lp270
sg221
(lp271
sa(dp272
g203
g232
sg172
S'_HideBtn'
p273
sg205
g234
sg207
(lp274
sg209
Nsg211
(lp275
L4002L
aL3816L
asg213
(lp276
(dp277
g216
S'_on_HideBtn_Button_1'
p278
sg218
S''
sg219
S'<ButtonPress-1>'
p279
sasg221
(lp280
(dp281
g172
g243
sg238
S'=>'
p282
sg245
Nsa(dp283
g172
S'state'
p284
sg238
S'disabled'
p285
sg245
Nsasa(dp286
g203
g232
sg172
S'_OkBtn'
p287
sg205
g234
sg207
(lp288
(dp289
g172
g237
sg238
S'e'
sasg209
Nsg211
(lp290
L7016L
aL9306L
asg213
(lp291
sg221
(lp292
(dp293
g172
g243
sg238
S'OK'
p294
sg245
Nsasa(dp295
g203
g224
sg172
S'_OkFrame'
p296
sg205
g226
sg207
(lp297
sg209
(L0L
L1L
tp298
sg211
g212
sg213
(lp299
sg221
(lp300
sa(dp301
g203
g224
sg172
S'_OpCodesFrame'
p302
sg205
g226
sg207
(lp303
sg209
(L0L
L0L
tp304
sg211
g212
sg213
(lp305
sg221
(lp306
sa(dp307
g203
g232
sg172
S'_ShowBtn'
p308
sg205
g234
sg207
(lp309
sg209
Nsg211
(lp310
L3996L
aL5108L
asg213
(lp311
(dp312
g216
S'_on_ShowBtn_Button_1'
p313
sg218
S''
sg219
S'<ButtonPress-1>'
p314
sasg221
(lp315
(dp316
g172
g243
sg238
S'<='
p317
sg245
Nsa(dp318
g172
g284
sg238
g285
sg245
Nsasa(dp319
g203
g232
sg172
S'_VisibleCodeList'
p320
sg205
g258
sg207
(lp321
sg209
Nsg211
(lp322
L2110L
aL4342L
asg213
(lp323
(dp324
g216
S'_on_VisibleCodeList_select'
p325
sg218
S''
sg219
S'<<ListboxSelect>>'
p326
sasg221
(lp327
sa(dp328
g203
g232
sg172
S'_VisibleCodesLbl'
p329
sg205
g248
sg207
(lp330
sg209
Nsg211
(lp331
L1825L
aL419L
asg213
(lp332
sg221
(lp333
(dp334
g172
g254
sg238
S'Visible OpCodes'
p335
sg245
Nsasa(dp336
g203
g224
sg172
S'_VisibleFrame'
p337
sg205
g226
sg207
(lp338
sg209
(L0L
L0L
L0L
tp339
sg211
g212
sg213
(lp340
sg221
(lp341
sasS'BaseClass'
p342
g171
sS'OnTab'
p343
L1L
sa(dp344
g168
g169
sg170
S'Tkinter.Toplevel'
p345
sg172
S'GameData'
p346
sg174
S'_BrowseInProcBtn'
p347
sg169
(dp348
g37
S'99.0'
p349
sg39
(lp350
S'#------------------------------------------------------------------------------#\n# #\n# GameData #\n# #\n#------------------------------------------------------------------------------#\nclass GameData(Toplevel):\n def __init__(self,Master=None,*pos,**kw):\n'
p351
aS' #\n #Your code here\n #\n'
p352
aS"\n apply(Toplevel.__init__,(self,Master),kw)\n self.GameDataLoc = StringVar()\n self.DoneDataLoc = StringVar()\n self.InProcDataLoc = StringVar()\n self._Frame3 = Frame(self)\n self._Frame3.pack(side='top')\n self._GameDataLbl = Label(self._Frame3,text='Game Data Options')\n self._GameDataLbl.pack(side='top')\n self._Frame5 = Frame(self)\n self._Frame5.pack(side='top')\n self._Frame1 = Frame(self)\n self._Frame1.pack(side='top')\n self._OkBtn = Button(self._Frame1,text='Ok')\n self._OkBtn.pack(side='left')\n self._OkBtn.bind('<ButtonPress-1>',self._on_OkBtn_Button_1)\n self._CancelBtn = Button(self._Frame1,text='Cancel')\n self._CancelBtn.pack(side='left')\n self._CancelBtn.bind('<ButtonRelease-1>',self._on_CancelBtn_ButRel_1)\n self._Frame6 = Frame(self._Frame5)\n self._Frame6.pack(side='left')\n self._PathLbl = Label(self._Frame6,text='Path to Game Data')\n self._PathLbl.pack(anchor='w',side='top')\n self._DoneLbl = Label(self._Frame6,text='Path to Done Files')\n self._DoneLbl.pack(anchor='w',side='bottom')\n self._InProcLbl = Label(self._Frame6,text='Path to In Process Files')\n self._InProcLbl.pack(anchor='w',side='bottom')\n self._Frame8 = Frame(self._Frame5)\n self._Frame8.pack(side='left')\n self._Frame4 = Frame(self._Frame8)\n self._Frame4.pack(side='top')\n self._DataLoc = Entry(self._Frame4,textvariable=self.GameDataLoc)\n self._DataLoc.pack(side='left')\n self._BrowseLocBtn = Button(self._Frame4,text='Browse')\n self._BrowseLocBtn.pack(side='left')\n self._BrowseLocBtn.bind('<ButtonRelease-1>' \\\n ,self._on_BrowseLocBtn_Button_1)\n self._Frame9 = Frame(self._Frame8)\n self._Frame9.pack(side='top')\n self._InProcLoc = Entry(self._Frame9,textvariable=self.InProcDataLoc)\n self._InProcLoc.pack(side='left')\n self._BrowseInProcBtn = Button(self._Frame9,text='Browse')\n self._BrowseInProcBtn.pack(side='left')\n self._BrowseInProcBtn.bind('<ButtonRelease-1>' \\\n ,self._on_BrowseInProcBtn_ButRel_1)\n self._Frame2 = Frame(self._Frame8)\n self._Frame2.pack(side='top')\n self._DoneLoc = Entry(self._Frame2,textvariable=self.DoneDataLoc)\n self._DoneLoc.pack(side='left')\n self._BrowseDoneBtn = Button(self._Frame2,text='Browse')\n self._BrowseDoneBtn.pack(side='left')\n self._BrowseDoneBtn.bind('<ButtonRelease-1>' \\\n ,self._on_BrowseDoneBtn_ButRel_1)\n"
p353
aS" #\n #Your code here\n #\n try:\n self.GameDataLoc.set(GameDataLoc)\n except:\n self.GameDataLoc.set('')\n try:\n self.InProcDataLoc.set(InProcDataLoc)\n except:\n self.InProcDataLoc.set('')\n try:\n self.DoneDataLoc.set(DoneDataLoc)\n except:\n self.DoneDataLoc.set('')\n"
p354
aS' #\n #Start of event handler methods\n #\n'
p355
aS'\n'
aS'\n def _on_BrowseDoneBtn_ButRel_1(self'
p356
aS',Event=None):\n loc = tkFileDialog.askdirectory()\n if loc:\n self.DoneDataLoc.set(loc)\n pass\n'
p357
aS'\n def _on_BrowseInProcBtn_ButRel_1(self'
p358
aS',Event=None):\n loc = tkFileDialog.askdirectory()\n if loc:\n self.InProcDataLoc.set(loc)\n pass\n'
p359
aS'\n def _on_BrowseLocBtn_Button_1(self'
p360
aS',Event=None):\n loc = tkFileDialog.askdirectory()\n if loc:\n self.GameDataLoc.set(loc)\n pass\n'
p361
aS'\n def _on_CancelBtn_ButRel_1(self'
p362
aS',Event=None):\n # Exit\n self.destroy()\n pass\n'
p363
aS'\n def _on_OkBtn_Button_1(self'
p364
aS",Event=None):\n # Write config\n config = ConfigParser.ConfigParser()\n config.add_section('Game Data')\n config.set('Game Data', 'Game_Data_Location', self.GameDataLoc.get())\n config.set('Game Data', 'InProc_Data_Location', self.InProcDataLoc.get())\n config.set('Game Data', 'Done_Data_Location', self.DoneDataLoc.get())\n with open('config.cfg', 'wb') as configfile:\n config.write(configfile)\n # Exit\n self.destroy()\n pass\n"
p365
aS' #\n #Start of non-Rapyd user code\n #\n'
p366
aS''
asg7
I0
sg44
I4621695
ssg195
(lp367
(lp368
L4997L
aL431L
aL0L
aa(lp369
L4997L
aL3026L
aL0L
aa(lp370
L3008L
aL1722L
aL1L
aa(lp371
L6501L
aL1507L
aL0L
aa(lp372
L6501L
aL2249L
aL0L
aasg200
(lp373
(dp374
g203
S'Tkinter'
p375
sg172
g346
sg205
S'Toplevel'
p376
sg207
(lp377