2
0

PageDownloadInstall.cs 129 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002
  1. using System;
  2. using System.CodeDom.Compiler;
  3. using System.Collections.Generic;
  4. using System.Collections.ObjectModel;
  5. using System.ComponentModel;
  6. using System.Linq;
  7. using System.Runtime.CompilerServices;
  8. using System.Threading;
  9. using System.Windows;
  10. using System.Windows.Controls;
  11. using System.Windows.Data;
  12. using System.Windows.Input;
  13. using System.Windows.Markup;
  14. using System.Windows.Media;
  15. using System.Windows.Shapes;
  16. using Microsoft.VisualBasic.CompilerServices;
  17. using Newtonsoft.Json.Linq;
  18. namespace PCL
  19. {
  20. // Token: 0x020000E2 RID: 226
  21. [DesignerGenerated]
  22. public class PageDownloadInstall : MyPageRight, IComponentConnector
  23. {
  24. // Token: 0x0600073C RID: 1852 RVA: 0x0003F2B8 File Offset: 0x0003D4B8
  25. public PageDownloadInstall()
  26. {
  27. base.Initialized += delegate(object sender, EventArgs e)
  28. {
  29. this.LoaderInit();
  30. };
  31. base.Loaded += delegate(object sender, RoutedEventArgs e)
  32. {
  33. this.Init();
  34. };
  35. this.m_DefinitionField = false;
  36. this.strategyField = false;
  37. this.m_ProcField = false;
  38. this.readerReader = null;
  39. this.m_ClientReader = null;
  40. this._ConfigReader = null;
  41. this.m_TestsReader = null;
  42. this.m_MapperReader = null;
  43. this.m_ThreadReader = null;
  44. this._PropertyReader = null;
  45. this.composerReader = false;
  46. this.iteratorReader = false;
  47. this.m_RepositoryReader = false;
  48. this._ContextReader = false;
  49. this._SpecificationReader = false;
  50. this.InitializeComponent();
  51. }
  52. // Token: 0x0600073D RID: 1853 RVA: 0x0003F360 File Offset: 0x0003D560
  53. private void LoaderInit()
  54. {
  55. base.PageLoaderInit(this.LoadMinecraft, this.PanLoad, this.PanBack, null, ModDownload.accountTests, delegate(ModLoader.LoaderBase a0)
  56. {
  57. this.LoadMinecraft_OnFinish();
  58. }, null, true);
  59. }
  60. // Token: 0x0600073E RID: 1854 RVA: 0x0003F39C File Offset: 0x0003D59C
  61. private void Init()
  62. {
  63. this.PanBack.ScrollToHome();
  64. ModDownload.m_ModelTests.Start(null, false);
  65. ModDownload._FacadeTests.Start(null, false);
  66. ModDownload.authenticationTests.Start(null, false);
  67. ModDownload.m_AnnotationTests.Start(null, false);
  68. this.TextSelectName.ValidateRules = new Collection<Validate>
  69. {
  70. new ValidateFolderName(ModMinecraft.m_ProxyTests + "versions", true, true)
  71. };
  72. this.TextSelectName.Validate();
  73. this.SelectReload();
  74. if (!this.m_DefinitionField)
  75. {
  76. this.m_DefinitionField = true;
  77. ModDownloadLib.McDownloadForgeRecommendedRefresh();
  78. this.LoadOptiFine.State = ModDownload.m_ModelTests;
  79. this.LoadLiteLoader.State = ModDownload._FacadeTests;
  80. this.LoadFabric.State = ModDownload.authenticationTests;
  81. this.LoadFabricApi.State = ModDownload.mappingTests;
  82. this.LoadNeoForge.State = ModDownload.m_AnnotationTests;
  83. this.LoadOptiFabric.State = ModDownload.tokenizerTests;
  84. }
  85. }
  86. // Token: 0x0600073F RID: 1855 RVA: 0x0003F498 File Offset: 0x0003D698
  87. private void EnterSelectPage()
  88. {
  89. if (!this.strategyField)
  90. {
  91. this.strategyField = true;
  92. this._ContextReader = false;
  93. this._SpecificationReader = false;
  94. this.iteratorReader = false;
  95. this.PanSelect.Visibility = Visibility.Visible;
  96. this.PanSelect.IsHitTestVisible = true;
  97. this.PanMinecraft.IsHitTestVisible = false;
  98. this.PanBack.IsHitTestVisible = false;
  99. this.PanBack.ScrollToHome();
  100. this.CardMinecraft.IsSwaped = true;
  101. this.CardOptiFine.IsSwaped = true;
  102. this.CardLiteLoader.IsSwaped = true;
  103. this.CardForge.IsSwaped = true;
  104. this.CardNeoForge.IsSwaped = true;
  105. this.CardFabric.IsSwaped = true;
  106. this.CardFabricApi.IsSwaped = true;
  107. this.CardOptiFabric.IsSwaped = true;
  108. if (Conversions.ToBoolean(Operators.NotObject(ModBase.m_IdentifierRepository.Get("HintInstallBack", null))))
  109. {
  110. ModBase.m_IdentifierRepository.Set("HintInstallBack", true, false, null);
  111. ModMain.Hint("点击 Minecraft 项即可返回游戏主版本选择页面!", ModMain.HintType.Info, true);
  112. }
  113. try
  114. {
  115. foreach (FrameworkElement frameworkElement in base.GetAllAnimControls(this.PanSelect, false))
  116. {
  117. frameworkElement.Opacity = 1.0;
  118. frameworkElement.RenderTransform = new TranslateTransform();
  119. }
  120. }
  121. finally
  122. {
  123. List<FrameworkElement>.Enumerator enumerator;
  124. ((IDisposable)enumerator).Dispose();
  125. }
  126. if (this.parserReader.StartsWith("1."))
  127. {
  128. ModLoader.LoaderTask<string, List<ModDownload.DlForgeVersionEntry>> loaderTask = new ModLoader.LoaderTask<string, List<ModDownload.DlForgeVersionEntry>>("DlForgeVersion " + this.parserReader, new Action<ModLoader.LoaderTask<string, List<ModDownload.DlForgeVersionEntry>>>(ModDownload.DlForgeVersionMain), null, ThreadPriority.Normal);
  129. this.LoadForge.State = loaderTask;
  130. loaderTask.Start(this.parserReader, false);
  131. }
  132. ModDownload.mappingTests.Start(null, false);
  133. ModDownload.tokenizerTests.Start(null, false);
  134. ModAnimation.AniStart(new ModAnimation.AniData[]
  135. {
  136. ModAnimation.AaOpacity(this.PanMinecraft, -this.PanMinecraft.Opacity, 100, 10, null, false),
  137. ModAnimation.AaTranslateX(this.PanMinecraft, -50.0 - ((TranslateTransform)this.PanMinecraft.RenderTransform).X, 110, 10, null, false),
  138. ModAnimation.AaCode(delegate
  139. {
  140. this.PanBack.ScrollToHome();
  141. this.TextSelectName.Validate();
  142. this.OptiFine_Loaded();
  143. this.LiteLoader_Loaded();
  144. this.Forge_Loaded();
  145. this.NeoForge_Loaded();
  146. this.Fabric_Loaded();
  147. this.FabricApi_Loaded();
  148. this.OptiFabric_Loaded();
  149. this.SelectReload();
  150. }, 0, true),
  151. ModAnimation.AaOpacity(this.PanSelect, 1.0 - this.PanSelect.Opacity, 250, 150, null, false),
  152. ModAnimation.AaTranslateX(this.PanSelect, -((TranslateTransform)this.PanSelect.RenderTransform).X, 500, 150, new ModAnimation.AniEaseOutBack(ModAnimation.AniEasePower.Weak), false),
  153. ModAnimation.AaCode(delegate
  154. {
  155. this.PanMinecraft.Visibility = Visibility.Collapsed;
  156. this.PanBack.IsHitTestVisible = true;
  157. if (!this.m_ProcField)
  158. {
  159. this.m_ProcField = true;
  160. this.BtnOptiFineClearInner.SetBinding(Shape.FillProperty, new Binding("Foreground")
  161. {
  162. Source = this.CardOptiFine.RestartParser(),
  163. Mode = BindingMode.OneWay
  164. });
  165. this.BtnLiteLoaderClearInner.SetBinding(Shape.FillProperty, new Binding("Foreground")
  166. {
  167. Source = this.CardLiteLoader.RestartParser(),
  168. Mode = BindingMode.OneWay
  169. });
  170. this.BtnForgeClearInner.SetBinding(Shape.FillProperty, new Binding("Foreground")
  171. {
  172. Source = this.CardForge.RestartParser(),
  173. Mode = BindingMode.OneWay
  174. });
  175. this.BtnNeoForgeClearInner.SetBinding(Shape.FillProperty, new Binding("Foreground")
  176. {
  177. Source = this.CardNeoForge.RestartParser(),
  178. Mode = BindingMode.OneWay
  179. });
  180. this.BtnFabricClearInner.SetBinding(Shape.FillProperty, new Binding("Foreground")
  181. {
  182. Source = this.CardFabric.RestartParser(),
  183. Mode = BindingMode.OneWay
  184. });
  185. this.BtnFabricApiClearInner.SetBinding(Shape.FillProperty, new Binding("Foreground")
  186. {
  187. Source = this.CardFabricApi.RestartParser(),
  188. Mode = BindingMode.OneWay
  189. });
  190. this.BtnOptiFabricClearInner.SetBinding(Shape.FillProperty, new Binding("Foreground")
  191. {
  192. Source = this.CardOptiFabric.RestartParser(),
  193. Mode = BindingMode.OneWay
  194. });
  195. }
  196. }, 0, true)
  197. }, "FrmDownloadInstall SelectPageSwitch", true);
  198. }
  199. }
  200. // Token: 0x06000740 RID: 1856 RVA: 0x0003F778 File Offset: 0x0003D978
  201. public void ExitSelectPage()
  202. {
  203. if (this.strategyField)
  204. {
  205. this.strategyField = false;
  206. this.SelectClear();
  207. this.PanMinecraft.Visibility = Visibility.Visible;
  208. this.PanSelect.IsHitTestVisible = false;
  209. this.PanMinecraft.IsHitTestVisible = true;
  210. this.PanBack.IsHitTestVisible = false;
  211. this.PanBack.ScrollToHome();
  212. ModAnimation.AniStart(new ModAnimation.AniData[]
  213. {
  214. ModAnimation.AaOpacity(this.PanSelect, -this.PanSelect.Opacity, 90, 10, null, false),
  215. ModAnimation.AaTranslateX(this.PanSelect, 50.0 - ((TranslateTransform)this.PanSelect.RenderTransform).X, 100, 10, null, false),
  216. ModAnimation.AaCode(delegate
  217. {
  218. this.PanBack.ScrollToHome();
  219. }, 0, true),
  220. ModAnimation.AaOpacity(this.PanMinecraft, 1.0 - this.PanMinecraft.Opacity, 150, 100, null, false),
  221. ModAnimation.AaTranslateX(this.PanMinecraft, -((TranslateTransform)this.PanMinecraft.RenderTransform).X, 400, 100, new ModAnimation.AniEaseOutBack(ModAnimation.AniEasePower.Weak), false),
  222. ModAnimation.AaCode(delegate
  223. {
  224. this.PanSelect.Visibility = Visibility.Collapsed;
  225. this.PanBack.IsHitTestVisible = true;
  226. }, 0, true)
  227. }, "FrmDownloadInstall SelectPageSwitch", false);
  228. }
  229. }
  230. // Token: 0x06000741 RID: 1857 RVA: 0x0003F8E0 File Offset: 0x0003DAE0
  231. public void MinecraftSelected(MyListItem sender, MouseButtonEventArgs e)
  232. {
  233. this.parserReader = sender.Title;
  234. this.m_BroadcasterReader = NewLateBinding.LateIndexGet(sender.Tag, new object[]
  235. {
  236. "url"
  237. }, null).ToString();
  238. this._FieldReader = sender.Logo;
  239. this.EnterSelectPage();
  240. }
  241. // Token: 0x06000742 RID: 1858 RVA: 0x00005B8E File Offset: 0x00003D8E
  242. private void CardMinecraft_PreviewSwap(object sender, ModBase.RouteEventArgs e)
  243. {
  244. this.ExitSelectPage();
  245. e.m_SerializerError = true;
  246. }
  247. // Token: 0x06000743 RID: 1859 RVA: 0x0003F930 File Offset: 0x0003DB30
  248. private void SetOptiFineInfoShow(string IsShow)
  249. {
  250. if (!Operators.ConditionalCompareObjectEqual(this.PanOptiFineInfo.Tag, IsShow, false))
  251. {
  252. this.PanOptiFineInfo.Tag = IsShow;
  253. if (Operators.CompareString(IsShow, "True", false) == 0)
  254. {
  255. ModAnimation.AniStart(new ModAnimation.AniData[]
  256. {
  257. ModAnimation.AaTranslateY(this.PanOptiFineInfo, -((TranslateTransform)this.PanOptiFineInfo.RenderTransform).Y, 270, 100, new ModAnimation.AniEaseOutBack(ModAnimation.AniEasePower.Middle), false),
  258. ModAnimation.AaOpacity(this.PanOptiFineInfo, 1.0 - this.PanOptiFineInfo.Opacity, 100, 90, null, false)
  259. }, "SetOptiFineInfoShow", false);
  260. return;
  261. }
  262. ModAnimation.AniStart(new ModAnimation.AniData[]
  263. {
  264. ModAnimation.AaTranslateY(this.PanOptiFineInfo, 6.0 - ((TranslateTransform)this.PanOptiFineInfo.RenderTransform).Y, 200, 0, null, false),
  265. ModAnimation.AaOpacity(this.PanOptiFineInfo, -this.PanOptiFineInfo.Opacity, 100, 0, null, false)
  266. }, "SetOptiFineInfoShow", false);
  267. }
  268. }
  269. // Token: 0x06000744 RID: 1860 RVA: 0x0003FA50 File Offset: 0x0003DC50
  270. private void SetLiteLoaderInfoShow(string IsShow)
  271. {
  272. if (!Operators.ConditionalCompareObjectEqual(this.PanLiteLoaderInfo.Tag, IsShow, false))
  273. {
  274. this.PanLiteLoaderInfo.Tag = IsShow;
  275. if (Operators.CompareString(IsShow, "True", false) == 0)
  276. {
  277. ModAnimation.AniStart(new ModAnimation.AniData[]
  278. {
  279. ModAnimation.AaTranslateY(this.PanLiteLoaderInfo, -((TranslateTransform)this.PanLiteLoaderInfo.RenderTransform).Y, 270, 100, new ModAnimation.AniEaseOutBack(ModAnimation.AniEasePower.Middle), false),
  280. ModAnimation.AaOpacity(this.PanLiteLoaderInfo, 1.0 - this.PanLiteLoaderInfo.Opacity, 100, 90, null, false)
  281. }, "SetLiteLoaderInfoShow", false);
  282. return;
  283. }
  284. ModAnimation.AniStart(new ModAnimation.AniData[]
  285. {
  286. ModAnimation.AaTranslateY(this.PanLiteLoaderInfo, 6.0 - ((TranslateTransform)this.PanLiteLoaderInfo.RenderTransform).Y, 200, 0, null, false),
  287. ModAnimation.AaOpacity(this.PanLiteLoaderInfo, -this.PanLiteLoaderInfo.Opacity, 100, 0, null, false)
  288. }, "SetLiteLoaderInfoShow", false);
  289. }
  290. }
  291. // Token: 0x06000745 RID: 1861 RVA: 0x0003FB70 File Offset: 0x0003DD70
  292. private void SetForgeInfoShow(string IsShow)
  293. {
  294. if (!Operators.ConditionalCompareObjectEqual(this.PanForgeInfo.Tag, IsShow, false))
  295. {
  296. this.PanForgeInfo.Tag = IsShow;
  297. if (Operators.CompareString(IsShow, "True", false) == 0)
  298. {
  299. ModAnimation.AniStart(new ModAnimation.AniData[]
  300. {
  301. ModAnimation.AaTranslateY(this.PanForgeInfo, -((TranslateTransform)this.PanForgeInfo.RenderTransform).Y, 270, 100, new ModAnimation.AniEaseOutBack(ModAnimation.AniEasePower.Middle), false),
  302. ModAnimation.AaOpacity(this.PanForgeInfo, 1.0 - this.PanForgeInfo.Opacity, 100, 90, null, false)
  303. }, "SetForgeInfoShow", false);
  304. return;
  305. }
  306. ModAnimation.AniStart(new ModAnimation.AniData[]
  307. {
  308. ModAnimation.AaTranslateY(this.PanForgeInfo, 6.0 - ((TranslateTransform)this.PanForgeInfo.RenderTransform).Y, 200, 0, null, false),
  309. ModAnimation.AaOpacity(this.PanForgeInfo, -this.PanForgeInfo.Opacity, 100, 0, null, false)
  310. }, "SetForgeInfoShow", false);
  311. }
  312. }
  313. // Token: 0x06000746 RID: 1862 RVA: 0x0003FC90 File Offset: 0x0003DE90
  314. private void SetNeoForgeInfoShow(string IsShow)
  315. {
  316. if (!Operators.ConditionalCompareObjectEqual(this.PanNeoForgeInfo.Tag, IsShow, false))
  317. {
  318. this.PanNeoForgeInfo.Tag = IsShow;
  319. if (Operators.CompareString(IsShow, "True", false) == 0)
  320. {
  321. ModAnimation.AniStart(new ModAnimation.AniData[]
  322. {
  323. ModAnimation.AaTranslateY(this.PanNeoForgeInfo, -((TranslateTransform)this.PanNeoForgeInfo.RenderTransform).Y, 270, 100, new ModAnimation.AniEaseOutBack(ModAnimation.AniEasePower.Middle), false),
  324. ModAnimation.AaOpacity(this.PanNeoForgeInfo, 1.0 - this.PanNeoForgeInfo.Opacity, 100, 90, null, false)
  325. }, "SetNeoForgeInfoShow", false);
  326. return;
  327. }
  328. ModAnimation.AniStart(new ModAnimation.AniData[]
  329. {
  330. ModAnimation.AaTranslateY(this.PanNeoForgeInfo, 6.0 - ((TranslateTransform)this.PanNeoForgeInfo.RenderTransform).Y, 200, 0, null, false),
  331. ModAnimation.AaOpacity(this.PanNeoForgeInfo, -this.PanNeoForgeInfo.Opacity, 100, 0, null, false)
  332. }, "SetNeoForgeInfoShow", false);
  333. }
  334. }
  335. // Token: 0x06000747 RID: 1863 RVA: 0x0003FDB0 File Offset: 0x0003DFB0
  336. private void SetFabricInfoShow(string IsShow)
  337. {
  338. if (!Operators.ConditionalCompareObjectEqual(this.PanFabricInfo.Tag, IsShow, false))
  339. {
  340. this.PanFabricInfo.Tag = IsShow;
  341. if (Operators.CompareString(IsShow, "True", false) == 0)
  342. {
  343. ModAnimation.AniStart(new ModAnimation.AniData[]
  344. {
  345. ModAnimation.AaTranslateY(this.PanFabricInfo, -((TranslateTransform)this.PanFabricInfo.RenderTransform).Y, 270, 100, new ModAnimation.AniEaseOutBack(ModAnimation.AniEasePower.Middle), false),
  346. ModAnimation.AaOpacity(this.PanFabricInfo, 1.0 - this.PanFabricInfo.Opacity, 100, 90, null, false)
  347. }, "SetFabricInfoShow", false);
  348. return;
  349. }
  350. ModAnimation.AniStart(new ModAnimation.AniData[]
  351. {
  352. ModAnimation.AaTranslateY(this.PanFabricInfo, 6.0 - ((TranslateTransform)this.PanFabricInfo.RenderTransform).Y, 200, 0, null, false),
  353. ModAnimation.AaOpacity(this.PanFabricInfo, -this.PanFabricInfo.Opacity, 100, 0, null, false)
  354. }, "SetFabricInfoShow", false);
  355. }
  356. }
  357. // Token: 0x06000748 RID: 1864 RVA: 0x0003FED0 File Offset: 0x0003E0D0
  358. private void SetFabricApiInfoShow(string IsShow)
  359. {
  360. if (!Operators.ConditionalCompareObjectEqual(this.PanFabricApiInfo.Tag, IsShow, false))
  361. {
  362. this.PanFabricApiInfo.Tag = IsShow;
  363. if (Operators.CompareString(IsShow, "True", false) == 0)
  364. {
  365. ModAnimation.AniStart(new ModAnimation.AniData[]
  366. {
  367. ModAnimation.AaTranslateY(this.PanFabricApiInfo, -((TranslateTransform)this.PanFabricApiInfo.RenderTransform).Y, 270, 100, new ModAnimation.AniEaseOutBack(ModAnimation.AniEasePower.Middle), false),
  368. ModAnimation.AaOpacity(this.PanFabricApiInfo, 1.0 - this.PanFabricApiInfo.Opacity, 100, 90, null, false)
  369. }, "SetFabricApiInfoShow", false);
  370. return;
  371. }
  372. ModAnimation.AniStart(new ModAnimation.AniData[]
  373. {
  374. ModAnimation.AaTranslateY(this.PanFabricApiInfo, 6.0 - ((TranslateTransform)this.PanFabricApiInfo.RenderTransform).Y, 200, 0, null, false),
  375. ModAnimation.AaOpacity(this.PanFabricApiInfo, -this.PanFabricApiInfo.Opacity, 100, 0, null, false)
  376. }, "SetFabricApiInfoShow", false);
  377. }
  378. }
  379. // Token: 0x06000749 RID: 1865 RVA: 0x0003FFF0 File Offset: 0x0003E1F0
  380. private void SetOptiFabricInfoShow(string IsShow)
  381. {
  382. if (!Operators.ConditionalCompareObjectEqual(this.PanOptiFabricInfo.Tag, IsShow, false))
  383. {
  384. this.PanOptiFabricInfo.Tag = IsShow;
  385. if (Operators.CompareString(IsShow, "True", false) == 0)
  386. {
  387. ModAnimation.AniStart(new ModAnimation.AniData[]
  388. {
  389. ModAnimation.AaTranslateY(this.PanOptiFabricInfo, -((TranslateTransform)this.PanOptiFabricInfo.RenderTransform).Y, 270, 100, new ModAnimation.AniEaseOutBack(ModAnimation.AniEasePower.Middle), false),
  390. ModAnimation.AaOpacity(this.PanOptiFabricInfo, 1.0 - this.PanOptiFabricInfo.Opacity, 100, 90, null, false)
  391. }, "SetOptiFabricInfoShow", false);
  392. return;
  393. }
  394. ModAnimation.AniStart(new ModAnimation.AniData[]
  395. {
  396. ModAnimation.AaTranslateY(this.PanOptiFabricInfo, 6.0 - ((TranslateTransform)this.PanOptiFabricInfo.RenderTransform).Y, 200, 0, null, false),
  397. ModAnimation.AaOpacity(this.PanOptiFabricInfo, -this.PanOptiFabricInfo.Opacity, 100, 0, null, false)
  398. }, "SetOptiFabricInfoShow", false);
  399. }
  400. }
  401. // Token: 0x0600074A RID: 1866 RVA: 0x00040110 File Offset: 0x0003E310
  402. private void SelectReload()
  403. {
  404. if (this.parserReader != null && !this.composerReader)
  405. {
  406. this.composerReader = true;
  407. this.SelectNameUpdate();
  408. this.ItemSelect.Title = this.TextSelectName.Text;
  409. this.ItemSelect.Info = this.GetSelectInfo();
  410. this.ItemSelect.Logo = this.GetSelectLogo();
  411. this.LabMinecraft.Text = this.parserReader;
  412. this.ImgMinecraft.Source = new MyBitmap(this._FieldReader);
  413. string text = this.LoadOptiFineGetError();
  414. this.CardOptiFine.SearchParser().Visibility = ((text == null) ? Visibility.Visible : Visibility.Collapsed);
  415. if (text != null)
  416. {
  417. this.CardOptiFine.IsSwaped = true;
  418. }
  419. this.SetOptiFineInfoShow(Conversions.ToString(this.CardOptiFine.IsSwaped));
  420. if (this.readerReader == null)
  421. {
  422. this.BtnOptiFineClear.Visibility = Visibility.Collapsed;
  423. this.ImgOptiFine.Visibility = Visibility.Collapsed;
  424. this.LabOptiFine.Text = (text ?? "点击选择");
  425. this.LabOptiFine.Foreground = ModSecret.m_StateField;
  426. }
  427. else
  428. {
  429. this.BtnOptiFineClear.Visibility = Visibility.Visible;
  430. this.ImgOptiFine.Visibility = Visibility.Visible;
  431. this.LabOptiFine.Text = this.readerReader.m_SchemaTest.Replace(this.parserReader + " ", "");
  432. this.LabOptiFine.Foreground = ModSecret.m_RefField;
  433. }
  434. if (this.parserReader.Contains("1.") && ModBase.Val(this.parserReader.Split(".")[1]) <= 12.0)
  435. {
  436. this.CardLiteLoader.Visibility = Visibility.Visible;
  437. string text2 = this.LoadLiteLoaderGetError();
  438. this.CardLiteLoader.SearchParser().Visibility = ((text2 == null) ? Visibility.Visible : Visibility.Collapsed);
  439. if (text2 != null)
  440. {
  441. this.CardLiteLoader.IsSwaped = true;
  442. }
  443. this.SetLiteLoaderInfoShow(Conversions.ToString(this.CardLiteLoader.IsSwaped));
  444. if (this.m_ClientReader == null)
  445. {
  446. this.BtnLiteLoaderClear.Visibility = Visibility.Collapsed;
  447. this.ImgLiteLoader.Visibility = Visibility.Collapsed;
  448. this.LabLiteLoader.Text = (text2 ?? "点击选择");
  449. this.LabLiteLoader.Foreground = ModSecret.m_StateField;
  450. }
  451. else
  452. {
  453. this.BtnLiteLoaderClear.Visibility = Visibility.Visible;
  454. this.ImgLiteLoader.Visibility = Visibility.Visible;
  455. this.LabLiteLoader.Text = this.m_ClientReader.Inherit;
  456. this.LabLiteLoader.Foreground = ModSecret.m_RefField;
  457. }
  458. }
  459. else
  460. {
  461. this.CardLiteLoader.Visibility = Visibility.Collapsed;
  462. }
  463. string text3 = this.LoadForgeGetError();
  464. this.CardForge.SearchParser().Visibility = ((text3 == null) ? Visibility.Visible : Visibility.Collapsed);
  465. if (text3 != null)
  466. {
  467. this.CardForge.IsSwaped = true;
  468. }
  469. this.SetForgeInfoShow(Conversions.ToString(this.CardForge.IsSwaped));
  470. if (this._ConfigReader == null)
  471. {
  472. this.BtnForgeClear.Visibility = Visibility.Collapsed;
  473. this.ImgForge.Visibility = Visibility.Collapsed;
  474. this.LabForge.Text = (text3 ?? "点击选择");
  475. this.LabForge.Foreground = ModSecret.m_StateField;
  476. }
  477. else
  478. {
  479. this.BtnForgeClear.Visibility = Visibility.Visible;
  480. this.ImgForge.Visibility = Visibility.Visible;
  481. this.LabForge.Text = this._ConfigReader.m_ConfigMap;
  482. this.LabForge.Foreground = ModSecret.m_RefField;
  483. }
  484. if (this.parserReader.Contains("1.") && ModBase.Val(this.parserReader.Split(".")[1]) > 19.0)
  485. {
  486. this.CardNeoForge.Visibility = Visibility.Visible;
  487. string text4 = this.LoadNeoForgeGetError();
  488. this.CardNeoForge.SearchParser().Visibility = ((text4 == null) ? Visibility.Visible : Visibility.Collapsed);
  489. if (text4 != null)
  490. {
  491. this.CardNeoForge.IsSwaped = true;
  492. }
  493. this.SetNeoForgeInfoShow(Conversions.ToString(this.CardNeoForge.IsSwaped));
  494. if (this.m_TestsReader == null)
  495. {
  496. this.BtnNeoForgeClear.Visibility = Visibility.Collapsed;
  497. this.ImgNeoForge.Visibility = Visibility.Collapsed;
  498. this.LabNeoForge.Text = (text4 ?? "点击选择");
  499. this.LabNeoForge.Foreground = ModSecret.m_StateField;
  500. }
  501. else
  502. {
  503. this.BtnNeoForgeClear.Visibility = Visibility.Visible;
  504. this.ImgNeoForge.Visibility = Visibility.Visible;
  505. this.LabNeoForge.Text = this.m_TestsReader.m_ConfigMap;
  506. this.LabNeoForge.Foreground = ModSecret.m_RefField;
  507. }
  508. }
  509. else
  510. {
  511. this.CardNeoForge.Visibility = Visibility.Collapsed;
  512. }
  513. if (this.parserReader.Contains("1.") && ModBase.Val(this.parserReader.Split(".")[1]) <= 13.0)
  514. {
  515. this.CardFabric.Visibility = Visibility.Collapsed;
  516. }
  517. else
  518. {
  519. this.CardFabric.Visibility = Visibility.Visible;
  520. string text5 = this.LoadFabricGetError();
  521. this.CardFabric.SearchParser().Visibility = ((text5 == null) ? Visibility.Visible : Visibility.Collapsed);
  522. if (text5 != null)
  523. {
  524. this.CardFabric.IsSwaped = true;
  525. }
  526. this.SetFabricInfoShow(Conversions.ToString(this.CardFabric.IsSwaped));
  527. if (this.m_MapperReader == null)
  528. {
  529. this.BtnFabricClear.Visibility = Visibility.Collapsed;
  530. this.ImgFabric.Visibility = Visibility.Collapsed;
  531. this.LabFabric.Text = (text5 ?? "点击选择");
  532. this.LabFabric.Foreground = ModSecret.m_StateField;
  533. }
  534. else
  535. {
  536. this.BtnFabricClear.Visibility = Visibility.Visible;
  537. this.ImgFabric.Visibility = Visibility.Visible;
  538. this.LabFabric.Text = this.m_MapperReader.Replace("+build", "");
  539. this.LabFabric.Foreground = ModSecret.m_RefField;
  540. }
  541. }
  542. if (this.m_MapperReader == null)
  543. {
  544. this.CardFabricApi.Visibility = Visibility.Collapsed;
  545. }
  546. else
  547. {
  548. this.CardFabricApi.Visibility = Visibility.Visible;
  549. string text6 = this.LoadFabricApiGetError();
  550. this.CardFabricApi.SearchParser().Visibility = ((text6 == null) ? Visibility.Visible : Visibility.Collapsed);
  551. if (text6 != null || this.m_MapperReader == null)
  552. {
  553. this.CardFabricApi.IsSwaped = true;
  554. }
  555. this.SetFabricApiInfoShow(Conversions.ToString(this.CardFabricApi.IsSwaped));
  556. if (this.m_ThreadReader == null)
  557. {
  558. this.BtnFabricApiClear.Visibility = Visibility.Collapsed;
  559. this.ImgFabricApi.Visibility = Visibility.Collapsed;
  560. this.LabFabricApi.Text = (text6 ?? "点击选择");
  561. this.LabFabricApi.Foreground = ModSecret.m_StateField;
  562. }
  563. else
  564. {
  565. this.BtnFabricApiClear.Visibility = Visibility.Visible;
  566. this.ImgFabricApi.Visibility = Visibility.Visible;
  567. this.LabFabricApi.Text = Enumerable.First<string>(this.m_ThreadReader._ProductRepository.Split("]")[1].Replace("Fabric API ", "").Replace(" build ", ".").Split("+")).Trim();
  568. this.LabFabricApi.Foreground = ModSecret.m_RefField;
  569. }
  570. }
  571. if (this.m_MapperReader != null && this.readerReader != null)
  572. {
  573. this.CardOptiFabric.Visibility = Visibility.Visible;
  574. string text7 = this.LoadOptiFabricGetError();
  575. this.CardOptiFabric.SearchParser().Visibility = ((text7 == null) ? Visibility.Visible : Visibility.Collapsed);
  576. if (text7 != null || this.m_MapperReader == null)
  577. {
  578. this.CardOptiFabric.IsSwaped = true;
  579. }
  580. this.SetOptiFabricInfoShow(Conversions.ToString(this.CardOptiFabric.IsSwaped));
  581. if (this._PropertyReader == null)
  582. {
  583. this.BtnOptiFabricClear.Visibility = Visibility.Collapsed;
  584. this.ImgOptiFabric.Visibility = Visibility.Collapsed;
  585. this.LabOptiFabric.Text = (text7 ?? "点击选择");
  586. this.LabOptiFabric.Foreground = ModSecret.m_StateField;
  587. }
  588. else
  589. {
  590. this.BtnOptiFabricClear.Visibility = Visibility.Visible;
  591. this.ImgOptiFabric.Visibility = Visibility.Visible;
  592. this.LabOptiFabric.Text = this._PropertyReader._ProductRepository.ToLower().Replace("optifabric-", "").Replace(".jar", "").Trim().TrimStart(new char[]
  593. {
  594. 'v'
  595. });
  596. this.LabOptiFabric.Foreground = ModSecret.m_RefField;
  597. }
  598. }
  599. else
  600. {
  601. this.CardOptiFabric.Visibility = Visibility.Collapsed;
  602. }
  603. if (this.m_MapperReader != null && this.m_ThreadReader == null)
  604. {
  605. this.HintFabricAPI.Visibility = Visibility.Visible;
  606. }
  607. else
  608. {
  609. this.HintFabricAPI.Visibility = Visibility.Collapsed;
  610. }
  611. if (this.m_MapperReader != null && this.readerReader != null && this._PropertyReader == null)
  612. {
  613. if (!this.parserReader.StartsWith("1.14") && !this.parserReader.StartsWith("1.15"))
  614. {
  615. this.HintOptiFabric.Visibility = Visibility.Visible;
  616. this.HintOptiFabricOld.Visibility = Visibility.Collapsed;
  617. }
  618. else
  619. {
  620. this.HintOptiFabric.Visibility = Visibility.Collapsed;
  621. this.HintOptiFabricOld.Visibility = Visibility.Visible;
  622. }
  623. }
  624. else
  625. {
  626. this.HintOptiFabric.Visibility = Visibility.Collapsed;
  627. this.HintOptiFabricOld.Visibility = Visibility.Collapsed;
  628. }
  629. if (this.parserReader.Contains("1.") && ModBase.Val(this.parserReader.Split(".")[1]) >= 16.0 && this.readerReader != null && (this._ConfigReader != null || this.m_MapperReader != null))
  630. {
  631. this.HintModOptiFine.Visibility = Visibility.Visible;
  632. }
  633. else
  634. {
  635. this.HintModOptiFine.Visibility = Visibility.Collapsed;
  636. }
  637. this.composerReader = false;
  638. }
  639. }
  640. // Token: 0x0600074B RID: 1867 RVA: 0x00040A8C File Offset: 0x0003EC8C
  641. private void SelectClear()
  642. {
  643. this.parserReader = null;
  644. this.m_BroadcasterReader = null;
  645. this._FieldReader = null;
  646. this.readerReader = null;
  647. this.m_ClientReader = null;
  648. this._ConfigReader = null;
  649. this.m_TestsReader = null;
  650. this.m_MapperReader = null;
  651. this.m_ThreadReader = null;
  652. this._PropertyReader = null;
  653. }
  654. // Token: 0x0600074C RID: 1868 RVA: 0x00040AE0 File Offset: 0x0003ECE0
  655. private string GetSelectName()
  656. {
  657. string text = this.parserReader;
  658. if (this.m_MapperReader != null)
  659. {
  660. text = text + "-Fabric " + this.m_MapperReader.Replace("+build", "");
  661. }
  662. if (this._ConfigReader != null)
  663. {
  664. text = text + "-Forge_" + this._ConfigReader.m_ConfigMap;
  665. }
  666. if (this.m_TestsReader != null)
  667. {
  668. text = text + "-NeoForge_" + this.m_TestsReader.m_ConfigMap;
  669. }
  670. if (this.m_ClientReader != null)
  671. {
  672. text += "-LiteLoader";
  673. }
  674. if (this.readerReader != null)
  675. {
  676. text = text + "-OptiFine_" + this.readerReader.m_SchemaTest.Replace(this.parserReader + " ", "").Replace(" ", "_");
  677. }
  678. return text;
  679. }
  680. // Token: 0x0600074D RID: 1869 RVA: 0x00040BB8 File Offset: 0x0003EDB8
  681. private string GetSelectInfo()
  682. {
  683. string text = "";
  684. if (this.m_MapperReader != null)
  685. {
  686. text = text + ", Fabric " + this.m_MapperReader.Replace("+build", "");
  687. }
  688. if (this._ConfigReader != null)
  689. {
  690. text = text + ", Forge " + this._ConfigReader.m_ConfigMap;
  691. }
  692. if (this.m_TestsReader != null)
  693. {
  694. text = text + ", NeoForge " + this.m_TestsReader.m_ConfigMap;
  695. }
  696. if (this.m_ClientReader != null)
  697. {
  698. text += ", LiteLoader";
  699. }
  700. if (this.readerReader != null)
  701. {
  702. text = text + ", OptiFine " + this.readerReader.m_SchemaTest.Replace(this.parserReader + " ", "");
  703. }
  704. if (Operators.CompareString(text, "", false) == 0)
  705. {
  706. text = ", 无附加安装";
  707. }
  708. return text.TrimStart(", ".ToCharArray());
  709. }
  710. // Token: 0x0600074E RID: 1870 RVA: 0x00040CA4 File Offset: 0x0003EEA4
  711. private string GetSelectLogo()
  712. {
  713. string result;
  714. if (this.m_MapperReader != null)
  715. {
  716. result = "pack://application:,,,/images/Blocks/Fabric.png";
  717. }
  718. else if (this._ConfigReader != null)
  719. {
  720. result = "pack://application:,,,/images/Blocks/Anvil.png";
  721. }
  722. else if (this.m_TestsReader != null)
  723. {
  724. result = "pack://application:,,,/images/Blocks/NeoForge.png";
  725. }
  726. else if (this.m_ClientReader != null)
  727. {
  728. result = "pack://application:,,,/images/Blocks/Egg.png";
  729. }
  730. else if (this.readerReader != null)
  731. {
  732. result = "pack://application:,,,/images/Blocks/GrassPath.png";
  733. }
  734. else
  735. {
  736. result = this._FieldReader;
  737. }
  738. return result;
  739. }
  740. // Token: 0x0600074F RID: 1871 RVA: 0x00005B9D File Offset: 0x00003D9D
  741. private void SelectNameUpdate()
  742. {
  743. if (!this.iteratorReader && !this.m_RepositoryReader)
  744. {
  745. this.m_RepositoryReader = true;
  746. this.TextSelectName.Text = this.GetSelectName();
  747. this.m_RepositoryReader = false;
  748. }
  749. }
  750. // Token: 0x06000750 RID: 1872 RVA: 0x00005BCE File Offset: 0x00003DCE
  751. private void TextSelectName_TextChanged(object sender, TextChangedEventArgs e)
  752. {
  753. if (!this.m_RepositoryReader)
  754. {
  755. this.iteratorReader = true;
  756. this.SelectReload();
  757. }
  758. }
  759. // Token: 0x06000751 RID: 1873 RVA: 0x00005BE5 File Offset: 0x00003DE5
  760. private void TextSelectName_ValidateChanged(object sender, EventArgs e)
  761. {
  762. this.BtnSelectStart.IsEnabled = (Operators.CompareString(this.TextSelectName.ValidateResult, "", false) == 0);
  763. }
  764. // Token: 0x06000752 RID: 1874 RVA: 0x00040D0C File Offset: 0x0003EF0C
  765. private void LoadMinecraft_OnFinish()
  766. {
  767. this.ExitSelectPage();
  768. checked
  769. {
  770. try
  771. {
  772. Dictionary<string, List<JObject>> dictionary = new Dictionary<string, List<JObject>>
  773. {
  774. {
  775. "正式版",
  776. new List<JObject>()
  777. },
  778. {
  779. "预览版",
  780. new List<JObject>()
  781. },
  782. {
  783. "远古版",
  784. new List<JObject>()
  785. },
  786. {
  787. "愚人节版",
  788. new List<JObject>()
  789. }
  790. };
  791. JArray jarray = (JArray)ModDownload.accountTests.Output.Value["versions"];
  792. try
  793. {
  794. foreach (JToken jtoken in jarray)
  795. {
  796. JObject jobject = (JObject)jtoken;
  797. string text = (string)jobject["type"];
  798. if (Operators.CompareString(text, "release", false) != 0)
  799. {
  800. if (Operators.CompareString(text, "snapshot", false) != 0)
  801. {
  802. if (Operators.CompareString(text, "special", false) != 0)
  803. {
  804. text = "远古版";
  805. }
  806. else
  807. {
  808. text = "愚人节版";
  809. }
  810. }
  811. else
  812. {
  813. text = "预览版";
  814. if (jobject["id"].ToString().StartsWith("1.") && !jobject["id"].ToString().ToLower().Contains("combat") && !jobject["id"].ToString().ToLower().Contains("rc") && !jobject["id"].ToString().ToLower().Contains("experimental") && !jobject["id"].ToString().ToLower().Contains("pre"))
  815. {
  816. text = "正式版";
  817. jobject["type"] = "release";
  818. }
  819. string text2 = jobject["id"].ToString().ToLower();
  820. uint num = <PrivateImplementationDetails>.ComputeStringHash(text2);
  821. if (num <= 2819146544U)
  822. {
  823. if (num <= 2783260049U)
  824. {
  825. if (num != 673058499U)
  826. {
  827. if (num == 2783260049U)
  828. {
  829. if (Operators.CompareString(text2, "1.rv-pre1", false) == 0)
  830. {
  831. goto IL_3D5;
  832. }
  833. }
  834. }
  835. else if (Operators.CompareString(text2, "2.0", false) == 0)
  836. {
  837. goto IL_3D5;
  838. }
  839. }
  840. else if (num != 2812350463U)
  841. {
  842. if (num == 2819146544U)
  843. {
  844. if (Operators.CompareString(text2, "15w14a", false) == 0)
  845. {
  846. goto IL_3D5;
  847. }
  848. }
  849. }
  850. else if (Operators.CompareString(text2, "23w13a_or_b", false) == 0)
  851. {
  852. goto IL_3D5;
  853. }
  854. }
  855. else
  856. {
  857. if (num <= 3741345573U)
  858. {
  859. if (num != 3653809737U)
  860. {
  861. if (num != 3741345573U)
  862. {
  863. goto IL_374;
  864. }
  865. if (Operators.CompareString(text2, "20w14infinite", false) != 0)
  866. {
  867. goto IL_374;
  868. }
  869. }
  870. else if (Operators.CompareString(text2, "20w14∞", false) != 0)
  871. {
  872. goto IL_374;
  873. }
  874. text = "愚人节版";
  875. jobject["id"] = "20w14∞";
  876. jobject["type"] = "special";
  877. jobject.Add("lore", ModMinecraft.GetMcFoolName((string)jobject["id"]));
  878. goto IL_422;
  879. }
  880. if (num != 3766348906U)
  881. {
  882. if (num != 3830073160U)
  883. {
  884. if (num == 4285466550U)
  885. {
  886. if (Operators.CompareString(text2, "24w14potato", false) == 0)
  887. {
  888. goto IL_3D5;
  889. }
  890. }
  891. }
  892. else if (Operators.CompareString(text2, "22w13oneblockatatime", false) == 0)
  893. {
  894. goto IL_3D5;
  895. }
  896. }
  897. else if (Operators.CompareString(text2, "3d shareware v1.34", false) == 0)
  898. {
  899. goto IL_3D5;
  900. }
  901. }
  902. IL_374:
  903. DateTime dateTime = Extensions.Value<DateTime>(jobject["releaseTime"]).ToUniversalTime().AddHours(2.0);
  904. if (dateTime.Month == 4 && dateTime.Day == 1)
  905. {
  906. text = "愚人节版";
  907. jobject["type"] = "special";
  908. goto IL_422;
  909. }
  910. goto IL_422;
  911. IL_3D5:
  912. text = "愚人节版";
  913. jobject["type"] = "special";
  914. jobject.Add("lore", ModMinecraft.GetMcFoolName((string)jobject["id"]));
  915. }
  916. }
  917. else
  918. {
  919. text = "正式版";
  920. }
  921. IL_422:
  922. dictionary[text].Add(jobject);
  923. }
  924. }
  925. finally
  926. {
  927. IEnumerator<JToken> enumerator;
  928. if (enumerator != null)
  929. {
  930. enumerator.Dispose();
  931. }
  932. }
  933. int num2 = dictionary.Keys.Count - 1;
  934. for (int i = 0; i <= num2; i++)
  935. {
  936. dictionary[Enumerable.ElementAtOrDefault<string>(dictionary.Keys, i)] = Enumerable.ElementAtOrDefault<List<JObject>>(dictionary.Values, i).Sort((PageDownloadInstall._Closure$__.$I39-0 == null) ? (PageDownloadInstall._Closure$__.$I39-0 = ((JObject Left, JObject Right) => DateTime.Compare(Extensions.Value<DateTime>(Left["releaseTime"]), Extensions.Value<DateTime>(Right["releaseTime"])) > 0)) : PageDownloadInstall._Closure$__.$I39-0);
  937. }
  938. this.PanMinecraft.Children.Clear();
  939. MyCard myCard = new MyCard();
  940. myCard.Title = "最新版本";
  941. myCard.Margin = new Thickness(0.0, 15.0, 0.0, 15.0);
  942. myCard.CreateParser(2);
  943. MyCard myCard2 = myCard;
  944. List<JObject> list = new List<JObject>();
  945. JObject jobject2 = (JObject)dictionary["正式版"][0].DeepClone();
  946. jobject2["lore"] = "最新正式版,发布于 " + Extensions.Value<DateTime>(jobject2["releaseTime"]).ToString("yyyy'/'MM'/'dd HH':'mm");
  947. list.Add(jobject2);
  948. if (DateTime.Compare(Extensions.Value<DateTime>(dictionary["正式版"][0]["releaseTime"]), Extensions.Value<DateTime>(dictionary["预览版"][0]["releaseTime"])) < 0)
  949. {
  950. JObject jobject3 = (JObject)dictionary["预览版"][0].DeepClone();
  951. jobject3["lore"] = "最新预览版,发布于 " + Extensions.Value<DateTime>(jobject3["releaseTime"]).ToString("yyyy'/'MM'/'dd HH':'mm");
  952. list.Add(jobject3);
  953. }
  954. StackPanel element = new StackPanel
  955. {
  956. Margin = new Thickness(20.0, 40.0, 18.0, 0.0),
  957. VerticalAlignment = VerticalAlignment.Top,
  958. RenderTransform = new TranslateTransform(0.0, 0.0),
  959. Tag = list
  960. };
  961. MyCard.StackInstall(ref element, 7, "");
  962. myCard2.Children.Add(element);
  963. this.PanMinecraft.Children.Insert(0, myCard2);
  964. try
  965. {
  966. foreach (KeyValuePair<string, List<JObject>> keyValuePair in dictionary)
  967. {
  968. if (Enumerable.Any<JObject>(keyValuePair.Value))
  969. {
  970. MyCard myCard3 = new MyCard();
  971. myCard3.Title = keyValuePair.Key + " (" + Conversions.ToString(keyValuePair.Value.Count) + ")";
  972. myCard3.Margin = new Thickness(0.0, 0.0, 0.0, 15.0);
  973. myCard3.CreateParser(7);
  974. MyCard myCard4 = myCard3;
  975. StackPanel stackPanel = new StackPanel
  976. {
  977. Margin = new Thickness(20.0, 40.0, 18.0, 0.0),
  978. VerticalAlignment = VerticalAlignment.Top,
  979. RenderTransform = new TranslateTransform(0.0, 0.0),
  980. Tag = keyValuePair.Value
  981. };
  982. myCard4.Children.Add(stackPanel);
  983. myCard4._Stub = stackPanel;
  984. myCard4.IsSwaped = true;
  985. this.PanMinecraft.Children.Add(myCard4);
  986. }
  987. }
  988. }
  989. finally
  990. {
  991. Dictionary<string, List<JObject>>.Enumerator enumerator2;
  992. ((IDisposable)enumerator2).Dispose();
  993. }
  994. if (PageDownloadInstall._ErrorReader != null)
  995. {
  996. ModBase.Log("[Download] 自动选择 MC 版本:" + PageDownloadInstall._ErrorReader, ModBase.LogLevel.Normal, "出现错误");
  997. try
  998. {
  999. foreach (JToken jtoken2 in jarray)
  1000. {
  1001. JObject jobject4 = (JObject)jtoken2;
  1002. if (Operators.CompareString(jobject4["id"].ToString(), PageDownloadInstall._ErrorReader, false) == 0)
  1003. {
  1004. MyListItem sender2 = ModDownloadLib.McDownloadListItem(jobject4, (PageDownloadInstall._Closure$__.$IR39-4 == null) ? (PageDownloadInstall._Closure$__.$IR39-4 = delegate(object sender, MouseButtonEventArgs e)
  1005. {
  1006. ((PageDownloadInstall._Closure$__.$I39-1 == null) ? (PageDownloadInstall._Closure$__.$I39-1 = delegate()
  1007. {
  1008. }) : PageDownloadInstall._Closure$__.$I39-1)();
  1009. }) : PageDownloadInstall._Closure$__.$IR39-4, false);
  1010. this.MinecraftSelected(sender2, null);
  1011. }
  1012. }
  1013. }
  1014. finally
  1015. {
  1016. IEnumerator<JToken> enumerator3;
  1017. if (enumerator3 != null)
  1018. {
  1019. enumerator3.Dispose();
  1020. }
  1021. }
  1022. }
  1023. }
  1024. catch (Exception ex)
  1025. {
  1026. ModBase.Log(ex, "可视化安装版本列表出错", ModBase.LogLevel.Feedback, "出现错误");
  1027. }
  1028. }
  1029. }
  1030. // Token: 0x06000753 RID: 1875 RVA: 0x00041638 File Offset: 0x0003F838
  1031. private string LoadOptiFineGetError()
  1032. {
  1033. string result;
  1034. if (this.m_TestsReader != null)
  1035. {
  1036. result = "与 NeoForge 不兼容";
  1037. }
  1038. else if (this.LoadOptiFine != null && this.LoadOptiFine.State.LoadingState != MyLoading.MyLoadingState.Run)
  1039. {
  1040. if (this.LoadOptiFine.State.LoadingState == MyLoading.MyLoadingState.Error)
  1041. {
  1042. result = Conversions.ToString(Operators.ConcatenateObject("获取版本列表失败:", NewLateBinding.LateGet(NewLateBinding.LateGet(this.LoadOptiFine.State, null, "Error", new object[0], null, null, null), null, "Message", new object[0], null, null, null)));
  1043. }
  1044. else if (this._ConfigReader != null && ModMinecraft.VersionSortInteger(this.parserReader, "1.13") >= 0 && ModMinecraft.VersionSortInteger("1.14.3", this.parserReader) >= 0)
  1045. {
  1046. result = "与 Forge 不兼容";
  1047. }
  1048. else
  1049. {
  1050. string text = "9999.9999";
  1051. bool flag = false;
  1052. try
  1053. {
  1054. foreach (ModDownload.DlOptiFineListEntry dlOptiFineListEntry in ModDownload.m_ModelTests.Output.Value)
  1055. {
  1056. if (dlOptiFineListEntry.m_SchemaTest.StartsWith(this.parserReader + " "))
  1057. {
  1058. if (this._ConfigReader == null)
  1059. {
  1060. return null;
  1061. }
  1062. if (Conversions.ToBoolean(this.IsOptiFineSuitForForge(dlOptiFineListEntry, this._ConfigReader)))
  1063. {
  1064. return null;
  1065. }
  1066. flag = true;
  1067. if (dlOptiFineListEntry.parserMap != null)
  1068. {
  1069. text = (ModMinecraft.VersionSortBoolean(text, dlOptiFineListEntry.parserMap) ? dlOptiFineListEntry.parserMap : text);
  1070. }
  1071. }
  1072. }
  1073. }
  1074. finally
  1075. {
  1076. List<ModDownload.DlOptiFineListEntry>.Enumerator enumerator;
  1077. ((IDisposable)enumerator).Dispose();
  1078. }
  1079. if (Operators.CompareString(text, "9999.9999", false) == 0)
  1080. {
  1081. result = (flag ? "与 Forge 不兼容" : "没有可用版本");
  1082. }
  1083. else
  1084. {
  1085. result = "需要 Forge " + (text.Contains(".") ? "" : "#") + text + " 或更高版本";
  1086. }
  1087. }
  1088. }
  1089. else
  1090. {
  1091. result = "正在获取版本列表……";
  1092. }
  1093. return result;
  1094. }
  1095. // Token: 0x06000754 RID: 1876 RVA: 0x00041818 File Offset: 0x0003FA18
  1096. private object IsOptiFineSuitForForge(ModDownload.DlOptiFineListEntry OptiFine, ModDownload.DlForgeVersionEntry Forge)
  1097. {
  1098. object result;
  1099. if (Operators.CompareString(Forge._TestsMap, OptiFine.CheckMapper(), false) != 0)
  1100. {
  1101. result = false;
  1102. }
  1103. else if (OptiFine.parserMap == null)
  1104. {
  1105. result = false;
  1106. }
  1107. else if (string.IsNullOrWhiteSpace(OptiFine.parserMap))
  1108. {
  1109. result = true;
  1110. }
  1111. else if (OptiFine.parserMap.Contains("."))
  1112. {
  1113. result = (ModMinecraft.VersionSortInteger(Forge.clientMap.ToString(), OptiFine.parserMap) >= 0);
  1114. }
  1115. else
  1116. {
  1117. result = ((double)Forge.clientMap.Revision >= Conversions.ToDouble(OptiFine.parserMap));
  1118. }
  1119. return result;
  1120. }
  1121. // Token: 0x06000755 RID: 1877 RVA: 0x00005C0B File Offset: 0x00003E0B
  1122. private void CardOptiFine_PreviewSwap(object sender, ModBase.RouteEventArgs e)
  1123. {
  1124. if (this.LoadOptiFineGetError() != null)
  1125. {
  1126. e.m_SerializerError = true;
  1127. }
  1128. }
  1129. // Token: 0x06000756 RID: 1878 RVA: 0x000418C4 File Offset: 0x0003FAC4
  1130. private void OptiFine_Loaded()
  1131. {
  1132. try
  1133. {
  1134. if (ModDownload.m_ModelTests.State == ModBase.LoadState.Finished)
  1135. {
  1136. List<ModDownload.DlOptiFineListEntry> list = new List<ModDownload.DlOptiFineListEntry>();
  1137. try
  1138. {
  1139. foreach (ModDownload.DlOptiFineListEntry dlOptiFineListEntry in ModDownload.m_ModelTests.Output.Value)
  1140. {
  1141. if (!Conversions.ToBoolean(this._ConfigReader != null && Conversions.ToBoolean(Operators.NotObject(this.IsOptiFineSuitForForge(dlOptiFineListEntry, this._ConfigReader)))) && dlOptiFineListEntry.m_SchemaTest.StartsWith(this.parserReader + " "))
  1142. {
  1143. list.Add(dlOptiFineListEntry);
  1144. }
  1145. }
  1146. }
  1147. finally
  1148. {
  1149. List<ModDownload.DlOptiFineListEntry>.Enumerator enumerator;
  1150. ((IDisposable)enumerator).Dispose();
  1151. }
  1152. if (Enumerable.Any<ModDownload.DlOptiFineListEntry>(list))
  1153. {
  1154. list = list.Sort((PageDownloadInstall._Closure$__.$I44-0 == null) ? (PageDownloadInstall._Closure$__.$I44-0 = ((ModDownload.DlOptiFineListEntry Left, ModDownload.DlOptiFineListEntry Right) => (!Left._DefinitionTest && Right._DefinitionTest) || ((!Left._DefinitionTest || Right._DefinitionTest) && ModMinecraft.VersionSortBoolean(Left.m_SchemaTest, Right.m_SchemaTest)))) : PageDownloadInstall._Closure$__.$I44-0);
  1155. this.PanOptiFine.Children.Clear();
  1156. try
  1157. {
  1158. foreach (ModDownload.DlOptiFineListEntry entry in list)
  1159. {
  1160. this.PanOptiFine.Children.Add(ModDownloadLib.OptiFineDownloadListItem(entry, delegate(object sender, MouseButtonEventArgs e)
  1161. {
  1162. this.OptiFine_Selected((MyListItem)sender, e);
  1163. }, false));
  1164. }
  1165. }
  1166. finally
  1167. {
  1168. List<ModDownload.DlOptiFineListEntry>.Enumerator enumerator2;
  1169. ((IDisposable)enumerator2).Dispose();
  1170. }
  1171. }
  1172. }
  1173. }
  1174. catch (Exception ex)
  1175. {
  1176. ModBase.Log(ex, "可视化 OptiFine 安装版本列表出错", ModBase.LogLevel.Feedback, "出现错误");
  1177. }
  1178. }
  1179. // Token: 0x06000757 RID: 1879 RVA: 0x00041A7C File Offset: 0x0003FC7C
  1180. private void OptiFine_Selected(MyListItem sender, EventArgs e)
  1181. {
  1182. this.readerReader = (ModDownload.DlOptiFineListEntry)sender.Tag;
  1183. if (Conversions.ToBoolean(this._ConfigReader != null && Conversions.ToBoolean(Operators.NotObject(this.IsOptiFineSuitForForge(this.readerReader, this._ConfigReader)))))
  1184. {
  1185. this._ConfigReader = null;
  1186. }
  1187. this.OptiFabric_Loaded();
  1188. this.Forge_Loaded();
  1189. this.NeoForge_Loaded();
  1190. this.CardOptiFine.IsSwaped = true;
  1191. this.SelectReload();
  1192. }
  1193. // Token: 0x06000758 RID: 1880 RVA: 0x00005C1C File Offset: 0x00003E1C
  1194. private void OptiFine_Clear(object sender, MouseButtonEventArgs e)
  1195. {
  1196. this.readerReader = null;
  1197. this._PropertyReader = null;
  1198. this.CardOptiFine.IsSwaped = true;
  1199. e.Handled = true;
  1200. this.Forge_Loaded();
  1201. this.NeoForge_Loaded();
  1202. this.SelectReload();
  1203. }
  1204. // Token: 0x06000759 RID: 1881 RVA: 0x00041AF8 File Offset: 0x0003FCF8
  1205. private string LoadLiteLoaderGetError()
  1206. {
  1207. string result;
  1208. if (this.parserReader.Contains("1.") && ModBase.Val(this.parserReader.Split(".")[1]) <= 12.0)
  1209. {
  1210. if (this.LoadLiteLoader != null && this.LoadLiteLoader.State.LoadingState != MyLoading.MyLoadingState.Run)
  1211. {
  1212. if (this.LoadLiteLoader.State.LoadingState == MyLoading.MyLoadingState.Error)
  1213. {
  1214. result = Conversions.ToString(Operators.ConcatenateObject("获取版本列表失败:", NewLateBinding.LateGet(NewLateBinding.LateGet(this.LoadLiteLoader.State, null, "Error", new object[0], null, null, null), null, "Message", new object[0], null, null, null)));
  1215. }
  1216. else
  1217. {
  1218. try
  1219. {
  1220. List<ModDownload.DlLiteLoaderListEntry>.Enumerator enumerator = ModDownload._FacadeTests.Output.Value.GetEnumerator();
  1221. while (enumerator.MoveNext())
  1222. {
  1223. if (Operators.CompareString(enumerator.Current.Inherit, this.parserReader, false) == 0)
  1224. {
  1225. return null;
  1226. }
  1227. }
  1228. }
  1229. finally
  1230. {
  1231. List<ModDownload.DlLiteLoaderListEntry>.Enumerator enumerator;
  1232. ((IDisposable)enumerator).Dispose();
  1233. }
  1234. result = "没有可用版本";
  1235. }
  1236. }
  1237. else
  1238. {
  1239. result = "正在获取版本列表……";
  1240. }
  1241. }
  1242. else
  1243. {
  1244. result = "没有可用版本";
  1245. }
  1246. return result;
  1247. }
  1248. // Token: 0x0600075A RID: 1882 RVA: 0x00005C51 File Offset: 0x00003E51
  1249. private void CardLiteLoader_PreviewSwap(object sender, ModBase.RouteEventArgs e)
  1250. {
  1251. if (this.LoadLiteLoaderGetError() != null)
  1252. {
  1253. e.m_SerializerError = true;
  1254. }
  1255. }
  1256. // Token: 0x0600075B RID: 1883 RVA: 0x00041C30 File Offset: 0x0003FE30
  1257. private void LiteLoader_Loaded()
  1258. {
  1259. try
  1260. {
  1261. if (ModDownload._FacadeTests.State == ModBase.LoadState.Finished)
  1262. {
  1263. List<ModDownload.DlLiteLoaderListEntry> list = new List<ModDownload.DlLiteLoaderListEntry>();
  1264. try
  1265. {
  1266. foreach (ModDownload.DlLiteLoaderListEntry dlLiteLoaderListEntry in ModDownload._FacadeTests.Output.Value)
  1267. {
  1268. if (Operators.CompareString(dlLiteLoaderListEntry.Inherit, this.parserReader, false) == 0)
  1269. {
  1270. list.Add(dlLiteLoaderListEntry);
  1271. }
  1272. }
  1273. }
  1274. finally
  1275. {
  1276. List<ModDownload.DlLiteLoaderListEntry>.Enumerator enumerator;
  1277. ((IDisposable)enumerator).Dispose();
  1278. }
  1279. if (Enumerable.Any<ModDownload.DlLiteLoaderListEntry>(list))
  1280. {
  1281. this.PanLiteLoader.Children.Clear();
  1282. try
  1283. {
  1284. foreach (ModDownload.DlLiteLoaderListEntry entry in list)
  1285. {
  1286. this.PanLiteLoader.Children.Add(ModDownloadLib.LiteLoaderDownloadListItem(entry, delegate(object sender, MouseButtonEventArgs e)
  1287. {
  1288. this.LiteLoader_Selected((MyListItem)sender, e);
  1289. }, false));
  1290. }
  1291. }
  1292. finally
  1293. {
  1294. List<ModDownload.DlLiteLoaderListEntry>.Enumerator enumerator2;
  1295. ((IDisposable)enumerator2).Dispose();
  1296. }
  1297. }
  1298. }
  1299. }
  1300. catch (Exception ex)
  1301. {
  1302. ModBase.Log(ex, "可视化 LiteLoader 安装版本列表出错", ModBase.LogLevel.Feedback, "出现错误");
  1303. }
  1304. }
  1305. // Token: 0x0600075C RID: 1884 RVA: 0x00005C62 File Offset: 0x00003E62
  1306. private void LiteLoader_Selected(MyListItem sender, EventArgs e)
  1307. {
  1308. this.m_ClientReader = (ModDownload.DlLiteLoaderListEntry)sender.Tag;
  1309. this.CardLiteLoader.IsSwaped = true;
  1310. this.SelectReload();
  1311. }
  1312. // Token: 0x0600075D RID: 1885 RVA: 0x00005C87 File Offset: 0x00003E87
  1313. private void LiteLoader_Clear(object sender, MouseButtonEventArgs e)
  1314. {
  1315. this.m_ClientReader = null;
  1316. this.CardLiteLoader.IsSwaped = true;
  1317. e.Handled = true;
  1318. this.SelectReload();
  1319. }
  1320. // Token: 0x0600075E RID: 1886 RVA: 0x00041D60 File Offset: 0x0003FF60
  1321. private string LoadForgeGetError()
  1322. {
  1323. string result;
  1324. if (!this.parserReader.StartsWith("1."))
  1325. {
  1326. result = "没有可用版本";
  1327. }
  1328. else if (!this.LoadForge.State.IsLoader)
  1329. {
  1330. result = "正在获取版本列表……";
  1331. }
  1332. else
  1333. {
  1334. ModLoader.LoaderTask<string, List<ModDownload.DlForgeVersionEntry>> loaderTask = (ModLoader.LoaderTask<string, List<ModDownload.DlForgeVersionEntry>>)this.LoadForge.State;
  1335. if (Operators.CompareString(this.parserReader, loaderTask.Input, false) != 0)
  1336. {
  1337. result = "正在获取版本列表……";
  1338. }
  1339. else if (loaderTask.State == ModBase.LoadState.Loading)
  1340. {
  1341. result = "正在获取版本列表……";
  1342. }
  1343. else if (loaderTask.State == ModBase.LoadState.Failed)
  1344. {
  1345. string message = loaderTask.Error.Message;
  1346. if (message.Contains("没有可用版本"))
  1347. {
  1348. result = "没有可用版本";
  1349. }
  1350. else
  1351. {
  1352. result = "获取版本列表失败:" + message;
  1353. }
  1354. }
  1355. else if (loaderTask.State != ModBase.LoadState.Finished)
  1356. {
  1357. result = "获取版本列表失败:未知错误,状态为 " + ModBase.GetStringFromEnum(loaderTask.State);
  1358. }
  1359. else
  1360. {
  1361. bool flag = false;
  1362. try
  1363. {
  1364. foreach (ModDownload.DlForgeVersionEntry dlForgeVersionEntry in loaderTask.Output)
  1365. {
  1366. if (Operators.CompareString(dlForgeVersionEntry._ComposerMap, "universal", false) != 0 && Operators.CompareString(dlForgeVersionEntry._ComposerMap, "client", false) != 0)
  1367. {
  1368. if (this.m_TestsReader != null)
  1369. {
  1370. return "与 NeoForge 不兼容";
  1371. }
  1372. if (this.m_MapperReader != null)
  1373. {
  1374. return "与 Fabric 不兼容";
  1375. }
  1376. if (this.readerReader != null && ModMinecraft.VersionSortInteger(this.parserReader, "1.13") >= 0 && ModMinecraft.VersionSortInteger("1.14.3", this.parserReader) >= 0)
  1377. {
  1378. return "与 OptiFine 不兼容";
  1379. }
  1380. if (!Conversions.ToBoolean(this.readerReader != null && Conversions.ToBoolean(Operators.NotObject(this.IsOptiFineSuitForForge(this.readerReader, dlForgeVersionEntry)))))
  1381. {
  1382. return null;
  1383. }
  1384. flag = true;
  1385. }
  1386. }
  1387. }
  1388. finally
  1389. {
  1390. List<ModDownload.DlForgeVersionEntry>.Enumerator enumerator;
  1391. ((IDisposable)enumerator).Dispose();
  1392. }
  1393. result = (flag ? "与 OptiFine 不兼容" : "该版本不支持自动安装");
  1394. }
  1395. }
  1396. return result;
  1397. }
  1398. // Token: 0x0600075F RID: 1887 RVA: 0x00005CA9 File Offset: 0x00003EA9
  1399. private void CardForge_PreviewSwap(object sender, ModBase.RouteEventArgs e)
  1400. {
  1401. if (this.LoadForgeGetError() != null)
  1402. {
  1403. e.m_SerializerError = true;
  1404. }
  1405. }
  1406. // Token: 0x06000760 RID: 1888 RVA: 0x00041F68 File Offset: 0x00040168
  1407. private void Forge_Loaded()
  1408. {
  1409. try
  1410. {
  1411. if (this.LoadForge.State.IsLoader)
  1412. {
  1413. ModLoader.LoaderTask<string, List<ModDownload.DlForgeVersionEntry>> loaderTask = (ModLoader.LoaderTask<string, List<ModDownload.DlForgeVersionEntry>>)this.LoadForge.State;
  1414. if (Operators.CompareString(this.parserReader, loaderTask.Input, false) == 0)
  1415. {
  1416. if (loaderTask.State == ModBase.LoadState.Finished)
  1417. {
  1418. List<ModDownload.DlForgeVersionEntry> list = Enumerable.ToList<ModDownload.DlForgeVersionEntry>(loaderTask.Output);
  1419. if (Enumerable.Any<ModDownload.DlForgeVersionEntry>(loaderTask.Output))
  1420. {
  1421. this.PanForge.Children.Clear();
  1422. list = Enumerable.ToList<ModDownload.DlForgeVersionEntry>(Enumerable.Where<ModDownload.DlForgeVersionEntry>(list.Sort((PageDownloadInstall._Closure$__.$I54-0 == null) ? (PageDownloadInstall._Closure$__.$I54-0 = ((ModDownload.DlForgeVersionEntry a, ModDownload.DlForgeVersionEntry b) => a.clientMap > b.clientMap)) : PageDownloadInstall._Closure$__.$I54-0), (ModDownload.DlForgeVersionEntry v) => Operators.CompareString(v._ComposerMap, "universal", false) != 0 && Operators.CompareString(v._ComposerMap, "client", false) != 0 && !Conversions.ToBoolean(this.readerReader != null && Conversions.ToBoolean(Operators.NotObject(this.IsOptiFineSuitForForge(this.readerReader, v))))));
  1423. ModDownloadLib.ForgeDownloadListItemPreload(this.PanForge, list, delegate(object sender, MouseButtonEventArgs e)
  1424. {
  1425. this.Forge_Selected((MyListItem)sender, e);
  1426. }, false);
  1427. try
  1428. {
  1429. foreach (ModDownload.DlForgeVersionEntry entry in list)
  1430. {
  1431. this.PanForge.Children.Add(ModDownloadLib.ForgeDownloadListItem(entry, delegate(object sender, MouseButtonEventArgs e)
  1432. {
  1433. this.Forge_Selected((MyListItem)sender, e);
  1434. }, false));
  1435. }
  1436. }
  1437. finally
  1438. {
  1439. List<ModDownload.DlForgeVersionEntry>.Enumerator enumerator;
  1440. ((IDisposable)enumerator).Dispose();
  1441. }
  1442. }
  1443. }
  1444. }
  1445. }
  1446. }
  1447. catch (Exception ex)
  1448. {
  1449. ModBase.Log(ex, "可视化 Forge 安装版本列表出错", ModBase.LogLevel.Feedback, "出现错误");
  1450. }
  1451. }
  1452. // Token: 0x06000761 RID: 1889 RVA: 0x000420F4 File Offset: 0x000402F4
  1453. private void Forge_Selected(MyListItem sender, EventArgs e)
  1454. {
  1455. this._ConfigReader = (ModDownload.DlForgeVersionEntry)sender.Tag;
  1456. this.CardForge.IsSwaped = true;
  1457. if (Conversions.ToBoolean(this.readerReader != null && Conversions.ToBoolean(Operators.NotObject(this.IsOptiFineSuitForForge(this.readerReader, this._ConfigReader)))))
  1458. {
  1459. this.readerReader = null;
  1460. }
  1461. this.OptiFine_Loaded();
  1462. this.SelectReload();
  1463. }
  1464. // Token: 0x06000762 RID: 1890 RVA: 0x00005CBA File Offset: 0x00003EBA
  1465. private void Forge_Clear(object sender, MouseButtonEventArgs e)
  1466. {
  1467. this._ConfigReader = null;
  1468. this.CardForge.IsSwaped = true;
  1469. e.Handled = true;
  1470. this.OptiFine_Loaded();
  1471. this.SelectReload();
  1472. }
  1473. // Token: 0x06000763 RID: 1891 RVA: 0x00042164 File Offset: 0x00040364
  1474. private string LoadNeoForgeGetError()
  1475. {
  1476. string result;
  1477. if (!this.parserReader.StartsWith("1."))
  1478. {
  1479. result = "没有可用版本";
  1480. }
  1481. else if (this.readerReader != null)
  1482. {
  1483. result = "与 OptiFine 不兼容";
  1484. }
  1485. else if (this._ConfigReader != null)
  1486. {
  1487. result = "与 Forge 不兼容";
  1488. }
  1489. else if (this.m_MapperReader != null)
  1490. {
  1491. result = "与 Fabric 不兼容";
  1492. }
  1493. else if (this.LoadNeoForge != null && this.LoadNeoForge.State.LoadingState != MyLoading.MyLoadingState.Run)
  1494. {
  1495. if (this.LoadNeoForge.State.LoadingState == MyLoading.MyLoadingState.Error)
  1496. {
  1497. result = Conversions.ToString(Operators.ConcatenateObject("获取版本列表失败:", NewLateBinding.LateGet(NewLateBinding.LateGet(this.LoadNeoForge.State, null, "Error", new object[0], null, null, null), null, "Message", new object[0], null, null, null)));
  1498. }
  1499. else if (Enumerable.Any<ModDownload.DlNeoForgeListEntry>(ModDownload.m_AnnotationTests.Output.Value, (ModDownload.DlNeoForgeListEntry v) => Operators.CompareString(v._TestsMap, this.parserReader, false) == 0))
  1500. {
  1501. result = null;
  1502. }
  1503. else
  1504. {
  1505. result = "没有可用版本";
  1506. }
  1507. }
  1508. else
  1509. {
  1510. result = "正在获取版本列表……";
  1511. }
  1512. return result;
  1513. }
  1514. // Token: 0x06000764 RID: 1892 RVA: 0x00005CE2 File Offset: 0x00003EE2
  1515. private void CardNeoForge_PreviewSwap(object sender, ModBase.RouteEventArgs e)
  1516. {
  1517. if (this.LoadNeoForgeGetError() != null)
  1518. {
  1519. e.m_SerializerError = true;
  1520. }
  1521. }
  1522. // Token: 0x06000765 RID: 1893 RVA: 0x00042274 File Offset: 0x00040474
  1523. private void NeoForge_Loaded()
  1524. {
  1525. try
  1526. {
  1527. if (ModDownload.m_AnnotationTests.State == ModBase.LoadState.Finished)
  1528. {
  1529. List<ModDownload.DlNeoForgeListEntry> list = Enumerable.ToList<ModDownload.DlNeoForgeListEntry>(Enumerable.Where<ModDownload.DlNeoForgeListEntry>(ModDownload.m_AnnotationTests.Output.Value, (ModDownload.DlNeoForgeListEntry v) => Operators.CompareString(v._TestsMap, this.parserReader, false) == 0));
  1530. if (Enumerable.Any<ModDownload.DlNeoForgeListEntry>(list))
  1531. {
  1532. this.PanNeoForge.Children.Clear();
  1533. ModDownloadLib.NeoForgeDownloadListItemPreload(this.PanNeoForge, list, delegate(object sender, MouseButtonEventArgs e)
  1534. {
  1535. this.NeoForge_Selected((MyListItem)sender, e);
  1536. }, false);
  1537. try
  1538. {
  1539. foreach (ModDownload.DlNeoForgeListEntry info in list)
  1540. {
  1541. this.PanNeoForge.Children.Add(ModDownloadLib.NeoForgeDownloadListItem(info, delegate(object sender, MouseButtonEventArgs e)
  1542. {
  1543. this.NeoForge_Selected((MyListItem)sender, e);
  1544. }, false));
  1545. }
  1546. }
  1547. finally
  1548. {
  1549. List<ModDownload.DlNeoForgeListEntry>.Enumerator enumerator;
  1550. ((IDisposable)enumerator).Dispose();
  1551. }
  1552. }
  1553. }
  1554. }
  1555. catch (Exception ex)
  1556. {
  1557. ModBase.Log(ex, "可视化 NeoForge 安装版本列表出错", ModBase.LogLevel.Feedback, "出现错误");
  1558. }
  1559. }
  1560. // Token: 0x06000766 RID: 1894 RVA: 0x00005CF3 File Offset: 0x00003EF3
  1561. private void NeoForge_Selected(MyListItem sender, EventArgs e)
  1562. {
  1563. this.m_TestsReader = (ModDownload.DlNeoForgeListEntry)sender.Tag;
  1564. this.CardNeoForge.IsSwaped = true;
  1565. this.OptiFine_Loaded();
  1566. this.SelectReload();
  1567. }
  1568. // Token: 0x06000767 RID: 1895 RVA: 0x00005D1E File Offset: 0x00003F1E
  1569. private void NeoForge_Clear(object sender, MouseButtonEventArgs e)
  1570. {
  1571. this.m_TestsReader = null;
  1572. this.CardNeoForge.IsSwaped = true;
  1573. e.Handled = true;
  1574. this.OptiFine_Loaded();
  1575. this.SelectReload();
  1576. }
  1577. // Token: 0x06000768 RID: 1896 RVA: 0x0004237C File Offset: 0x0004057C
  1578. private string LoadFabricGetError()
  1579. {
  1580. string result;
  1581. if (this.LoadFabric != null && this.LoadFabric.State.LoadingState != MyLoading.MyLoadingState.Run)
  1582. {
  1583. if (this.LoadFabric.State.LoadingState == MyLoading.MyLoadingState.Error)
  1584. {
  1585. result = Conversions.ToString(Operators.ConcatenateObject("获取版本列表失败:", NewLateBinding.LateGet(NewLateBinding.LateGet(this.LoadFabric.State, null, "Error", new object[0], null, null, null), null, "Message", new object[0], null, null, null)));
  1586. }
  1587. else
  1588. {
  1589. try
  1590. {
  1591. IEnumerator<JToken> enumerator = ModDownload.authenticationTests.Output.Value["game"].GetEnumerator();
  1592. while (enumerator.MoveNext())
  1593. {
  1594. if (Operators.CompareString(((JObject)enumerator.Current)["version"].ToString(), this.parserReader.Replace("∞", "infinite").Replace("Combat Test 7c", "1.16_combat-3"), false) == 0)
  1595. {
  1596. if (this._ConfigReader != null)
  1597. {
  1598. return "与 Forge 不兼容";
  1599. }
  1600. if (this.m_TestsReader != null)
  1601. {
  1602. return "与 NeoForge 不兼容";
  1603. }
  1604. return null;
  1605. }
  1606. }
  1607. }
  1608. finally
  1609. {
  1610. IEnumerator<JToken> enumerator;
  1611. if (enumerator != null)
  1612. {
  1613. enumerator.Dispose();
  1614. }
  1615. }
  1616. result = "没有可用版本";
  1617. }
  1618. }
  1619. else
  1620. {
  1621. result = "正在获取版本列表……";
  1622. }
  1623. return result;
  1624. }
  1625. // Token: 0x06000769 RID: 1897 RVA: 0x00005D46 File Offset: 0x00003F46
  1626. private void CardFabric_PreviewSwap(object sender, ModBase.RouteEventArgs e)
  1627. {
  1628. if (this.LoadFabricGetError() != null)
  1629. {
  1630. e.m_SerializerError = true;
  1631. }
  1632. }
  1633. // Token: 0x0600076A RID: 1898 RVA: 0x000424C4 File Offset: 0x000406C4
  1634. private void Fabric_Loaded()
  1635. {
  1636. try
  1637. {
  1638. if (ModDownload.authenticationTests.State == ModBase.LoadState.Finished)
  1639. {
  1640. JArray jarray = (JArray)ModDownload.authenticationTests.Output.Value["loader"];
  1641. if (Enumerable.Any<JToken>(jarray))
  1642. {
  1643. this.PanFabric.Children.Clear();
  1644. this.PanFabric.Tag = jarray;
  1645. this.CardFabric._Stub = this.PanFabric;
  1646. this.CardFabric.CreateParser(12);
  1647. }
  1648. }
  1649. }
  1650. catch (Exception ex)
  1651. {
  1652. ModBase.Log(ex, "可视化 Fabric 安装版本列表出错", ModBase.LogLevel.Feedback, "出现错误");
  1653. }
  1654. }
  1655. // Token: 0x0600076B RID: 1899 RVA: 0x00042578 File Offset: 0x00040778
  1656. public void Fabric_Selected(MyListItem sender, EventArgs e)
  1657. {
  1658. this.m_MapperReader = NewLateBinding.LateIndexGet(sender.Tag, new object[]
  1659. {
  1660. "version"
  1661. }, null).ToString();
  1662. this.FabricApi_Loaded();
  1663. this.OptiFabric_Loaded();
  1664. this.CardFabric.IsSwaped = true;
  1665. this.SelectReload();
  1666. }
  1667. // Token: 0x0600076C RID: 1900 RVA: 0x00005D57 File Offset: 0x00003F57
  1668. private void Fabric_Clear(object sender, MouseButtonEventArgs e)
  1669. {
  1670. this.m_MapperReader = null;
  1671. this.m_ThreadReader = null;
  1672. this._PropertyReader = null;
  1673. this.CardFabric.IsSwaped = true;
  1674. e.Handled = true;
  1675. this.SelectReload();
  1676. }
  1677. // Token: 0x0600076D RID: 1901 RVA: 0x000425C8 File Offset: 0x000407C8
  1678. public static bool IsSuitableFabricApi(string DisplayName, string MinecraftVersion)
  1679. {
  1680. checked
  1681. {
  1682. bool result;
  1683. try
  1684. {
  1685. if (DisplayName != null && MinecraftVersion != null)
  1686. {
  1687. DisplayName = DisplayName.ToLower();
  1688. MinecraftVersion = MinecraftVersion.Replace("∞", "infinite").Replace("Combat Test 7c", "1.16_combat-3").ToLower();
  1689. if (DisplayName.StartsWith("[" + MinecraftVersion + "]"))
  1690. {
  1691. result = true;
  1692. }
  1693. else if (DisplayName.Contains("/") && DisplayName.Contains("]"))
  1694. {
  1695. string[] array = DisplayName.BeforeFirst("]", false).TrimStart(new char[]
  1696. {
  1697. '['
  1698. }).Split("/");
  1699. for (int i = 0; i < array.Length; i++)
  1700. {
  1701. if (Operators.CompareString(array[i], MinecraftVersion, false) == 0)
  1702. {
  1703. return true;
  1704. }
  1705. }
  1706. List<string> list = ModBase.RegexSearch(DisplayName.BeforeFirst("]", false), "[a-z/]+|[0-9/]+", 0);
  1707. List<string> list2 = ModBase.RegexSearch(MinecraftVersion.BeforeFirst("]", false), "[a-z/]+|[0-9/]+", 0);
  1708. int num = 0;
  1709. while (list.Count - 1 >= num || list2.Count - 1 >= num)
  1710. {
  1711. string text = (list.Count - 1 < num) ? "-1" : list[num];
  1712. string text2 = (list2.Count - 1 < num) ? "-1" : list2[num];
  1713. if (!text.Contains("/"))
  1714. {
  1715. if (Operators.CompareString(text, text2, false) != 0)
  1716. {
  1717. return false;
  1718. }
  1719. }
  1720. else if (!text.Contains(text2))
  1721. {
  1722. return false;
  1723. }
  1724. num++;
  1725. }
  1726. result = true;
  1727. }
  1728. else
  1729. {
  1730. result = false;
  1731. }
  1732. }
  1733. else
  1734. {
  1735. result = false;
  1736. }
  1737. }
  1738. catch (Exception ex)
  1739. {
  1740. ModBase.Log(ex, string.Concat(new string[]
  1741. {
  1742. "判断 Fabric API 版本适配性出错(",
  1743. DisplayName,
  1744. ", ",
  1745. MinecraftVersion,
  1746. ")"
  1747. }), ModBase.LogLevel.Debug, "出现错误");
  1748. result = false;
  1749. }
  1750. return result;
  1751. }
  1752. }
  1753. // Token: 0x0600076E RID: 1902 RVA: 0x000427CC File Offset: 0x000409CC
  1754. private string LoadFabricApiGetError()
  1755. {
  1756. string result;
  1757. if (this.LoadFabricApi != null && this.LoadFabricApi.State.LoadingState != MyLoading.MyLoadingState.Run)
  1758. {
  1759. if (this.LoadFabricApi.State.LoadingState == MyLoading.MyLoadingState.Error)
  1760. {
  1761. result = Conversions.ToString(Operators.ConcatenateObject("获取版本列表失败:", NewLateBinding.LateGet(NewLateBinding.LateGet(this.LoadFabricApi.State, null, "Error", new object[0], null, null, null), null, "Message", new object[0], null, null, null)));
  1762. }
  1763. else if (ModDownload.mappingTests.Output == null)
  1764. {
  1765. if (this.m_MapperReader == null)
  1766. {
  1767. result = "需要安装 Fabric";
  1768. }
  1769. else
  1770. {
  1771. result = "正在获取版本列表……";
  1772. }
  1773. }
  1774. else
  1775. {
  1776. try
  1777. {
  1778. List<ModComp.CompFile>.Enumerator enumerator = ModDownload.mappingTests.Output.GetEnumerator();
  1779. while (enumerator.MoveNext())
  1780. {
  1781. if (PageDownloadInstall.IsSuitableFabricApi(enumerator.Current._ProductRepository, this.parserReader))
  1782. {
  1783. if (this.m_MapperReader == null)
  1784. {
  1785. return "需要安装 Fabric";
  1786. }
  1787. return null;
  1788. }
  1789. }
  1790. }
  1791. finally
  1792. {
  1793. List<ModComp.CompFile>.Enumerator enumerator;
  1794. ((IDisposable)enumerator).Dispose();
  1795. }
  1796. result = "没有可用版本";
  1797. }
  1798. }
  1799. else
  1800. {
  1801. result = "正在获取版本列表……";
  1802. }
  1803. return result;
  1804. }
  1805. // Token: 0x0600076F RID: 1903 RVA: 0x00005D87 File Offset: 0x00003F87
  1806. private void CardFabricApi_PreviewSwap(object sender, ModBase.RouteEventArgs e)
  1807. {
  1808. if (this.LoadFabricApiGetError() != null)
  1809. {
  1810. e.m_SerializerError = true;
  1811. }
  1812. }
  1813. // Token: 0x06000770 RID: 1904 RVA: 0x000428F0 File Offset: 0x00040AF0
  1814. private void FabricApi_Loaded()
  1815. {
  1816. try
  1817. {
  1818. if (ModDownload.mappingTests.State == ModBase.LoadState.Finished)
  1819. {
  1820. if (this.parserReader != null && this.m_MapperReader != null)
  1821. {
  1822. List<ModComp.CompFile> list = new List<ModComp.CompFile>();
  1823. try
  1824. {
  1825. foreach (ModComp.CompFile compFile in ModDownload.mappingTests.Output)
  1826. {
  1827. if (PageDownloadInstall.IsSuitableFabricApi(compFile._ProductRepository, this.parserReader))
  1828. {
  1829. if (!compFile._ProductRepository.StartsWith("["))
  1830. {
  1831. ModBase.Log("[Download] 已特判修改 Fabric API 显示名:" + compFile._ProductRepository, ModBase.LogLevel.Debug, "出现错误");
  1832. compFile._ProductRepository = "[" + this.parserReader + "] " + compFile._ProductRepository;
  1833. }
  1834. list.Add(compFile);
  1835. }
  1836. }
  1837. }
  1838. finally
  1839. {
  1840. List<ModComp.CompFile>.Enumerator enumerator;
  1841. ((IDisposable)enumerator).Dispose();
  1842. }
  1843. if (Enumerable.Any<ModComp.CompFile>(list))
  1844. {
  1845. list = list.Sort((PageDownloadInstall._Closure$__.$I71-0 == null) ? (PageDownloadInstall._Closure$__.$I71-0 = ((ModComp.CompFile a, ModComp.CompFile b) => DateTime.Compare(a._ListenerRepository, b._ListenerRepository) > 0)) : PageDownloadInstall._Closure$__.$I71-0);
  1846. this.PanFabricApi.Children.Clear();
  1847. try
  1848. {
  1849. foreach (ModComp.CompFile compFile2 in list)
  1850. {
  1851. if (PageDownloadInstall.IsSuitableFabricApi(compFile2._ProductRepository, this.parserReader))
  1852. {
  1853. this.PanFabricApi.Children.Add(ModDownloadLib.FabricApiDownloadListItem(compFile2, delegate(object sender, MouseButtonEventArgs e)
  1854. {
  1855. this.FabricApi_Selected((MyListItem)sender, e);
  1856. }));
  1857. }
  1858. }
  1859. }
  1860. finally
  1861. {
  1862. List<ModComp.CompFile>.Enumerator enumerator2;
  1863. ((IDisposable)enumerator2).Dispose();
  1864. }
  1865. if (!this._ContextReader)
  1866. {
  1867. this._ContextReader = true;
  1868. ModBase.Log(string.Format("[Download] 已自动选择 Fabric API:{0}", ((MyListItem)this.PanFabricApi.Children[0]).Title), ModBase.LogLevel.Normal, "出现错误");
  1869. this.FabricApi_Selected((MyListItem)this.PanFabricApi.Children[0], null);
  1870. }
  1871. }
  1872. }
  1873. }
  1874. }
  1875. catch (Exception ex)
  1876. {
  1877. ModBase.Log(ex, "可视化 Fabric API 安装版本列表出错", ModBase.LogLevel.Feedback, "出现错误");
  1878. }
  1879. }
  1880. // Token: 0x06000771 RID: 1905 RVA: 0x00005D98 File Offset: 0x00003F98
  1881. private void FabricApi_Selected(MyListItem sender, EventArgs e)
  1882. {
  1883. this.m_ThreadReader = (ModComp.CompFile)sender.Tag;
  1884. this.CardFabricApi.IsSwaped = true;
  1885. this.SelectReload();
  1886. }
  1887. // Token: 0x06000772 RID: 1906 RVA: 0x00005DBD File Offset: 0x00003FBD
  1888. private void FabricApi_Clear(object sender, MouseButtonEventArgs e)
  1889. {
  1890. this.m_ThreadReader = null;
  1891. this.CardFabricApi.IsSwaped = true;
  1892. e.Handled = true;
  1893. this.SelectReload();
  1894. }
  1895. // Token: 0x06000773 RID: 1907 RVA: 0x00042B40 File Offset: 0x00040D40
  1896. private bool IsSuitableOptiFabric(ModComp.CompFile ModFile, string MinecraftVersion)
  1897. {
  1898. bool result;
  1899. try
  1900. {
  1901. if (MinecraftVersion == null)
  1902. {
  1903. result = false;
  1904. }
  1905. else
  1906. {
  1907. result = ModFile.m_ValueRepository.Contains(MinecraftVersion);
  1908. }
  1909. }
  1910. catch (Exception ex)
  1911. {
  1912. ModBase.Log(ex, "判断 OptiFabric 版本适配性出错(" + MinecraftVersion + ")", ModBase.LogLevel.Debug, "出现错误");
  1913. result = false;
  1914. }
  1915. return result;
  1916. }
  1917. // Token: 0x06000774 RID: 1908 RVA: 0x00042BA0 File Offset: 0x00040DA0
  1918. private string LoadOptiFabricGetError()
  1919. {
  1920. string result;
  1921. if (!this.parserReader.StartsWith("1.14") && !this.parserReader.StartsWith("1.15"))
  1922. {
  1923. if (this.LoadOptiFabric != null && this.LoadOptiFabric.State.LoadingState != MyLoading.MyLoadingState.Run)
  1924. {
  1925. if (this.LoadOptiFabric.State.LoadingState == MyLoading.MyLoadingState.Error)
  1926. {
  1927. result = Conversions.ToString(Operators.ConcatenateObject("获取版本列表失败:", NewLateBinding.LateGet(NewLateBinding.LateGet(this.LoadOptiFabric.State, null, "Error", new object[0], null, null, null), null, "Message", new object[0], null, null, null)));
  1928. }
  1929. else if (ModDownload.tokenizerTests.Output == null)
  1930. {
  1931. if (this.m_MapperReader == null && this.readerReader == null)
  1932. {
  1933. result = "需要安装 OptiFine 与 Fabric";
  1934. }
  1935. else if (this.m_MapperReader == null)
  1936. {
  1937. result = "需要安装 Fabric";
  1938. }
  1939. else if (this.readerReader == null)
  1940. {
  1941. result = "需要安装 OptiFine";
  1942. }
  1943. else
  1944. {
  1945. result = "正在获取版本列表……";
  1946. }
  1947. }
  1948. else
  1949. {
  1950. try
  1951. {
  1952. foreach (ModComp.CompFile modFile in ModDownload.tokenizerTests.Output)
  1953. {
  1954. if (this.IsSuitableOptiFabric(modFile, this.parserReader))
  1955. {
  1956. if (this.m_MapperReader == null && this.readerReader == null)
  1957. {
  1958. return "需要安装 OptiFine 与 Fabric";
  1959. }
  1960. if (this.m_MapperReader == null)
  1961. {
  1962. return "需要安装 Fabric";
  1963. }
  1964. if (this.readerReader == null)
  1965. {
  1966. return "需要安装 OptiFine";
  1967. }
  1968. return null;
  1969. }
  1970. }
  1971. }
  1972. finally
  1973. {
  1974. List<ModComp.CompFile>.Enumerator enumerator;
  1975. ((IDisposable)enumerator).Dispose();
  1976. }
  1977. result = "没有可用版本";
  1978. }
  1979. }
  1980. else
  1981. {
  1982. result = "正在获取版本列表……";
  1983. }
  1984. }
  1985. else
  1986. {
  1987. result = "不兼容老版本 Fabric,请手动下载 OptiFabric Origins";
  1988. }
  1989. return result;
  1990. }
  1991. // Token: 0x06000775 RID: 1909 RVA: 0x00005DDF File Offset: 0x00003FDF
  1992. private void CardOptiFabric_PreviewSwap(object sender, ModBase.RouteEventArgs e)
  1993. {
  1994. if (this.LoadOptiFabricGetError() != null)
  1995. {
  1996. e.m_SerializerError = true;
  1997. }
  1998. }
  1999. // Token: 0x06000776 RID: 1910 RVA: 0x00042D50 File Offset: 0x00040F50
  2000. private void OptiFabric_Loaded()
  2001. {
  2002. try
  2003. {
  2004. if (ModDownload.tokenizerTests.State == ModBase.LoadState.Finished)
  2005. {
  2006. if (this.parserReader != null && this.m_MapperReader != null && this.readerReader != null)
  2007. {
  2008. List<ModComp.CompFile> list = new List<ModComp.CompFile>();
  2009. try
  2010. {
  2011. foreach (ModComp.CompFile compFile in ModDownload.tokenizerTests.Output)
  2012. {
  2013. if (this.IsSuitableOptiFabric(compFile, this.parserReader))
  2014. {
  2015. list.Add(compFile);
  2016. }
  2017. }
  2018. }
  2019. finally
  2020. {
  2021. List<ModComp.CompFile>.Enumerator enumerator;
  2022. ((IDisposable)enumerator).Dispose();
  2023. }
  2024. if (Enumerable.Any<ModComp.CompFile>(list))
  2025. {
  2026. list = list.Sort((PageDownloadInstall._Closure$__.$I78-0 == null) ? (PageDownloadInstall._Closure$__.$I78-0 = ((ModComp.CompFile a, ModComp.CompFile b) => DateTime.Compare(a._ListenerRepository, b._ListenerRepository) > 0)) : PageDownloadInstall._Closure$__.$I78-0);
  2027. this.PanOptiFabric.Children.Clear();
  2028. try
  2029. {
  2030. foreach (ModComp.CompFile compFile2 in list)
  2031. {
  2032. if (this.IsSuitableOptiFabric(compFile2, this.parserReader))
  2033. {
  2034. this.PanOptiFabric.Children.Add(ModDownloadLib.OptiFabricDownloadListItem(compFile2, delegate(object sender, MouseButtonEventArgs e)
  2035. {
  2036. this.OptiFabric_Selected((MyListItem)sender, e);
  2037. }));
  2038. }
  2039. }
  2040. }
  2041. finally
  2042. {
  2043. List<ModComp.CompFile>.Enumerator enumerator2;
  2044. ((IDisposable)enumerator2).Dispose();
  2045. }
  2046. if (!this._SpecificationReader && !this.parserReader.StartsWith("1.14") && !this.parserReader.StartsWith("1.15"))
  2047. {
  2048. this._SpecificationReader = true;
  2049. ModBase.Log(string.Format("[Download] 已自动选择 OptiFabric:{0}", ((MyListItem)this.PanOptiFabric.Children[0]).Title), ModBase.LogLevel.Normal, "出现错误");
  2050. this.OptiFabric_Selected((MyListItem)this.PanOptiFabric.Children[0], null);
  2051. }
  2052. }
  2053. }
  2054. }
  2055. }
  2056. catch (Exception ex)
  2057. {
  2058. ModBase.Log(ex, "可视化 OptiFabric 安装版本列表出错", ModBase.LogLevel.Feedback, "出现错误");
  2059. }
  2060. }
  2061. // Token: 0x06000777 RID: 1911 RVA: 0x00005DF0 File Offset: 0x00003FF0
  2062. private void OptiFabric_Selected(MyListItem sender, EventArgs e)
  2063. {
  2064. this._PropertyReader = (ModComp.CompFile)sender.Tag;
  2065. this.CardOptiFabric.IsSwaped = true;
  2066. this.SelectReload();
  2067. }
  2068. // Token: 0x06000778 RID: 1912 RVA: 0x00005E15 File Offset: 0x00004015
  2069. private void OptiFabric_Clear(object sender, MouseButtonEventArgs e)
  2070. {
  2071. this._PropertyReader = null;
  2072. this.CardOptiFabric.IsSwaped = true;
  2073. e.Handled = true;
  2074. this.SelectReload();
  2075. }
  2076. // Token: 0x06000779 RID: 1913 RVA: 0x00005E37 File Offset: 0x00004037
  2077. private void TextSelectName_KeyDown(object sender, KeyEventArgs e)
  2078. {
  2079. if (e.Key == Key.Return && this.BtnSelectStart.IsEnabled)
  2080. {
  2081. this.BtnSelectStart_Click();
  2082. }
  2083. }
  2084. // Token: 0x0600077A RID: 1914 RVA: 0x00042F78 File Offset: 0x00041178
  2085. private void BtnSelectStart_Click()
  2086. {
  2087. if (((this._ConfigReader == null && this.m_TestsReader == null && this.m_MapperReader == null) || (!Operators.ConditionalCompareObjectEqual(ModBase.m_IdentifierRepository.Get("LaunchArgumentIndie", null), 0, false) && !Operators.ConditionalCompareObjectEqual(ModBase.m_IdentifierRepository.Get("LaunchArgumentIndie", null), 2, false)) || ModMain.MyMsgBox("你尚未开启版本隔离,这会导致多个 MC 共用同一个 Mod 文件夹。\r\n因此在切换 MC 版本时,MC 会因为读取到与当前版本不符的 Mod 而崩溃。\r\nPCL 推荐你在开始下载前,在 设置 → 版本隔离 中开启版本隔离选项!", "版本隔离提示", "取消下载", "继续", "", false, true, false, null, null, null) != 1) && ModDownloadLib.McInstall(new ModDownloadLib.McInstallRequest
  2088. {
  2089. m_SystemTest = this.TextSelectName.Text,
  2090. _ParamTest = string.Format("{0}versions\\{1}\\", ModMinecraft.m_ProxyTests, this.TextSelectName.Text),
  2091. m_ObserverTest = this.m_BroadcasterReader,
  2092. _TagTest = this.parserReader,
  2093. rulesTest = this.readerReader,
  2094. decoratorTest = this._ConfigReader,
  2095. stateTest = this.m_TestsReader,
  2096. m_CallbackTest = this.m_MapperReader,
  2097. _TemplateTest = this.m_ThreadReader,
  2098. OptiFabric = this._PropertyReader,
  2099. methodTest = this.m_ClientReader
  2100. }))
  2101. {
  2102. this.ExitSelectPage();
  2103. }
  2104. }
  2105. // Token: 0x170000C6 RID: 198
  2106. // (get) Token: 0x0600077B RID: 1915 RVA: 0x00005E55 File Offset: 0x00004055
  2107. // (set) Token: 0x0600077C RID: 1916 RVA: 0x00005E5D File Offset: 0x0000405D
  2108. internal virtual MyScrollViewer PanBack { get; set; }
  2109. // Token: 0x170000C7 RID: 199
  2110. // (get) Token: 0x0600077D RID: 1917 RVA: 0x00005E66 File Offset: 0x00004066
  2111. // (set) Token: 0x0600077E RID: 1918 RVA: 0x00005E6E File Offset: 0x0000406E
  2112. internal virtual StackPanel PanMinecraft { get; set; }
  2113. // Token: 0x170000C8 RID: 200
  2114. // (get) Token: 0x0600077F RID: 1919 RVA: 0x00005E77 File Offset: 0x00004077
  2115. // (set) Token: 0x06000780 RID: 1920 RVA: 0x00005E7F File Offset: 0x0000407F
  2116. internal virtual StackPanel PanSelect { get; set; }
  2117. // Token: 0x170000C9 RID: 201
  2118. // (get) Token: 0x06000781 RID: 1921 RVA: 0x00005E88 File Offset: 0x00004088
  2119. // (set) Token: 0x06000782 RID: 1922 RVA: 0x00005E90 File Offset: 0x00004090
  2120. internal virtual MyHint HintFabricAPI { get; set; }
  2121. // Token: 0x170000CA RID: 202
  2122. // (get) Token: 0x06000783 RID: 1923 RVA: 0x00005E99 File Offset: 0x00004099
  2123. // (set) Token: 0x06000784 RID: 1924 RVA: 0x00005EA1 File Offset: 0x000040A1
  2124. internal virtual MyHint HintOptiFabric { get; set; }
  2125. // Token: 0x170000CB RID: 203
  2126. // (get) Token: 0x06000785 RID: 1925 RVA: 0x00005EAA File Offset: 0x000040AA
  2127. // (set) Token: 0x06000786 RID: 1926 RVA: 0x00005EB2 File Offset: 0x000040B2
  2128. internal virtual MyHint HintOptiFabricOld { get; set; }
  2129. // Token: 0x170000CC RID: 204
  2130. // (get) Token: 0x06000787 RID: 1927 RVA: 0x00005EBB File Offset: 0x000040BB
  2131. // (set) Token: 0x06000788 RID: 1928 RVA: 0x00005EC3 File Offset: 0x000040C3
  2132. internal virtual MyHint HintModOptiFine { get; set; }
  2133. // Token: 0x170000CD RID: 205
  2134. // (get) Token: 0x06000789 RID: 1929 RVA: 0x00005ECC File Offset: 0x000040CC
  2135. // (set) Token: 0x0600078A RID: 1930 RVA: 0x00005ED4 File Offset: 0x000040D4
  2136. internal virtual MyListItem ItemSelect { get; set; }
  2137. // Token: 0x170000CE RID: 206
  2138. // (get) Token: 0x0600078B RID: 1931 RVA: 0x00005EDD File Offset: 0x000040DD
  2139. // (set) Token: 0x0600078C RID: 1932 RVA: 0x000430B4 File Offset: 0x000412B4
  2140. internal virtual MyButton BtnSelectStart
  2141. {
  2142. [CompilerGenerated]
  2143. get
  2144. {
  2145. return this._WatcherReader;
  2146. }
  2147. [CompilerGenerated]
  2148. set
  2149. {
  2150. MyButton.ClickEventHandler value2 = delegate(object sender, MouseButtonEventArgs e)
  2151. {
  2152. this.BtnSelectStart_Click();
  2153. };
  2154. MyButton watcherReader = this._WatcherReader;
  2155. if (watcherReader != null)
  2156. {
  2157. watcherReader.Click -= value2;
  2158. }
  2159. this._WatcherReader = value;
  2160. watcherReader = this._WatcherReader;
  2161. if (watcherReader != null)
  2162. {
  2163. watcherReader.Click += value2;
  2164. }
  2165. }
  2166. }
  2167. // Token: 0x170000CF RID: 207
  2168. // (get) Token: 0x0600078D RID: 1933 RVA: 0x00005EE5 File Offset: 0x000040E5
  2169. // (set) Token: 0x0600078E RID: 1934 RVA: 0x000430F8 File Offset: 0x000412F8
  2170. internal virtual MyTextBox TextSelectName
  2171. {
  2172. [CompilerGenerated]
  2173. get
  2174. {
  2175. return this.identifierReader;
  2176. }
  2177. [CompilerGenerated]
  2178. set
  2179. {
  2180. TextChangedEventHandler value2 = new TextChangedEventHandler(this.TextSelectName_TextChanged);
  2181. MyTextBox.ValidateChangedEventHandler obj = new MyTextBox.ValidateChangedEventHandler(this.TextSelectName_ValidateChanged);
  2182. KeyEventHandler value3 = new KeyEventHandler(this.TextSelectName_KeyDown);
  2183. MyTextBox myTextBox = this.identifierReader;
  2184. if (myTextBox != null)
  2185. {
  2186. myTextBox.TextChanged -= value2;
  2187. MyTextBox.MapReader(obj);
  2188. myTextBox.KeyDown -= value3;
  2189. }
  2190. this.identifierReader = value;
  2191. myTextBox = this.identifierReader;
  2192. if (myTextBox != null)
  2193. {
  2194. myTextBox.TextChanged += value2;
  2195. MyTextBox.SortReader(obj);
  2196. myTextBox.KeyDown += value3;
  2197. }
  2198. }
  2199. }
  2200. // Token: 0x170000D0 RID: 208
  2201. // (get) Token: 0x0600078F RID: 1935 RVA: 0x00005EED File Offset: 0x000040ED
  2202. // (set) Token: 0x06000790 RID: 1936 RVA: 0x00043170 File Offset: 0x00041370
  2203. internal virtual MyCard CardMinecraft
  2204. {
  2205. [CompilerGenerated]
  2206. get
  2207. {
  2208. return this._SystemReader;
  2209. }
  2210. [CompilerGenerated]
  2211. set
  2212. {
  2213. MyCard.PreviewSwapEventHandler obj = new MyCard.PreviewSwapEventHandler(this.CardMinecraft_PreviewSwap);
  2214. MyCard systemReader = this._SystemReader;
  2215. if (systemReader != null)
  2216. {
  2217. systemReader.PostParser(obj);
  2218. }
  2219. this._SystemReader = value;
  2220. systemReader = this._SystemReader;
  2221. if (systemReader != null)
  2222. {
  2223. systemReader.InterruptParser(obj);
  2224. }
  2225. }
  2226. }
  2227. // Token: 0x170000D1 RID: 209
  2228. // (get) Token: 0x06000791 RID: 1937 RVA: 0x00005EF5 File Offset: 0x000040F5
  2229. // (set) Token: 0x06000792 RID: 1938 RVA: 0x00005EFD File Offset: 0x000040FD
  2230. internal virtual Grid PanMinecraftInfo { get; set; }
  2231. // Token: 0x170000D2 RID: 210
  2232. // (get) Token: 0x06000793 RID: 1939 RVA: 0x00005F06 File Offset: 0x00004106
  2233. // (set) Token: 0x06000794 RID: 1940 RVA: 0x00005F0E File Offset: 0x0000410E
  2234. internal virtual Image ImgMinecraft { get; set; }
  2235. // Token: 0x170000D3 RID: 211
  2236. // (get) Token: 0x06000795 RID: 1941 RVA: 0x00005F17 File Offset: 0x00004117
  2237. // (set) Token: 0x06000796 RID: 1942 RVA: 0x00005F1F File Offset: 0x0000411F
  2238. internal virtual TextBlock LabMinecraft { get; set; }
  2239. // Token: 0x170000D4 RID: 212
  2240. // (get) Token: 0x06000797 RID: 1943 RVA: 0x00005F28 File Offset: 0x00004128
  2241. // (set) Token: 0x06000798 RID: 1944 RVA: 0x000431B4 File Offset: 0x000413B4
  2242. internal virtual MyCard CardForge
  2243. {
  2244. [CompilerGenerated]
  2245. get
  2246. {
  2247. return this.m_StubReader;
  2248. }
  2249. [CompilerGenerated]
  2250. set
  2251. {
  2252. MyCard.SwapEventHandler obj = delegate(object sender, ModBase.RouteEventArgs e)
  2253. {
  2254. this.SelectReload();
  2255. };
  2256. MyCard.PreviewSwapEventHandler obj2 = new MyCard.PreviewSwapEventHandler(this.CardForge_PreviewSwap);
  2257. MyCard stubReader = this.m_StubReader;
  2258. if (stubReader != null)
  2259. {
  2260. stubReader.MoveParser(obj);
  2261. stubReader.PostParser(obj2);
  2262. }
  2263. this.m_StubReader = value;
  2264. stubReader = this.m_StubReader;
  2265. if (stubReader != null)
  2266. {
  2267. stubReader.CompareParser(obj);
  2268. stubReader.InterruptParser(obj2);
  2269. }
  2270. }
  2271. }
  2272. // Token: 0x170000D5 RID: 213
  2273. // (get) Token: 0x06000799 RID: 1945 RVA: 0x00005F30 File Offset: 0x00004130
  2274. // (set) Token: 0x0600079A RID: 1946 RVA: 0x00005F38 File Offset: 0x00004138
  2275. internal virtual StackPanel PanForge { get; set; }
  2276. // Token: 0x170000D6 RID: 214
  2277. // (get) Token: 0x0600079B RID: 1947 RVA: 0x00005F41 File Offset: 0x00004141
  2278. // (set) Token: 0x0600079C RID: 1948 RVA: 0x00005F49 File Offset: 0x00004149
  2279. internal virtual Grid PanForgeInfo { get; set; }
  2280. // Token: 0x170000D7 RID: 215
  2281. // (get) Token: 0x0600079D RID: 1949 RVA: 0x00005F52 File Offset: 0x00004152
  2282. // (set) Token: 0x0600079E RID: 1950 RVA: 0x00005F5A File Offset: 0x0000415A
  2283. internal virtual Image ImgForge { get; set; }
  2284. // Token: 0x170000D8 RID: 216
  2285. // (get) Token: 0x0600079F RID: 1951 RVA: 0x00005F63 File Offset: 0x00004163
  2286. // (set) Token: 0x060007A0 RID: 1952 RVA: 0x00005F6B File Offset: 0x0000416B
  2287. internal virtual TextBlock LabForge { get; set; }
  2288. // Token: 0x170000D9 RID: 217
  2289. // (get) Token: 0x060007A1 RID: 1953 RVA: 0x00005F74 File Offset: 0x00004174
  2290. // (set) Token: 0x060007A2 RID: 1954 RVA: 0x00043214 File Offset: 0x00041414
  2291. internal virtual Grid BtnForgeClear
  2292. {
  2293. [CompilerGenerated]
  2294. get
  2295. {
  2296. return this.stateReader;
  2297. }
  2298. [CompilerGenerated]
  2299. set
  2300. {
  2301. MouseButtonEventHandler value2 = new MouseButtonEventHandler(this.Forge_Clear);
  2302. Grid grid = this.stateReader;
  2303. if (grid != null)
  2304. {
  2305. grid.MouseLeftButtonUp -= value2;
  2306. }
  2307. this.stateReader = value;
  2308. grid = this.stateReader;
  2309. if (grid != null)
  2310. {
  2311. grid.MouseLeftButtonUp += value2;
  2312. }
  2313. }
  2314. }
  2315. // Token: 0x170000DA RID: 218
  2316. // (get) Token: 0x060007A3 RID: 1955 RVA: 0x00005F7C File Offset: 0x0000417C
  2317. // (set) Token: 0x060007A4 RID: 1956 RVA: 0x00005F84 File Offset: 0x00004184
  2318. internal virtual Path BtnForgeClearInner { get; set; }
  2319. // Token: 0x170000DB RID: 219
  2320. // (get) Token: 0x060007A5 RID: 1957 RVA: 0x00005F8D File Offset: 0x0000418D
  2321. // (set) Token: 0x060007A6 RID: 1958 RVA: 0x00043258 File Offset: 0x00041458
  2322. internal virtual MyCard CardNeoForge
  2323. {
  2324. [CompilerGenerated]
  2325. get
  2326. {
  2327. return this._TemplateReader;
  2328. }
  2329. [CompilerGenerated]
  2330. set
  2331. {
  2332. MyCard.SwapEventHandler obj = delegate(object sender, ModBase.RouteEventArgs e)
  2333. {
  2334. this.SelectReload();
  2335. };
  2336. MyCard.PreviewSwapEventHandler obj2 = new MyCard.PreviewSwapEventHandler(this.CardNeoForge_PreviewSwap);
  2337. MyCard templateReader = this._TemplateReader;
  2338. if (templateReader != null)
  2339. {
  2340. templateReader.MoveParser(obj);
  2341. templateReader.PostParser(obj2);
  2342. }
  2343. this._TemplateReader = value;
  2344. templateReader = this._TemplateReader;
  2345. if (templateReader != null)
  2346. {
  2347. templateReader.CompareParser(obj);
  2348. templateReader.InterruptParser(obj2);
  2349. }
  2350. }
  2351. }
  2352. // Token: 0x170000DC RID: 220
  2353. // (get) Token: 0x060007A7 RID: 1959 RVA: 0x00005F95 File Offset: 0x00004195
  2354. // (set) Token: 0x060007A8 RID: 1960 RVA: 0x00005F9D File Offset: 0x0000419D
  2355. internal virtual StackPanel PanNeoForge { get; set; }
  2356. // Token: 0x170000DD RID: 221
  2357. // (get) Token: 0x060007A9 RID: 1961 RVA: 0x00005FA6 File Offset: 0x000041A6
  2358. // (set) Token: 0x060007AA RID: 1962 RVA: 0x00005FAE File Offset: 0x000041AE
  2359. internal virtual Grid PanNeoForgeInfo { get; set; }
  2360. // Token: 0x170000DE RID: 222
  2361. // (get) Token: 0x060007AB RID: 1963 RVA: 0x00005FB7 File Offset: 0x000041B7
  2362. // (set) Token: 0x060007AC RID: 1964 RVA: 0x00005FBF File Offset: 0x000041BF
  2363. internal virtual Image ImgNeoForge { get; set; }
  2364. // Token: 0x170000DF RID: 223
  2365. // (get) Token: 0x060007AD RID: 1965 RVA: 0x00005FC8 File Offset: 0x000041C8
  2366. // (set) Token: 0x060007AE RID: 1966 RVA: 0x00005FD0 File Offset: 0x000041D0
  2367. internal virtual TextBlock LabNeoForge { get; set; }
  2368. // Token: 0x170000E0 RID: 224
  2369. // (get) Token: 0x060007AF RID: 1967 RVA: 0x00005FD9 File Offset: 0x000041D9
  2370. // (set) Token: 0x060007B0 RID: 1968 RVA: 0x000432B8 File Offset: 0x000414B8
  2371. internal virtual Grid BtnNeoForgeClear
  2372. {
  2373. [CompilerGenerated]
  2374. get
  2375. {
  2376. return this._GetterReader;
  2377. }
  2378. [CompilerGenerated]
  2379. set
  2380. {
  2381. MouseButtonEventHandler value2 = new MouseButtonEventHandler(this.NeoForge_Clear);
  2382. Grid getterReader = this._GetterReader;
  2383. if (getterReader != null)
  2384. {
  2385. getterReader.MouseLeftButtonUp -= value2;
  2386. }
  2387. this._GetterReader = value;
  2388. getterReader = this._GetterReader;
  2389. if (getterReader != null)
  2390. {
  2391. getterReader.MouseLeftButtonUp += value2;
  2392. }
  2393. }
  2394. }
  2395. // Token: 0x170000E1 RID: 225
  2396. // (get) Token: 0x060007B1 RID: 1969 RVA: 0x00005FE1 File Offset: 0x000041E1
  2397. // (set) Token: 0x060007B2 RID: 1970 RVA: 0x00005FE9 File Offset: 0x000041E9
  2398. internal virtual Path BtnNeoForgeClearInner { get; set; }
  2399. // Token: 0x170000E2 RID: 226
  2400. // (get) Token: 0x060007B3 RID: 1971 RVA: 0x00005FF2 File Offset: 0x000041F2
  2401. // (set) Token: 0x060007B4 RID: 1972 RVA: 0x000432FC File Offset: 0x000414FC
  2402. internal virtual MyCard CardFabric
  2403. {
  2404. [CompilerGenerated]
  2405. get
  2406. {
  2407. return this.m_ExpressionReader;
  2408. }
  2409. [CompilerGenerated]
  2410. set
  2411. {
  2412. MyCard.SwapEventHandler obj = delegate(object sender, ModBase.RouteEventArgs e)
  2413. {
  2414. this.SelectReload();
  2415. };
  2416. MyCard.PreviewSwapEventHandler obj2 = new MyCard.PreviewSwapEventHandler(this.CardFabric_PreviewSwap);
  2417. MyCard expressionReader = this.m_ExpressionReader;
  2418. if (expressionReader != null)
  2419. {
  2420. expressionReader.MoveParser(obj);
  2421. expressionReader.PostParser(obj2);
  2422. }
  2423. this.m_ExpressionReader = value;
  2424. expressionReader = this.m_ExpressionReader;
  2425. if (expressionReader != null)
  2426. {
  2427. expressionReader.CompareParser(obj);
  2428. expressionReader.InterruptParser(obj2);
  2429. }
  2430. }
  2431. }
  2432. // Token: 0x170000E3 RID: 227
  2433. // (get) Token: 0x060007B5 RID: 1973 RVA: 0x00005FFA File Offset: 0x000041FA
  2434. // (set) Token: 0x060007B6 RID: 1974 RVA: 0x00006002 File Offset: 0x00004202
  2435. internal virtual StackPanel PanFabric { get; set; }
  2436. // Token: 0x170000E4 RID: 228
  2437. // (get) Token: 0x060007B7 RID: 1975 RVA: 0x0000600B File Offset: 0x0000420B
  2438. // (set) Token: 0x060007B8 RID: 1976 RVA: 0x00006013 File Offset: 0x00004213
  2439. internal virtual Grid PanFabricInfo { get; set; }
  2440. // Token: 0x170000E5 RID: 229
  2441. // (get) Token: 0x060007B9 RID: 1977 RVA: 0x0000601C File Offset: 0x0000421C
  2442. // (set) Token: 0x060007BA RID: 1978 RVA: 0x00006024 File Offset: 0x00004224
  2443. internal virtual Image ImgFabric { get; set; }
  2444. // Token: 0x170000E6 RID: 230
  2445. // (get) Token: 0x060007BB RID: 1979 RVA: 0x0000602D File Offset: 0x0000422D
  2446. // (set) Token: 0x060007BC RID: 1980 RVA: 0x00006035 File Offset: 0x00004235
  2447. internal virtual TextBlock LabFabric { get; set; }
  2448. // Token: 0x170000E7 RID: 231
  2449. // (get) Token: 0x060007BD RID: 1981 RVA: 0x0000603E File Offset: 0x0000423E
  2450. // (set) Token: 0x060007BE RID: 1982 RVA: 0x0004335C File Offset: 0x0004155C
  2451. internal virtual Grid BtnFabricClear
  2452. {
  2453. [CompilerGenerated]
  2454. get
  2455. {
  2456. return this.m_SetterReader;
  2457. }
  2458. [CompilerGenerated]
  2459. set
  2460. {
  2461. MouseButtonEventHandler value2 = new MouseButtonEventHandler(this.Fabric_Clear);
  2462. Grid setterReader = this.m_SetterReader;
  2463. if (setterReader != null)
  2464. {
  2465. setterReader.MouseLeftButtonUp -= value2;
  2466. }
  2467. this.m_SetterReader = value;
  2468. setterReader = this.m_SetterReader;
  2469. if (setterReader != null)
  2470. {
  2471. setterReader.MouseLeftButtonUp += value2;
  2472. }
  2473. }
  2474. }
  2475. // Token: 0x170000E8 RID: 232
  2476. // (get) Token: 0x060007BF RID: 1983 RVA: 0x00006046 File Offset: 0x00004246
  2477. // (set) Token: 0x060007C0 RID: 1984 RVA: 0x0000604E File Offset: 0x0000424E
  2478. internal virtual Path BtnFabricClearInner { get; set; }
  2479. // Token: 0x170000E9 RID: 233
  2480. // (get) Token: 0x060007C1 RID: 1985 RVA: 0x00006057 File Offset: 0x00004257
  2481. // (set) Token: 0x060007C2 RID: 1986 RVA: 0x000433A0 File Offset: 0x000415A0
  2482. internal virtual MyCard CardFabricApi
  2483. {
  2484. [CompilerGenerated]
  2485. get
  2486. {
  2487. return this.exporterReader;
  2488. }
  2489. [CompilerGenerated]
  2490. set
  2491. {
  2492. MyCard.SwapEventHandler obj = delegate(object sender, ModBase.RouteEventArgs e)
  2493. {
  2494. this.SelectReload();
  2495. };
  2496. MyCard.PreviewSwapEventHandler obj2 = new MyCard.PreviewSwapEventHandler(this.CardFabricApi_PreviewSwap);
  2497. MyCard myCard = this.exporterReader;
  2498. if (myCard != null)
  2499. {
  2500. myCard.MoveParser(obj);
  2501. myCard.PostParser(obj2);
  2502. }
  2503. this.exporterReader = value;
  2504. myCard = this.exporterReader;
  2505. if (myCard != null)
  2506. {
  2507. myCard.CompareParser(obj);
  2508. myCard.InterruptParser(obj2);
  2509. }
  2510. }
  2511. }
  2512. // Token: 0x170000EA RID: 234
  2513. // (get) Token: 0x060007C3 RID: 1987 RVA: 0x0000605F File Offset: 0x0000425F
  2514. // (set) Token: 0x060007C4 RID: 1988 RVA: 0x00006067 File Offset: 0x00004267
  2515. internal virtual StackPanel PanFabricApi { get; set; }
  2516. // Token: 0x170000EB RID: 235
  2517. // (get) Token: 0x060007C5 RID: 1989 RVA: 0x00006070 File Offset: 0x00004270
  2518. // (set) Token: 0x060007C6 RID: 1990 RVA: 0x00006078 File Offset: 0x00004278
  2519. internal virtual Grid PanFabricApiInfo { get; set; }
  2520. // Token: 0x170000EC RID: 236
  2521. // (get) Token: 0x060007C7 RID: 1991 RVA: 0x00006081 File Offset: 0x00004281
  2522. // (set) Token: 0x060007C8 RID: 1992 RVA: 0x00006089 File Offset: 0x00004289
  2523. internal virtual Image ImgFabricApi { get; set; }
  2524. // Token: 0x170000ED RID: 237
  2525. // (get) Token: 0x060007C9 RID: 1993 RVA: 0x00006092 File Offset: 0x00004292
  2526. // (set) Token: 0x060007CA RID: 1994 RVA: 0x0000609A File Offset: 0x0000429A
  2527. internal virtual TextBlock LabFabricApi { get; set; }
  2528. // Token: 0x170000EE RID: 238
  2529. // (get) Token: 0x060007CB RID: 1995 RVA: 0x000060A3 File Offset: 0x000042A3
  2530. // (set) Token: 0x060007CC RID: 1996 RVA: 0x00043400 File Offset: 0x00041600
  2531. internal virtual Grid BtnFabricApiClear
  2532. {
  2533. [CompilerGenerated]
  2534. get
  2535. {
  2536. return this.m_ResolverReader;
  2537. }
  2538. [CompilerGenerated]
  2539. set
  2540. {
  2541. MouseButtonEventHandler value2 = new MouseButtonEventHandler(this.FabricApi_Clear);
  2542. Grid resolverReader = this.m_ResolverReader;
  2543. if (resolverReader != null)
  2544. {
  2545. resolverReader.MouseLeftButtonUp -= value2;
  2546. }
  2547. this.m_ResolverReader = value;
  2548. resolverReader = this.m_ResolverReader;
  2549. if (resolverReader != null)
  2550. {
  2551. resolverReader.MouseLeftButtonUp += value2;
  2552. }
  2553. }
  2554. }
  2555. // Token: 0x170000EF RID: 239
  2556. // (get) Token: 0x060007CD RID: 1997 RVA: 0x000060AB File Offset: 0x000042AB
  2557. // (set) Token: 0x060007CE RID: 1998 RVA: 0x000060B3 File Offset: 0x000042B3
  2558. internal virtual Path BtnFabricApiClearInner { get; set; }
  2559. // Token: 0x170000F0 RID: 240
  2560. // (get) Token: 0x060007CF RID: 1999 RVA: 0x000060BC File Offset: 0x000042BC
  2561. // (set) Token: 0x060007D0 RID: 2000 RVA: 0x00043444 File Offset: 0x00041644
  2562. internal virtual MyCard CardOptiFine
  2563. {
  2564. [CompilerGenerated]
  2565. get
  2566. {
  2567. return this.roleReader;
  2568. }
  2569. [CompilerGenerated]
  2570. set
  2571. {
  2572. MyCard.SwapEventHandler obj = delegate(object sender, ModBase.RouteEventArgs e)
  2573. {
  2574. this.SelectReload();
  2575. };
  2576. MyCard.PreviewSwapEventHandler obj2 = new MyCard.PreviewSwapEventHandler(this.CardOptiFine_PreviewSwap);
  2577. MyCard myCard = this.roleReader;
  2578. if (myCard != null)
  2579. {
  2580. myCard.MoveParser(obj);
  2581. myCard.PostParser(obj2);
  2582. }
  2583. this.roleReader = value;
  2584. myCard = this.roleReader;
  2585. if (myCard != null)
  2586. {
  2587. myCard.CompareParser(obj);
  2588. myCard.InterruptParser(obj2);
  2589. }
  2590. }
  2591. }
  2592. // Token: 0x170000F1 RID: 241
  2593. // (get) Token: 0x060007D1 RID: 2001 RVA: 0x000060C4 File Offset: 0x000042C4
  2594. // (set) Token: 0x060007D2 RID: 2002 RVA: 0x000060CC File Offset: 0x000042CC
  2595. internal virtual StackPanel PanOptiFine { get; set; }
  2596. // Token: 0x170000F2 RID: 242
  2597. // (get) Token: 0x060007D3 RID: 2003 RVA: 0x000060D5 File Offset: 0x000042D5
  2598. // (set) Token: 0x060007D4 RID: 2004 RVA: 0x000060DD File Offset: 0x000042DD
  2599. internal virtual Grid PanOptiFineInfo { get; set; }
  2600. // Token: 0x170000F3 RID: 243
  2601. // (get) Token: 0x060007D5 RID: 2005 RVA: 0x000060E6 File Offset: 0x000042E6
  2602. // (set) Token: 0x060007D6 RID: 2006 RVA: 0x000060EE File Offset: 0x000042EE
  2603. internal virtual Image ImgOptiFine { get; set; }
  2604. // Token: 0x170000F4 RID: 244
  2605. // (get) Token: 0x060007D7 RID: 2007 RVA: 0x000060F7 File Offset: 0x000042F7
  2606. // (set) Token: 0x060007D8 RID: 2008 RVA: 0x000060FF File Offset: 0x000042FF
  2607. internal virtual TextBlock LabOptiFine { get; set; }
  2608. // Token: 0x170000F5 RID: 245
  2609. // (get) Token: 0x060007D9 RID: 2009 RVA: 0x00006108 File Offset: 0x00004308
  2610. // (set) Token: 0x060007DA RID: 2010 RVA: 0x000434A4 File Offset: 0x000416A4
  2611. internal virtual Grid BtnOptiFineClear
  2612. {
  2613. [CompilerGenerated]
  2614. get
  2615. {
  2616. return this.m_CandidateReader;
  2617. }
  2618. [CompilerGenerated]
  2619. set
  2620. {
  2621. MouseButtonEventHandler value2 = new MouseButtonEventHandler(this.OptiFine_Clear);
  2622. Grid candidateReader = this.m_CandidateReader;
  2623. if (candidateReader != null)
  2624. {
  2625. candidateReader.MouseLeftButtonUp -= value2;
  2626. }
  2627. this.m_CandidateReader = value;
  2628. candidateReader = this.m_CandidateReader;
  2629. if (candidateReader != null)
  2630. {
  2631. candidateReader.MouseLeftButtonUp += value2;
  2632. }
  2633. }
  2634. }
  2635. // Token: 0x170000F6 RID: 246
  2636. // (get) Token: 0x060007DB RID: 2011 RVA: 0x00006110 File Offset: 0x00004310
  2637. // (set) Token: 0x060007DC RID: 2012 RVA: 0x00006118 File Offset: 0x00004318
  2638. internal virtual Path BtnOptiFineClearInner { get; set; }
  2639. // Token: 0x170000F7 RID: 247
  2640. // (get) Token: 0x060007DD RID: 2013 RVA: 0x00006121 File Offset: 0x00004321
  2641. // (set) Token: 0x060007DE RID: 2014 RVA: 0x000434E8 File Offset: 0x000416E8
  2642. internal virtual MyCard CardOptiFabric
  2643. {
  2644. [CompilerGenerated]
  2645. get
  2646. {
  2647. return this.accountReader;
  2648. }
  2649. [CompilerGenerated]
  2650. set
  2651. {
  2652. MyCard.SwapEventHandler obj = delegate(object sender, ModBase.RouteEventArgs e)
  2653. {
  2654. this.SelectReload();
  2655. };
  2656. MyCard.PreviewSwapEventHandler obj2 = new MyCard.PreviewSwapEventHandler(this.CardOptiFabric_PreviewSwap);
  2657. MyCard myCard = this.accountReader;
  2658. if (myCard != null)
  2659. {
  2660. myCard.MoveParser(obj);
  2661. myCard.PostParser(obj2);
  2662. }
  2663. this.accountReader = value;
  2664. myCard = this.accountReader;
  2665. if (myCard != null)
  2666. {
  2667. myCard.CompareParser(obj);
  2668. myCard.InterruptParser(obj2);
  2669. }
  2670. }
  2671. }
  2672. // Token: 0x170000F8 RID: 248
  2673. // (get) Token: 0x060007DF RID: 2015 RVA: 0x00006129 File Offset: 0x00004329
  2674. // (set) Token: 0x060007E0 RID: 2016 RVA: 0x00006131 File Offset: 0x00004331
  2675. internal virtual StackPanel PanOptiFabric { get; set; }
  2676. // Token: 0x170000F9 RID: 249
  2677. // (get) Token: 0x060007E1 RID: 2017 RVA: 0x0000613A File Offset: 0x0000433A
  2678. // (set) Token: 0x060007E2 RID: 2018 RVA: 0x00006142 File Offset: 0x00004342
  2679. internal virtual Grid PanOptiFabricInfo { get; set; }
  2680. // Token: 0x170000FA RID: 250
  2681. // (get) Token: 0x060007E3 RID: 2019 RVA: 0x0000614B File Offset: 0x0000434B
  2682. // (set) Token: 0x060007E4 RID: 2020 RVA: 0x00006153 File Offset: 0x00004353
  2683. internal virtual Image ImgOptiFabric { get; set; }
  2684. // Token: 0x170000FB RID: 251
  2685. // (get) Token: 0x060007E5 RID: 2021 RVA: 0x0000615C File Offset: 0x0000435C
  2686. // (set) Token: 0x060007E6 RID: 2022 RVA: 0x00006164 File Offset: 0x00004364
  2687. internal virtual TextBlock LabOptiFabric { get; set; }
  2688. // Token: 0x170000FC RID: 252
  2689. // (get) Token: 0x060007E7 RID: 2023 RVA: 0x0000616D File Offset: 0x0000436D
  2690. // (set) Token: 0x060007E8 RID: 2024 RVA: 0x00043548 File Offset: 0x00041748
  2691. internal virtual Grid BtnOptiFabricClear
  2692. {
  2693. [CompilerGenerated]
  2694. get
  2695. {
  2696. return this._WrapperReader;
  2697. }
  2698. [CompilerGenerated]
  2699. set
  2700. {
  2701. MouseButtonEventHandler value2 = new MouseButtonEventHandler(this.OptiFabric_Clear);
  2702. Grid wrapperReader = this._WrapperReader;
  2703. if (wrapperReader != null)
  2704. {
  2705. wrapperReader.MouseLeftButtonUp -= value2;
  2706. }
  2707. this._WrapperReader = value;
  2708. wrapperReader = this._WrapperReader;
  2709. if (wrapperReader != null)
  2710. {
  2711. wrapperReader.MouseLeftButtonUp += value2;
  2712. }
  2713. }
  2714. }
  2715. // Token: 0x170000FD RID: 253
  2716. // (get) Token: 0x060007E9 RID: 2025 RVA: 0x00006175 File Offset: 0x00004375
  2717. // (set) Token: 0x060007EA RID: 2026 RVA: 0x0000617D File Offset: 0x0000437D
  2718. internal virtual Path BtnOptiFabricClearInner { get; set; }
  2719. // Token: 0x170000FE RID: 254
  2720. // (get) Token: 0x060007EB RID: 2027 RVA: 0x00006186 File Offset: 0x00004386
  2721. // (set) Token: 0x060007EC RID: 2028 RVA: 0x0004358C File Offset: 0x0004178C
  2722. internal virtual MyCard CardLiteLoader
  2723. {
  2724. [CompilerGenerated]
  2725. get
  2726. {
  2727. return this.m_AttributeReader;
  2728. }
  2729. [CompilerGenerated]
  2730. set
  2731. {
  2732. MyCard.SwapEventHandler obj = delegate(object sender, ModBase.RouteEventArgs e)
  2733. {
  2734. this.SelectReload();
  2735. };
  2736. MyCard.PreviewSwapEventHandler obj2 = new MyCard.PreviewSwapEventHandler(this.CardLiteLoader_PreviewSwap);
  2737. MyCard attributeReader = this.m_AttributeReader;
  2738. if (attributeReader != null)
  2739. {
  2740. attributeReader.MoveParser(obj);
  2741. attributeReader.PostParser(obj2);
  2742. }
  2743. this.m_AttributeReader = value;
  2744. attributeReader = this.m_AttributeReader;
  2745. if (attributeReader != null)
  2746. {
  2747. attributeReader.CompareParser(obj);
  2748. attributeReader.InterruptParser(obj2);
  2749. }
  2750. }
  2751. }
  2752. // Token: 0x170000FF RID: 255
  2753. // (get) Token: 0x060007ED RID: 2029 RVA: 0x0000618E File Offset: 0x0000438E
  2754. // (set) Token: 0x060007EE RID: 2030 RVA: 0x00006196 File Offset: 0x00004396
  2755. internal virtual StackPanel PanLiteLoader { get; set; }
  2756. // Token: 0x17000100 RID: 256
  2757. // (get) Token: 0x060007EF RID: 2031 RVA: 0x0000619F File Offset: 0x0000439F
  2758. // (set) Token: 0x060007F0 RID: 2032 RVA: 0x000061A7 File Offset: 0x000043A7
  2759. internal virtual Grid PanLiteLoaderInfo { get; set; }
  2760. // Token: 0x17000101 RID: 257
  2761. // (get) Token: 0x060007F1 RID: 2033 RVA: 0x000061B0 File Offset: 0x000043B0
  2762. // (set) Token: 0x060007F2 RID: 2034 RVA: 0x000061B8 File Offset: 0x000043B8
  2763. internal virtual Image ImgLiteLoader { get; set; }
  2764. // Token: 0x17000102 RID: 258
  2765. // (get) Token: 0x060007F3 RID: 2035 RVA: 0x000061C1 File Offset: 0x000043C1
  2766. // (set) Token: 0x060007F4 RID: 2036 RVA: 0x000061C9 File Offset: 0x000043C9
  2767. internal virtual TextBlock LabLiteLoader { get; set; }
  2768. // Token: 0x17000103 RID: 259
  2769. // (get) Token: 0x060007F5 RID: 2037 RVA: 0x000061D2 File Offset: 0x000043D2
  2770. // (set) Token: 0x060007F6 RID: 2038 RVA: 0x000435EC File Offset: 0x000417EC
  2771. internal virtual Grid BtnLiteLoaderClear
  2772. {
  2773. [CompilerGenerated]
  2774. get
  2775. {
  2776. return this._AdapterReader;
  2777. }
  2778. [CompilerGenerated]
  2779. set
  2780. {
  2781. MouseButtonEventHandler value2 = new MouseButtonEventHandler(this.LiteLoader_Clear);
  2782. Grid adapterReader = this._AdapterReader;
  2783. if (adapterReader != null)
  2784. {
  2785. adapterReader.MouseLeftButtonUp -= value2;
  2786. }
  2787. this._AdapterReader = value;
  2788. adapterReader = this._AdapterReader;
  2789. if (adapterReader != null)
  2790. {
  2791. adapterReader.MouseLeftButtonUp += value2;
  2792. }
  2793. }
  2794. }
  2795. // Token: 0x17000104 RID: 260
  2796. // (get) Token: 0x060007F7 RID: 2039 RVA: 0x000061DA File Offset: 0x000043DA
  2797. // (set) Token: 0x060007F8 RID: 2040 RVA: 0x000061E2 File Offset: 0x000043E2
  2798. internal virtual Path BtnLiteLoaderClearInner { get; set; }
  2799. // Token: 0x17000105 RID: 261
  2800. // (get) Token: 0x060007F9 RID: 2041 RVA: 0x000061EB File Offset: 0x000043EB
  2801. // (set) Token: 0x060007FA RID: 2042 RVA: 0x000061F3 File Offset: 0x000043F3
  2802. internal virtual MyCard PanLoad { get; set; }
  2803. // Token: 0x17000106 RID: 262
  2804. // (get) Token: 0x060007FB RID: 2043 RVA: 0x000061FC File Offset: 0x000043FC
  2805. // (set) Token: 0x060007FC RID: 2044 RVA: 0x00006204 File Offset: 0x00004404
  2806. internal virtual MyLoading LoadMinecraft { get; set; }
  2807. // Token: 0x17000107 RID: 263
  2808. // (get) Token: 0x060007FD RID: 2045 RVA: 0x0000620D File Offset: 0x0000440D
  2809. // (set) Token: 0x060007FE RID: 2046 RVA: 0x00043630 File Offset: 0x00041830
  2810. internal virtual MyLoading LoadOptiFine
  2811. {
  2812. [CompilerGenerated]
  2813. get
  2814. {
  2815. return this.m_AuthenticationReader;
  2816. }
  2817. [CompilerGenerated]
  2818. set
  2819. {
  2820. MyLoading.StateChangedEventHandler obj = delegate(object a0, MyLoading.MyLoadingState a1, MyLoading.MyLoadingState a2)
  2821. {
  2822. this.SelectReload();
  2823. };
  2824. MyLoading.StateChangedEventHandler obj2 = delegate(object a0, MyLoading.MyLoadingState a1, MyLoading.MyLoadingState a2)
  2825. {
  2826. this.OptiFine_Loaded();
  2827. };
  2828. MyLoading authenticationReader = this.m_AuthenticationReader;
  2829. if (authenticationReader != null)
  2830. {
  2831. authenticationReader.InterruptField(obj);
  2832. authenticationReader.InterruptField(obj2);
  2833. }
  2834. this.m_AuthenticationReader = value;
  2835. authenticationReader = this.m_AuthenticationReader;
  2836. if (authenticationReader != null)
  2837. {
  2838. authenticationReader.PrintField(obj);
  2839. authenticationReader.PrintField(obj2);
  2840. }
  2841. }
  2842. }
  2843. // Token: 0x17000108 RID: 264
  2844. // (get) Token: 0x060007FF RID: 2047 RVA: 0x00006215 File Offset: 0x00004415
  2845. // (set) Token: 0x06000800 RID: 2048 RVA: 0x00043690 File Offset: 0x00041890
  2846. internal virtual MyLoading LoadForge
  2847. {
  2848. [CompilerGenerated]
  2849. get
  2850. {
  2851. return this._AlgoReader;
  2852. }
  2853. [CompilerGenerated]
  2854. set
  2855. {
  2856. MyLoading.StateChangedEventHandler obj = delegate(object a0, MyLoading.MyLoadingState a1, MyLoading.MyLoadingState a2)
  2857. {
  2858. this.SelectReload();
  2859. };
  2860. MyLoading.StateChangedEventHandler obj2 = delegate(object a0, MyLoading.MyLoadingState a1, MyLoading.MyLoadingState a2)
  2861. {
  2862. this.Forge_Loaded();
  2863. };
  2864. MyLoading algoReader = this._AlgoReader;
  2865. if (algoReader != null)
  2866. {
  2867. algoReader.InterruptField(obj);
  2868. algoReader.InterruptField(obj2);
  2869. }
  2870. this._AlgoReader = value;
  2871. algoReader = this._AlgoReader;
  2872. if (algoReader != null)
  2873. {
  2874. algoReader.PrintField(obj);
  2875. algoReader.PrintField(obj2);
  2876. }
  2877. }
  2878. }
  2879. // Token: 0x17000109 RID: 265
  2880. // (get) Token: 0x06000801 RID: 2049 RVA: 0x0000621D File Offset: 0x0000441D
  2881. // (set) Token: 0x06000802 RID: 2050 RVA: 0x000436F0 File Offset: 0x000418F0
  2882. internal virtual MyLoading LoadNeoForge
  2883. {
  2884. [CompilerGenerated]
  2885. get
  2886. {
  2887. return this.m_ComparatorReader;
  2888. }
  2889. [CompilerGenerated]
  2890. set
  2891. {
  2892. MyLoading.StateChangedEventHandler obj = delegate(object a0, MyLoading.MyLoadingState a1, MyLoading.MyLoadingState a2)
  2893. {
  2894. this.SelectReload();
  2895. };
  2896. MyLoading.StateChangedEventHandler obj2 = delegate(object a0, MyLoading.MyLoadingState a1, MyLoading.MyLoadingState a2)
  2897. {
  2898. this.NeoForge_Loaded();
  2899. };
  2900. MyLoading comparatorReader = this.m_ComparatorReader;
  2901. if (comparatorReader != null)
  2902. {
  2903. comparatorReader.InterruptField(obj);
  2904. comparatorReader.InterruptField(obj2);
  2905. }
  2906. this.m_ComparatorReader = value;
  2907. comparatorReader = this.m_ComparatorReader;
  2908. if (comparatorReader != null)
  2909. {
  2910. comparatorReader.PrintField(obj);
  2911. comparatorReader.PrintField(obj2);
  2912. }
  2913. }
  2914. }
  2915. // Token: 0x1700010A RID: 266
  2916. // (get) Token: 0x06000803 RID: 2051 RVA: 0x00006225 File Offset: 0x00004425
  2917. // (set) Token: 0x06000804 RID: 2052 RVA: 0x00043750 File Offset: 0x00041950
  2918. internal virtual MyLoading LoadLiteLoader
  2919. {
  2920. [CompilerGenerated]
  2921. get
  2922. {
  2923. return this.m_MappingReader;
  2924. }
  2925. [CompilerGenerated]
  2926. set
  2927. {
  2928. MyLoading.StateChangedEventHandler obj = delegate(object a0, MyLoading.MyLoadingState a1, MyLoading.MyLoadingState a2)
  2929. {
  2930. this.SelectReload();
  2931. };
  2932. MyLoading.StateChangedEventHandler obj2 = delegate(object a0, MyLoading.MyLoadingState a1, MyLoading.MyLoadingState a2)
  2933. {
  2934. this.LiteLoader_Loaded();
  2935. };
  2936. MyLoading mappingReader = this.m_MappingReader;
  2937. if (mappingReader != null)
  2938. {
  2939. mappingReader.InterruptField(obj);
  2940. mappingReader.InterruptField(obj2);
  2941. }
  2942. this.m_MappingReader = value;
  2943. mappingReader = this.m_MappingReader;
  2944. if (mappingReader != null)
  2945. {
  2946. mappingReader.PrintField(obj);
  2947. mappingReader.PrintField(obj2);
  2948. }
  2949. }
  2950. }
  2951. // Token: 0x1700010B RID: 267
  2952. // (get) Token: 0x06000805 RID: 2053 RVA: 0x0000622D File Offset: 0x0000442D
  2953. // (set) Token: 0x06000806 RID: 2054 RVA: 0x000437B0 File Offset: 0x000419B0
  2954. internal virtual MyLoading LoadFabric
  2955. {
  2956. [CompilerGenerated]
  2957. get
  2958. {
  2959. return this.m_TokenizerReader;
  2960. }
  2961. [CompilerGenerated]
  2962. set
  2963. {
  2964. MyLoading.StateChangedEventHandler obj = delegate(object a0, MyLoading.MyLoadingState a1, MyLoading.MyLoadingState a2)
  2965. {
  2966. this.SelectReload();
  2967. };
  2968. MyLoading.StateChangedEventHandler obj2 = delegate(object a0, MyLoading.MyLoadingState a1, MyLoading.MyLoadingState a2)
  2969. {
  2970. this.Fabric_Loaded();
  2971. };
  2972. MyLoading tokenizerReader = this.m_TokenizerReader;
  2973. if (tokenizerReader != null)
  2974. {
  2975. tokenizerReader.InterruptField(obj);
  2976. tokenizerReader.InterruptField(obj2);
  2977. }
  2978. this.m_TokenizerReader = value;
  2979. tokenizerReader = this.m_TokenizerReader;
  2980. if (tokenizerReader != null)
  2981. {
  2982. tokenizerReader.PrintField(obj);
  2983. tokenizerReader.PrintField(obj2);
  2984. }
  2985. }
  2986. }
  2987. // Token: 0x1700010C RID: 268
  2988. // (get) Token: 0x06000807 RID: 2055 RVA: 0x00006235 File Offset: 0x00004435
  2989. // (set) Token: 0x06000808 RID: 2056 RVA: 0x00043810 File Offset: 0x00041A10
  2990. internal virtual MyLoading LoadFabricApi
  2991. {
  2992. [CompilerGenerated]
  2993. get
  2994. {
  2995. return this._FilterReader;
  2996. }
  2997. [CompilerGenerated]
  2998. set
  2999. {
  3000. MyLoading.StateChangedEventHandler obj = delegate(object a0, MyLoading.MyLoadingState a1, MyLoading.MyLoadingState a2)
  3001. {
  3002. this.SelectReload();
  3003. };
  3004. MyLoading.StateChangedEventHandler obj2 = delegate(object a0, MyLoading.MyLoadingState a1, MyLoading.MyLoadingState a2)
  3005. {
  3006. this.FabricApi_Loaded();
  3007. };
  3008. MyLoading filterReader = this._FilterReader;
  3009. if (filterReader != null)
  3010. {
  3011. filterReader.InterruptField(obj);
  3012. filterReader.InterruptField(obj2);
  3013. }
  3014. this._FilterReader = value;
  3015. filterReader = this._FilterReader;
  3016. if (filterReader != null)
  3017. {
  3018. filterReader.PrintField(obj);
  3019. filterReader.PrintField(obj2);
  3020. }
  3021. }
  3022. }
  3023. // Token: 0x1700010D RID: 269
  3024. // (get) Token: 0x06000809 RID: 2057 RVA: 0x0000623D File Offset: 0x0000443D
  3025. // (set) Token: 0x0600080A RID: 2058 RVA: 0x00043870 File Offset: 0x00041A70
  3026. internal virtual MyLoading LoadOptiFabric
  3027. {
  3028. [CompilerGenerated]
  3029. get
  3030. {
  3031. return this.m_DatabaseReader;
  3032. }
  3033. [CompilerGenerated]
  3034. set
  3035. {
  3036. MyLoading.StateChangedEventHandler obj = delegate(object a0, MyLoading.MyLoadingState a1, MyLoading.MyLoadingState a2)
  3037. {
  3038. this.SelectReload();
  3039. };
  3040. MyLoading.StateChangedEventHandler obj2 = delegate(object a0, MyLoading.MyLoadingState a1, MyLoading.MyLoadingState a2)
  3041. {
  3042. this.OptiFabric_Loaded();
  3043. };
  3044. MyLoading databaseReader = this.m_DatabaseReader;
  3045. if (databaseReader != null)
  3046. {
  3047. databaseReader.InterruptField(obj);
  3048. databaseReader.InterruptField(obj2);
  3049. }
  3050. this.m_DatabaseReader = value;
  3051. databaseReader = this.m_DatabaseReader;
  3052. if (databaseReader != null)
  3053. {
  3054. databaseReader.PrintField(obj);
  3055. databaseReader.PrintField(obj2);
  3056. }
  3057. }
  3058. }
  3059. // Token: 0x0600080B RID: 2059 RVA: 0x000438D0 File Offset: 0x00041AD0
  3060. [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  3061. public void InitializeComponent()
  3062. {
  3063. if (!this.predicateReader)
  3064. {
  3065. this.predicateReader = true;
  3066. Uri resourceLocator = new Uri("/Plain Craft Launcher 2;component/pages/pagedownload/pagedownloadinstall.xaml", UriKind.Relative);
  3067. Application.LoadComponent(this, resourceLocator);
  3068. }
  3069. }
  3070. // Token: 0x0600080C RID: 2060 RVA: 0x0000414E File Offset: 0x0000234E
  3071. [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  3072. internal Delegate _CreateDelegate(Type delegateType, string handler)
  3073. {
  3074. return Delegate.CreateDelegate(delegateType, this, handler);
  3075. }
  3076. // Token: 0x0600080D RID: 2061 RVA: 0x00043900 File Offset: 0x00041B00
  3077. [EditorBrowsable(EditorBrowsableState.Never)]
  3078. [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  3079. public void System_Windows_Markup_IComponentConnector_Connect(int connectionId, object target)
  3080. {
  3081. if (connectionId == 1)
  3082. {
  3083. this.PanBack = (MyScrollViewer)target;
  3084. return;
  3085. }
  3086. if (connectionId == 2)
  3087. {
  3088. this.PanMinecraft = (StackPanel)target;
  3089. return;
  3090. }
  3091. if (connectionId == 3)
  3092. {
  3093. this.PanSelect = (StackPanel)target;
  3094. return;
  3095. }
  3096. if (connectionId == 4)
  3097. {
  3098. this.HintFabricAPI = (MyHint)target;
  3099. return;
  3100. }
  3101. if (connectionId == 5)
  3102. {
  3103. this.HintOptiFabric = (MyHint)target;
  3104. return;
  3105. }
  3106. if (connectionId == 6)
  3107. {
  3108. this.HintOptiFabricOld = (MyHint)target;
  3109. return;
  3110. }
  3111. if (connectionId == 7)
  3112. {
  3113. this.HintModOptiFine = (MyHint)target;
  3114. return;
  3115. }
  3116. if (connectionId == 8)
  3117. {
  3118. this.ItemSelect = (MyListItem)target;
  3119. return;
  3120. }
  3121. if (connectionId == 9)
  3122. {
  3123. this.BtnSelectStart = (MyButton)target;
  3124. return;
  3125. }
  3126. if (connectionId == 10)
  3127. {
  3128. this.TextSelectName = (MyTextBox)target;
  3129. return;
  3130. }
  3131. if (connectionId == 11)
  3132. {
  3133. this.CardMinecraft = (MyCard)target;
  3134. return;
  3135. }
  3136. if (connectionId == 12)
  3137. {
  3138. this.PanMinecraftInfo = (Grid)target;
  3139. return;
  3140. }
  3141. if (connectionId == 13)
  3142. {
  3143. this.ImgMinecraft = (Image)target;
  3144. return;
  3145. }
  3146. if (connectionId == 14)
  3147. {
  3148. this.LabMinecraft = (TextBlock)target;
  3149. return;
  3150. }
  3151. if (connectionId == 15)
  3152. {
  3153. this.CardForge = (MyCard)target;
  3154. return;
  3155. }
  3156. if (connectionId == 16)
  3157. {
  3158. this.PanForge = (StackPanel)target;
  3159. return;
  3160. }
  3161. if (connectionId == 17)
  3162. {
  3163. this.PanForgeInfo = (Grid)target;
  3164. return;
  3165. }
  3166. if (connectionId == 18)
  3167. {
  3168. this.ImgForge = (Image)target;
  3169. return;
  3170. }
  3171. if (connectionId == 19)
  3172. {
  3173. this.LabForge = (TextBlock)target;
  3174. return;
  3175. }
  3176. if (connectionId == 20)
  3177. {
  3178. this.BtnForgeClear = (Grid)target;
  3179. return;
  3180. }
  3181. if (connectionId == 21)
  3182. {
  3183. this.BtnForgeClearInner = (Path)target;
  3184. return;
  3185. }
  3186. if (connectionId == 22)
  3187. {
  3188. this.CardNeoForge = (MyCard)target;
  3189. return;
  3190. }
  3191. if (connectionId == 23)
  3192. {
  3193. this.PanNeoForge = (StackPanel)target;
  3194. return;
  3195. }
  3196. if (connectionId == 24)
  3197. {
  3198. this.PanNeoForgeInfo = (Grid)target;
  3199. return;
  3200. }
  3201. if (connectionId == 25)
  3202. {
  3203. this.ImgNeoForge = (Image)target;
  3204. return;
  3205. }
  3206. if (connectionId == 26)
  3207. {
  3208. this.LabNeoForge = (TextBlock)target;
  3209. return;
  3210. }
  3211. if (connectionId == 27)
  3212. {
  3213. this.BtnNeoForgeClear = (Grid)target;
  3214. return;
  3215. }
  3216. if (connectionId == 28)
  3217. {
  3218. this.BtnNeoForgeClearInner = (Path)target;
  3219. return;
  3220. }
  3221. if (connectionId == 29)
  3222. {
  3223. this.CardFabric = (MyCard)target;
  3224. return;
  3225. }
  3226. if (connectionId == 30)
  3227. {
  3228. this.PanFabric = (StackPanel)target;
  3229. return;
  3230. }
  3231. if (connectionId == 31)
  3232. {
  3233. this.PanFabricInfo = (Grid)target;
  3234. return;
  3235. }
  3236. if (connectionId == 32)
  3237. {
  3238. this.ImgFabric = (Image)target;
  3239. return;
  3240. }
  3241. if (connectionId == 33)
  3242. {
  3243. this.LabFabric = (TextBlock)target;
  3244. return;
  3245. }
  3246. if (connectionId == 34)
  3247. {
  3248. this.BtnFabricClear = (Grid)target;
  3249. return;
  3250. }
  3251. if (connectionId == 35)
  3252. {
  3253. this.BtnFabricClearInner = (Path)target;
  3254. return;
  3255. }
  3256. if (connectionId == 36)
  3257. {
  3258. this.CardFabricApi = (MyCard)target;
  3259. return;
  3260. }
  3261. if (connectionId == 37)
  3262. {
  3263. this.PanFabricApi = (StackPanel)target;
  3264. return;
  3265. }
  3266. if (connectionId == 38)
  3267. {
  3268. this.PanFabricApiInfo = (Grid)target;
  3269. return;
  3270. }
  3271. if (connectionId == 39)
  3272. {
  3273. this.ImgFabricApi = (Image)target;
  3274. return;
  3275. }
  3276. if (connectionId == 40)
  3277. {
  3278. this.LabFabricApi = (TextBlock)target;
  3279. return;
  3280. }
  3281. if (connectionId == 41)
  3282. {
  3283. this.BtnFabricApiClear = (Grid)target;
  3284. return;
  3285. }
  3286. if (connectionId == 42)
  3287. {
  3288. this.BtnFabricApiClearInner = (Path)target;
  3289. return;
  3290. }
  3291. if (connectionId == 43)
  3292. {
  3293. this.CardOptiFine = (MyCard)target;
  3294. return;
  3295. }
  3296. if (connectionId == 44)
  3297. {
  3298. this.PanOptiFine = (StackPanel)target;
  3299. return;
  3300. }
  3301. if (connectionId == 45)
  3302. {
  3303. this.PanOptiFineInfo = (Grid)target;
  3304. return;
  3305. }
  3306. if (connectionId == 46)
  3307. {
  3308. this.ImgOptiFine = (Image)target;
  3309. return;
  3310. }
  3311. if (connectionId == 47)
  3312. {
  3313. this.LabOptiFine = (TextBlock)target;
  3314. return;
  3315. }
  3316. if (connectionId == 48)
  3317. {
  3318. this.BtnOptiFineClear = (Grid)target;
  3319. return;
  3320. }
  3321. if (connectionId == 49)
  3322. {
  3323. this.BtnOptiFineClearInner = (Path)target;
  3324. return;
  3325. }
  3326. if (connectionId == 50)
  3327. {
  3328. this.CardOptiFabric = (MyCard)target;
  3329. return;
  3330. }
  3331. if (connectionId == 51)
  3332. {
  3333. this.PanOptiFabric = (StackPanel)target;
  3334. return;
  3335. }
  3336. if (connectionId == 52)
  3337. {
  3338. this.PanOptiFabricInfo = (Grid)target;
  3339. return;
  3340. }
  3341. if (connectionId == 53)
  3342. {
  3343. this.ImgOptiFabric = (Image)target;
  3344. return;
  3345. }
  3346. if (connectionId == 54)
  3347. {
  3348. this.LabOptiFabric = (TextBlock)target;
  3349. return;
  3350. }
  3351. if (connectionId == 55)
  3352. {
  3353. this.BtnOptiFabricClear = (Grid)target;
  3354. return;
  3355. }
  3356. if (connectionId == 56)
  3357. {
  3358. this.BtnOptiFabricClearInner = (Path)target;
  3359. return;
  3360. }
  3361. if (connectionId == 57)
  3362. {
  3363. this.CardLiteLoader = (MyCard)target;
  3364. return;
  3365. }
  3366. if (connectionId == 58)
  3367. {
  3368. this.PanLiteLoader = (StackPanel)target;
  3369. return;
  3370. }
  3371. if (connectionId == 59)
  3372. {
  3373. this.PanLiteLoaderInfo = (Grid)target;
  3374. return;
  3375. }
  3376. if (connectionId == 60)
  3377. {
  3378. this.ImgLiteLoader = (Image)target;
  3379. return;
  3380. }
  3381. if (connectionId == 61)
  3382. {
  3383. this.LabLiteLoader = (TextBlock)target;
  3384. return;
  3385. }
  3386. if (connectionId == 62)
  3387. {
  3388. this.BtnLiteLoaderClear = (Grid)target;
  3389. return;
  3390. }
  3391. if (connectionId == 63)
  3392. {
  3393. this.BtnLiteLoaderClearInner = (Path)target;
  3394. return;
  3395. }
  3396. if (connectionId == 64)
  3397. {
  3398. this.PanLoad = (MyCard)target;
  3399. return;
  3400. }
  3401. if (connectionId == 65)
  3402. {
  3403. this.LoadMinecraft = (MyLoading)target;
  3404. return;
  3405. }
  3406. if (connectionId == 66)
  3407. {
  3408. this.LoadOptiFine = (MyLoading)target;
  3409. return;
  3410. }
  3411. if (connectionId == 67)
  3412. {
  3413. this.LoadForge = (MyLoading)target;
  3414. return;
  3415. }
  3416. if (connectionId == 68)
  3417. {
  3418. this.LoadNeoForge = (MyLoading)target;
  3419. return;
  3420. }
  3421. if (connectionId == 69)
  3422. {
  3423. this.LoadLiteLoader = (MyLoading)target;
  3424. return;
  3425. }
  3426. if (connectionId == 70)
  3427. {
  3428. this.LoadFabric = (MyLoading)target;
  3429. return;
  3430. }
  3431. if (connectionId == 71)
  3432. {
  3433. this.LoadFabricApi = (MyLoading)target;
  3434. return;
  3435. }
  3436. if (connectionId == 72)
  3437. {
  3438. this.LoadOptiFabric = (MyLoading)target;
  3439. return;
  3440. }
  3441. this.predicateReader = true;
  3442. }
  3443. // Token: 0x04000411 RID: 1041
  3444. private bool m_DefinitionField;
  3445. // Token: 0x04000412 RID: 1042
  3446. public bool strategyField;
  3447. // Token: 0x04000413 RID: 1043
  3448. private bool m_ProcField;
  3449. // Token: 0x04000414 RID: 1044
  3450. private string parserReader;
  3451. // Token: 0x04000415 RID: 1045
  3452. private string m_BroadcasterReader;
  3453. // Token: 0x04000416 RID: 1046
  3454. private string _FieldReader;
  3455. // Token: 0x04000417 RID: 1047
  3456. private ModDownload.DlOptiFineListEntry readerReader;
  3457. // Token: 0x04000418 RID: 1048
  3458. private ModDownload.DlLiteLoaderListEntry m_ClientReader;
  3459. // Token: 0x04000419 RID: 1049
  3460. private ModDownload.DlForgeVersionEntry _ConfigReader;
  3461. // Token: 0x0400041A RID: 1050
  3462. private ModDownload.DlNeoForgeListEntry m_TestsReader;
  3463. // Token: 0x0400041B RID: 1051
  3464. private string m_MapperReader;
  3465. // Token: 0x0400041C RID: 1052
  3466. private ModComp.CompFile m_ThreadReader;
  3467. // Token: 0x0400041D RID: 1053
  3468. private ModComp.CompFile _PropertyReader;
  3469. // Token: 0x0400041E RID: 1054
  3470. private bool composerReader;
  3471. // Token: 0x0400041F RID: 1055
  3472. private bool iteratorReader;
  3473. // Token: 0x04000420 RID: 1056
  3474. private bool m_RepositoryReader;
  3475. // Token: 0x04000421 RID: 1057
  3476. public static string _ErrorReader = null;
  3477. // Token: 0x04000422 RID: 1058
  3478. private bool _ContextReader;
  3479. // Token: 0x04000423 RID: 1059
  3480. private bool _SpecificationReader;
  3481. // Token: 0x04000424 RID: 1060
  3482. [AccessedThroughProperty("PanBack")]
  3483. [CompilerGenerated]
  3484. private MyScrollViewer _MockReader;
  3485. // Token: 0x04000425 RID: 1061
  3486. [AccessedThroughProperty("PanMinecraft")]
  3487. [CompilerGenerated]
  3488. private StackPanel m_RequestReader;
  3489. // Token: 0x04000426 RID: 1062
  3490. [CompilerGenerated]
  3491. [AccessedThroughProperty("PanSelect")]
  3492. private StackPanel dicReader;
  3493. // Token: 0x04000427 RID: 1063
  3494. [CompilerGenerated]
  3495. [AccessedThroughProperty("HintFabricAPI")]
  3496. private MyHint _HelperReader;
  3497. // Token: 0x04000428 RID: 1064
  3498. [AccessedThroughProperty("HintOptiFabric")]
  3499. [CompilerGenerated]
  3500. private MyHint _IssuerReader;
  3501. // Token: 0x04000429 RID: 1065
  3502. [CompilerGenerated]
  3503. [AccessedThroughProperty("HintOptiFabricOld")]
  3504. private MyHint indexerReader;
  3505. // Token: 0x0400042A RID: 1066
  3506. [AccessedThroughProperty("HintModOptiFine")]
  3507. [CompilerGenerated]
  3508. private MyHint interpreterReader;
  3509. // Token: 0x0400042B RID: 1067
  3510. [AccessedThroughProperty("ItemSelect")]
  3511. [CompilerGenerated]
  3512. private MyListItem m_SerializerReader;
  3513. // Token: 0x0400042C RID: 1068
  3514. [AccessedThroughProperty("BtnSelectStart")]
  3515. [CompilerGenerated]
  3516. private MyButton _WatcherReader;
  3517. // Token: 0x0400042D RID: 1069
  3518. [AccessedThroughProperty("TextSelectName")]
  3519. [CompilerGenerated]
  3520. private MyTextBox identifierReader;
  3521. // Token: 0x0400042E RID: 1070
  3522. [AccessedThroughProperty("CardMinecraft")]
  3523. [CompilerGenerated]
  3524. private MyCard _SystemReader;
  3525. // Token: 0x0400042F RID: 1071
  3526. [AccessedThroughProperty("PanMinecraftInfo")]
  3527. [CompilerGenerated]
  3528. private Grid m_ParamReader;
  3529. // Token: 0x04000430 RID: 1072
  3530. [AccessedThroughProperty("ImgMinecraft")]
  3531. [CompilerGenerated]
  3532. private Image m_TagReader;
  3533. // Token: 0x04000431 RID: 1073
  3534. [CompilerGenerated]
  3535. [AccessedThroughProperty("LabMinecraft")]
  3536. private TextBlock observerReader;
  3537. // Token: 0x04000432 RID: 1074
  3538. [AccessedThroughProperty("CardForge")]
  3539. [CompilerGenerated]
  3540. private MyCard m_StubReader;
  3541. // Token: 0x04000433 RID: 1075
  3542. [AccessedThroughProperty("PanForge")]
  3543. [CompilerGenerated]
  3544. private StackPanel m_RulesReader;
  3545. // Token: 0x04000434 RID: 1076
  3546. [AccessedThroughProperty("PanForgeInfo")]
  3547. [CompilerGenerated]
  3548. private Grid _RefReader;
  3549. // Token: 0x04000435 RID: 1077
  3550. [AccessedThroughProperty("ImgForge")]
  3551. [CompilerGenerated]
  3552. private Image m_DecoratorReader;
  3553. // Token: 0x04000436 RID: 1078
  3554. [CompilerGenerated]
  3555. [AccessedThroughProperty("LabForge")]
  3556. private TextBlock instanceReader;
  3557. // Token: 0x04000437 RID: 1079
  3558. [AccessedThroughProperty("BtnForgeClear")]
  3559. [CompilerGenerated]
  3560. private Grid stateReader;
  3561. // Token: 0x04000438 RID: 1080
  3562. [AccessedThroughProperty("BtnForgeClearInner")]
  3563. [CompilerGenerated]
  3564. private Path callbackReader;
  3565. // Token: 0x04000439 RID: 1081
  3566. [CompilerGenerated]
  3567. [AccessedThroughProperty("CardNeoForge")]
  3568. private MyCard _TemplateReader;
  3569. // Token: 0x0400043A RID: 1082
  3570. [CompilerGenerated]
  3571. [AccessedThroughProperty("PanNeoForge")]
  3572. private StackPanel methodReader;
  3573. // Token: 0x0400043B RID: 1083
  3574. [AccessedThroughProperty("PanNeoForgeInfo")]
  3575. [CompilerGenerated]
  3576. private Grid taskReader;
  3577. // Token: 0x0400043C RID: 1084
  3578. [AccessedThroughProperty("ImgNeoForge")]
  3579. [CompilerGenerated]
  3580. private Image m_ConsumerReader;
  3581. // Token: 0x0400043D RID: 1085
  3582. [AccessedThroughProperty("LabNeoForge")]
  3583. [CompilerGenerated]
  3584. private TextBlock m_ConfigurationReader;
  3585. // Token: 0x0400043E RID: 1086
  3586. [AccessedThroughProperty("BtnNeoForgeClear")]
  3587. [CompilerGenerated]
  3588. private Grid _GetterReader;
  3589. // Token: 0x0400043F RID: 1087
  3590. [CompilerGenerated]
  3591. [AccessedThroughProperty("BtnNeoForgeClearInner")]
  3592. private Path tokenReader;
  3593. // Token: 0x04000440 RID: 1088
  3594. [AccessedThroughProperty("CardFabric")]
  3595. [CompilerGenerated]
  3596. private MyCard m_ExpressionReader;
  3597. // Token: 0x04000441 RID: 1089
  3598. [CompilerGenerated]
  3599. [AccessedThroughProperty("PanFabric")]
  3600. private StackPanel writerReader;
  3601. // Token: 0x04000442 RID: 1090
  3602. [CompilerGenerated]
  3603. [AccessedThroughProperty("PanFabricInfo")]
  3604. private Grid registryReader;
  3605. // Token: 0x04000443 RID: 1091
  3606. [AccessedThroughProperty("ImgFabric")]
  3607. [CompilerGenerated]
  3608. private Image m_RuleReader;
  3609. // Token: 0x04000444 RID: 1092
  3610. [CompilerGenerated]
  3611. [AccessedThroughProperty("LabFabric")]
  3612. private TextBlock _ProccesorReader;
  3613. // Token: 0x04000445 RID: 1093
  3614. [CompilerGenerated]
  3615. [AccessedThroughProperty("BtnFabricClear")]
  3616. private Grid m_SetterReader;
  3617. // Token: 0x04000446 RID: 1094
  3618. [AccessedThroughProperty("BtnFabricClearInner")]
  3619. [CompilerGenerated]
  3620. private Path factoryReader;
  3621. // Token: 0x04000447 RID: 1095
  3622. [CompilerGenerated]
  3623. [AccessedThroughProperty("CardFabricApi")]
  3624. private MyCard exporterReader;
  3625. // Token: 0x04000448 RID: 1096
  3626. [AccessedThroughProperty("PanFabricApi")]
  3627. [CompilerGenerated]
  3628. private StackPanel m_ImporterReader;
  3629. // Token: 0x04000449 RID: 1097
  3630. [AccessedThroughProperty("PanFabricApiInfo")]
  3631. [CompilerGenerated]
  3632. private Grid m_WorkerReader;
  3633. // Token: 0x0400044A RID: 1098
  3634. [CompilerGenerated]
  3635. [AccessedThroughProperty("ImgFabricApi")]
  3636. private Image _ConnectionReader;
  3637. // Token: 0x0400044B RID: 1099
  3638. [AccessedThroughProperty("LabFabricApi")]
  3639. [CompilerGenerated]
  3640. private TextBlock _ServerReader;
  3641. // Token: 0x0400044C RID: 1100
  3642. [AccessedThroughProperty("BtnFabricApiClear")]
  3643. [CompilerGenerated]
  3644. private Grid m_ResolverReader;
  3645. // Token: 0x0400044D RID: 1101
  3646. [AccessedThroughProperty("BtnFabricApiClearInner")]
  3647. [CompilerGenerated]
  3648. private Path statusReader;
  3649. // Token: 0x0400044E RID: 1102
  3650. [AccessedThroughProperty("CardOptiFine")]
  3651. [CompilerGenerated]
  3652. private MyCard roleReader;
  3653. // Token: 0x0400044F RID: 1103
  3654. [AccessedThroughProperty("PanOptiFine")]
  3655. [CompilerGenerated]
  3656. private StackPanel m_StructReader;
  3657. // Token: 0x04000450 RID: 1104
  3658. [AccessedThroughProperty("PanOptiFineInfo")]
  3659. [CompilerGenerated]
  3660. private Grid m_PrinterReader;
  3661. // Token: 0x04000451 RID: 1105
  3662. [AccessedThroughProperty("ImgOptiFine")]
  3663. [CompilerGenerated]
  3664. private Image _ValReader;
  3665. // Token: 0x04000452 RID: 1106
  3666. [AccessedThroughProperty("LabOptiFine")]
  3667. [CompilerGenerated]
  3668. private TextBlock _AttrReader;
  3669. // Token: 0x04000453 RID: 1107
  3670. [AccessedThroughProperty("BtnOptiFineClear")]
  3671. [CompilerGenerated]
  3672. private Grid m_CandidateReader;
  3673. // Token: 0x04000454 RID: 1108
  3674. [CompilerGenerated]
  3675. [AccessedThroughProperty("BtnOptiFineClearInner")]
  3676. private Path advisorReader;
  3677. // Token: 0x04000455 RID: 1109
  3678. [CompilerGenerated]
  3679. [AccessedThroughProperty("CardOptiFabric")]
  3680. private MyCard accountReader;
  3681. // Token: 0x04000456 RID: 1110
  3682. [CompilerGenerated]
  3683. [AccessedThroughProperty("PanOptiFabric")]
  3684. private StackPanel m_QueueReader;
  3685. // Token: 0x04000457 RID: 1111
  3686. [AccessedThroughProperty("PanOptiFabricInfo")]
  3687. [CompilerGenerated]
  3688. private Grid _EventReader;
  3689. // Token: 0x04000458 RID: 1112
  3690. [AccessedThroughProperty("ImgOptiFabric")]
  3691. [CompilerGenerated]
  3692. private Image _ManagerReader;
  3693. // Token: 0x04000459 RID: 1113
  3694. [AccessedThroughProperty("LabOptiFabric")]
  3695. [CompilerGenerated]
  3696. private TextBlock modelReader;
  3697. // Token: 0x0400045A RID: 1114
  3698. [AccessedThroughProperty("BtnOptiFabricClear")]
  3699. [CompilerGenerated]
  3700. private Grid _WrapperReader;
  3701. // Token: 0x0400045B RID: 1115
  3702. [AccessedThroughProperty("BtnOptiFabricClearInner")]
  3703. [CompilerGenerated]
  3704. private Path _BaseReader;
  3705. // Token: 0x0400045C RID: 1116
  3706. [AccessedThroughProperty("CardLiteLoader")]
  3707. [CompilerGenerated]
  3708. private MyCard m_AttributeReader;
  3709. // Token: 0x0400045D RID: 1117
  3710. [AccessedThroughProperty("PanLiteLoader")]
  3711. [CompilerGenerated]
  3712. private StackPanel _CodeReader;
  3713. // Token: 0x0400045E RID: 1118
  3714. [AccessedThroughProperty("PanLiteLoaderInfo")]
  3715. [CompilerGenerated]
  3716. private Grid prototypeReader;
  3717. // Token: 0x0400045F RID: 1119
  3718. [CompilerGenerated]
  3719. [AccessedThroughProperty("ImgLiteLoader")]
  3720. private Image _AnnotationReader;
  3721. // Token: 0x04000460 RID: 1120
  3722. [AccessedThroughProperty("LabLiteLoader")]
  3723. [CompilerGenerated]
  3724. private TextBlock m_InfoReader;
  3725. // Token: 0x04000461 RID: 1121
  3726. [AccessedThroughProperty("BtnLiteLoaderClear")]
  3727. [CompilerGenerated]
  3728. private Grid _AdapterReader;
  3729. // Token: 0x04000462 RID: 1122
  3730. [CompilerGenerated]
  3731. [AccessedThroughProperty("BtnLiteLoaderClearInner")]
  3732. private Path facadeReader;
  3733. // Token: 0x04000463 RID: 1123
  3734. [AccessedThroughProperty("PanLoad")]
  3735. [CompilerGenerated]
  3736. private MyCard listReader;
  3737. // Token: 0x04000464 RID: 1124
  3738. [AccessedThroughProperty("LoadMinecraft")]
  3739. [CompilerGenerated]
  3740. private MyLoading merchantReader;
  3741. // Token: 0x04000465 RID: 1125
  3742. [AccessedThroughProperty("LoadOptiFine")]
  3743. [CompilerGenerated]
  3744. private MyLoading m_AuthenticationReader;
  3745. // Token: 0x04000466 RID: 1126
  3746. [AccessedThroughProperty("LoadForge")]
  3747. [CompilerGenerated]
  3748. private MyLoading _AlgoReader;
  3749. // Token: 0x04000467 RID: 1127
  3750. [AccessedThroughProperty("LoadNeoForge")]
  3751. [CompilerGenerated]
  3752. private MyLoading m_ComparatorReader;
  3753. // Token: 0x04000468 RID: 1128
  3754. [CompilerGenerated]
  3755. [AccessedThroughProperty("LoadLiteLoader")]
  3756. private MyLoading m_MappingReader;
  3757. // Token: 0x04000469 RID: 1129
  3758. [CompilerGenerated]
  3759. [AccessedThroughProperty("LoadFabric")]
  3760. private MyLoading m_TokenizerReader;
  3761. // Token: 0x0400046A RID: 1130
  3762. [CompilerGenerated]
  3763. [AccessedThroughProperty("LoadFabricApi")]
  3764. private MyLoading _FilterReader;
  3765. // Token: 0x0400046B RID: 1131
  3766. [AccessedThroughProperty("LoadOptiFabric")]
  3767. [CompilerGenerated]
  3768. private MyLoading m_DatabaseReader;
  3769. // Token: 0x0400046C RID: 1132
  3770. private bool predicateReader;
  3771. }
  3772. }