rem
stringlengths 1
322k
| add
stringlengths 0
2.05M
| context
stringlengths 4
228k
| meta
stringlengths 156
215
|
---|---|---|---|
App_Button( bosh.dirs['MayaPath'], Image(r'images/maya.png'), _("Launch Maya"))) | App_Button( bosh.dirs['MayaPath'], Image(r'images/maya.png'), _("Launch Maya"))) | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fallout3.png'), _("Launch Fallout3"), _("Launch Fallout3 + FOSE"), '')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('GECK.exe'), Image(r'images/geck.png'), _("Launch GECK"), _("Launch GECK + FOSE"), '-editor')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('fomm\\fomm.exe'), Image(r'images/database_connect.png'), _("Launch FOMM"))) BashStatusBar.buttons.append( App_FO3Edit( (bosh.dirs['FO3EditPath'], '-view'), Image(r'images/brick_edit.png'), _("Launch FO3View"))) BashStatusBar.buttons.append( App_FO3Edit( dirs['FO3EditPath']), Image(r'images/brick.png'), _("Launch FO3Edit"))) BashStatusBar.buttons.append( App_FO3Edit( (dirs['FO3EditPath'],'-translate'), Image(r'images/brick_error.png'), _("Launch FO3Trans"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/Boss1.png'), _("Launch BOSS"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/boss2.png'), _("Launch BOSS"))) if bosh.inisettings['showmodelingtoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['BlenderPath'], Image(r'images/blender.png'), _("Launch Blender"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['GmaxPath'], Image(r'images/gmax.png'), _("Launch Gmax"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MayaPath'], Image(r'images/maya.png'), _("Launch Maya"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MaxPath'], Image(r'images/max.png'), _("Launch 3dsMax"))) if bosh.inisettings['showmodelingtoollaunchers'] or bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['NifskopePath'], Image(r'images/nifskope.png'), _("Launch Nifskope"))) if bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['GIMP'], Image(r'images/gimp.png'), _("Launch GIMP"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Photoshop'], Image(r'images/photoshop.png'), _("Launch Photoshop"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Artweaver'], Image(r'images/artweaver.png'), _("Launch Artweaver"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['PaintNET'], Image(r'images/paint.net.png'), _("Launch Paint.NET"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['DDSConverter'], Image(r'images/ddsconverter.png'), _("Launch DDSConverter"))) if bosh.inisettings['showaudiotoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['Audacity'], Image(r'images/audacity.png'), _("Launch Audacity"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['NPP'], Image(r'images/notepad++.png'), _("Launch Notepad++"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom2'], Image(r'images/custom2.png'), _(bosh.inisettings['custom2txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom3'], Image(r'images/custom3.png'), _(bosh.inisettings['custom3txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom4'], Image(r'images/custom4.png'), _(bosh.inisettings['custom4txt']))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
App_Button( bosh.dirs['MaxPath'], Image(r'images/max.png'), _("Launch 3dsMax"))) | App_Button( bosh.dirs['MaxPath'], Image(r'images/max.png'), _("Launch 3dsMax"))) | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fallout3.png'), _("Launch Fallout3"), _("Launch Fallout3 + FOSE"), '')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('GECK.exe'), Image(r'images/geck.png'), _("Launch GECK"), _("Launch GECK + FOSE"), '-editor')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('fomm\\fomm.exe'), Image(r'images/database_connect.png'), _("Launch FOMM"))) BashStatusBar.buttons.append( App_FO3Edit( (bosh.dirs['FO3EditPath'], '-view'), Image(r'images/brick_edit.png'), _("Launch FO3View"))) BashStatusBar.buttons.append( App_FO3Edit( dirs['FO3EditPath']), Image(r'images/brick.png'), _("Launch FO3Edit"))) BashStatusBar.buttons.append( App_FO3Edit( (dirs['FO3EditPath'],'-translate'), Image(r'images/brick_error.png'), _("Launch FO3Trans"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/Boss1.png'), _("Launch BOSS"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/boss2.png'), _("Launch BOSS"))) if bosh.inisettings['showmodelingtoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['BlenderPath'], Image(r'images/blender.png'), _("Launch Blender"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['GmaxPath'], Image(r'images/gmax.png'), _("Launch Gmax"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MayaPath'], Image(r'images/maya.png'), _("Launch Maya"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MaxPath'], Image(r'images/max.png'), _("Launch 3dsMax"))) if bosh.inisettings['showmodelingtoollaunchers'] or bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['NifskopePath'], Image(r'images/nifskope.png'), _("Launch Nifskope"))) if bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['GIMP'], Image(r'images/gimp.png'), _("Launch GIMP"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Photoshop'], Image(r'images/photoshop.png'), _("Launch Photoshop"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Artweaver'], Image(r'images/artweaver.png'), _("Launch Artweaver"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['PaintNET'], Image(r'images/paint.net.png'), _("Launch Paint.NET"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['DDSConverter'], Image(r'images/ddsconverter.png'), _("Launch DDSConverter"))) if bosh.inisettings['showaudiotoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['Audacity'], Image(r'images/audacity.png'), _("Launch Audacity"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['NPP'], Image(r'images/notepad++.png'), _("Launch Notepad++"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom2'], Image(r'images/custom2.png'), _(bosh.inisettings['custom2txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom3'], Image(r'images/custom3.png'), _(bosh.inisettings['custom3txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom4'], Image(r'images/custom4.png'), _(bosh.inisettings['custom4txt']))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
App_Button( bosh.dirs['NifskopePath'], Image(r'images/nifskope.png'), _("Launch Nifskope"))) | App_Button( bosh.dirs['NifskopePath'], Image(r'images/nifskope.png'), _("Launch Nifskope"))) | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fallout3.png'), _("Launch Fallout3"), _("Launch Fallout3 + FOSE"), '')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('GECK.exe'), Image(r'images/geck.png'), _("Launch GECK"), _("Launch GECK + FOSE"), '-editor')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('fomm\\fomm.exe'), Image(r'images/database_connect.png'), _("Launch FOMM"))) BashStatusBar.buttons.append( App_FO3Edit( (bosh.dirs['FO3EditPath'], '-view'), Image(r'images/brick_edit.png'), _("Launch FO3View"))) BashStatusBar.buttons.append( App_FO3Edit( dirs['FO3EditPath']), Image(r'images/brick.png'), _("Launch FO3Edit"))) BashStatusBar.buttons.append( App_FO3Edit( (dirs['FO3EditPath'],'-translate'), Image(r'images/brick_error.png'), _("Launch FO3Trans"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/Boss1.png'), _("Launch BOSS"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/boss2.png'), _("Launch BOSS"))) if bosh.inisettings['showmodelingtoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['BlenderPath'], Image(r'images/blender.png'), _("Launch Blender"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['GmaxPath'], Image(r'images/gmax.png'), _("Launch Gmax"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MayaPath'], Image(r'images/maya.png'), _("Launch Maya"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MaxPath'], Image(r'images/max.png'), _("Launch 3dsMax"))) if bosh.inisettings['showmodelingtoollaunchers'] or bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['NifskopePath'], Image(r'images/nifskope.png'), _("Launch Nifskope"))) if bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['GIMP'], Image(r'images/gimp.png'), _("Launch GIMP"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Photoshop'], Image(r'images/photoshop.png'), _("Launch Photoshop"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Artweaver'], Image(r'images/artweaver.png'), _("Launch Artweaver"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['PaintNET'], Image(r'images/paint.net.png'), _("Launch Paint.NET"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['DDSConverter'], Image(r'images/ddsconverter.png'), _("Launch DDSConverter"))) if bosh.inisettings['showaudiotoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['Audacity'], Image(r'images/audacity.png'), _("Launch Audacity"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['NPP'], Image(r'images/notepad++.png'), _("Launch Notepad++"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom2'], Image(r'images/custom2.png'), _(bosh.inisettings['custom2txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom3'], Image(r'images/custom3.png'), _(bosh.inisettings['custom3txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom4'], Image(r'images/custom4.png'), _(bosh.inisettings['custom4txt']))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
App_Button( bosh.dirs['GIMP'], Image(r'images/gimp.png'), _("Launch GIMP"))) | App_Button( bosh.dirs['GIMP'], Image(r'images/gimp.png'), _("Launch GIMP"))) | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fallout3.png'), _("Launch Fallout3"), _("Launch Fallout3 + FOSE"), '')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('GECK.exe'), Image(r'images/geck.png'), _("Launch GECK"), _("Launch GECK + FOSE"), '-editor')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('fomm\\fomm.exe'), Image(r'images/database_connect.png'), _("Launch FOMM"))) BashStatusBar.buttons.append( App_FO3Edit( (bosh.dirs['FO3EditPath'], '-view'), Image(r'images/brick_edit.png'), _("Launch FO3View"))) BashStatusBar.buttons.append( App_FO3Edit( dirs['FO3EditPath']), Image(r'images/brick.png'), _("Launch FO3Edit"))) BashStatusBar.buttons.append( App_FO3Edit( (dirs['FO3EditPath'],'-translate'), Image(r'images/brick_error.png'), _("Launch FO3Trans"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/Boss1.png'), _("Launch BOSS"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/boss2.png'), _("Launch BOSS"))) if bosh.inisettings['showmodelingtoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['BlenderPath'], Image(r'images/blender.png'), _("Launch Blender"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['GmaxPath'], Image(r'images/gmax.png'), _("Launch Gmax"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MayaPath'], Image(r'images/maya.png'), _("Launch Maya"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MaxPath'], Image(r'images/max.png'), _("Launch 3dsMax"))) if bosh.inisettings['showmodelingtoollaunchers'] or bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['NifskopePath'], Image(r'images/nifskope.png'), _("Launch Nifskope"))) if bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['GIMP'], Image(r'images/gimp.png'), _("Launch GIMP"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Photoshop'], Image(r'images/photoshop.png'), _("Launch Photoshop"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Artweaver'], Image(r'images/artweaver.png'), _("Launch Artweaver"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['PaintNET'], Image(r'images/paint.net.png'), _("Launch Paint.NET"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['DDSConverter'], Image(r'images/ddsconverter.png'), _("Launch DDSConverter"))) if bosh.inisettings['showaudiotoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['Audacity'], Image(r'images/audacity.png'), _("Launch Audacity"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['NPP'], Image(r'images/notepad++.png'), _("Launch Notepad++"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom2'], Image(r'images/custom2.png'), _(bosh.inisettings['custom2txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom3'], Image(r'images/custom3.png'), _(bosh.inisettings['custom3txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom4'], Image(r'images/custom4.png'), _(bosh.inisettings['custom4txt']))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
App_Button( bosh.dirs['Photoshop'], Image(r'images/photoshop.png'), _("Launch Photoshop"))) | App_Button( bosh.dirs['Photoshop'], Image(r'images/photoshop.png'), _("Launch Photoshop"))) | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fallout3.png'), _("Launch Fallout3"), _("Launch Fallout3 + FOSE"), '')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('GECK.exe'), Image(r'images/geck.png'), _("Launch GECK"), _("Launch GECK + FOSE"), '-editor')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('fomm\\fomm.exe'), Image(r'images/database_connect.png'), _("Launch FOMM"))) BashStatusBar.buttons.append( App_FO3Edit( (bosh.dirs['FO3EditPath'], '-view'), Image(r'images/brick_edit.png'), _("Launch FO3View"))) BashStatusBar.buttons.append( App_FO3Edit( dirs['FO3EditPath']), Image(r'images/brick.png'), _("Launch FO3Edit"))) BashStatusBar.buttons.append( App_FO3Edit( (dirs['FO3EditPath'],'-translate'), Image(r'images/brick_error.png'), _("Launch FO3Trans"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/Boss1.png'), _("Launch BOSS"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/boss2.png'), _("Launch BOSS"))) if bosh.inisettings['showmodelingtoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['BlenderPath'], Image(r'images/blender.png'), _("Launch Blender"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['GmaxPath'], Image(r'images/gmax.png'), _("Launch Gmax"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MayaPath'], Image(r'images/maya.png'), _("Launch Maya"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MaxPath'], Image(r'images/max.png'), _("Launch 3dsMax"))) if bosh.inisettings['showmodelingtoollaunchers'] or bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['NifskopePath'], Image(r'images/nifskope.png'), _("Launch Nifskope"))) if bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['GIMP'], Image(r'images/gimp.png'), _("Launch GIMP"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Photoshop'], Image(r'images/photoshop.png'), _("Launch Photoshop"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Artweaver'], Image(r'images/artweaver.png'), _("Launch Artweaver"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['PaintNET'], Image(r'images/paint.net.png'), _("Launch Paint.NET"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['DDSConverter'], Image(r'images/ddsconverter.png'), _("Launch DDSConverter"))) if bosh.inisettings['showaudiotoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['Audacity'], Image(r'images/audacity.png'), _("Launch Audacity"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['NPP'], Image(r'images/notepad++.png'), _("Launch Notepad++"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom2'], Image(r'images/custom2.png'), _(bosh.inisettings['custom2txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom3'], Image(r'images/custom3.png'), _(bosh.inisettings['custom3txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom4'], Image(r'images/custom4.png'), _(bosh.inisettings['custom4txt']))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
App_Button( bosh.dirs['Artweaver'], Image(r'images/artweaver.png'), _("Launch Artweaver"))) | App_Button( bosh.dirs['Artweaver'], Image(r'images/artweaver.png'), _("Launch Artweaver"))) | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fallout3.png'), _("Launch Fallout3"), _("Launch Fallout3 + FOSE"), '')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('GECK.exe'), Image(r'images/geck.png'), _("Launch GECK"), _("Launch GECK + FOSE"), '-editor')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('fomm\\fomm.exe'), Image(r'images/database_connect.png'), _("Launch FOMM"))) BashStatusBar.buttons.append( App_FO3Edit( (bosh.dirs['FO3EditPath'], '-view'), Image(r'images/brick_edit.png'), _("Launch FO3View"))) BashStatusBar.buttons.append( App_FO3Edit( dirs['FO3EditPath']), Image(r'images/brick.png'), _("Launch FO3Edit"))) BashStatusBar.buttons.append( App_FO3Edit( (dirs['FO3EditPath'],'-translate'), Image(r'images/brick_error.png'), _("Launch FO3Trans"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/Boss1.png'), _("Launch BOSS"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/boss2.png'), _("Launch BOSS"))) if bosh.inisettings['showmodelingtoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['BlenderPath'], Image(r'images/blender.png'), _("Launch Blender"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['GmaxPath'], Image(r'images/gmax.png'), _("Launch Gmax"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MayaPath'], Image(r'images/maya.png'), _("Launch Maya"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MaxPath'], Image(r'images/max.png'), _("Launch 3dsMax"))) if bosh.inisettings['showmodelingtoollaunchers'] or bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['NifskopePath'], Image(r'images/nifskope.png'), _("Launch Nifskope"))) if bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['GIMP'], Image(r'images/gimp.png'), _("Launch GIMP"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Photoshop'], Image(r'images/photoshop.png'), _("Launch Photoshop"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Artweaver'], Image(r'images/artweaver.png'), _("Launch Artweaver"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['PaintNET'], Image(r'images/paint.net.png'), _("Launch Paint.NET"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['DDSConverter'], Image(r'images/ddsconverter.png'), _("Launch DDSConverter"))) if bosh.inisettings['showaudiotoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['Audacity'], Image(r'images/audacity.png'), _("Launch Audacity"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['NPP'], Image(r'images/notepad++.png'), _("Launch Notepad++"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom2'], Image(r'images/custom2.png'), _(bosh.inisettings['custom2txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom3'], Image(r'images/custom3.png'), _(bosh.inisettings['custom3txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom4'], Image(r'images/custom4.png'), _(bosh.inisettings['custom4txt']))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
App_Button( bosh.dirs['PaintNET'], Image(r'images/paint.net.png'), _("Launch Paint.NET"))) | App_Button( bosh.dirs['PaintNET'], Image(r'images/paint.net.png'), _("Launch Paint.NET"))) | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fallout3.png'), _("Launch Fallout3"), _("Launch Fallout3 + FOSE"), '')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('GECK.exe'), Image(r'images/geck.png'), _("Launch GECK"), _("Launch GECK + FOSE"), '-editor')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('fomm\\fomm.exe'), Image(r'images/database_connect.png'), _("Launch FOMM"))) BashStatusBar.buttons.append( App_FO3Edit( (bosh.dirs['FO3EditPath'], '-view'), Image(r'images/brick_edit.png'), _("Launch FO3View"))) BashStatusBar.buttons.append( App_FO3Edit( dirs['FO3EditPath']), Image(r'images/brick.png'), _("Launch FO3Edit"))) BashStatusBar.buttons.append( App_FO3Edit( (dirs['FO3EditPath'],'-translate'), Image(r'images/brick_error.png'), _("Launch FO3Trans"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/Boss1.png'), _("Launch BOSS"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/boss2.png'), _("Launch BOSS"))) if bosh.inisettings['showmodelingtoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['BlenderPath'], Image(r'images/blender.png'), _("Launch Blender"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['GmaxPath'], Image(r'images/gmax.png'), _("Launch Gmax"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MayaPath'], Image(r'images/maya.png'), _("Launch Maya"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MaxPath'], Image(r'images/max.png'), _("Launch 3dsMax"))) if bosh.inisettings['showmodelingtoollaunchers'] or bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['NifskopePath'], Image(r'images/nifskope.png'), _("Launch Nifskope"))) if bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['GIMP'], Image(r'images/gimp.png'), _("Launch GIMP"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Photoshop'], Image(r'images/photoshop.png'), _("Launch Photoshop"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Artweaver'], Image(r'images/artweaver.png'), _("Launch Artweaver"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['PaintNET'], Image(r'images/paint.net.png'), _("Launch Paint.NET"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['DDSConverter'], Image(r'images/ddsconverter.png'), _("Launch DDSConverter"))) if bosh.inisettings['showaudiotoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['Audacity'], Image(r'images/audacity.png'), _("Launch Audacity"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['NPP'], Image(r'images/notepad++.png'), _("Launch Notepad++"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom2'], Image(r'images/custom2.png'), _(bosh.inisettings['custom2txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom3'], Image(r'images/custom3.png'), _(bosh.inisettings['custom3txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom4'], Image(r'images/custom4.png'), _(bosh.inisettings['custom4txt']))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
App_Button( bosh.dirs['DDSConverter'], Image(r'images/ddsconverter.png'), _("Launch DDSConverter"))) | App_Button( bosh.dirs['DDSConverter'], Image(r'images/ddsconverter.png'), _("Launch DDSConverter"))) | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fallout3.png'), _("Launch Fallout3"), _("Launch Fallout3 + FOSE"), '')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('GECK.exe'), Image(r'images/geck.png'), _("Launch GECK"), _("Launch GECK + FOSE"), '-editor')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('fomm\\fomm.exe'), Image(r'images/database_connect.png'), _("Launch FOMM"))) BashStatusBar.buttons.append( App_FO3Edit( (bosh.dirs['FO3EditPath'], '-view'), Image(r'images/brick_edit.png'), _("Launch FO3View"))) BashStatusBar.buttons.append( App_FO3Edit( dirs['FO3EditPath']), Image(r'images/brick.png'), _("Launch FO3Edit"))) BashStatusBar.buttons.append( App_FO3Edit( (dirs['FO3EditPath'],'-translate'), Image(r'images/brick_error.png'), _("Launch FO3Trans"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/Boss1.png'), _("Launch BOSS"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/boss2.png'), _("Launch BOSS"))) if bosh.inisettings['showmodelingtoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['BlenderPath'], Image(r'images/blender.png'), _("Launch Blender"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['GmaxPath'], Image(r'images/gmax.png'), _("Launch Gmax"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MayaPath'], Image(r'images/maya.png'), _("Launch Maya"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MaxPath'], Image(r'images/max.png'), _("Launch 3dsMax"))) if bosh.inisettings['showmodelingtoollaunchers'] or bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['NifskopePath'], Image(r'images/nifskope.png'), _("Launch Nifskope"))) if bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['GIMP'], Image(r'images/gimp.png'), _("Launch GIMP"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Photoshop'], Image(r'images/photoshop.png'), _("Launch Photoshop"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Artweaver'], Image(r'images/artweaver.png'), _("Launch Artweaver"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['PaintNET'], Image(r'images/paint.net.png'), _("Launch Paint.NET"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['DDSConverter'], Image(r'images/ddsconverter.png'), _("Launch DDSConverter"))) if bosh.inisettings['showaudiotoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['Audacity'], Image(r'images/audacity.png'), _("Launch Audacity"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['NPP'], Image(r'images/notepad++.png'), _("Launch Notepad++"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom2'], Image(r'images/custom2.png'), _(bosh.inisettings['custom2txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom3'], Image(r'images/custom3.png'), _(bosh.inisettings['custom3txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom4'], Image(r'images/custom4.png'), _(bosh.inisettings['custom4txt']))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
App_Button( bosh.dirs['Audacity'], Image(r'images/audacity.png'), _("Launch Audacity"))) | App_Button( bosh.dirs['Audacity'], Image(r'images/audacity.png'), _("Launch Audacity"))) | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fallout3.png'), _("Launch Fallout3"), _("Launch Fallout3 + FOSE"), '')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('GECK.exe'), Image(r'images/geck.png'), _("Launch GECK"), _("Launch GECK + FOSE"), '-editor')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('fomm\\fomm.exe'), Image(r'images/database_connect.png'), _("Launch FOMM"))) BashStatusBar.buttons.append( App_FO3Edit( (bosh.dirs['FO3EditPath'], '-view'), Image(r'images/brick_edit.png'), _("Launch FO3View"))) BashStatusBar.buttons.append( App_FO3Edit( dirs['FO3EditPath']), Image(r'images/brick.png'), _("Launch FO3Edit"))) BashStatusBar.buttons.append( App_FO3Edit( (dirs['FO3EditPath'],'-translate'), Image(r'images/brick_error.png'), _("Launch FO3Trans"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/Boss1.png'), _("Launch BOSS"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/boss2.png'), _("Launch BOSS"))) if bosh.inisettings['showmodelingtoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['BlenderPath'], Image(r'images/blender.png'), _("Launch Blender"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['GmaxPath'], Image(r'images/gmax.png'), _("Launch Gmax"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MayaPath'], Image(r'images/maya.png'), _("Launch Maya"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MaxPath'], Image(r'images/max.png'), _("Launch 3dsMax"))) if bosh.inisettings['showmodelingtoollaunchers'] or bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['NifskopePath'], Image(r'images/nifskope.png'), _("Launch Nifskope"))) if bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['GIMP'], Image(r'images/gimp.png'), _("Launch GIMP"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Photoshop'], Image(r'images/photoshop.png'), _("Launch Photoshop"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Artweaver'], Image(r'images/artweaver.png'), _("Launch Artweaver"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['PaintNET'], Image(r'images/paint.net.png'), _("Launch Paint.NET"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['DDSConverter'], Image(r'images/ddsconverter.png'), _("Launch DDSConverter"))) if bosh.inisettings['showaudiotoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['Audacity'], Image(r'images/audacity.png'), _("Launch Audacity"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['NPP'], Image(r'images/notepad++.png'), _("Launch Notepad++"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom2'], Image(r'images/custom2.png'), _(bosh.inisettings['custom2txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom3'], Image(r'images/custom3.png'), _(bosh.inisettings['custom3txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom4'], Image(r'images/custom4.png'), _(bosh.inisettings['custom4txt']))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) | bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fallout3.png'), _("Launch Fallout3"), _("Launch Fallout3 + FOSE"), '')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('GECK.exe'), Image(r'images/geck.png'), _("Launch GECK"), _("Launch GECK + FOSE"), '-editor')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('fomm\\fomm.exe'), Image(r'images/database_connect.png'), _("Launch FOMM"))) BashStatusBar.buttons.append( App_FO3Edit( (bosh.dirs['FO3EditPath'], '-view'), Image(r'images/brick_edit.png'), _("Launch FO3View"))) BashStatusBar.buttons.append( App_FO3Edit( dirs['FO3EditPath']), Image(r'images/brick.png'), _("Launch FO3Edit"))) BashStatusBar.buttons.append( App_FO3Edit( (dirs['FO3EditPath'],'-translate'), Image(r'images/brick_error.png'), _("Launch FO3Trans"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/Boss1.png'), _("Launch BOSS"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/boss2.png'), _("Launch BOSS"))) if bosh.inisettings['showmodelingtoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['BlenderPath'], Image(r'images/blender.png'), _("Launch Blender"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['GmaxPath'], Image(r'images/gmax.png'), _("Launch Gmax"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MayaPath'], Image(r'images/maya.png'), _("Launch Maya"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MaxPath'], Image(r'images/max.png'), _("Launch 3dsMax"))) if bosh.inisettings['showmodelingtoollaunchers'] or bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['NifskopePath'], Image(r'images/nifskope.png'), _("Launch Nifskope"))) if bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['GIMP'], Image(r'images/gimp.png'), _("Launch GIMP"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Photoshop'], Image(r'images/photoshop.png'), _("Launch Photoshop"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Artweaver'], Image(r'images/artweaver.png'), _("Launch Artweaver"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['PaintNET'], Image(r'images/paint.net.png'), _("Launch Paint.NET"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['DDSConverter'], Image(r'images/ddsconverter.png'), _("Launch DDSConverter"))) if bosh.inisettings['showaudiotoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['Audacity'], Image(r'images/audacity.png'), _("Launch Audacity"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['NPP'], Image(r'images/notepad++.png'), _("Launch Notepad++"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom2'], Image(r'images/custom2.png'), _(bosh.inisettings['custom2txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom3'], Image(r'images/custom3.png'), _(bosh.inisettings['custom3txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom4'], Image(r'images/custom4.png'), _(bosh.inisettings['custom4txt']))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
bosh.dirs['NPP'], Image(r'images/notepad++.png'), _("Launch Notepad++"))) | bosh.dirs['NPP'], Image(r'images/notepad++.png'), _("Launch Notepad++"))) | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fallout3.png'), _("Launch Fallout3"), _("Launch Fallout3 + FOSE"), '')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('GECK.exe'), Image(r'images/geck.png'), _("Launch GECK"), _("Launch GECK + FOSE"), '-editor')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('fomm\\fomm.exe'), Image(r'images/database_connect.png'), _("Launch FOMM"))) BashStatusBar.buttons.append( App_FO3Edit( (bosh.dirs['FO3EditPath'], '-view'), Image(r'images/brick_edit.png'), _("Launch FO3View"))) BashStatusBar.buttons.append( App_FO3Edit( dirs['FO3EditPath']), Image(r'images/brick.png'), _("Launch FO3Edit"))) BashStatusBar.buttons.append( App_FO3Edit( (dirs['FO3EditPath'],'-translate'), Image(r'images/brick_error.png'), _("Launch FO3Trans"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/Boss1.png'), _("Launch BOSS"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/boss2.png'), _("Launch BOSS"))) if bosh.inisettings['showmodelingtoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['BlenderPath'], Image(r'images/blender.png'), _("Launch Blender"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['GmaxPath'], Image(r'images/gmax.png'), _("Launch Gmax"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MayaPath'], Image(r'images/maya.png'), _("Launch Maya"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MaxPath'], Image(r'images/max.png'), _("Launch 3dsMax"))) if bosh.inisettings['showmodelingtoollaunchers'] or bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['NifskopePath'], Image(r'images/nifskope.png'), _("Launch Nifskope"))) if bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['GIMP'], Image(r'images/gimp.png'), _("Launch GIMP"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Photoshop'], Image(r'images/photoshop.png'), _("Launch Photoshop"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Artweaver'], Image(r'images/artweaver.png'), _("Launch Artweaver"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['PaintNET'], Image(r'images/paint.net.png'), _("Launch Paint.NET"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['DDSConverter'], Image(r'images/ddsconverter.png'), _("Launch DDSConverter"))) if bosh.inisettings['showaudiotoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['Audacity'], Image(r'images/audacity.png'), _("Launch Audacity"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['NPP'], Image(r'images/notepad++.png'), _("Launch Notepad++"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom2'], Image(r'images/custom2.png'), _(bosh.inisettings['custom2txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom3'], Image(r'images/custom3.png'), _(bosh.inisettings['custom3txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom4'], Image(r'images/custom4.png'), _(bosh.inisettings['custom4txt']))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) | bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fallout3.png'), _("Launch Fallout3"), _("Launch Fallout3 + FOSE"), '')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('GECK.exe'), Image(r'images/geck.png'), _("Launch GECK"), _("Launch GECK + FOSE"), '-editor')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('fomm\\fomm.exe'), Image(r'images/database_connect.png'), _("Launch FOMM"))) BashStatusBar.buttons.append( App_FO3Edit( (bosh.dirs['FO3EditPath'], '-view'), Image(r'images/brick_edit.png'), _("Launch FO3View"))) BashStatusBar.buttons.append( App_FO3Edit( dirs['FO3EditPath']), Image(r'images/brick.png'), _("Launch FO3Edit"))) BashStatusBar.buttons.append( App_FO3Edit( (dirs['FO3EditPath'],'-translate'), Image(r'images/brick_error.png'), _("Launch FO3Trans"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/Boss1.png'), _("Launch BOSS"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/boss2.png'), _("Launch BOSS"))) if bosh.inisettings['showmodelingtoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['BlenderPath'], Image(r'images/blender.png'), _("Launch Blender"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['GmaxPath'], Image(r'images/gmax.png'), _("Launch Gmax"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MayaPath'], Image(r'images/maya.png'), _("Launch Maya"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MaxPath'], Image(r'images/max.png'), _("Launch 3dsMax"))) if bosh.inisettings['showmodelingtoollaunchers'] or bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['NifskopePath'], Image(r'images/nifskope.png'), _("Launch Nifskope"))) if bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['GIMP'], Image(r'images/gimp.png'), _("Launch GIMP"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Photoshop'], Image(r'images/photoshop.png'), _("Launch Photoshop"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Artweaver'], Image(r'images/artweaver.png'), _("Launch Artweaver"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['PaintNET'], Image(r'images/paint.net.png'), _("Launch Paint.NET"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['DDSConverter'], Image(r'images/ddsconverter.png'), _("Launch DDSConverter"))) if bosh.inisettings['showaudiotoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['Audacity'], Image(r'images/audacity.png'), _("Launch Audacity"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['NPP'], Image(r'images/notepad++.png'), _("Launch Notepad++"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom2'], Image(r'images/custom2.png'), _(bosh.inisettings['custom2txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom3'], Image(r'images/custom3.png'), _(bosh.inisettings['custom3txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom4'], Image(r'images/custom4.png'), _(bosh.inisettings['custom4txt']))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
bosh.dirs['Custom2'], Image(r'images/custom2.png'), _(bosh.inisettings['custom2txt']))) | bosh.dirs['Custom2'], Image(r'images/custom2.png'), _(bosh.inisettings['custom2txt']))) | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fallout3.png'), _("Launch Fallout3"), _("Launch Fallout3 + FOSE"), '')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('GECK.exe'), Image(r'images/geck.png'), _("Launch GECK"), _("Launch GECK + FOSE"), '-editor')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('fomm\\fomm.exe'), Image(r'images/database_connect.png'), _("Launch FOMM"))) BashStatusBar.buttons.append( App_FO3Edit( (bosh.dirs['FO3EditPath'], '-view'), Image(r'images/brick_edit.png'), _("Launch FO3View"))) BashStatusBar.buttons.append( App_FO3Edit( dirs['FO3EditPath']), Image(r'images/brick.png'), _("Launch FO3Edit"))) BashStatusBar.buttons.append( App_FO3Edit( (dirs['FO3EditPath'],'-translate'), Image(r'images/brick_error.png'), _("Launch FO3Trans"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/Boss1.png'), _("Launch BOSS"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/boss2.png'), _("Launch BOSS"))) if bosh.inisettings['showmodelingtoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['BlenderPath'], Image(r'images/blender.png'), _("Launch Blender"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['GmaxPath'], Image(r'images/gmax.png'), _("Launch Gmax"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MayaPath'], Image(r'images/maya.png'), _("Launch Maya"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MaxPath'], Image(r'images/max.png'), _("Launch 3dsMax"))) if bosh.inisettings['showmodelingtoollaunchers'] or bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['NifskopePath'], Image(r'images/nifskope.png'), _("Launch Nifskope"))) if bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['GIMP'], Image(r'images/gimp.png'), _("Launch GIMP"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Photoshop'], Image(r'images/photoshop.png'), _("Launch Photoshop"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Artweaver'], Image(r'images/artweaver.png'), _("Launch Artweaver"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['PaintNET'], Image(r'images/paint.net.png'), _("Launch Paint.NET"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['DDSConverter'], Image(r'images/ddsconverter.png'), _("Launch DDSConverter"))) if bosh.inisettings['showaudiotoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['Audacity'], Image(r'images/audacity.png'), _("Launch Audacity"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['NPP'], Image(r'images/notepad++.png'), _("Launch Notepad++"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom2'], Image(r'images/custom2.png'), _(bosh.inisettings['custom2txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom3'], Image(r'images/custom3.png'), _(bosh.inisettings['custom3txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom4'], Image(r'images/custom4.png'), _(bosh.inisettings['custom4txt']))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
bosh.dirs['Custom3'], Image(r'images/custom3.png'), _(bosh.inisettings['custom3txt']))) | bosh.dirs['Custom3'], Image(r'images/custom3.png'), _(bosh.inisettings['custom3txt']))) | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fallout3.png'), _("Launch Fallout3"), _("Launch Fallout3 + FOSE"), '')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('GECK.exe'), Image(r'images/geck.png'), _("Launch GECK"), _("Launch GECK + FOSE"), '-editor')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('fomm\\fomm.exe'), Image(r'images/database_connect.png'), _("Launch FOMM"))) BashStatusBar.buttons.append( App_FO3Edit( (bosh.dirs['FO3EditPath'], '-view'), Image(r'images/brick_edit.png'), _("Launch FO3View"))) BashStatusBar.buttons.append( App_FO3Edit( dirs['FO3EditPath']), Image(r'images/brick.png'), _("Launch FO3Edit"))) BashStatusBar.buttons.append( App_FO3Edit( (dirs['FO3EditPath'],'-translate'), Image(r'images/brick_error.png'), _("Launch FO3Trans"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/Boss1.png'), _("Launch BOSS"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/boss2.png'), _("Launch BOSS"))) if bosh.inisettings['showmodelingtoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['BlenderPath'], Image(r'images/blender.png'), _("Launch Blender"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['GmaxPath'], Image(r'images/gmax.png'), _("Launch Gmax"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MayaPath'], Image(r'images/maya.png'), _("Launch Maya"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MaxPath'], Image(r'images/max.png'), _("Launch 3dsMax"))) if bosh.inisettings['showmodelingtoollaunchers'] or bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['NifskopePath'], Image(r'images/nifskope.png'), _("Launch Nifskope"))) if bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['GIMP'], Image(r'images/gimp.png'), _("Launch GIMP"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Photoshop'], Image(r'images/photoshop.png'), _("Launch Photoshop"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Artweaver'], Image(r'images/artweaver.png'), _("Launch Artweaver"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['PaintNET'], Image(r'images/paint.net.png'), _("Launch Paint.NET"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['DDSConverter'], Image(r'images/ddsconverter.png'), _("Launch DDSConverter"))) if bosh.inisettings['showaudiotoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['Audacity'], Image(r'images/audacity.png'), _("Launch Audacity"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['NPP'], Image(r'images/notepad++.png'), _("Launch Notepad++"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom2'], Image(r'images/custom2.png'), _(bosh.inisettings['custom2txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom3'], Image(r'images/custom3.png'), _(bosh.inisettings['custom3txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom4'], Image(r'images/custom4.png'), _(bosh.inisettings['custom4txt']))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
bosh.dirs['Custom4'], Image(r'images/custom4.png'), _(bosh.inisettings['custom4txt']))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | bosh.dirs['Custom4'], Image(r'images/custom4.png'), _(bosh.inisettings['custom4txt']))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fallout3.png'), _("Launch Fallout3"), _("Launch Fallout3 + FOSE"), '')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('GECK.exe'), Image(r'images/geck.png'), _("Launch GECK"), _("Launch GECK + FOSE"), '-editor')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('fomm\\fomm.exe'), Image(r'images/database_connect.png'), _("Launch FOMM"))) BashStatusBar.buttons.append( App_FO3Edit( (bosh.dirs['FO3EditPath'], '-view'), Image(r'images/brick_edit.png'), _("Launch FO3View"))) BashStatusBar.buttons.append( App_FO3Edit( dirs['FO3EditPath']), Image(r'images/brick.png'), _("Launch FO3Edit"))) BashStatusBar.buttons.append( App_FO3Edit( (dirs['FO3EditPath'],'-translate'), Image(r'images/brick_error.png'), _("Launch FO3Trans"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/Boss1.png'), _("Launch BOSS"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/boss2.png'), _("Launch BOSS"))) if bosh.inisettings['showmodelingtoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['BlenderPath'], Image(r'images/blender.png'), _("Launch Blender"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['GmaxPath'], Image(r'images/gmax.png'), _("Launch Gmax"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MayaPath'], Image(r'images/maya.png'), _("Launch Maya"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MaxPath'], Image(r'images/max.png'), _("Launch 3dsMax"))) if bosh.inisettings['showmodelingtoollaunchers'] or bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['NifskopePath'], Image(r'images/nifskope.png'), _("Launch Nifskope"))) if bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['GIMP'], Image(r'images/gimp.png'), _("Launch GIMP"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Photoshop'], Image(r'images/photoshop.png'), _("Launch Photoshop"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Artweaver'], Image(r'images/artweaver.png'), _("Launch Artweaver"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['PaintNET'], Image(r'images/paint.net.png'), _("Launch Paint.NET"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['DDSConverter'], Image(r'images/ddsconverter.png'), _("Launch DDSConverter"))) if bosh.inisettings['showaudiotoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['Audacity'], Image(r'images/audacity.png'), _("Launch Audacity"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['NPP'], Image(r'images/notepad++.png'), _("Launch Notepad++"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom2'], Image(r'images/custom2.png'), _(bosh.inisettings['custom2txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom3'], Image(r'images/custom3.png'), _(bosh.inisettings['custom3txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom4'], Image(r'images/custom4.png'), _(bosh.inisettings['custom4txt']))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
"""Initialize master list menus.""" if True: sortMenu = MenuLink(_("Sort by")) sortMenu.links.append(Mods_EsmsFirst()) sortMenu.links.append(SeparatorLink()) sortMenu.links.append(Files_SortBy('File')) sortMenu.links.append(Files_SortBy('Author')) sortMenu.links.append(Files_SortBy('Group')) sortMenu.links.append(Files_SortBy('Load Order')) sortMenu.links.append(Files_SortBy('Modified')) sortMenu.links.append(Files_SortBy('Save Order')) sortMenu.links.append(Files_SortBy('Status')) MasterList.mainMenu.append(sortMenu) MasterList.itemMenu.append(Master_ChangeTo()) MasterList.itemMenu.append(Master_Disable()) | """Initialize master list menus.""" if True: sortMenu = MenuLink(_("Sort by")) sortMenu.links.append(Mods_EsmsFirst()) sortMenu.links.append(SeparatorLink()) sortMenu.links.append(Files_SortBy('File')) sortMenu.links.append(Files_SortBy('Author')) sortMenu.links.append(Files_SortBy('Group')) sortMenu.links.append(Files_SortBy('Load Order')) sortMenu.links.append(Files_SortBy('Modified')) sortMenu.links.append(Files_SortBy('Save Order')) sortMenu.links.append(Files_SortBy('Status')) MasterList.mainMenu.append(sortMenu) MasterList.itemMenu.append(Master_ChangeTo()) MasterList.itemMenu.append(Master_Disable()) | def InitMasterLinks(): """Initialize master list menus.""" #--MasterList: Column Links if True: #--Sort by sortMenu = MenuLink(_("Sort by")) sortMenu.links.append(Mods_EsmsFirst()) sortMenu.links.append(SeparatorLink()) sortMenu.links.append(Files_SortBy('File')) sortMenu.links.append(Files_SortBy('Author')) sortMenu.links.append(Files_SortBy('Group')) sortMenu.links.append(Files_SortBy('Load Order')) sortMenu.links.append(Files_SortBy('Modified')) sortMenu.links.append(Files_SortBy('Save Order')) sortMenu.links.append(Files_SortBy('Status')) MasterList.mainMenu.append(sortMenu) #--MasterList: Item Links MasterList.itemMenu.append(Master_ChangeTo()) MasterList.itemMenu.append(Master_Disable()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
"""Initialize people tab menus.""" InstallersPanel.mainMenu.append(Installers_SortActive()) InstallersPanel.mainMenu.append(Installers_SortProjects()) InstallersPanel.mainMenu.append(SeparatorLink()) InstallersPanel.mainMenu.append(balt.Tanks_Open()) InstallersPanel.mainMenu.append(Installers_Refresh(fullRefresh=False)) InstallersPanel.mainMenu.append(Installers_Refresh(fullRefresh=True)) InstallersPanel.mainMenu.append(Mods_IniTweaks()) InstallersPanel.mainMenu.append(SeparatorLink()) InstallersPanel.mainMenu.append(Installer_ListPackages()) InstallersPanel.mainMenu.append(SeparatorLink()) InstallersPanel.mainMenu.append(Installers_AnnealAll()) InstallersPanel.mainMenu.append(SeparatorLink()) InstallersPanel.mainMenu.append(Installers_AvoidOnStart()) InstallersPanel.mainMenu.append(Installers_Enabled()) InstallersPanel.mainMenu.append(Installers_ShowReplacers()) InstallersPanel.mainMenu.append(SeparatorLink()) InstallersPanel.mainMenu.append(Installers_AutoAnneal()) InstallersPanel.mainMenu.append(Installers_AutoRefreshProjects()) InstallersPanel.mainMenu.append(Installers_BsaRedirection()) InstallersPanel.mainMenu.append(Installers_RemoveEmptyDirs()) InstallersPanel.mainMenu.append(Installers_ConflictsReportShowsInactive()) InstallersPanel.mainMenu.append(Installers_ConflictsReportShowsLower()) InstallersPanel.mainMenu.append(Installers_SkipScreenshots()) InstallersPanel.mainMenu.append(Installers_SkipImages()) InstallersPanel.mainMenu.append(Installers_SkipDocs()) InstallersPanel.mainMenu.append(Installers_SkipDistantLOD()) InstallersPanel.itemMenu.append(Installer_Open()) InstallersPanel.itemMenu.append(Installer_Duplicate()) InstallersPanel.itemMenu.append(Installer_Delete()) InstallersPanel.itemMenu.append(Installer_OpenFallout3Nexus()) InstallersPanel.itemMenu.append(SeparatorLink()) InstallersPanel.itemMenu.append(Installer_Refresh()) InstallersPanel.itemMenu.append(Installer_Move()) InstallersPanel.itemMenu.append(SeparatorLink()) InstallersPanel.itemMenu.append(Installer_HasExtraData()) InstallersPanel.itemMenu.append(Installer_SkipVoices()) InstallersPanel.itemMenu.append(SeparatorLink()) InstallersPanel.itemMenu.append(Installer_Anneal()) InstallersPanel.itemMenu.append(Installer_Install()) InstallersPanel.itemMenu.append(Installer_Install('LAST')) InstallersPanel.itemMenu.append(Installer_Install('MISSING')) InstallersPanel.itemMenu.append(Installer_Uninstall()) InstallersPanel.itemMenu.append(SeparatorLink()) if True: conversionsMenu = InstallerConverter_MainMenu(_("Conversions")) conversionsMenu.links.append(InstallerConverter_Create()) conversionsMenu.links.append(InstallerConverter_ConvertMenu(_("Apply"))) InstallersPanel.itemMenu.append(conversionsMenu) InstallersPanel.itemMenu.append(InstallerProject_Pack()) InstallersPanel.itemMenu.append(InstallerArchive_Unpack()) InstallersPanel.itemMenu.append(InstallerProject_ReleasePack()) InstallersPanel.itemMenu.append(InstallerProject_Sync()) InstallersPanel.itemMenu.append(InstallerProject_FomodConfig()) | """Initialize people tab menus.""" InstallersPanel.mainMenu.append(Installers_SortActive()) InstallersPanel.mainMenu.append(Installers_SortProjects()) InstallersPanel.mainMenu.append(SeparatorLink()) InstallersPanel.mainMenu.append(balt.Tanks_Open()) InstallersPanel.mainMenu.append(Installers_Refresh(fullRefresh=False)) InstallersPanel.mainMenu.append(Installers_Refresh(fullRefresh=True)) InstallersPanel.mainMenu.append(Mods_IniTweaks()) InstallersPanel.mainMenu.append(SeparatorLink()) InstallersPanel.mainMenu.append(Installer_ListPackages()) InstallersPanel.mainMenu.append(SeparatorLink()) InstallersPanel.mainMenu.append(Installers_AnnealAll()) InstallersPanel.mainMenu.append(SeparatorLink()) InstallersPanel.mainMenu.append(Installers_AvoidOnStart()) InstallersPanel.mainMenu.append(Installers_Enabled()) InstallersPanel.mainMenu.append(Installers_ShowReplacers()) InstallersPanel.mainMenu.append(SeparatorLink()) InstallersPanel.mainMenu.append(Installers_AutoAnneal()) InstallersPanel.mainMenu.append(Installers_AutoRefreshProjects()) InstallersPanel.mainMenu.append(Installers_BsaRedirection()) InstallersPanel.mainMenu.append(Installers_RemoveEmptyDirs()) InstallersPanel.mainMenu.append(Installers_ConflictsReportShowsInactive()) InstallersPanel.mainMenu.append(Installers_ConflictsReportShowsLower()) InstallersPanel.mainMenu.append(Installers_SkipScreenshots()) InstallersPanel.mainMenu.append(Installers_SkipImages()) InstallersPanel.mainMenu.append(Installers_SkipDocs()) InstallersPanel.mainMenu.append(Installers_SkipDistantLOD()) InstallersPanel.itemMenu.append(Installer_Open()) InstallersPanel.itemMenu.append(Installer_Duplicate()) InstallersPanel.itemMenu.append(Installer_Delete()) InstallersPanel.itemMenu.append(Installer_OpenFallout3Nexus()) InstallersPanel.itemMenu.append(SeparatorLink()) InstallersPanel.itemMenu.append(Installer_Refresh()) InstallersPanel.itemMenu.append(Installer_Move()) InstallersPanel.itemMenu.append(SeparatorLink()) InstallersPanel.itemMenu.append(Installer_HasExtraData()) InstallersPanel.itemMenu.append(Installer_SkipVoices()) InstallersPanel.itemMenu.append(SeparatorLink()) InstallersPanel.itemMenu.append(Installer_Anneal()) InstallersPanel.itemMenu.append(Installer_Install()) InstallersPanel.itemMenu.append(Installer_Install('LAST')) InstallersPanel.itemMenu.append(Installer_Install('MISSING')) InstallersPanel.itemMenu.append(Installer_Uninstall()) InstallersPanel.itemMenu.append(SeparatorLink()) if True: conversionsMenu = InstallerConverter_MainMenu(_("Conversions")) conversionsMenu.links.append(InstallerConverter_Create()) conversionsMenu.links.append(InstallerConverter_ConvertMenu(_("Apply"))) InstallersPanel.itemMenu.append(conversionsMenu) InstallersPanel.itemMenu.append(InstallerProject_Pack()) InstallersPanel.itemMenu.append(InstallerArchive_Unpack()) InstallersPanel.itemMenu.append(InstallerProject_ReleasePack()) InstallersPanel.itemMenu.append(InstallerProject_Sync()) InstallersPanel.itemMenu.append(InstallerProject_FomodConfig()) | def InitInstallerLinks(): """Initialize people tab menus.""" #--Column links #--Sorting InstallersPanel.mainMenu.append(Installers_SortActive()) InstallersPanel.mainMenu.append(Installers_SortProjects()) #InstallersPanel.mainMenu.append(Installers_SortStructure()) #--Actions InstallersPanel.mainMenu.append(SeparatorLink()) InstallersPanel.mainMenu.append(balt.Tanks_Open()) InstallersPanel.mainMenu.append(Installers_Refresh(fullRefresh=False)) InstallersPanel.mainMenu.append(Installers_Refresh(fullRefresh=True)) InstallersPanel.mainMenu.append(Mods_IniTweaks()) InstallersPanel.mainMenu.append(SeparatorLink()) InstallersPanel.mainMenu.append(Installer_ListPackages()) InstallersPanel.mainMenu.append(SeparatorLink()) InstallersPanel.mainMenu.append(Installers_AnnealAll()) #--Behavior InstallersPanel.mainMenu.append(SeparatorLink()) InstallersPanel.mainMenu.append(Installers_AvoidOnStart()) InstallersPanel.mainMenu.append(Installers_Enabled()) InstallersPanel.mainMenu.append(Installers_ShowReplacers()) InstallersPanel.mainMenu.append(SeparatorLink()) InstallersPanel.mainMenu.append(Installers_AutoAnneal()) InstallersPanel.mainMenu.append(Installers_AutoRefreshProjects()) InstallersPanel.mainMenu.append(Installers_BsaRedirection()) InstallersPanel.mainMenu.append(Installers_RemoveEmptyDirs()) InstallersPanel.mainMenu.append(Installers_ConflictsReportShowsInactive()) InstallersPanel.mainMenu.append(Installers_ConflictsReportShowsLower()) InstallersPanel.mainMenu.append(Installers_SkipScreenshots()) InstallersPanel.mainMenu.append(Installers_SkipImages()) InstallersPanel.mainMenu.append(Installers_SkipDocs()) InstallersPanel.mainMenu.append(Installers_SkipDistantLOD()) #--Item links #--File InstallersPanel.itemMenu.append(Installer_Open()) InstallersPanel.itemMenu.append(Installer_Duplicate()) InstallersPanel.itemMenu.append(Installer_Delete()) InstallersPanel.itemMenu.append(Installer_OpenFallout3Nexus()) #--Install, uninstall, etc. InstallersPanel.itemMenu.append(SeparatorLink()) InstallersPanel.itemMenu.append(Installer_Refresh()) InstallersPanel.itemMenu.append(Installer_Move()) InstallersPanel.itemMenu.append(SeparatorLink()) InstallersPanel.itemMenu.append(Installer_HasExtraData()) InstallersPanel.itemMenu.append(Installer_SkipVoices()) InstallersPanel.itemMenu.append(SeparatorLink()) InstallersPanel.itemMenu.append(Installer_Anneal()) InstallersPanel.itemMenu.append(Installer_Install()) InstallersPanel.itemMenu.append(Installer_Install('LAST')) InstallersPanel.itemMenu.append(Installer_Install('MISSING')) InstallersPanel.itemMenu.append(Installer_Uninstall()) InstallersPanel.itemMenu.append(SeparatorLink()) #--Build if True: #--BAIN Conversion conversionsMenu = InstallerConverter_MainMenu(_("Conversions")) conversionsMenu.links.append(InstallerConverter_Create()) conversionsMenu.links.append(InstallerConverter_ConvertMenu(_("Apply"))) InstallersPanel.itemMenu.append(conversionsMenu) InstallersPanel.itemMenu.append(InstallerProject_Pack()) InstallersPanel.itemMenu.append(InstallerArchive_Unpack()) InstallersPanel.itemMenu.append(InstallerProject_ReleasePack()) InstallersPanel.itemMenu.append(InstallerProject_Sync()) InstallersPanel.itemMenu.append(InstallerProject_FomodConfig()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
"""Initialize replacer tab menus.""" ReplacersList.mainMenu.append(Files_Open()) ReplacersList.itemMenu.append(File_Open()) | """Initialize replacer tab menus.""" ReplacersList.mainMenu.append(Files_Open()) ReplacersList.itemMenu.append(File_Open()) | def InitReplacerLinks(): """Initialize replacer tab menus.""" #--Header links ReplacersList.mainMenu.append(Files_Open()) #--Item links ReplacersList.itemMenu.append(File_Open()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
"""Initialize Mods tab menus.""" if True: loadMenu = MenuLink(_("Load")) loadMenu.links.append(Mods_LoadList()) ModList.mainMenu.append(loadMenu) if True: sortMenu = MenuLink(_("Sort by")) sortMenu.links.append(Mods_EsmsFirst()) sortMenu.links.append(Mods_SelectedFirst()) sortMenu.links.append(SeparatorLink()) sortMenu.links.append(Files_SortBy('File')) sortMenu.links.append(Files_SortBy('Author')) sortMenu.links.append(Files_SortBy('Group')) sortMenu.links.append(Files_SortBy('Load Order')) sortMenu.links.append(Files_SortBy('Modified')) sortMenu.links.append(Files_SortBy('Rating')) sortMenu.links.append(Files_SortBy('Size')) sortMenu.links.append(Files_SortBy('Status')) ModList.mainMenu.append(sortMenu) if True: versionsMenu = MenuLink("Fallout3.esm") versionsMenu.links.append(Mods_Fallout3Version('1.0')) versionsMenu.links.append(Mods_Fallout3Version('1.1')) versionsMenu.links.append(Mods_Fallout3Version('1.4~')) ModList.mainMenu.append(versionsMenu) ModList.mainMenu.append(SeparatorLink()) ModList.mainMenu.append(Files_Open()) ModList.mainMenu.append(Files_Unhide('mod')) ModList.mainMenu.append(SeparatorLink()) ModList.mainMenu.append(Mods_Fallout3Ini()) ModList.mainMenu.append(Mods_IniTweaks()) ModList.mainMenu.append(SeparatorLink()) ModList.mainMenu.append(Mods_ListMods()) ModList.mainMenu.append(Mods_BossMasterList()) ModList.mainMenu.append(SeparatorLink()) ModList.mainMenu.append(Mods_AutoGhost()) ModList.mainMenu.append(Mods_AutoGroup()) ModList.mainMenu.append(Mods_FullBalo()) ModList.mainMenu.append(Mods_LockTimes()) ModList.mainMenu.append(SeparatorLink()) ModList.mainMenu.append(Mods_Deprint()) ModList.mainMenu.append(Mods_DumpTranslator()) ModList.mainMenu.append(Mods_FO3EditExpert()) if True: fileMenu = MenuLink(_("File")) fileMenu.links.append(Mod_CreateBlank()) fileMenu.links.append(SeparatorLink()) fileMenu.links.append(File_Backup()) fileMenu.links.append(File_Duplicate()) fileMenu.links.append(File_Snapshot()) fileMenu.links.append(SeparatorLink()) fileMenu.links.append(File_Delete()) fileMenu.links.append(File_Hide()) fileMenu.links.append(File_Redate()) fileMenu.links.append(File_Sort()) fileMenu.links.append(SeparatorLink()) fileMenu.links.append(File_RevertToBackup()) fileMenu.links.append(File_RevertToSnapshot()) ModList.itemMenu.append(fileMenu) if True: groupMenu = MenuLink(_("Group")) groupMenu.links.append(Mod_Groups()) groupMenu.links.append(Mod_BaloGroups()) ModList.itemMenu.append(groupMenu) if True: ratingMenu = MenuLink(_("Rating")) ratingMenu.links.append(Mod_Ratings()) ModList.itemMenu.append(ratingMenu) ModList.itemMenu.append(SeparatorLink()) ModList.itemMenu.append(Mod_Details()) ModList.itemMenu.append(File_ListMasters()) ModList.itemMenu.append(Mod_ShowReadme()) ModList.itemMenu.append(SeparatorLink()) ModList.itemMenu.append(Mod_AllowGhosting()) ModList.itemMenu.append(Mod_MarkMergeable()) ModList.itemMenu.append(Mod_Patch_Update()) ModList.itemMenu.append(SeparatorLink()) if True: exportMenu = MenuLink(_("Export")) exportMenu.links.append(Mod_EditorIds_Export()) exportMenu.links.append(Mod_Factions_Export()) exportMenu.links.append(Mod_FullNames_Export()) exportMenu.links.append(Mod_Groups_Export()) exportMenu.links.append(Mod_ActorLevels_Export()) exportMenu.links.append(Mod_FactionRelations_Export()) exportMenu.links.append(Mod_Stats_Export()) ModList.itemMenu.append(exportMenu) if True: importMenu = MenuLink(_("Import")) importMenu.links.append(Mod_Face_Import()) importMenu.links.append(Mod_EditorIds_Import()) importMenu.links.append(Mod_Fids_Replace()) importMenu.links.append(Mod_FullNames_Import()) importMenu.links.append(Mod_Groups_Import()) importMenu.links.append(Mod_ActorLevels_Import()) importMenu.links.append(Mod_Stats_Import()) ModList.itemMenu.append(importMenu) ModList.itemMenu.append(Mod_AddMaster()) ModList.itemMenu.append(Mod_CopyToEsmp()) ModList.itemMenu.append(Mod_DecompileAll()) ModList.itemMenu.append(Mod_FlipSelf()) ModList.itemMenu.append(Mod_FlipMasters()) ModList.itemMenu.append(Mod_RemoveWorldOrphans()) ModList.itemMenu.append(Mod_UndeleteRefs()) | """Initialize Mods tab menus.""" if True: loadMenu = MenuLink(_("Load")) loadMenu.links.append(Mods_LoadList()) ModList.mainMenu.append(loadMenu) if True: sortMenu = MenuLink(_("Sort by")) sortMenu.links.append(Mods_EsmsFirst()) sortMenu.links.append(Mods_SelectedFirst()) sortMenu.links.append(SeparatorLink()) sortMenu.links.append(Files_SortBy('File')) sortMenu.links.append(Files_SortBy('Author')) sortMenu.links.append(Files_SortBy('Group')) sortMenu.links.append(Files_SortBy('Load Order')) sortMenu.links.append(Files_SortBy('Modified')) sortMenu.links.append(Files_SortBy('Rating')) sortMenu.links.append(Files_SortBy('Size')) sortMenu.links.append(Files_SortBy('Status')) ModList.mainMenu.append(sortMenu) if True: versionsMenu = MenuLink("Fallout3.esm") versionsMenu.links.append(Mods_Fallout3Version('1.0')) versionsMenu.links.append(Mods_Fallout3Version('1.1')) versionsMenu.links.append(Mods_Fallout3Version('1.4~')) ModList.mainMenu.append(versionsMenu) ModList.mainMenu.append(SeparatorLink()) ModList.mainMenu.append(Files_Open()) ModList.mainMenu.append(Files_Unhide('mod')) ModList.mainMenu.append(SeparatorLink()) ModList.mainMenu.append(Mods_Fallout3Ini()) ModList.mainMenu.append(Mods_IniTweaks()) ModList.mainMenu.append(SeparatorLink()) ModList.mainMenu.append(Mods_ListMods()) ModList.mainMenu.append(Mods_BossMasterList()) ModList.mainMenu.append(SeparatorLink()) ModList.mainMenu.append(Mods_AutoGhost()) ModList.mainMenu.append(Mods_AutoGroup()) ModList.mainMenu.append(Mods_FullBalo()) ModList.mainMenu.append(Mods_LockTimes()) ModList.mainMenu.append(SeparatorLink()) ModList.mainMenu.append(Mods_Deprint()) ModList.mainMenu.append(Mods_DumpTranslator()) ModList.mainMenu.append(Mods_FO3EditExpert()) if True: fileMenu = MenuLink(_("File")) fileMenu.links.append(Mod_CreateBlank()) fileMenu.links.append(SeparatorLink()) fileMenu.links.append(File_Backup()) fileMenu.links.append(File_Duplicate()) fileMenu.links.append(File_Snapshot()) fileMenu.links.append(SeparatorLink()) fileMenu.links.append(File_Delete()) fileMenu.links.append(File_Hide()) fileMenu.links.append(File_Redate()) fileMenu.links.append(File_Sort()) fileMenu.links.append(SeparatorLink()) fileMenu.links.append(File_RevertToBackup()) fileMenu.links.append(File_RevertToSnapshot()) ModList.itemMenu.append(fileMenu) if True: groupMenu = MenuLink(_("Group")) groupMenu.links.append(Mod_Groups()) groupMenu.links.append(Mod_BaloGroups()) ModList.itemMenu.append(groupMenu) if True: ratingMenu = MenuLink(_("Rating")) ratingMenu.links.append(Mod_Ratings()) ModList.itemMenu.append(ratingMenu) ModList.itemMenu.append(SeparatorLink()) ModList.itemMenu.append(Mod_Details()) ModList.itemMenu.append(File_ListMasters()) ModList.itemMenu.append(Mod_ShowReadme()) ModList.itemMenu.append(SeparatorLink()) ModList.itemMenu.append(Mod_AllowGhosting()) ModList.itemMenu.append(Mod_MarkMergeable()) ModList.itemMenu.append(Mod_Patch_Update()) ModList.itemMenu.append(SeparatorLink()) if True: exportMenu = MenuLink(_("Export")) exportMenu.links.append(Mod_EditorIds_Export()) exportMenu.links.append(Mod_Factions_Export()) exportMenu.links.append(Mod_FullNames_Export()) exportMenu.links.append(Mod_Groups_Export()) exportMenu.links.append(Mod_ActorLevels_Export()) exportMenu.links.append(Mod_FactionRelations_Export()) exportMenu.links.append(Mod_Stats_Export()) ModList.itemMenu.append(exportMenu) if True: importMenu = MenuLink(_("Import")) importMenu.links.append(Mod_Face_Import()) importMenu.links.append(Mod_EditorIds_Import()) importMenu.links.append(Mod_Fids_Replace()) importMenu.links.append(Mod_FullNames_Import()) importMenu.links.append(Mod_Groups_Import()) importMenu.links.append(Mod_ActorLevels_Import()) importMenu.links.append(Mod_Stats_Import()) ModList.itemMenu.append(importMenu) ModList.itemMenu.append(Mod_AddMaster()) ModList.itemMenu.append(Mod_CopyToEsmp()) ModList.itemMenu.append(Mod_DecompileAll()) ModList.itemMenu.append(Mod_FlipSelf()) ModList.itemMenu.append(Mod_FlipMasters()) ModList.itemMenu.append(Mod_RemoveWorldOrphans()) ModList.itemMenu.append(Mod_UndeleteRefs()) | def InitModLinks(): """Initialize Mods tab menus.""" #--ModList: Column Links if True: #--Load loadMenu = MenuLink(_("Load")) loadMenu.links.append(Mods_LoadList()) ModList.mainMenu.append(loadMenu) if True: #--Sort by sortMenu = MenuLink(_("Sort by")) sortMenu.links.append(Mods_EsmsFirst()) sortMenu.links.append(Mods_SelectedFirst()) sortMenu.links.append(SeparatorLink()) sortMenu.links.append(Files_SortBy('File')) sortMenu.links.append(Files_SortBy('Author')) sortMenu.links.append(Files_SortBy('Group')) sortMenu.links.append(Files_SortBy('Load Order')) sortMenu.links.append(Files_SortBy('Modified')) sortMenu.links.append(Files_SortBy('Rating')) sortMenu.links.append(Files_SortBy('Size')) sortMenu.links.append(Files_SortBy('Status')) ModList.mainMenu.append(sortMenu) if True: #--Versions versionsMenu = MenuLink("Fallout3.esm") versionsMenu.links.append(Mods_Fallout3Version('1.0')) versionsMenu.links.append(Mods_Fallout3Version('1.1')) versionsMenu.links.append(Mods_Fallout3Version('1.4~')) ModList.mainMenu.append(versionsMenu) #-------------------------------------------- ModList.mainMenu.append(SeparatorLink()) ModList.mainMenu.append(Files_Open()) ModList.mainMenu.append(Files_Unhide('mod')) ModList.mainMenu.append(SeparatorLink()) ModList.mainMenu.append(Mods_Fallout3Ini()) ModList.mainMenu.append(Mods_IniTweaks()) ModList.mainMenu.append(SeparatorLink()) ModList.mainMenu.append(Mods_ListMods()) ModList.mainMenu.append(Mods_BossMasterList()) ModList.mainMenu.append(SeparatorLink()) ModList.mainMenu.append(Mods_AutoGhost()) ModList.mainMenu.append(Mods_AutoGroup()) ModList.mainMenu.append(Mods_FullBalo()) ModList.mainMenu.append(Mods_LockTimes()) ModList.mainMenu.append(SeparatorLink()) ModList.mainMenu.append(Mods_Deprint()) ModList.mainMenu.append(Mods_DumpTranslator()) ModList.mainMenu.append(Mods_FO3EditExpert()) #--ModList: Item Links if True: #--File fileMenu = MenuLink(_("File")) fileMenu.links.append(Mod_CreateBlank()) fileMenu.links.append(SeparatorLink()) fileMenu.links.append(File_Backup()) fileMenu.links.append(File_Duplicate()) fileMenu.links.append(File_Snapshot()) fileMenu.links.append(SeparatorLink()) fileMenu.links.append(File_Delete()) fileMenu.links.append(File_Hide()) fileMenu.links.append(File_Redate()) fileMenu.links.append(File_Sort()) fileMenu.links.append(SeparatorLink()) fileMenu.links.append(File_RevertToBackup()) fileMenu.links.append(File_RevertToSnapshot()) ModList.itemMenu.append(fileMenu) if True: #--Groups groupMenu = MenuLink(_("Group")) groupMenu.links.append(Mod_Groups()) groupMenu.links.append(Mod_BaloGroups()) ModList.itemMenu.append(groupMenu) if True: #--Ratings ratingMenu = MenuLink(_("Rating")) ratingMenu.links.append(Mod_Ratings()) ModList.itemMenu.append(ratingMenu) #-------------------------------------------- ModList.itemMenu.append(SeparatorLink()) ModList.itemMenu.append(Mod_Details()) ModList.itemMenu.append(File_ListMasters()) ModList.itemMenu.append(Mod_ShowReadme()) #-------------------------------------------- ModList.itemMenu.append(SeparatorLink()) ModList.itemMenu.append(Mod_AllowGhosting()) #ModList.itemMenu.append(Mod_MarkLevelers()) ModList.itemMenu.append(Mod_MarkMergeable()) ModList.itemMenu.append(Mod_Patch_Update()) #--Advanced ModList.itemMenu.append(SeparatorLink()) if True: #--Export exportMenu = MenuLink(_("Export")) exportMenu.links.append(Mod_EditorIds_Export()) exportMenu.links.append(Mod_Factions_Export()) exportMenu.links.append(Mod_FullNames_Export()) exportMenu.links.append(Mod_Groups_Export()) exportMenu.links.append(Mod_ActorLevels_Export()) exportMenu.links.append(Mod_FactionRelations_Export()) exportMenu.links.append(Mod_Stats_Export()) ModList.itemMenu.append(exportMenu) if True: #--Import importMenu = MenuLink(_("Import")) importMenu.links.append(Mod_Face_Import()) importMenu.links.append(Mod_EditorIds_Import()) importMenu.links.append(Mod_Fids_Replace()) importMenu.links.append(Mod_FullNames_Import()) importMenu.links.append(Mod_Groups_Import()) importMenu.links.append(Mod_ActorLevels_Import()) importMenu.links.append(Mod_Stats_Import()) ModList.itemMenu.append(importMenu) ModList.itemMenu.append(Mod_AddMaster()) ModList.itemMenu.append(Mod_CopyToEsmp()) ModList.itemMenu.append(Mod_DecompileAll()) ModList.itemMenu.append(Mod_FlipSelf()) ModList.itemMenu.append(Mod_FlipMasters()) ModList.itemMenu.append(Mod_RemoveWorldOrphans()) #ModList.itemMenu.append(Mod_CleanMod()) #ModList.itemMenu.append(Mod_SetVersion()) ModList.itemMenu.append(Mod_UndeleteRefs()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
"""Initialize save tab menus.""" if True: sortMenu = MenuLink(_("Sort by")) sortMenu.links.append(Files_SortBy('File')) sortMenu.links.append(Files_SortBy('Cell')) sortMenu.links.append(Files_SortBy('PlayTime')) sortMenu.links.append(Files_SortBy('Modified')) sortMenu.links.append(Files_SortBy('Player')) sortMenu.links.append(Files_SortBy('Status')) SaveList.mainMenu.append(sortMenu) if True: versionsMenu = MenuLink("Fallout3.esm") versionsMenu.links.append(Mods_Fallout3Version('1.0',True)) versionsMenu.links.append(Mods_Fallout3Version('1.1',True)) versionsMenu.links.append(Mods_Fallout3Version('1.4~',True)) SaveList.mainMenu.append(versionsMenu) if True: subDirMenu = MenuLink(_("Profile")) subDirMenu.links.append(Saves_Profiles()) SaveList.mainMenu.append(subDirMenu) SaveList.mainMenu.append(SeparatorLink()) SaveList.mainMenu.append(Files_Open()) SaveList.mainMenu.append(Files_Unhide('save')) if True: fileMenu = MenuLink(_("File")) fileMenu.links.append(File_Backup()) fileMenu.links.append(File_Duplicate()) fileMenu.links.append(SeparatorLink()) fileMenu.links.append(File_Delete()) fileMenu.links.append(File_Hide()) fileMenu.links.append(SeparatorLink()) fileMenu.links.append(File_RevertToBackup()) SaveList.itemMenu.append(fileMenu) if True: moveMenu = MenuLink(_("Move To")) moveMenu.links.append(Save_Move()) SaveList.itemMenu.append(moveMenu) if True: moveMenu = MenuLink(_("Copy To")) moveMenu.links.append(Save_Move(True)) SaveList.itemMenu.append(moveMenu) SaveList.itemMenu.append(SeparatorLink()) SaveList.itemMenu.append(Save_LoadMasters()) SaveList.itemMenu.append(File_ListMasters()) SaveList.itemMenu.append(Save_DiffMasters()) SaveList.itemMenu.append(Save_Stats()) SaveList.itemMenu.append(SeparatorLink()) SaveList.itemMenu.append(Save_ImportFace()) SaveList.itemMenu.append(Save_UpdateNPCLevels()) SaveList.itemMenu.append(SeparatorLink()) SaveList.itemMenu.append(Save_Unbloat()) | """Initialize save tab menus.""" if True: sortMenu = MenuLink(_("Sort by")) sortMenu.links.append(Files_SortBy('File')) sortMenu.links.append(Files_SortBy('Cell')) sortMenu.links.append(Files_SortBy('PlayTime')) sortMenu.links.append(Files_SortBy('Modified')) sortMenu.links.append(Files_SortBy('Player')) sortMenu.links.append(Files_SortBy('Status')) SaveList.mainMenu.append(sortMenu) if True: versionsMenu = MenuLink("Fallout3.esm") versionsMenu.links.append(Mods_Fallout3Version('1.0',True)) versionsMenu.links.append(Mods_Fallout3Version('1.1',True)) versionsMenu.links.append(Mods_Fallout3Version('1.4~',True)) SaveList.mainMenu.append(versionsMenu) if True: subDirMenu = MenuLink(_("Profile")) subDirMenu.links.append(Saves_Profiles()) SaveList.mainMenu.append(subDirMenu) SaveList.mainMenu.append(SeparatorLink()) SaveList.mainMenu.append(Files_Open()) SaveList.mainMenu.append(Files_Unhide('save')) if True: fileMenu = MenuLink(_("File")) fileMenu.links.append(File_Backup()) fileMenu.links.append(File_Duplicate()) fileMenu.links.append(SeparatorLink()) fileMenu.links.append(File_Delete()) fileMenu.links.append(File_Hide()) fileMenu.links.append(SeparatorLink()) fileMenu.links.append(File_RevertToBackup()) SaveList.itemMenu.append(fileMenu) if True: moveMenu = MenuLink(_("Move To")) moveMenu.links.append(Save_Move()) SaveList.itemMenu.append(moveMenu) if True: moveMenu = MenuLink(_("Copy To")) moveMenu.links.append(Save_Move(True)) SaveList.itemMenu.append(moveMenu) SaveList.itemMenu.append(SeparatorLink()) SaveList.itemMenu.append(Save_LoadMasters()) SaveList.itemMenu.append(File_ListMasters()) SaveList.itemMenu.append(Save_DiffMasters()) SaveList.itemMenu.append(Save_Stats()) SaveList.itemMenu.append(SeparatorLink()) SaveList.itemMenu.append(Save_ImportFace()) SaveList.itemMenu.append(Save_UpdateNPCLevels()) SaveList.itemMenu.append(SeparatorLink()) SaveList.itemMenu.append(Save_Unbloat()) | def InitSaveLinks(): """Initialize save tab menus.""" #--SaveList: Column Links if True: #--Sort sortMenu = MenuLink(_("Sort by")) sortMenu.links.append(Files_SortBy('File')) sortMenu.links.append(Files_SortBy('Cell')) sortMenu.links.append(Files_SortBy('PlayTime')) sortMenu.links.append(Files_SortBy('Modified')) sortMenu.links.append(Files_SortBy('Player')) sortMenu.links.append(Files_SortBy('Status')) SaveList.mainMenu.append(sortMenu) if True: #--Versions versionsMenu = MenuLink("Fallout3.esm") versionsMenu.links.append(Mods_Fallout3Version('1.0',True)) versionsMenu.links.append(Mods_Fallout3Version('1.1',True)) versionsMenu.links.append(Mods_Fallout3Version('1.4~',True)) SaveList.mainMenu.append(versionsMenu) if True: #--Save Profiles subDirMenu = MenuLink(_("Profile")) subDirMenu.links.append(Saves_Profiles()) SaveList.mainMenu.append(subDirMenu) SaveList.mainMenu.append(SeparatorLink()) SaveList.mainMenu.append(Files_Open()) SaveList.mainMenu.append(Files_Unhide('save')) #--SaveList: Item Links if True: #--File fileMenu = MenuLink(_("File")) #>> fileMenu.links.append(File_Backup()) fileMenu.links.append(File_Duplicate()) #fileMenu.links.append(File_Snapshot()) fileMenu.links.append(SeparatorLink()) fileMenu.links.append(File_Delete()) fileMenu.links.append(File_Hide()) fileMenu.links.append(SeparatorLink()) fileMenu.links.append(File_RevertToBackup()) #fileMenu.links.append(File_RevertToSnapshot()) SaveList.itemMenu.append(fileMenu) if True: #--Move to Profile moveMenu = MenuLink(_("Move To")) moveMenu.links.append(Save_Move()) SaveList.itemMenu.append(moveMenu) if True: #--Copy to Profile moveMenu = MenuLink(_("Copy To")) moveMenu.links.append(Save_Move(True)) SaveList.itemMenu.append(moveMenu) #-------------------------------------------- SaveList.itemMenu.append(SeparatorLink()) SaveList.itemMenu.append(Save_LoadMasters()) SaveList.itemMenu.append(File_ListMasters()) SaveList.itemMenu.append(Save_DiffMasters()) SaveList.itemMenu.append(Save_Stats()) #-------------------------------------------- SaveList.itemMenu.append(SeparatorLink()) #SaveList.itemMenu.append(Save_EditPCSpells()) SaveList.itemMenu.append(Save_ImportFace()) #SaveList.itemMenu.append(Save_EditCreated('ENCH')) #SaveList.itemMenu.append(Save_EditCreated('ALCH')) #SaveList.itemMenu.append(Save_EditCreated('SPEL')) #SaveList.itemMenu.append(Save_ReweighPotions()) SaveList.itemMenu.append(Save_UpdateNPCLevels()) #-------------------------------------------- SaveList.itemMenu.append(SeparatorLink()) SaveList.itemMenu.append(Save_Unbloat()) #SaveList.itemMenu.append(Save_RepairAbomb()) #SaveList.itemMenu.append(Save_RepairFactions()) #SaveList.itemMenu.append(Save_RepairHair()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
"""Initialize screens tab menus.""" ScreensList.mainMenu.append(Files_Open()) ScreensList.mainMenu.append(SeparatorLink()) ScreensList.mainMenu.append(Screens_NextScreenShot()) ScreensList.itemMenu.append(File_Open()) ScreensList.itemMenu.append(Screen_Rename()) ScreensList.itemMenu.append(File_Delete()) ScreensList.itemMenu.append(SeparatorLink()) ScreensList.itemMenu.append(Screen_ConvertToJpg()) | """Initialize screens tab menus.""" ScreensList.mainMenu.append(Files_Open()) ScreensList.mainMenu.append(SeparatorLink()) ScreensList.mainMenu.append(Screens_NextScreenShot()) ScreensList.itemMenu.append(File_Open()) ScreensList.itemMenu.append(Screen_Rename()) ScreensList.itemMenu.append(File_Delete()) ScreensList.itemMenu.append(SeparatorLink()) ScreensList.itemMenu.append(Screen_ConvertToJpg()) | def InitScreenLinks(): """Initialize screens tab menus.""" #--SaveList: Column Links ScreensList.mainMenu.append(Files_Open()) ScreensList.mainMenu.append(SeparatorLink()) ScreensList.mainMenu.append(Screens_NextScreenShot()) #--ScreensList: Item Links ScreensList.itemMenu.append(File_Open()) ScreensList.itemMenu.append(Screen_Rename()) ScreensList.itemMenu.append(File_Delete()) ScreensList.itemMenu.append(SeparatorLink()) ScreensList.itemMenu.append(Screen_ConvertToJpg()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
"""Initialize messages tab menus.""" MessageList.mainMenu.append(Messages_Archive_Import()) MessageList.itemMenu.append(Message_Delete()) | """Initialize messages tab menus.""" MessageList.mainMenu.append(Messages_Archive_Import()) MessageList.itemMenu.append(Message_Delete()) | def InitMessageLinks(): """Initialize messages tab menus.""" #--SaveList: Column Links MessageList.mainMenu.append(Messages_Archive_Import()) #--ScreensList: Item Links MessageList.itemMenu.append(Message_Delete()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
"""Initialize people tab menus.""" PeoplePanel.mainMenu.append(People_AddNew()) PeoplePanel.mainMenu.append(People_Import()) PeoplePanel.itemMenu.append(People_Karma()) PeoplePanel.itemMenu.append(SeparatorLink()) PeoplePanel.itemMenu.append(People_AddNew()) PeoplePanel.itemMenu.append(balt.Tank_Delete()) PeoplePanel.itemMenu.append(People_Export()) | """Initialize people tab menus.""" PeoplePanel.mainMenu.append(People_AddNew()) PeoplePanel.mainMenu.append(People_Import()) PeoplePanel.itemMenu.append(People_Karma()) PeoplePanel.itemMenu.append(SeparatorLink()) PeoplePanel.itemMenu.append(People_AddNew()) PeoplePanel.itemMenu.append(balt.Tank_Delete()) PeoplePanel.itemMenu.append(People_Export()) | def InitPeopleLinks(): """Initialize people tab menus.""" #--Header links PeoplePanel.mainMenu.append(People_AddNew()) PeoplePanel.mainMenu.append(People_Import()) #--Item links PeoplePanel.itemMenu.append(People_Karma()) PeoplePanel.itemMenu.append(SeparatorLink()) PeoplePanel.itemMenu.append(People_AddNew()) PeoplePanel.itemMenu.append(balt.Tank_Delete()) PeoplePanel.itemMenu.append(People_Export()) | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
"""Call other link initializers.""" InitStatusBar() InitMasterLinks() InitInstallerLinks() InitModLinks() InitReplacerLinks() InitSaveLinks() InitScreenLinks() InitMessageLinks() InitPeopleLinks() | """Call other link initializers.""" InitStatusBar() InitMasterLinks() InitInstallerLinks() InitModLinks() InitReplacerLinks() InitSaveLinks() InitScreenLinks() InitMessageLinks() InitPeopleLinks() | def InitLinks(): """Call other link initializers.""" InitStatusBar() InitMasterLinks() InitInstallerLinks() InitModLinks() InitReplacerLinks() InitSaveLinks() InitScreenLinks() InitMessageLinks() InitPeopleLinks() | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
print _('Compiled') | print _('Compiled') | def InitLinks(): """Call other link initializers.""" InitStatusBar() InitMasterLinks() InitInstallerLinks() InitModLinks() InitReplacerLinks() InitSaveLinks() InitScreenLinks() InitMessageLinks() InitPeopleLinks() | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py |
print 'ifunc: %d' % ifunc | def loadData(self,record,ins,type,size,readId): """Reads data from ins into record attribute.""" if type == 'CTDA' and size != 28 and size != 20: raise ModSizeError(ins.inName,readId,28,size,True) #if type == 'CTDT' and size != 20: # raise ModSizeError(ins.inName,readId,20,size,True) target = MelObject() record.conditions.append(target) target.__slots__ = self.attrs unpacked1 = ins.unpack('B3sfI',12,readId) (target.operFlag,target.unused1,target.compValue,ifunc) = unpacked1 #--Get parameters print 'ifunc: %d' % ifunc if ifunc not in bush.allConditions: raise BoltError(_('Unknown condition function: %d') % ifunc) form1 = 'iI'[ifunc in bush.fid1Conditions] form2 = 'iI'[ifunc in bush.fid2Conditions] if size == 28: form3 = 'iI'[ifunc in bush.fid3Conditions] form4 = 'iI'[ifunc in bush.fid4Conditions] form1234 = form1+form2+form3+form4 unpacked2 = ins.unpack(form1234,16,readId) (target.param1,target.param2,target.param3,target.param4) = unpacked2 else: form1234 = form1+form2 unpacked2 = ins.unpack(form1234,8,readId) (target.param1,target.param2) = unpacked2 target.param3 = null4 target.param4 = null4 (target.ifunc,target.form1234) = (ifunc,form1234) if self._debug: unpacked = unpacked1+unpacked2 print ' ',zip(self.attrs,unpacked) if len(unpacked) != len(self.attrs): print ' ',unpacked | fa7f9fa9bedeb805b2463f14e5dfe2e4b5b5f849 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/fa7f9fa9bedeb805b2463f14e5dfe2e4b5b5f849/bosh.py |
|
if save: record.__setattr__(self.attr,result) | if save: record.__setattr__(self.attr,(isFid,result)) | def mapFids(self,record,function,save=False): value = record.__getattribute__(self.attr) if value is None: return (isFid, value) = value if isFid: result = function(value) if save: record.__setattr__(self.attr,result) | a008bdb7d70d43e9ee1cf2b5d0c46dcee555a070 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/a008bdb7d70d43e9ee1cf2b5d0c46dcee555a070/bosh.py |
if save: record.__setattr__(self.attr,result) | if save: record.__setattr__(self.attr,(isFid,result)) | def mapFids(self,record,function,save=False): value = record.__getattribute__(self.attr) if value is None: return (isFid, value) = value if isFid: result = function(value) if save: record.__setattr__(self.attr,result) | a008bdb7d70d43e9ee1cf2b5d0c46dcee555a070 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/a008bdb7d70d43e9ee1cf2b5d0c46dcee555a070/bosh.py |
'LVLI':'LVLI,ALCH,AMMO,APPA,ARMO,BOOK,CLOT,INGR,KEYM,LIGH,MISC,SGST,SLGM,WEAP'.split(','), | 'LVLI':'LVLI,ALCH,AMMO,APPA,ARMO,BOOK,CLOT,INGR,KEYM,LIGH,MISC,SGST,SLGM,WEAP,NOTE'.split(','), | def initPatchFile(self,patchFile,loadMods): """Prepare to handle specified patch mod. All functions are called after this.""" Patcher.initPatchFile(self,patchFile,loadMods) self.contType_entryTypes = { 'LVSP':'LVSP,SPEL,'.split(','), 'LVLC':'LVLC,CREA,'.split(','), 'LVLN':'LVLC,NPC_,'.split(','), #--LVLI will also be applied for containers. 'LVLI':'LVLI,ALCH,AMMO,APPA,ARMO,BOOK,CLOT,INGR,KEYM,LIGH,MISC,SGST,SLGM,WEAP'.split(','), } self.contType_entryTypes['CONT'] = self.contType_entryTypes['LVLI'] self.contType_entryTypes['CREA'] = self.contType_entryTypes['LVLI'] self.contType_entryTypes['NPC_'] = self.contType_entryTypes['LVLI'] self.id_type = {} self.id_eid = {} #--Types self.contTypes = self.contType_entryTypes.keys() self.entryTypes = sum(self.contType_entryTypes.values(),[]) | 1a33ef31d08e366451b6ea4a165315d1df9bf7ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1a33ef31d08e366451b6ea4a165315d1df9bf7ea/bosh.py |
class MelCellXcll(MelOptStruct): """Handle older trucated XCLL for CELL subrecord.""" def loadData(self,record,ins,type,size,readId): if size == 40: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 36: unpacked = ins.unpack('=3Bs3Bs3Bs2f2i2f',size,readId) else: raise "Unexpected size encountered for XCLL subrecord: %s" % size unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked, record.flags.getTrueAttrs() | def dumpData(self,record,out): if not record.flags.isInterior: MelOptStruct.dumpData(self,record,out) | 6a16067f425dc33ada5a553064c687b81f8d710b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/6a16067f425dc33ada5a553064c687b81f8d710b/bosh.py |
|
MelOptStruct('XCLL','=3Bs3Bs3Bs2f2i2f','ambientRed','ambientGreen','ambientBlue', | MelCoordinates('XCLC','iiI',('posX',None),('posY',None),('forceHideLand',0L)), MelCellXcll('XCLL','=3Bs3Bs3Bs2f2i3f','ambientRed','ambientGreen','ambientBlue', | def dumpData(self,record,out): if not record.flags.isInterior: MelOptStruct.dumpData(self,record,out) | 6a16067f425dc33ada5a553064c687b81f8d710b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/6a16067f425dc33ada5a553064c687b81f8d710b/bosh.py |
'directionalFade','fogClip'), MelOptStruct('XCMT','B','music'), MelOwnership(), MelFid('XCCM','climate'), | 'directionalFade','fogClip','fogPower'), MelBase('IMPF','footstepMaterials'), MelGroup('lightTemplate', MelFid('LTMP','template'), MelStruct('LNAM','I',(inheritFlags,'inheritFlags',0L)), ), | def dumpData(self,record,out): if not record.flags.isInterior: MelOptStruct.dumpData(self,record,out) | 6a16067f425dc33ada5a553064c687b81f8d710b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/6a16067f425dc33ada5a553064c687b81f8d710b/bosh.py |
MelCoordinates('XCLC','ii',('posX',None),('posY',None)), | MelOptStruct('XCMT','B','xcmt_p'), MelFid('XCIM','imageSpace'), MelOptStruct('XCET','B','xcet_p'), MelFid('XEZN','encounterZone'), MelFid('XCCM','climate'), | def dumpData(self,record,out): if not record.flags.isInterior: MelOptStruct.dumpData(self,record,out) | 6a16067f425dc33ada5a553064c687b81f8d710b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/6a16067f425dc33ada5a553064c687b81f8d710b/bosh.py |
_flags = Flags(0L,Flags.getNames('smallWorld','noFastTravel','oblivionWorldspace',None,'noLODWater')) | _flags = Flags(0L,Flags.getNames('smallWorld','noFastTravel','oblivionWorldspace',None,'noLODWater','noLODNoise','noAllowNPCFallDamage')) | def loadData(self,record,ins,type,size,readId): if size == 136: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 124: #--Else 124 byte record (skips sightUsage, semiAutomaticFireDelayMin and semiAutomaticFireDelayMax... unpacked = ins.unpack('Iff4B5fI4BffII11fIIffI',size,readId) elif size == 120: #--Else 120 byte record (skips resistType, sightUsage, semiAutomaticFireDelayMin and semiAutomaticFireDelayMax... unpacked = ins.unpack('Iff4B5fI4BffII11fIIff',size,readId) else: raise "Unexpected size encountered for WEAP:DNAM subrecord: %s" % size unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked | 6a16067f425dc33ada5a553064c687b81f8d710b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/6a16067f425dc33ada5a553064c687b81f8d710b/bosh.py |
MelFid('WNAM','parent'), | MelFid('XEZN','encounterZone'), MelGroup('parent', MelFid('WNAM','worldspace'), MelStruct('PNAM','BB','flags','unknown'), ), | def loadData(self,record,ins,type,size,readId): if size == 136: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 124: #--Else 124 byte record (skips sightUsage, semiAutomaticFireDelayMin and semiAutomaticFireDelayMax... unpacked = ins.unpack('Iff4B5fI4BffII11fIIffI',size,readId) elif size == 120: #--Else 120 byte record (skips resistType, sightUsage, semiAutomaticFireDelayMin and semiAutomaticFireDelayMax... unpacked = ins.unpack('Iff4B5fI4BffII11fIIff',size,readId) else: raise "Unexpected size encountered for WEAP:DNAM subrecord: %s" % size unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked | 6a16067f425dc33ada5a553064c687b81f8d710b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/6a16067f425dc33ada5a553064c687b81f8d710b/bosh.py |
MelOptStruct('SNAM','I','sound'), | MelFid('ZNAM','music'), MelString('NNAM','canopyShadow'), MelString('XNAM','waterNoiseTexture'), MelStructs('IMPS','III','swappedImpacts', 'materialType',(FID,'old'),(FID,'new')), MelBase('IMPF','footstepMaterials'), | def loadData(self,record,ins,type,size,readId): if size == 136: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 124: #--Else 124 byte record (skips sightUsage, semiAutomaticFireDelayMin and semiAutomaticFireDelayMax... unpacked = ins.unpack('Iff4B5fI4BffII11fIIffI',size,readId) elif size == 120: #--Else 120 byte record (skips resistType, sightUsage, semiAutomaticFireDelayMin and semiAutomaticFireDelayMax... unpacked = ins.unpack('Iff4B5fI4BffII11fIIff',size,readId) else: raise "Unexpected size encountered for WEAP:DNAM subrecord: %s" % size unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked | 6a16067f425dc33ada5a553064c687b81f8d710b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/6a16067f425dc33ada5a553064c687b81f8d710b/bosh.py |
'directionalFade','fogClip'), | 'directionalFade','fogClip','fogPower'), | def initPatchFile(self,patchFile,loadMods): """Prepare to handle specified patch mod. All functions are called after this.""" Patcher.initPatchFile(self,patchFile,loadMods) self.cellData = {} self.sourceMods = self.getConfigChecked() self.isActive = bool(self.sourceMods) self.recAttrs = { 'C.Climate': ('climate',), 'C.Owner': ('ownership',), 'C.Water': ('water','waterHeight'), 'C.Light': ('ambientRed','ambientGreen','ambientBlue','unused1', 'directionalRed','directionalGreen','directionalBlue','unused2', 'fogRed','fogGreen','fogBlue','unused3', 'fogNear','fogFar','directionalXY','directionalZ', 'directionalFade','fogClip'), } self.recFlags = { 'C.Climate': 'behaveLikeExterior', 'C.Owner': 'publicPlace', 'C.Water': 'hasWater', 'C.Light': '', } | 6a16067f425dc33ada5a553064c687b81f8d710b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/6a16067f425dc33ada5a553064c687b81f8d710b/bosh.py |
MelFids('TNAM','destinations'), | def convertFids(self,mapper,toLong): """Converts fids between formats according to mapper. toLong should be True if converting to long format or False if converting to short format.""" MelRecord.convertFids(self,mapper,toLong) for info in self.infos: info.convertFids(mapper,toLong) | 601fc3d5180fda499075bc77c6a61c0a432c1b88 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/601fc3d5180fda499075bc77c6a61c0a432c1b88/bosh.py |
|
if record.full[0] in '+-=.()[]': continue | if record.full[0] in '+-=()[]<>': continue | def buildPatch(self,log,progress,patchFile): """Edits patch file as desired. Will write to log.""" count = {} format = self.choiceValues[self.chosen][0] showStat = '%02d' in format keep = patchFile.getKeeper() codes = getattr(patchFile,'bodyTags','HAGPBFE') head,body,gloves,pipboy,backpack,fancy,accessory = [ x for x in codes] for record in getattr(patchFile,self.key).records: if not record.full: continue if record.full[0] in '+-=.()[]': continue flags = record.bipedFlags if flags.head or flags.hair or flags.headband or flags.hat: type = head elif flags.upperBody: type = body elif flags.leftHand or flags.rightHand: type = gloves elif flags.pipboy: type = pipboy elif flags.backpack: type = backpack elif flags.necklace or flags.eyeGlasses or flags.noseRing or flags.earrings or flags.mask or flags.choker or flags.mouthObject: type = fancy elif flags.bodyAddOn1 or flags.bodyAddOn2 or flags.bodyAddOn3: type = accessory else: continue if record.recType == 'ARMO': if record.generalFlags.powerArmor: type += 'P' if record.generalFlags.heavyArmor: type += 'H' if showStat: record.full = format % (type,record.ar/100) + record.full else: record.full = format % type + record.full keep(record.fid) srcMod = record.fid[0] count[srcMod] = count.get(srcMod,0) + 1 #--Log log(_('* %s: %d') % (self.label,sum(count.values()))) for srcMod in modInfos.getOrdered(count.keys()): log(' * %s: %d' % (srcMod.s,count[srcMod])) | 0ac6b62db57d61ab86272bebaa0342af7139c85b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/0ac6b62db57d61ab86272bebaa0342af7139c85b/bosh.py |
if record.full[0] in '+-=.()[]': continue | if record.full[0] in '+-=()[]<>': continue | def buildPatch(self,log,progress,patchFile): """Edits patch file as desired. Will write to log.""" count = {} format = self.choiceValues[self.chosen][0] keep = patchFile.getKeeper() for record in patchFile.ALCH.records: if not record.full: continue if record.full[0] in '+-=.()[]': continue if not record.etype in range(10,14): continue label = 'CSFA'[record.etype-10] record.full = format % label + record.full keep(record.fid) srcMod = record.fid[0] count[srcMod] = count.get(srcMod,0) + 1 #--Log log(_('* %s: %d') % (self.label,sum(count.values()))) for srcMod in modInfos.getOrdered(count.keys()): log(' * %s: %d' % (srcMod.s,count[srcMod])) | 0ac6b62db57d61ab86272bebaa0342af7139c85b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/0ac6b62db57d61ab86272bebaa0342af7139c85b/bosh.py |
record.full = format % label + record.full | prefix = '' if label == 'S': prefix = '\x07\x07' elif label == 'C': prefix = '\x07' record.full = prefix + format % label + record.full | def buildPatch(self,log,progress,patchFile): """Edits patch file as desired. Will write to log.""" count = {} format = self.choiceValues[self.chosen][0] keep = patchFile.getKeeper() for record in patchFile.ALCH.records: if not record.full: continue if record.full[0] in '+-=.()[]': continue if not record.etype in range(10,14): continue label = 'CSFA'[record.etype-10] record.full = format % label + record.full keep(record.fid) srcMod = record.fid[0] count[srcMod] = count.get(srcMod,0) + 1 #--Log log(_('* %s: %d') % (self.label,sum(count.values()))) for srcMod in modInfos.getOrdered(count.keys()): log(' * %s: %d' % (srcMod.s,count[srcMod])) | 0ac6b62db57d61ab86272bebaa0342af7139c85b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/0ac6b62db57d61ab86272bebaa0342af7139c85b/bosh.py |
if record.full[0] in '+-=.()[]': continue | if record.full[0] in '+-=()[]<>': continue | def buildPatch(self,log,progress,patchFile): """Edits patch file as desired. Will write to log.""" count = {} format = self.choiceValues[self.chosen][0] showStat = '%02d' in format keep = patchFile.getKeeper() codes = getattr(patchFile,'weaponTags','BESMUTL') ammoFormat = '\x07' for record in patchFile.AMMO.records: if not record.full: continue record.full = ammoFormat + record.full keep(record.fid) srcMod = record.fid[0] count[srcMod] = count.get(srcMod,0) + 1 for record in patchFile.WEAP.records: if not record.full: continue if record.full[0] in '+-=.()[]': continue if not record.etype in range(0,7): continue type = codes[record.etype] if showStat: record.full = format % (type,record.damage) + record.full else: record.full = format % type + record.full keep(record.fid) srcMod = record.fid[0] count[srcMod] = count.get(srcMod,0) + 1 #--Log log(_('* %s: %d') % (self.label,sum(count.values()))) for srcMod in modInfos.getOrdered(count.keys()): log(' * %s: %d' % (srcMod.s,count[srcMod])) | 0ac6b62db57d61ab86272bebaa0342af7139c85b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/0ac6b62db57d61ab86272bebaa0342af7139c85b/bosh.py |
self.id_relations = {} | self.id_relations = {} | def __init__(self,aliases=None): """Initialize.""" self.id_relations = {} #--(otherLongid,otherDisp) = id_relation[longid] self.id_eid = {} #--For all factions. self.aliases = aliases or {} self.gotFactions = set() | 81923914b6989a5d38c47e7038a12ad2760d1ff6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/81923914b6989a5d38c47e7038a12ad2760d1ff6/bosh.py |
other,disp = relation.faction,relation.mod | other,disp,groupCombatReaction = relation.faction,relation.mod,relation.groupCombatReaction | def readFromMod(self,modInfo): """Imports faction relations from specified mod.""" self.readFactionEids(modInfo) loadFactory= LoadFactory(False,MreFact) modFile = ModFile(modInfo,loadFactory) modFile.load(True) modFile.convertToLongFids(('FACT',)) for record in modFile.FACT.getActiveRecords(): #--Following is a bit messy. If already have relations for a given mod, # want to do an in-place update. Otherwise do an append. relations = self.id_relations.get(record.fid) if relations == None: relations = self.id_relations[record.fid] = [] other_index = dict((y[0],x) for x,y in enumerate(relations)) for relation in record.relations: other,disp = relation.faction,relation.mod if other in other_index: relations[other_index[other]] = (other,disp) else: relations.append((other,disp)) | 81923914b6989a5d38c47e7038a12ad2760d1ff6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/81923914b6989a5d38c47e7038a12ad2760d1ff6/bosh.py |
relations[other_index[other]] = (other,disp) | relations[other_index[other]] = (other,disp,groupCombatReaction) | def readFromMod(self,modInfo): """Imports faction relations from specified mod.""" self.readFactionEids(modInfo) loadFactory= LoadFactory(False,MreFact) modFile = ModFile(modInfo,loadFactory) modFile.load(True) modFile.convertToLongFids(('FACT',)) for record in modFile.FACT.getActiveRecords(): #--Following is a bit messy. If already have relations for a given mod, # want to do an in-place update. Otherwise do an append. relations = self.id_relations.get(record.fid) if relations == None: relations = self.id_relations[record.fid] = [] other_index = dict((y[0],x) for x,y in enumerate(relations)) for relation in record.relations: other,disp = relation.faction,relation.mod if other in other_index: relations[other_index[other]] = (other,disp) else: relations.append((other,disp)) | 81923914b6989a5d38c47e7038a12ad2760d1ff6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/81923914b6989a5d38c47e7038a12ad2760d1ff6/bosh.py |
relations.append((other,disp)) | relations.append((other,disp,groupCombatReaction)) | def readFromMod(self,modInfo): """Imports faction relations from specified mod.""" self.readFactionEids(modInfo) loadFactory= LoadFactory(False,MreFact) modFile = ModFile(modInfo,loadFactory) modFile.load(True) modFile.convertToLongFids(('FACT',)) for record in modFile.FACT.getActiveRecords(): #--Following is a bit messy. If already have relations for a given mod, # want to do an in-place update. Otherwise do an append. relations = self.id_relations.get(record.fid) if relations == None: relations = self.id_relations[record.fid] = [] other_index = dict((y[0],x) for x,y in enumerate(relations)) for relation in record.relations: other,disp = relation.faction,relation.mod if other in other_index: relations[other_index[other]] = (other,disp) else: relations.append((other,disp)) | 81923914b6989a5d38c47e7038a12ad2760d1ff6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/81923914b6989a5d38c47e7038a12ad2760d1ff6/bosh.py |
if len(fields) < 7 or fields[2][:2] != '0x': continue med,mmod,mobj,oed,omod,oobj,disp = fields[:9] | if len(fields) < 8 or fields[2][:2] != '0x': continue med,mmod,mobj,oed,omod,oobj,disp,groupCombatReaction = fields[:8] | def readFromText(self,textPath): """Imports faction relations from specified text file.""" id_relations,id_eid = self.id_relations, self.id_eid aliases = self.aliases ins = bolt.CsvReader(textPath) for fields in ins: if len(fields) < 7 or fields[2][:2] != '0x': continue med,mmod,mobj,oed,omod,oobj,disp = fields[:9] mid = (GPath(aliases.get(mmod,mmod)),int(mobj[2:],16)) oid = (GPath(aliases.get(omod,omod)),int(oobj[2:],16)) disp = int(disp) relations = id_relations.get(mid) if relations is None: relations = id_relations[mid] = [] for index,entry in enumerate(relations): if entry[0] == oid: relations[index] = (oid,disp) break else: relations.append((oid,disp)) ins.close() | 81923914b6989a5d38c47e7038a12ad2760d1ff6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/81923914b6989a5d38c47e7038a12ad2760d1ff6/bosh.py |
relations[index] = (oid,disp) | relations[index] = (oid,disp,groupCombatReaction) | def readFromText(self,textPath): """Imports faction relations from specified text file.""" id_relations,id_eid = self.id_relations, self.id_eid aliases = self.aliases ins = bolt.CsvReader(textPath) for fields in ins: if len(fields) < 7 or fields[2][:2] != '0x': continue med,mmod,mobj,oed,omod,oobj,disp = fields[:9] mid = (GPath(aliases.get(mmod,mmod)),int(mobj[2:],16)) oid = (GPath(aliases.get(omod,omod)),int(oobj[2:],16)) disp = int(disp) relations = id_relations.get(mid) if relations is None: relations = id_relations[mid] = [] for index,entry in enumerate(relations): if entry[0] == oid: relations[index] = (oid,disp) break else: relations.append((oid,disp)) ins.close() | 81923914b6989a5d38c47e7038a12ad2760d1ff6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/81923914b6989a5d38c47e7038a12ad2760d1ff6/bosh.py |
relations.append((oid,disp)) | relations.append((oid,disp,groupCombatReaction)) | def readFromText(self,textPath): """Imports faction relations from specified text file.""" id_relations,id_eid = self.id_relations, self.id_eid aliases = self.aliases ins = bolt.CsvReader(textPath) for fields in ins: if len(fields) < 7 or fields[2][:2] != '0x': continue med,mmod,mobj,oed,omod,oobj,disp = fields[:9] mid = (GPath(aliases.get(mmod,mmod)),int(mobj[2:],16)) oid = (GPath(aliases.get(omod,omod)),int(oobj[2:],16)) disp = int(disp) relations = id_relations.get(mid) if relations is None: relations = id_relations[mid] = [] for index,entry in enumerate(relations): if entry[0] == oid: relations[index] = (oid,disp) break else: relations.append((oid,disp)) ins.close() | 81923914b6989a5d38c47e7038a12ad2760d1ff6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/81923914b6989a5d38c47e7038a12ad2760d1ff6/bosh.py |
headFormat = '%s","%s","%s","%s","%s","%s","%s"\n' rowFormat = '"%s","%s","0x%06X","%s","%s","0x%06X","%s"\n' | headFormat = '%s","%s","%s","%s","%s","%s","%s","%s"\n' rowFormat = '"%s","%s","0x%06X","%s","%s","0x%06X","%s","%s"\n' | def writeToText(self,textPath): """Exports faction relations to specified text file.""" id_relations,id_eid = self.id_relations, self.id_eid headFormat = '%s","%s","%s","%s","%s","%s","%s"\n' rowFormat = '"%s","%s","0x%06X","%s","%s","0x%06X","%s"\n' out = textPath.open('w') out.write(headFormat % (_('Main Eid'),_('Main Mod'),_('Main Object'),_('Other Eid'),_('Other Mod'),_('Other Object'),_('Disp'))) for main in sorted(id_relations,key = lambda x: id_eid.get(x)): mainEid = id_eid.get(main,'Unknown') for other, disp in sorted(id_relations[main],key=lambda x: id_eid.get(x[0])): otherEid = id_eid.get(other,'Unknown') out.write(rowFormat % (mainEid,main[0].s,main[1],otherEid,other[0].s,other[1],disp)) out.close() | 81923914b6989a5d38c47e7038a12ad2760d1ff6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/81923914b6989a5d38c47e7038a12ad2760d1ff6/bosh.py |
out.write(headFormat % (_('Main Eid'),_('Main Mod'),_('Main Object'),_('Other Eid'),_('Other Mod'),_('Other Object'),_('Disp'))) | out.write(headFormat % (_('Main Eid'),_('Main Mod'),_('Main Object'),_('Other Eid'),_('Other Mod'),_('Other Object'),_('Disp'),_('GroupCombatReaction'))) | def writeToText(self,textPath): """Exports faction relations to specified text file.""" id_relations,id_eid = self.id_relations, self.id_eid headFormat = '%s","%s","%s","%s","%s","%s","%s"\n' rowFormat = '"%s","%s","0x%06X","%s","%s","0x%06X","%s"\n' out = textPath.open('w') out.write(headFormat % (_('Main Eid'),_('Main Mod'),_('Main Object'),_('Other Eid'),_('Other Mod'),_('Other Object'),_('Disp'))) for main in sorted(id_relations,key = lambda x: id_eid.get(x)): mainEid = id_eid.get(main,'Unknown') for other, disp in sorted(id_relations[main],key=lambda x: id_eid.get(x[0])): otherEid = id_eid.get(other,'Unknown') out.write(rowFormat % (mainEid,main[0].s,main[1],otherEid,other[0].s,other[1],disp)) out.close() | 81923914b6989a5d38c47e7038a12ad2760d1ff6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/81923914b6989a5d38c47e7038a12ad2760d1ff6/bosh.py |
for other, disp in sorted(id_relations[main],key=lambda x: id_eid.get(x[0])): | for other,disp,groupCombatReaction in sorted(id_relations[main],key=lambda x: id_eid.get(x[0])): | def writeToText(self,textPath): """Exports faction relations to specified text file.""" id_relations,id_eid = self.id_relations, self.id_eid headFormat = '%s","%s","%s","%s","%s","%s","%s"\n' rowFormat = '"%s","%s","0x%06X","%s","%s","0x%06X","%s"\n' out = textPath.open('w') out.write(headFormat % (_('Main Eid'),_('Main Mod'),_('Main Object'),_('Other Eid'),_('Other Mod'),_('Other Object'),_('Disp'))) for main in sorted(id_relations,key = lambda x: id_eid.get(x)): mainEid = id_eid.get(main,'Unknown') for other, disp in sorted(id_relations[main],key=lambda x: id_eid.get(x[0])): otherEid = id_eid.get(other,'Unknown') out.write(rowFormat % (mainEid,main[0].s,main[1],otherEid,other[0].s,other[1],disp)) out.close() | 81923914b6989a5d38c47e7038a12ad2760d1ff6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/81923914b6989a5d38c47e7038a12ad2760d1ff6/bosh.py |
out.write(rowFormat % (mainEid,main[0].s,main[1],otherEid,other[0].s,other[1],disp)) | out.write(rowFormat % (mainEid,main[0].s,main[1],otherEid,other[0].s,other[1],disp,groupCombatReaction)) | def writeToText(self,textPath): """Exports faction relations to specified text file.""" id_relations,id_eid = self.id_relations, self.id_eid headFormat = '%s","%s","%s","%s","%s","%s","%s"\n' rowFormat = '"%s","%s","0x%06X","%s","%s","0x%06X","%s"\n' out = textPath.open('w') out.write(headFormat % (_('Main Eid'),_('Main Mod'),_('Main Object'),_('Other Eid'),_('Other Mod'),_('Other Object'),_('Disp'))) for main in sorted(id_relations,key = lambda x: id_eid.get(x)): mainEid = id_eid.get(main,'Unknown') for other, disp in sorted(id_relations[main],key=lambda x: id_eid.get(x[0])): otherEid = id_eid.get(other,'Unknown') out.write(rowFormat % (mainEid,main[0].s,main[1],otherEid,other[0].s,other[1],disp)) out.close() | 81923914b6989a5d38c47e7038a12ad2760d1ff6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/81923914b6989a5d38c47e7038a12ad2760d1ff6/bosh.py |
self.id_relations= {} | self.id_relations= {} | def initPatchFile(self,patchFile,loadMods): """Prepare to handle specified patch mod. All functions are called after this.""" Patcher.initPatchFile(self,patchFile,loadMods) self.id_relations= {} #--[(otherLongid0,disp0),(...)] = id_relations[mainLongid]. self.srcFiles = self.getConfigChecked() self.isActive = bool(self.srcFiles) | 81923914b6989a5d38c47e7038a12ad2760d1ff6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/81923914b6989a5d38c47e7038a12ad2760d1ff6/bosh.py |
curRelations = set((x.faction,x.mod) for x in record.relations) | curRelations = set((x.faction,x.mod,x.groupCombatReaction) for x in record.relations) | def buildPatch(self,log,progress): """Make changes to patchfile.""" if not self.isActive: return modFile = self.patchFile keep = self.patchFile.getKeeper() id_relations= self.id_relations type_count = {} for type in ('FACT',): if type not in modFile.tops: continue type_count[type] = 0 for record in modFile.tops[type].records: fid = record.fid if fid in id_relations: newRelations = set(id_relations[fid]) curRelations = set((x.faction,x.mod) for x in record.relations) changed = newRelations - curRelations if not changed: continue doKeep = False for faction,disp in changed: for entry in record.relations: if entry.faction == faction: if entry.mod != disp: entry.mod = disp doKeep = True keep(fid) break else: entry = MelObject() entry.faction = faction entry.mod = disp record.relations.append(entry) doKeep = True if doKeep: type_count[type] += 1 keep(fid) log.setHeader('= '+self.__class__.name) log(_("=== Source Mods/Files")) for file in self.srcFiles: log("* " +file.s) log(_("\n=== Modified Factions: %d") % type_count['FACT']) | 81923914b6989a5d38c47e7038a12ad2760d1ff6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/81923914b6989a5d38c47e7038a12ad2760d1ff6/bosh.py |
for faction,disp in changed: | for faction,disp,groupCombatReaction in changed: | def buildPatch(self,log,progress): """Make changes to patchfile.""" if not self.isActive: return modFile = self.patchFile keep = self.patchFile.getKeeper() id_relations= self.id_relations type_count = {} for type in ('FACT',): if type not in modFile.tops: continue type_count[type] = 0 for record in modFile.tops[type].records: fid = record.fid if fid in id_relations: newRelations = set(id_relations[fid]) curRelations = set((x.faction,x.mod) for x in record.relations) changed = newRelations - curRelations if not changed: continue doKeep = False for faction,disp in changed: for entry in record.relations: if entry.faction == faction: if entry.mod != disp: entry.mod = disp doKeep = True keep(fid) break else: entry = MelObject() entry.faction = faction entry.mod = disp record.relations.append(entry) doKeep = True if doKeep: type_count[type] += 1 keep(fid) log.setHeader('= '+self.__class__.name) log(_("=== Source Mods/Files")) for file in self.srcFiles: log("* " +file.s) log(_("\n=== Modified Factions: %d") % type_count['FACT']) | 81923914b6989a5d38c47e7038a12ad2760d1ff6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/81923914b6989a5d38c47e7038a12ad2760d1ff6/bosh.py |
if entry.mod != disp: | if (entry.mod != disp or entry.groupCombatReaction != groupCombatReaction): | def buildPatch(self,log,progress): """Make changes to patchfile.""" if not self.isActive: return modFile = self.patchFile keep = self.patchFile.getKeeper() id_relations= self.id_relations type_count = {} for type in ('FACT',): if type not in modFile.tops: continue type_count[type] = 0 for record in modFile.tops[type].records: fid = record.fid if fid in id_relations: newRelations = set(id_relations[fid]) curRelations = set((x.faction,x.mod) for x in record.relations) changed = newRelations - curRelations if not changed: continue doKeep = False for faction,disp in changed: for entry in record.relations: if entry.faction == faction: if entry.mod != disp: entry.mod = disp doKeep = True keep(fid) break else: entry = MelObject() entry.faction = faction entry.mod = disp record.relations.append(entry) doKeep = True if doKeep: type_count[type] += 1 keep(fid) log.setHeader('= '+self.__class__.name) log(_("=== Source Mods/Files")) for file in self.srcFiles: log("* " +file.s) log(_("\n=== Modified Factions: %d") % type_count['FACT']) | 81923914b6989a5d38c47e7038a12ad2760d1ff6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/81923914b6989a5d38c47e7038a12ad2760d1ff6/bosh.py |
if groupFid != world.fid: raise ModError(ins.inName,'WRLD subgroup (%s) does not match WRLD <%s> %s.' % (hex(groupFid), hex(world.fid), world.eid)) | def loadData(self,ins,endPos): """Loads data from input stream. Called by load().""" expType = self.label recWrldClass = self.loadFactory.getRecClass(expType) errLabel = expType + ' Top Block' worldBlocks = self.worldBlocks world = None insAtEnd = ins.atEnd insRecHeader = ins.unpackRecHeader insSeek = ins.seek selfLoadFactory = self.loadFactory worldBlocksAppend = worldBlocks.append while not insAtEnd(endPos,errLabel): #--Get record info and handle it header = insRecHeader() recType = header[0] if recType == expType: world = recWrldClass(header,ins,True) elif recType == 'GRUP': groupFid,groupType = header[2:4] if groupType != 1: raise ModError(ins.inName,'Unexpected subgroup %d in CELL group.' % groupType) if not world: #raise ModError(ins.inName,'Extra subgroup %d in WRLD group.' % groupType) #--Orphaned world records. Skip over. insSeek(header[1]-24,1) self.orphansSkipped += 1 continue if groupFid != world.fid: raise ModError(ins.inName,'WRLD subgroup (%s) does not match WRLD <%s> %s.' % (hex(groupFid), hex(world.fid), world.eid)) worldBlock = MobWorld(header,selfLoadFactory,world,ins,True) worldBlocksAppend(worldBlock) world = None else: raise ModError(ins.inName,'Unexpected %s record in %s group.' % (recType,expType)) | 80c8152c726f16f82c4da322d561d82827927848 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/80c8152c726f16f82c4da322d561d82827927848/bosh.py |
|
"""Support older 4 byte version.""" | """Support older 8 byte version.""" | def setRace(self,race): """Set additional race info.""" self.race = race #--Model if not self.model: self.model = self.getDefault('model') if race in (0x23fe9,0x223c7): self.model.modPath = r"Characters\_Male\SkeletonBeast.NIF" else: self.model.modPath = r"Characters\_Male\skeleton.nif" #--FNAM fnams = { 0x23fe9 : 0x3cdc ,#--Argonian 0x224fc : 0x1d48 ,#--Breton 0x191c1 : 0x5472 ,#--Dark Elf 0x19204 : 0x21e6 ,#--High Elf 0x00907 : 0x358e ,#--Imperial 0x22c37 : 0x5b54 ,#--Khajiit 0x224fd : 0x03b6 ,#--Nord 0x191c0 : 0x0974 ,#--Orc 0x00d43 : 0x61a9 ,#--Redguard 0x00019 : 0x4477 ,#--Vampire 0x223c8 : 0x4a2e ,#--Wood Elf } self.fnam = fnams.get(race,0x358e) | cdd05bf6c021b5f069ec65da467b610730840d77 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/cdd05bf6c021b5f069ec65da467b610730840d77/bosh.py |
if size != 4: | if size == 12: | def loadData(self,record,ins,type,size,readId): if size != 4: MelStruct.loadData(self,record,ins,type,size,readId) else: record.flags,record.aiType,junk = ins.unpack('HBs',4,readId) record.flags = MrePack._flags(record.flags) record.unused1 = null3 if self._debug: print (record.flags.getTrueAttrs(),record.aiType,record.unused1) | cdd05bf6c021b5f069ec65da467b610730840d77 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/cdd05bf6c021b5f069ec65da467b610730840d77/bosh.py |
record.flags,record.aiType,junk = ins.unpack('HBs',4,readId) record.flags = MrePack._flags(record.flags) record.unused1 = null3 if self._debug: print (record.flags.getTrueAttrs(),record.aiType,record.unused1) class MelPackLT(MelStruct): | raise "Unexpected size encountered for PACK:PKDT subrecord: %s" % size unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked class MelPackPkdd(MelOptStruct): """Handle older trucated PKDD for PACK subrecord.""" def loadData(self,record,ins,type,size,readId): if size == 24: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 20: unpacked = ins.unpack('fII4sI',size,readId) elif size == 16: unpacked = ins.unpack('fII4s',size,readId) elif size == 12: unpacked = ins.unpack('fII',size,readId) else: raise "Unexpected size encountered for PACK:PKDD subrecord: %s" % size unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked class MelPackLT(MelOptStruct): | def loadData(self,record,ins,type,size,readId): if size != 4: MelStruct.loadData(self,record,ins,type,size,readId) else: record.flags,record.aiType,junk = ins.unpack('HBs',4,readId) record.flags = MrePack._flags(record.flags) record.unused1 = null3 if self._debug: print (record.flags.getTrueAttrs(),record.aiType,record.unused1) | cdd05bf6c021b5f069ec65da467b610730840d77 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/cdd05bf6c021b5f069ec65da467b610730840d77/bosh.py |
(self.subType == 'PTDT' and (record.targetType or record.targetId))): | (self.subType == 'PLD2' and (record.locType2 or record.locId2)) or (self.subType == 'PTDT' and (record.targetType or record.targetId)) or (self.subType == 'PTD2' and (record.targetType2 or record.targetId2))): | def dumpData(self,record,out): if ((self.subType == 'PLDT' and (record.locType or record.locId)) or (self.subType == 'PTDT' and (record.targetType or record.targetId))): MelStruct.dumpData(self,record,out) | cdd05bf6c021b5f069ec65da467b610730840d77 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/cdd05bf6c021b5f069ec65da467b610730840d77/bosh.py |
MelPackPkdt('PKDT','IB3s',(_flags,'flags'),'aiType',('unused1',null3)), | MelPackPkdt('PKDT','IHHI',(_flags,'flags'),'aiType','falloutBehaviorFlags','typeSpecificFlags'), | def mapFids(self,record,function,save=False): """Applies function to fids. If save is true, then fid is set to result of function.""" if self.subType == 'PLDT' and record.locType != 5: result = function(record.locId) if save: record.locId = result elif self.subType == 'PTDT' and record.targetType != 2: result = function(record.targetId) if save: record.targetId = result | cdd05bf6c021b5f069ec65da467b610730840d77 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/cdd05bf6c021b5f069ec65da467b610730840d77/bosh.py |
MelPackLT('PTDT','iIi','targetType','targetId','targetCount'), | MelPackLT('PTDT','iIif','targetType','targetId','targetCount','targetUnknown1'), | def mapFids(self,record,function,save=False): """Applies function to fids. If save is true, then fid is set to result of function.""" if self.subType == 'PLDT' and record.locType != 5: result = function(record.locId) if save: record.locId = result elif self.subType == 'PTDT' and record.targetType != 2: result = function(record.targetId) if save: record.targetId = result | cdd05bf6c021b5f069ec65da467b610730840d77 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/cdd05bf6c021b5f069ec65da467b610730840d77/bosh.py |
'goodbye','random','sayOnce',None,'infoRefusal','randomEnd','runForRumors')) | 'goodbye','random','sayOnce','runImmediately','infoRefusal','randomEnd','runForRumors','sayOnceADay','alwaysDarken')) | def loadData(self,record,ins,type,size,readId): if size == 8: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 6: #--Else 6 byte record (skips flags and unknown2... unpacked = ins.unpack('4BH',size,readId) else: raise "Unexpected size encountered for IDLE:DATA subrecord: %s" % size unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked, record.flags.getTrueAttrs() | 3611dafff18eca2c2f1b60c569d04775bd659d0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3611dafff18eca2c2f1b60c569d04775bd659d0e/bosh.py |
if self._debug: print (record.dialType,record.flags.getTrueAttrs(),record.unused1) | if self._debug: print (record.dialType,record.flags.getTrueAttrs()) | def loadData(self,record,ins,type,size,readId): if size != 2: MelStruct.loadData(self,record,ins,type,size,readId) return unpacked = ins.unpack('2B',size,readId) unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print (record.dialType,record.flags.getTrueAttrs(),record.unused1) | 3611dafff18eca2c2f1b60c569d04775bd659d0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3611dafff18eca2c2f1b60c569d04775bd659d0e/bosh.py |
MelInfoData('DATA','2Bs','dialType',(_flags,'flags'),('unused1','\x02')), | MelInfoData('DATA','HH','dialType',(_flags,'flags')), | def dumpData(self,record,out): if not record.schd_p: MelStruct.dumpData(self,record,out) | 3611dafff18eca2c2f1b60c569d04775bd659d0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3611dafff18eca2c2f1b60c569d04775bd659d0e/bosh.py |
MelStruct('BPND','f6BH2I2f3I7f2I2B2sf','damageMult',(_flags,'flagss'),'partType','healthPercent','actorValue' 'toHitChance','explodableChancePercent','explodableDebrisCount',(FID,'explodableDebris'),(FID,'explodableExplosion'), 'trackingMaxAngle','explodableDebrisScale','severableDebrisCount',(FID,'severableDebris'),(FID,'severableExplosion'), | MelStruct('BPND','f6BH2I2f3I7f2I2B2sf','damageMult',(_flags,'flags'),'partType','healthPercent','actorValue', 'toHitChance','explodableChancePercent','explodableDebrisCount',(FID,'explodableDebris',0L),(FID,'explodableExplosion',0L), 'trackingMaxAngle','explodableDebrisScale','severableDebrisCount',(FID,'severableDebris',0L),(FID,'severableExplosion',0L), | def loadData(self,record,ins,type,size,readId): if size == 4: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 3: unpacked = ins.unpack('BBB',size,readId) else: raise "Unexpected size encountered for TERM:DNAM subrecord: %s" % size unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked | e24e56b6f04efd9958ae043b4082d4072100ff62 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/e24e56b6f04efd9958ae043b4082d4072100ff62/bosh.py |
'goreEffectPosRotX','goreEffectPosRotY','goreEffectPosRotZ',(FID,'severableImpactDataSet'),(FID,'explodableImpactDataSet'), | 'goreEffectPosRotX','goreEffectPosRotY','goreEffectPosRotZ',(FID,'severableImpactDataSet',0L),(FID,'explodableImpactDataSet',0L), | def loadData(self,record,ins,type,size,readId): if size == 4: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 3: unpacked = ins.unpack('BBB',size,readId) else: raise "Unexpected size encountered for TERM:DNAM subrecord: %s" % size unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked | e24e56b6f04efd9958ae043b4082d4072100ff62 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/e24e56b6f04efd9958ae043b4082d4072100ff62/bosh.py |
eid = getattr(record,'eid','<<NO EID>>') print '---Loading: %08X..%s..%s.%s..%d..' % (record.fid,eid,record.recType,type,size) | def loadData(self,record,ins,endPos): """Loads data from input stream. Called by load().""" doFullTest = (self.full0 != None) recType = record.recType loaders = self.loaders _debug = self._debug #--Read Records if _debug: print '\n>>>> %08X' % record.fid insAtEnd = ins.atEnd insSubHeader = ins.unpackSubHeader | 2c088b26b71ff4ff551affe114f9ce9710fa5770 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/2c088b26b71ff4ff551affe114f9ce9710fa5770/bosh.py |
|
MelString('ICON','iconPath'), | MelString('ICON','largeIconPath'), MelString('MICO','smallIconPath'), MelFid('SCRI','script'), | # def __init__(self,attr='model',index=0): | cfbf8dc67593fbc5417e401d5773edc2dddcbf80 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/cfbf8dc67593fbc5417e401d5773edc2dddcbf80/bosh.py |
MelFid('SCRI','script'), MelFid('ENAM','enchantment'), MelOptStruct('ANAM','H','enchantPoints'), | MelDestructable(), | # def __init__(self,attr='model',index=0): | cfbf8dc67593fbc5417e401d5773edc2dddcbf80 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/cfbf8dc67593fbc5417e401d5773edc2dddcbf80/bosh.py |
MelStruct('EPFD','f','float'), | MelBase('EPFD', 'floats'), | def dumpData(self,record,out): for target in record.__getattribute__(self.attr): element = self.loaders[target.recordType] if not element: raise ModError(ins.inName,_('Unexpected type: %d') % target.recordType) element.dumpData(target,out) | cfbf8dc67593fbc5417e401d5773edc2dddcbf80 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/cfbf8dc67593fbc5417e401d5773edc2dddcbf80/bosh.py |
bosh.dirs['app'].join('FO34Edit.exe'), | bosh.dirs['app'].join('FO3Edit.exe'), | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fallout3.png'), _("Launch Fallout3"), _("Launch Fallout3 + FOSE"), '')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('GECK.exe'), Image(r'images/geck.png'), _("Launch GECK"), _("Launch GECK + FOSE"), '-editor')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('fomm.exe'), Image(r'images/database_connect.png'), _("Launch FOMM"))) BashStatusBar.buttons.append( App_Tes4Gecko(None, Image(r'images/cog.png'), _("Launch Tes4Gecko"))) BashStatusBar.buttons.append( App_Tes4View( (bosh.dirs['app'].join('FO3Edit.exe'), '-view'), Image(r'images/brick_edit.png'), _("Launch FO3View"))) BashStatusBar.buttons.append( App_Tes4View( bosh.dirs['app'].join('FO34Edit.exe'), Image(r'images/brick.png'), _("Launch FO3Edit"))) BashStatusBar.buttons.append( App_Tes4View( (bosh.dirs['app'].join('FO3Edit.exe'),'-translate'), Image(r'images/brick_error.png'), _("Launch FO3Trans"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('Tes4LodGen.exe'), Image(r'images/brick_go.png'), _("Launch Tes4LODGen"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS.bat'), Image(r'images/Boss1.png'), _("Launch BOSS"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS.bat'), Image(r'images/boss2.png'), _("Launch BOSS"))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | 4bdfe22311056196340bfda45a5aee59065fb4f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/4bdfe22311056196340bfda45a5aee59065fb4f8/basher.py |
bosh.dirs['app'].join('Data\\BOSS.bat'), | bosh.dirs['app'].join('Data\\BOSS-F.bat'), | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fallout3.png'), _("Launch Fallout3"), _("Launch Fallout3 + FOSE"), '')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('GECK.exe'), Image(r'images/geck.png'), _("Launch GECK"), _("Launch GECK + FOSE"), '-editor')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('fomm.exe'), Image(r'images/database_connect.png'), _("Launch FOMM"))) BashStatusBar.buttons.append( App_Tes4Gecko(None, Image(r'images/cog.png'), _("Launch Tes4Gecko"))) BashStatusBar.buttons.append( App_Tes4View( (bosh.dirs['app'].join('FO3Edit.exe'), '-view'), Image(r'images/brick_edit.png'), _("Launch FO3View"))) BashStatusBar.buttons.append( App_Tes4View( bosh.dirs['app'].join('FO34Edit.exe'), Image(r'images/brick.png'), _("Launch FO3Edit"))) BashStatusBar.buttons.append( App_Tes4View( (bosh.dirs['app'].join('FO3Edit.exe'),'-translate'), Image(r'images/brick_error.png'), _("Launch FO3Trans"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('Tes4LodGen.exe'), Image(r'images/brick_go.png'), _("Launch Tes4LODGen"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS.bat'), Image(r'images/Boss1.png'), _("Launch BOSS"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS.bat'), Image(r'images/boss2.png'), _("Launch BOSS"))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | 4bdfe22311056196340bfda45a5aee59065fb4f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/4bdfe22311056196340bfda45a5aee59065fb4f8/basher.py |
bosh.dirs['app'].join('Data\\BOSS.bat'), | bosh.dirs['app'].join('Data\\BOSS-F.bat'), | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fallout3.png'), _("Launch Fallout3"), _("Launch Fallout3 + FOSE"), '')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('GECK.exe'), Image(r'images/geck.png'), _("Launch GECK"), _("Launch GECK + FOSE"), '-editor')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('fomm.exe'), Image(r'images/database_connect.png'), _("Launch FOMM"))) BashStatusBar.buttons.append( App_Tes4Gecko(None, Image(r'images/cog.png'), _("Launch Tes4Gecko"))) BashStatusBar.buttons.append( App_Tes4View( (bosh.dirs['app'].join('FO3Edit.exe'), '-view'), Image(r'images/brick_edit.png'), _("Launch FO3View"))) BashStatusBar.buttons.append( App_Tes4View( bosh.dirs['app'].join('FO34Edit.exe'), Image(r'images/brick.png'), _("Launch FO3Edit"))) BashStatusBar.buttons.append( App_Tes4View( (bosh.dirs['app'].join('FO3Edit.exe'),'-translate'), Image(r'images/brick_error.png'), _("Launch FO3Trans"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('Tes4LodGen.exe'), Image(r'images/brick_go.png'), _("Launch Tes4LODGen"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS.bat'), Image(r'images/Boss1.png'), _("Launch BOSS"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS.bat'), Image(r'images/boss2.png'), _("Launch BOSS"))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help()) | 4bdfe22311056196340bfda45a5aee59065fb4f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/4bdfe22311056196340bfda45a5aee59065fb4f8/basher.py |
'AMMO':('eid', 'value', 'speed', 'value', 'clipRounds'), | 'AMMO':('eid', 'speed', 'flags', 'value', 'clipRounds'), | def __init__(self,types=None,aliases=None): """Initialize.""" #--type_stats[type] = ... #--AMMO: (eid, weight, value, damage, speed, epoints) #--ARMO: (eid, weight, value, health, strength) #--WEAP: (eid, weight, value, health, damage, speed, reach, epoints) self.type_stats = {'ALCH':{},'AMMO':{},'APPA':{},'ARMO':{},'BOOK':{},'CLOT':{},'INGR':{},'KEYM':{},'LIGH':{},'MISC':{},'SGST':{},'SLGM':{},'WEAP':{}} self.type_attrs = { 'ALCH':('eid', 'weight', 'value'), 'AMMO':('eid', 'value', 'speed', 'value', 'clipRounds'), 'APPA':('eid', 'weight', 'value', 'quality'), 'ARMO':('eid', 'weight', 'value', 'health', 'ar'), 'BOOK':('eid', 'weight', 'value'), 'CLOT':('eid', 'weight', 'value', 'enchantPoints'), 'INGR':('eid', 'weight', 'value'), 'KEYM':('eid', 'weight', 'value'), 'LIGH':('eid', 'weight', 'value', 'duration'), 'MISC':('eid', 'weight', 'value'), 'SGST':('eid', 'weight', 'value', 'uses'), 'SLGM':('eid', 'weight', 'value'), 'WEAP':('eid', 'weight', 'value', 'health', 'damage', 'clipsize', 'minSpread', 'spread', 'baseVatsToHitChance', 'minRange', 'maxRange', 'fireRate', 'overrideActionPoint', 'overrideDamageToWeaponMult', 'attackShotsPerSec', 'reloadTime', 'jamTime', 'criticalDamage', 'criticalMultiplier'), } self.aliases = aliases or {} #--For aliasing mod names | 4622a6ad9f59573f800bb5d7e7793732bf2bbd27 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/4622a6ad9f59573f800bb5d7e7793732bf2bbd27/bosh.py |
'health','damage',('attributes',[0]*7)), | 'health','damage','strength','perception','endurance','charisma','intelligence','agility','luck'), | # def loadData(self,record,ins,type,size,readId): | 7a359835a4212bdb4f06c4ab4dce9b139456ce1c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/7a359835a4212bdb4f06c4ab4dce9b139456ce1c/bosh.py |
(FID,'soundCountDown',0),(FID,'soundDisable',0),(FID,'defaultWeaponSource',0.00000)), | (FID,'soundCountDown',0),(FID,'soundDisable',0),(FID,'defaultWeaponSource',0)), | def loadData(self,record,ins,type,size,readId): if size == 48: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 40: unpacked = ins.unpack('10I',size,readId) elif size == 36: unpacked = ins.unpack('9I',size,readId) else: raise "Unexpected size encountered for IPDS:DATA subrecord: %s" % size unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked | c26aba84f1ae769af977efd1b5e6e436795819fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/c26aba84f1ae769af977efd1b5e6e436795819fb/bosh.py |
def loadData(self,record,ins,type,size,readId): if size == 48: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 40: unpacked = ins.unpack('10I',size,readId) elif size == 36: unpacked = ins.unpack('9I',size,readId) else: raise "Unexpected size encountered for IPDS:DATA subrecord: %s" % size unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked | c26aba84f1ae769af977efd1b5e6e436795819fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/c26aba84f1ae769af977efd1b5e6e436795819fb/bosh.py |
||
MelModel(), MelString('ICON','iconPath'), MelString('MICO','mico'), | MelGroup('model', MelString('MODL','modPath'), MelBase('MODT','modt_p'), MelGroups('alternateTextures', MelBase('MODS','mods_p') ), MelOptStruct('MODD','B','facegenModelFlag')), MelGroup('icon', MelString('ICON','iconPath'), MelString('MICO','mico') ), | def loadData(self,record,ins,type,size,readId): if size == 102: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 86: #--Else 86 byte record (skips dispVelocity, #-- dispFalloff, dispDampner, dispSize, and damage #-- Two junk? bytes are tacked onto the end #-- Hex editing and the CS confirms that it is NOT #-- damage, so it is probably just filler unpacked = ins.unpack('11f3Bs3Bs3BsB3s6f2s',size,readId) elif size == 62: #--Else 62 byte record (skips most everything #-- Two junk? bytes are tacked onto the end #-- No testing done, but assumed that its the same as the #-- previous truncated record. unpacked = ins.unpack('11f3Bs3Bs3BsB3s2s',size,readId) elif size == 42: #--Else 42 byte record (skips most everything #-- Two junk? bytes are tacked onto the end #-- No testing done, but assumed that its the same as the #-- previous truncated record. unpacked = ins.unpack('10f2s',size,readId) elif size == 2: #--Else 2 byte record (skips everything #-- Two junk? bytes are tacked onto the end #-- No testing done, but assumed that its the same as the #-- previous truncated record. unpacked = ins.unpack('2s',size,readId) else: raise "Unexpected size encountered for WATR subrecord: %s" % size unpacked = unpacked[:-1] unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked | ec436cca9d8872ad29348c1e128d6ab64bbcc1c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/ec436cca9d8872ad29348c1e128d6ab64bbcc1c9/bosh.py |
MelFid('REPL','repairList'), | MelFidList('REPL','repairList'), | def loadData(self,record,ins,type,size,readId): if size == 102: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 86: #--Else 86 byte record (skips dispVelocity, #-- dispFalloff, dispDampner, dispSize, and damage #-- Two junk? bytes are tacked onto the end #-- Hex editing and the CS confirms that it is NOT #-- damage, so it is probably just filler unpacked = ins.unpack('11f3Bs3Bs3BsB3s6f2s',size,readId) elif size == 62: #--Else 62 byte record (skips most everything #-- Two junk? bytes are tacked onto the end #-- No testing done, but assumed that its the same as the #-- previous truncated record. unpacked = ins.unpack('11f3Bs3Bs3BsB3s2s',size,readId) elif size == 42: #--Else 42 byte record (skips most everything #-- Two junk? bytes are tacked onto the end #-- No testing done, but assumed that its the same as the #-- previous truncated record. unpacked = ins.unpack('10f2s',size,readId) elif size == 2: #--Else 2 byte record (skips everything #-- Two junk? bytes are tacked onto the end #-- No testing done, but assumed that its the same as the #-- previous truncated record. unpacked = ins.unpack('2s',size,readId) else: raise "Unexpected size encountered for WATR subrecord: %s" % size unpacked = unpacked[:-1] unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked | ec436cca9d8872ad29348c1e128d6ab64bbcc1c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/ec436cca9d8872ad29348c1e128d6ab64bbcc1c9/bosh.py |
MelOptStruct('ANAM','H','enchantPoints'), MelStruct('DATA','I2f3IfH','weaponType','speed','reach',(_flags,'flags',0L), 'value','health','weight','damage'), | MelFid('EFSD','scopeEffect'), MelFid('NNAM','embeddedWeaponNode'), MelFid('INAM','impactDataset'), MelFid('WNAM','firstPersonModel'), MelFid('SNAM','soundGunShot3D'), MelFid('XNAM','soundGunShot2D'), MelFid('NAM7','soundGunShot3DLooping'), MelFid('TNAM','soundMeleeSwingGunNoAmmo'), MelFid('NAM6','soundBlock'), MelFid('UNAM','idle'), MelFid('NAM9','equip'), MelFid('NAM8','unequip'), MelStruct('DATA','2IfHB','value','health','weight','damage','clipsize'), MelBase('DNAM','_dnam'), MelBase('CRDT','_crdt'), MelBase('VNAM','_vnam','sountLevel'), | def loadData(self,record,ins,type,size,readId): if size == 102: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 86: #--Else 86 byte record (skips dispVelocity, #-- dispFalloff, dispDampner, dispSize, and damage #-- Two junk? bytes are tacked onto the end #-- Hex editing and the CS confirms that it is NOT #-- damage, so it is probably just filler unpacked = ins.unpack('11f3Bs3Bs3BsB3s6f2s',size,readId) elif size == 62: #--Else 62 byte record (skips most everything #-- Two junk? bytes are tacked onto the end #-- No testing done, but assumed that its the same as the #-- previous truncated record. unpacked = ins.unpack('11f3Bs3Bs3BsB3s2s',size,readId) elif size == 42: #--Else 42 byte record (skips most everything #-- Two junk? bytes are tacked onto the end #-- No testing done, but assumed that its the same as the #-- previous truncated record. unpacked = ins.unpack('10f2s',size,readId) elif size == 2: #--Else 2 byte record (skips everything #-- Two junk? bytes are tacked onto the end #-- No testing done, but assumed that its the same as the #-- previous truncated record. unpacked = ins.unpack('2s',size,readId) else: raise "Unexpected size encountered for WATR subrecord: %s" % size unpacked = unpacked[:-1] unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked | ec436cca9d8872ad29348c1e128d6ab64bbcc1c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/ec436cca9d8872ad29348c1e128d6ab64bbcc1c9/bosh.py |
id_data[fid] = dict((attr,record.__getattribute__(attr)) for attr in recAttrs) | temp_id_data[fid] = dict((attr,record.__getattribute__(attr)) for attr in recAttrs) for master in masters: if not master in modInfos: continue if master in cachedMasters: masterFile = cachedMasters[master] else: masterInfo = modInfos[master] masterFile = ModFile(masterInfo,loadFactory) masterFile.load(True) masterFile.convertToLongFids(longTypes) cachedMasters[master] = masterFile mapper = masterFile.getLongMapper() for recClass,recAttrs in recAttrs_class.iteritems(): if recClass.classType not in masterFile.tops: continue if recClass not in self.classestemp: continue for record in masterFile.tops[recClass.classType].getActiveRecords(): fid = mapper(record.fid) if fid not in temp_id_data: continue for attr, value in temp_id_data[fid].iteritems(): if value == record.__getattribute__(attr): continue else: if fid not in id_data: id_data[fid] = dict() try: id_data[fid][attr] = temp_id_data[fid][attr] except KeyError: id_data[fid].setdefault(attr,value) | def initData(self,progress): """Get graphics from source files.""" if not self.isActive: return id_data = self.id_data recAttrs_class = self.recAttrs_class loadFactory = LoadFactory(False,*recAttrs_class.keys()) longTypes = self.longTypes & set(x.classType for x in self.recAttrs_class) progress.setFull(len(self.sourceMods)) for index,srcMod in enumerate(self.sourceMods): if srcMod not in modInfos: continue srcInfo = modInfos[srcMod] srcFile = ModFile(srcInfo,loadFactory) srcFile.load(True) srcFile.convertToLongFids(longTypes) mapper = srcFile.getLongMapper() for recClass,recAttrs in recAttrs_class.iteritems(): if recClass.classType not in srcFile.tops: continue self.srcClasses.add(recClass) for record in srcFile.tops[recClass.classType].getActiveRecords(): fid = mapper(record.fid) id_data[fid] = dict((attr,record.__getattribute__(attr)) for attr in recAttrs) progress.plus() self.longTypes = self.longTypes & set(x.classType for x in self.srcClasses) self.isActive = bool(self.srcClasses) | 71ba0f617496acea9c633a3b0ab4532794a926b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/71ba0f617496acea9c633a3b0ab4532794a926b1/bosh.py |
deprint(recClass,type,type_count[type]) | def buildPatch(self,log,progress): """Merge last version of record with patched destructable data as needed.""" if not self.isActive: return modFile = self.patchFile keep = self.patchFile.getKeeper() id_data = self.id_data type_count = {} for recClass in self.srcClasses: type = recClass.classType if type not in modFile.tops: continue type_count[type] = 0 deprint(recClass,type,type_count[type]) for record in modFile.tops[type].records: fid = record.fid if fid not in id_data: continue for attr,value in id_data[fid].iteritems(): if record.__getattribute__(attr) != value: break else: continue for attr,value in id_data[fid].iteritems(): record.__setattr__(attr,value) keep(fid) type_count[type] += 1 log.setHeader('= '+self.__class__.name) log(_("=== Source Mods")) for mod in self.sourceMods: log("* " +mod.s) log(_("\n=== Modified Records")) for type,count in sorted(type_count.items()): if count: log("* %s: %d" % (type,count)) | 71ba0f617496acea9c633a3b0ab4532794a926b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/71ba0f617496acea9c633a3b0ab4532794a926b1/bosh.py |
|
for type,count in sorted(type_count.items()): | for type,count in sorted(type_count.iteritems()): | def buildPatch(self,log,progress): """Merge last version of record with patched destructable data as needed.""" if not self.isActive: return modFile = self.patchFile keep = self.patchFile.getKeeper() id_data = self.id_data type_count = {} for recClass in self.srcClasses: type = recClass.classType if type not in modFile.tops: continue type_count[type] = 0 deprint(recClass,type,type_count[type]) for record in modFile.tops[type].records: fid = record.fid if fid not in id_data: continue for attr,value in id_data[fid].iteritems(): if record.__getattribute__(attr) != value: break else: continue for attr,value in id_data[fid].iteritems(): record.__setattr__(attr,value) keep(fid) type_count[type] += 1 log.setHeader('= '+self.__class__.name) log(_("=== Source Mods")) for mod in self.sourceMods: log("* " +mod.s) log(_("\n=== Modified Records")) for type,count in sorted(type_count.items()): if count: log("* %s: %d" % (type,count)) | 71ba0f617496acea9c633a3b0ab4532794a926b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/71ba0f617496acea9c633a3b0ab4532794a926b1/bosh.py |
MelString('ICON','iconPath'), | MelString('ICON','largeIconPath'), MelString('MICO','smallIconPath'), | def loadData(self,record,ins,type,size,readId): if size == 72: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 36: #--Else is data for DARK record, read it all. unpacked = ins.unpack('IfIiiH2sIfI',size,readId) else: raise "Unexpected size encountered for MGEF:DATA subrecord: %s" % size unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked | 41df7b61da65d4c96bce29e2854fe36f4ce9c676 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/41df7b61da65d4c96bce29e2854fe36f4ce9c676/bosh.py |
MelBase('DEST','_dest'), MelBase('DSTD','_dstd'), MelBase('DSTF','_dstf'), MelString('MICO','mico'), | def loadData(self,record,ins,type,size,readId): if size == 72: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 36: #--Else is data for DARK record, read it all. unpacked = ins.unpack('IfIiiH2sIfI',size,readId) else: raise "Unexpected size encountered for MGEF:DATA subrecord: %s" % size unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked | 41df7b61da65d4c96bce29e2854fe36f4ce9c676 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/41df7b61da65d4c96bce29e2854fe36f4ce9c676/bosh.py |
|
def loadData(self,record,ins,type,size,readId): if size == 52: MelStruct.loadData(self,record,ins,type,size,readId) return #--Else 42 byte record (skips trainSkill, trainLevel,unused1... unpacked = ins.unpack('2iI7i2I',size,readId) unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked, record.flags.getTrueAttrs() | cca41469e809734b99e368ce8d5b4ec2b829aab5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/cca41469e809734b99e368ce8d5b4ec2b829aab5/bosh.py |
||
(4,'ingredients'), | (4,'foods'), (5,'chems'), (6,'stimpacks'), | def loadData(self,record,ins,type,size,readId): if size == 52: MelStruct.loadData(self,record,ins,type,size,readId) return #--Else 42 byte record (skips trainSkill, trainLevel,unused1... unpacked = ins.unpack('2iI7i2I',size,readId) unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked, record.flags.getTrueAttrs() | cca41469e809734b99e368ce8d5b4ec2b829aab5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/cca41469e809734b99e368ce8d5b4ec2b829aab5/bosh.py |
(8,'apparatus'), | def loadData(self,record,ins,type,size,readId): if size == 52: MelStruct.loadData(self,record,ins,type,size,readId) return #--Else 42 byte record (skips trainSkill, trainLevel,unused1... unpacked = ins.unpack('2iI7i2I',size,readId) unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked, record.flags.getTrueAttrs() | cca41469e809734b99e368ce8d5b4ec2b829aab5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/cca41469e809734b99e368ce8d5b4ec2b829aab5/bosh.py |
|
(11,'spells'), (12,'magicItems'), | def loadData(self,record,ins,type,size,readId): if size == 52: MelStruct.loadData(self,record,ins,type,size,readId) return #--Else 42 byte record (skips trainSkill, trainLevel,unused1... unpacked = ins.unpack('2iI7i2I',size,readId) unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked, record.flags.getTrueAttrs() | cca41469e809734b99e368ce8d5b4ec2b829aab5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/cca41469e809734b99e368ce8d5b4ec2b829aab5/bosh.py |
|
MelStruct('ACBS','=I3Hh2H', (_flags,'flags',0L),'baseSpell','fatigue','barterGold', ('level',1),'calcMin','calcMax'), | MelStruct('ACBS','=I2Hh3Hf2H', (_flags,'flags',0L),'fatigue','barterGold', ('level',1),'calcMin','calcMax','speedMultiplier','karma','dispotionBase','templateFlags'), | def loadData(self,record,ins,type,size,readId): if size == 52: MelStruct.loadData(self,record,ins,type,size,readId) return #--Else 42 byte record (skips trainSkill, trainLevel,unused1... unpacked = ins.unpack('2iI7i2I',size,readId) unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked, record.flags.getTrueAttrs() | cca41469e809734b99e368ce8d5b4ec2b829aab5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/cca41469e809734b99e368ce8d5b4ec2b829aab5/bosh.py |
MelStructs('CNTO','Ii','items',(FID,'item',None),('count',1)), MelStruct('AIDT','=4BIbB2s', ('aggression',5),('confidence',50),('energyLevel',50),('responsibility',50), (aiService,'services',0L),'trainSkill','trainLevel',('unused1',null2)), | MelGroups('items', MelStruct('CNTO','Ii',(FID,'item',None),('count',1)), MelOptStruct('COED','IIf',(FID,'owner',None),(FID,'glob',None),('condition',1.0)), ), MelStruct('AIDT','=5B2I3Bi', ('aggression',5),('confidence',50),('energyLevel',50),('responsibility',50),('mood',0L), (aiService,'services',0L),(aiTeaches,'teaches',0L),'trainLevel','assistance', 'aggroRadiusBehavior','aggroRadius'), | def loadData(self,record,ins,type,size,readId): if size == 52: MelStruct.loadData(self,record,ins,type,size,readId) return #--Else 42 byte record (skips trainSkill, trainLevel,unused1... unpacked = ins.unpack('2iI7i2I',size,readId) unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked, record.flags.getTrueAttrs() | cca41469e809734b99e368ce8d5b4ec2b829aab5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/cca41469e809734b99e368ce8d5b4ec2b829aab5/bosh.py |
MelStruct('DATA','=5BsH2sH8B','creatureType','combat','magic','stealth', 'soul',('unused2',null1),'health',('unused3',null2),'attackDamage','strength', 'intelligence','willpower','agility','speed','endurance', 'personality','luck'), | MelStruct('DATA','=4BIH7B','type','combatSkill','magicSkill','StealthSkill', 'health','damage',('attributes',[0]*7)), | def loadData(self,record,ins,type,size,readId): if size == 52: MelStruct.loadData(self,record,ins,type,size,readId) return #--Else 42 byte record (skips trainSkill, trainLevel,unused1... unpacked = ins.unpack('2iI7i2I',size,readId) unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked, record.flags.getTrueAttrs() | cca41469e809734b99e368ce8d5b4ec2b829aab5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/cca41469e809734b99e368ce8d5b4ec2b829aab5/bosh.py |
MelString('NAM0','bloodSprayPath'), MelString('NAM1','bloodDecalPath'), | MelStruct('NAM4','I',('impactMaterialType',0L)), MelStruct('NAM5','I',('soundLevel',0L)), | def loadData(self,record,ins,type,size,readId): if size == 52: MelStruct.loadData(self,record,ins,type,size,readId) return #--Else 42 byte record (skips trainSkill, trainLevel,unused1... unpacked = ins.unpack('2iI7i2I',size,readId) unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked, record.flags.getTrueAttrs() | cca41469e809734b99e368ce8d5b4ec2b829aab5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/cca41469e809734b99e368ce8d5b4ec2b829aab5/bosh.py |
potions[longid] = (eid,) + tuple(func(field) for func,field in | alch[longid] = (eid,) + tuple(func(field) for func,field in | def readFromText(self,textPath): """Reads stats from specified text file.""" alch, ammo, armor, books, ingredients, keys, lights, misc, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','ARMO','BOOK','INGR','KEYM','LIGH','MISC','WEAP')] aliases = self.aliases ins = bolt.CsvReader(textPath) pack,unpack = struct.pack,struct.unpack sfloat = lambda a: unpack('f',pack('f',float(a)))[0] #--Force standard precision for fields in ins: if len(fields) < 3 or fields[2][:2] != '0x': continue type,modName,objectStr,eid = fields[0:4] modName = GPath(modName) longid = (GPath(aliases.get(modName,modName)),int(objectStr[2:],16)) if type == 'ALCH': potions[longid] = (eid,) + tuple(func(field) for func,field in #--(weight, value) zip((sfloat,int),fields[4:6])) elif type == 'AMMO': ammo[longid] = (eid,) + tuple(func(field) for func,field in #--(speed, value, clipRounds) zip((sfloat,int,int),fields[4:7])) elif type == 'ARMO': armor[longid] = (eid,) + tuple(func(field) for func,field in #--(weight, value, health, ar) zip((sfloat,int,int,int),fields[4:8])) elif type == 'BOOK': books[longid] = (eid,) + tuple(func(field) for func,field in #--(weight, value) zip((sfloat,int),fields[4:6])) elif type == 'INGR': ingredients[longid] = (eid,) + tuple(func(field) for func,field in #--(weight, value) zip((sfloat,int),fields[4:6])) elif type == 'KEYM': keys[longid] = (eid,) + tuple(func(field) for func,field in #--(weight, value) zip((sfloat,int),fields[4:6])) elif type == 'LIGH': lights[longid] = (eid,) + tuple(func(field) for func,field in #--(weight, value, duration) zip((sfloat,int,int),fields[4:7])) elif type == 'MISC': misc[longid] = (eid,) + tuple(func(field) for func,field in #--(weight, value) zip((sfloat,int),fields[4:6])) elif type == 'WEAP': weapons[longid] = (eid,) + tuple(func(field) for func,field in #--(weight, value, health, damage, clipsize, #-- reach, ammoUse, minSpread, spread, sightFov, baseVatsToHitChance, projectileCount, #-- minRange, maxRange, fireRate, overrideActionPoint, rumbleLeftMotorStrength, #-- rumbleRightMotorStrength, rumbleDuration, overrideDamageToWeaponMult, attackShotsPerSec, #-- reloadTime, jamTime, aimArc, rambleWavelangth, limbDmgMult, sightUsage, #-- semiAutomaticFireDelayMin, semiAutomaticFireDelayMax, criticalDamage, criticalMultiplier) zip((sfloat,int,int,int,int, sfloat,int,sfloat,sfloat,sfloat,int,int, sfloat,sfloat,sfloat,sfloat,sfloat, sfloat,sfloat,sfloat,sfloat, sfloat,sfloat,sfloat,sfloat,sfloat,sfloat, sfloat,sfloat,int,sfloat),fields[4:35])) ins.close() | 1b871cebfda4530e6e89778652b04250651add47 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1b871cebfda4530e6e89778652b04250651add47/bosh.py |
_("Removes unpleasant auto aim."), | _("Increase Auto Aim settings to a level at which Snipers can benefit from them."), | def buildPatch(self,patchFile,keep,log): """Build patch.""" eids = ((self.key,),self.key)[isinstance(self.key,tuple)] for eid,value in zip(eids,self.choiceValues[self.chosen]): gmst = MreGmst(('GMST',0,0,0,0,0)) gmst.eid,gmst.value,gmst.longFids = eid,value,True fid = gmst.fid = keep(gmst.getFallout3Fid()) patchFile.GMST.setRecord(gmst) if len(self.choiceLabels) > 1: if self.choiceLabels[self.chosen].startswith('Custom'): log('* %s: %s %4.2f' % (self.label,self.choiceLabels[self.chosen],self.choiceValues[self.chosen][0])) else: log('* %s: %s' % (self.label,self.choiceLabels[self.chosen])) else: log('* ' + self.label) | 8c05525dc7e5c2eea802579cc551ff17af4f375b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/8c05525dc7e5c2eea802579cc551ff17af4f375b/bosh.py |
if form1234[2] == 'I': | if len(form1234) > 2 and form1234[2] == 'I': | def mapFids(self,record,function,save=False): """Applies function to fids. If save is true, then fid is set to result of function.""" for target in record.conditions: form1234 = target.form1234 if form1234[0] == 'I': result = function(target.param1) if save: target.param1 = result if form1234[1] == 'I': result = function(target.param2) if save: target.param2 = result if form1234[2] == 'I': result = function(target.param3) if save: target.param3 = result if form1234[3] == 'I': result = function(target.param4) if save: target.param4 = result | f7657b46c1cc4c0ebe998d470c2afc1743ac92de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/f7657b46c1cc4c0ebe998d470c2afc1743ac92de/bosh.py |
if form1234[3] == 'I': | if len(form1234) > 3 and form1234[3] == 'I': | def mapFids(self,record,function,save=False): """Applies function to fids. If save is true, then fid is set to result of function.""" for target in record.conditions: form1234 = target.form1234 if form1234[0] == 'I': result = function(target.param1) if save: target.param1 = result if form1234[1] == 'I': result = function(target.param2) if save: target.param2 = result if form1234[2] == 'I': result = function(target.param3) if save: target.param3 = result if form1234[3] == 'I': result = function(target.param4) if save: target.param4 = result | f7657b46c1cc4c0ebe998d470c2afc1743ac92de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/f7657b46c1cc4c0ebe998d470c2afc1743ac92de/bosh.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.