PageLaunchLeft.cs 76 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980
  1. using System;
  2. using System.CodeDom.Compiler;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.IO;
  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.Input;
  12. using System.Windows.Markup;
  13. using System.Windows.Media;
  14. using System.Windows.Shapes;
  15. using System.Windows.Threading;
  16. using Microsoft.VisualBasic;
  17. using Microsoft.VisualBasic.CompilerServices;
  18. namespace PCL
  19. {
  20. // Token: 0x02000197 RID: 407
  21. [DesignerGenerated]
  22. public class PageLaunchLeft : MyPageLeft, IComponentConnector
  23. {
  24. // Token: 0x0600104C RID: 4172 RVA: 0x00077C70 File Offset: 0x00075E70
  25. public PageLaunchLeft()
  26. {
  27. base.Loaded += delegate(object sender, RoutedEventArgs e)
  28. {
  29. this.PageLaunchLeft_Loaded();
  30. };
  31. this.attributeMapper = false;
  32. this.m_CodeMapper = false;
  33. this.m_PrototypeMapper = PageLaunchLeft.PageType.None;
  34. this.m_MerchantMapper = 0;
  35. this._AuthenticationMapper = null;
  36. this.algoMapper = 0.0;
  37. this.m_ComparatorMapper = false;
  38. this.m_TokenizerMapper = false;
  39. this.InitializeComponent();
  40. }
  41. // Token: 0x0600104D RID: 4173 RVA: 0x00077CDC File Offset: 0x00075EDC
  42. public void PageLaunchLeft_Loaded()
  43. {
  44. if (this.attributeMapper)
  45. {
  46. this.RefreshPage(true, false);
  47. }
  48. this.AprilPosTrans.X = 0.0;
  49. this.AprilPosTrans.Y = 0.0;
  50. checked
  51. {
  52. if (!this.attributeMapper)
  53. {
  54. this.attributeMapper = true;
  55. ModAnimation.AssetParser(ModAnimation.CalcParser() + 1);
  56. ModMinecraft._ListenerTests.LoadingStateChanged += delegate(MyLoading.MyLoadingState a0, MyLoading.MyLoadingState a1)
  57. {
  58. this.RefreshButtonsUI();
  59. };
  60. ModMinecraft.m_CreatorTests.LoadingStateChanged += delegate(MyLoading.MyLoadingState a0, MyLoading.MyLoadingState a1)
  61. {
  62. this.RefreshButtonsUI();
  63. };
  64. this.RefreshButtonsUI();
  65. ModBase.RunInNewThread(delegate
  66. {
  67. string text = null;
  68. if (File.Exists(ModBase.Path + "modpack.zip"))
  69. {
  70. text = ModBase.Path + "modpack.zip";
  71. }
  72. if (File.Exists(ModBase.Path + "modpack.mrpack"))
  73. {
  74. text = ModBase.Path + "modpack.mrpack";
  75. }
  76. if (text != null)
  77. {
  78. ModBase.Log("[Launch] 需自动安装整合包:" + text, ModBase.LogLevel.Debug, "出现错误");
  79. ModBase.m_IdentifierRepository.Set("LaunchFolderSelect", "$.minecraft\\", false, null);
  80. if (!Directory.Exists(ModBase.Path + ".minecraft\\"))
  81. {
  82. Directory.CreateDirectory(ModBase.Path + ".minecraft\\");
  83. Directory.CreateDirectory(ModBase.Path + ".minecraft\\versions\\");
  84. ModMinecraft.McFolderLauncherProfilesJsonCreate(ModBase.Path + ".minecraft\\");
  85. }
  86. PageSelectLeft.AddFolder(ModBase.Path + ".minecraft\\", ModBase.GetFolderNameFromPath(ModBase.Path), false);
  87. ModMinecraft.m_CreatorTests.WaitForExit(null, null, false);
  88. }
  89. ModMinecraft.m_ProxyTests = ModBase.m_IdentifierRepository.Get("LaunchFolderSelect", null).ToString().Replace("$", ModBase.Path);
  90. if (Operators.CompareString(ModMinecraft.m_ProxyTests, "", false) == 0 || !Directory.Exists(ModMinecraft.m_ProxyTests))
  91. {
  92. if (Operators.CompareString(ModMinecraft.m_ProxyTests, "", false) == 0)
  93. {
  94. ModBase.Log("[Launch] 没有已储存的 Minecraft 文件夹", ModBase.LogLevel.Normal, "出现错误");
  95. }
  96. else
  97. {
  98. ModBase.Log("[Launch] Minecraft 文件夹无效,该文件夹已不存在:" + ModMinecraft.m_ProxyTests, ModBase.LogLevel.Debug, "出现错误");
  99. }
  100. ModMinecraft.m_CreatorTests.WaitForExit(null, null, true);
  101. ModBase.m_IdentifierRepository.Set("LaunchFolderSelect", ModMinecraft.messageTests[0].Path.Replace(ModBase.Path, "$"), false, null);
  102. }
  103. ModBase.Log("[Launch] Minecraft 文件夹:" + ModMinecraft.m_ProxyTests, ModBase.LogLevel.Normal, "出现错误");
  104. if (Conversions.ToBoolean(ModBase.m_IdentifierRepository.Get("SystemDebugDelay", null)))
  105. {
  106. Thread.Sleep(ModBase.RandomInteger(500, 3000));
  107. }
  108. if (text != null)
  109. {
  110. try
  111. {
  112. ModLoader.LoaderCombo<string> loaderCombo = ModModpack.ModpackInstall(text, ModBase.GetFolderNameFromPath(ModBase.Path), null);
  113. ModBase.Log("[Launch] 自动安装整合包已开始:" + text, ModBase.LogLevel.Normal, "出现错误");
  114. loaderCombo.WaitForExit(null, null, false);
  115. if (loaderCombo.State == ModBase.LoadState.Finished)
  116. {
  117. ModBase.Log("[Launch] 自动安装整合包成功,删除安装包:" + text, ModBase.LogLevel.Normal, "出现错误");
  118. File.Delete(text);
  119. }
  120. }
  121. catch (ModBase.CancelledException ex)
  122. {
  123. ModBase.Log(ex, "自动安装整合包被用户取消:" + text, ModBase.LogLevel.Debug, "出现错误");
  124. }
  125. catch (Exception ex2)
  126. {
  127. ModBase.Log(ex2, "自动安装整合包失败:" + text, ModBase.LogLevel.Msgbox, "出现错误");
  128. }
  129. }
  130. string text2 = Conversions.ToString(ModBase.m_IdentifierRepository.Get("LaunchVersionSelect", null));
  131. ModMinecraft.McVersion Version = (Operators.CompareString(text2, "", false) == 0) ? null : new ModMinecraft.McVersion(text2);
  132. if (Version == null || !Version.Path.StartsWithF(ModMinecraft.m_ProxyTests, false) || !Version.Check())
  133. {
  134. ModBase.Log("[Launch] 当前选择的 Minecraft 版本无效:" + ((Version == null) ? "null" : Version.Path), Information.IsNothing(Version) ? ModBase.LogLevel.Normal : ModBase.LogLevel.Debug, "出现错误");
  135. if (ModMinecraft._ListenerTests.State != ModBase.LoadState.Finished)
  136. {
  137. ModLoader.LoaderFolderRun(ModMinecraft._ListenerTests, ModMinecraft.m_ProxyTests, ModLoader.LoaderFolderRunType.ForceRun, 1, "versions\\", true);
  138. }
  139. if (Enumerable.Any<KeyValuePair<ModMinecraft.McVersionCardType, List<ModMinecraft.McVersion>>>(ModMinecraft._RegTests) && !Enumerable.First<KeyValuePair<ModMinecraft.McVersionCardType, List<ModMinecraft.McVersion>>>(ModMinecraft._RegTests).Value[0].getterMap.Contains("RedstoneBlock"))
  140. {
  141. Version = Enumerable.First<KeyValuePair<ModMinecraft.McVersionCardType, List<ModMinecraft.McVersion>>>(ModMinecraft._RegTests).Value[0];
  142. ModBase.m_IdentifierRepository.Set("LaunchVersionSelect", Version.Name, false, null);
  143. ModBase.Log("[Launch] 自动选择 Minecraft 版本:" + Version.Path, ModBase.LogLevel.Normal, "出现错误");
  144. }
  145. else
  146. {
  147. Version = null;
  148. ModBase.m_IdentifierRepository.Set("LaunchVersionSelect", "", false, null);
  149. ModBase.Log("[Launch] 无可用 Minecraft 版本", ModBase.LogLevel.Normal, "出现错误");
  150. }
  151. }
  152. ModBase.RunInUi(delegate()
  153. {
  154. ModMinecraft.InstantiateClient(Version);
  155. this.m_CodeMapper = true;
  156. this.RefreshButtonsUI();
  157. this.RefreshPage(false, false);
  158. if (Operators.CompareString(ModLaunch.McLoginAble(), "", false) == 0)
  159. {
  160. ModLaunch.interceptorTests.Start(null, false);
  161. }
  162. }, false);
  163. }, "Version Check", ThreadPriority.AboveNormal);
  164. ModLaunch.McLoginType mcLoginType = (ModLaunch.McLoginType)Conversions.ToInteger(ModBase.m_IdentifierRepository.Get("LoginType", null));
  165. if (mcLoginType == ModLaunch.McLoginType.Legacy || mcLoginType == ModLaunch.McLoginType.Ms)
  166. {
  167. ((MyRadioButton)base.FindName("RadioLoginType" + Conversions.ToString((int)mcLoginType))).Checked = true;
  168. }
  169. this.RefreshPage(false, false);
  170. ModAnimation.AssetParser(ModAnimation.CalcParser() - 1);
  171. }
  172. }
  173. }
  174. // Token: 0x0600104E RID: 4174 RVA: 0x00077DDC File Offset: 0x00075FDC
  175. public void PageChangeToLaunching()
  176. {
  177. object left = ModBase.m_IdentifierRepository.Get("LoginType", null);
  178. if (Operators.ConditionalCompareObjectEqual(left, ModLaunch.McLoginType.Legacy, false))
  179. {
  180. if (PageLinkHiper.EnableReader() == ModBase.LoadState.Finished)
  181. {
  182. this.LabLaunchingMethod.Text = "联机离线登录";
  183. }
  184. else
  185. {
  186. this.LabLaunchingMethod.Text = "离线登录";
  187. }
  188. }
  189. else if (Operators.ConditionalCompareObjectEqual(left, ModLaunch.McLoginType.Ms, false))
  190. {
  191. this.LabLaunchingMethod.Text = "正版登录";
  192. }
  193. else if (Operators.ConditionalCompareObjectEqual(left, ModLaunch.McLoginType.Nide, false))
  194. {
  195. this.LabLaunchingMethod.Text = "统一通行证";
  196. }
  197. else if (Operators.ConditionalCompareObjectEqual(left, ModLaunch.McLoginType.Auth, false))
  198. {
  199. this.LabLaunchingMethod.Text = "Authlib-Injector";
  200. }
  201. this.LabLaunchingName.Text = ModMinecraft.AddClient().Name;
  202. this.LabLaunchingStage.Text = "初始化";
  203. TextBlock labLaunchingTitle = this.LabLaunchingTitle;
  204. ModLaunch.McLaunchOptions filterTests = ModLaunch.filterTests;
  205. labLaunchingTitle.Text = ((((filterTests != null) ? filterTests.requestMap : null) == null) ? "正在启动游戏" : "正在导出启动脚本");
  206. this.LabLaunchingProgress.Text = "0.00 %";
  207. this.LabLaunchingProgress.Opacity = 1.0;
  208. this.LabLaunchingDownload.Visibility = Visibility.Visible;
  209. this.LabLaunchingProgressLeft.Opacity = 0.6;
  210. this.LabLaunchingDownload.Visibility = Visibility.Visible;
  211. this.LabLaunchingDownload.Text = "0 B/s";
  212. this.LabLaunchingDownload.Opacity = 0.0;
  213. this.LabLaunchingDownload.Visibility = Visibility.Collapsed;
  214. this.LabLaunchingDownloadLeft.Opacity = 0.0;
  215. this.LabLaunchingDownloadLeft.Visibility = Visibility.Collapsed;
  216. this.ProgressLaunchingFinished.Width = new GridLength(0.0, GridUnitType.Star);
  217. this.ProgressLaunchingUnfinished.Width = new GridLength(1.0, GridUnitType.Star);
  218. this.PanLaunchingHint.Opacity = 0.0;
  219. this.PanLaunchingHint.Visibility = Visibility.Collapsed;
  220. this.PanLaunchingInfo.Width = double.NaN;
  221. ModLaunch._PoolTests = null;
  222. ModLaunch.customerTests = null;
  223. this.LabLaunchingHint.Text = PageOtherTest.GetRandomHint();
  224. this.PanInput.IsHitTestVisible = false;
  225. this.PanLaunching.IsHitTestVisible = false;
  226. this.LoadLaunching.State.LoadingState = MyLoading.MyLoadingState.Run;
  227. this.PanLaunching.Visibility = Visibility.Visible;
  228. ModAnimation.AniStart(new ModAnimation.AniData[]
  229. {
  230. ModAnimation.AaOpacity(this.PanInput, 0.0, 50, 0, null, false),
  231. ModAnimation.AaOpacity(this.PanInput, -this.PanInput.Opacity, 110, 0, new ModAnimation.AniEaseInFluent(ModAnimation.AniEasePower.Middle), true),
  232. ModAnimation.AaScaleTransform(this.PanInput, 1.2 - ((ScaleTransform)this.PanInput.RenderTransform).ScaleX, 160, 0, null, false),
  233. ModAnimation.AaOpacity(this.PanLaunching, 1.0 - this.PanLaunching.Opacity, 150, 100, null, false),
  234. ModAnimation.AaScaleTransform(this.PanLaunching, 1.0 - ((ScaleTransform)this.PanLaunching.RenderTransform).ScaleX, 500, 100, new ModAnimation.AniEaseOutBack(ModAnimation.AniEasePower.Weak), false),
  235. ModAnimation.AaCode(delegate
  236. {
  237. this.PanLaunching.IsHitTestVisible = true;
  238. }, 150, false)
  239. }, "Launch State Page", false);
  240. }
  241. // Token: 0x0600104F RID: 4175 RVA: 0x00078160 File Offset: 0x00076360
  242. public void PageChangeToLogin()
  243. {
  244. NewLateBinding.LateCall(this.PageGet(this.m_PrototypeMapper), null, "Reload", new object[]
  245. {
  246. false
  247. }, new string[]
  248. {
  249. "KeepInput"
  250. }, null, null, true);
  251. this.PanInput.IsHitTestVisible = false;
  252. this.PanLaunching.IsHitTestVisible = false;
  253. this.LoadLaunching.State.LoadingState = MyLoading.MyLoadingState.Stop;
  254. this.PanInput.Visibility = Visibility.Visible;
  255. ModAnimation.AniStart(new ModAnimation.AniData[]
  256. {
  257. ModAnimation.AaOpacity(this.PanLaunching, -this.PanLaunching.Opacity, 150, 0, null, false),
  258. ModAnimation.AaScaleTransform(this.PanLaunching, 0.8 - ((ScaleTransform)this.PanLaunching.RenderTransform).ScaleX, 150, 0, new ModAnimation.AniEaseOutFluent(ModAnimation.AniEasePower.Weak), false),
  259. ModAnimation.AaOpacity(this.PanInput, 1.0 - this.PanInput.Opacity, 250, 50, null, false),
  260. ModAnimation.AaScaleTransform(this.PanInput, 1.0 - ((ScaleTransform)this.PanInput.RenderTransform).ScaleX, 300, 50, new ModAnimation.AniEaseOutBack(ModAnimation.AniEasePower.Weak), false),
  261. ModAnimation.AaCode(delegate
  262. {
  263. this.PanInput.IsHitTestVisible = true;
  264. }, 200, false)
  265. }, "Launch State Page", true);
  266. }
  267. // Token: 0x06001050 RID: 4176 RVA: 0x000782DC File Offset: 0x000764DC
  268. private object PageGet(PageLaunchLeft.PageType Type)
  269. {
  270. object result;
  271. switch (Type)
  272. {
  273. case PageLaunchLeft.PageType.Legacy:
  274. if (Information.IsNothing(ModMain.m_ProcIterator))
  275. {
  276. ModMain.m_ProcIterator = new PageLoginLegacy();
  277. }
  278. result = ModMain.m_ProcIterator;
  279. break;
  280. case PageLaunchLeft.PageType.Nide:
  281. if (Information.IsNothing(ModMain.parserRepository))
  282. {
  283. ModMain.parserRepository = new PageLoginNide();
  284. }
  285. result = ModMain.parserRepository;
  286. break;
  287. case PageLaunchLeft.PageType.NideSkin:
  288. if (Information.IsNothing(ModMain.broadcasterRepository))
  289. {
  290. ModMain.broadcasterRepository = new PageLoginNideSkin();
  291. }
  292. result = ModMain.broadcasterRepository;
  293. break;
  294. case PageLaunchLeft.PageType.Auth:
  295. if (Information.IsNothing(ModMain.fieldRepository))
  296. {
  297. ModMain.fieldRepository = new PageLoginAuth();
  298. }
  299. result = ModMain.fieldRepository;
  300. break;
  301. case PageLaunchLeft.PageType.AuthSkin:
  302. if (Information.IsNothing(ModMain.readerRepository))
  303. {
  304. ModMain.readerRepository = new PageLoginAuthSkin();
  305. }
  306. result = ModMain.readerRepository;
  307. break;
  308. case PageLaunchLeft.PageType.Ms:
  309. if (Information.IsNothing(ModMain.m_ClientRepository))
  310. {
  311. ModMain.m_ClientRepository = new PageLoginMs();
  312. }
  313. result = ModMain.m_ClientRepository;
  314. break;
  315. case PageLaunchLeft.PageType.MsSkin:
  316. if (Information.IsNothing(ModMain.m_ConfigRepository))
  317. {
  318. ModMain.m_ConfigRepository = new PageLoginMsSkin();
  319. }
  320. result = ModMain.m_ConfigRepository;
  321. break;
  322. default:
  323. throw new ArgumentOutOfRangeException("Type", "即将切换的登录分页编号越界");
  324. }
  325. return result;
  326. }
  327. // Token: 0x06001051 RID: 4177 RVA: 0x000783F8 File Offset: 0x000765F8
  328. private object PageChange(PageLaunchLeft.PageType Type, bool Anim)
  329. {
  330. PageLoginMs PageNew = ModMain.m_ClientRepository;
  331. checked
  332. {
  333. object $VB$Local_PageNew;
  334. try
  335. {
  336. if (this.m_PrototypeMapper == Type)
  337. {
  338. $VB$Local_PageNew = PageNew;
  339. }
  340. else
  341. {
  342. PageNew = RuntimeHelpers.GetObjectValue(this.PageGet(Type));
  343. ModAnimation.AniStop("FrmLogin PageChange");
  344. if (!Information.IsNothing(RuntimeHelpers.GetObjectValue(PageNew)) && !Information.IsNothing(RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(PageNew, null, "Parent", new object[0], null, null, null))))
  345. {
  346. object $VB$Local_PageNew2 = PageNew;
  347. Type type = null;
  348. string memberName = "SetValue";
  349. object[] array = new object[2];
  350. array[0] = ContentPresenter.ContentProperty;
  351. NewLateBinding.LateCall($VB$Local_PageNew2, type, memberName, array, null, null, null, true);
  352. }
  353. if (Anim)
  354. {
  355. ThreadStart $I1;
  356. base.Dispatcher.Invoke(delegate()
  357. {
  358. ModAnimation.AniStart(new ModAnimation.AniData[]
  359. {
  360. ModAnimation.AaOpacity(this.PanLogin, unchecked(-this.PanLogin.Opacity), 100, 0, new ModAnimation.AniEaseOutFluent(ModAnimation.AniEasePower.Middle), false),
  361. ModAnimation.AaCode(($I1 == null) ? ($I1 = delegate()
  362. {
  363. ModAnimation.AssetParser(ModAnimation.CalcParser() + 1);
  364. this.PanLogin.Children.Clear();
  365. this.PanLogin.Children.Add((UIElement)PageNew);
  366. ModAnimation.AssetParser(ModAnimation.CalcParser() - 1);
  367. }) : $I1, 100, false),
  368. ModAnimation.AaOpacity(this.PanLogin, 1.0, 100, 120, new ModAnimation.AniEaseInFluent(ModAnimation.AniEasePower.Middle), false)
  369. }, "FrmLogin PageChange", false);
  370. }, DispatcherPriority.Render);
  371. }
  372. else
  373. {
  374. ModAnimation.AssetParser(ModAnimation.CalcParser() + 1);
  375. this.PanLogin.Children.Clear();
  376. this.PanLogin.Children.Add((UIElement)PageNew);
  377. ModAnimation.AssetParser(ModAnimation.CalcParser() - 1);
  378. }
  379. this.m_PrototypeMapper = Type;
  380. $VB$Local_PageNew = PageNew;
  381. }
  382. }
  383. catch (Exception ex)
  384. {
  385. ModBase.Log(ex, "切换登录分页失败(" + ModBase.GetStringFromEnum(Type) + ")", ModBase.LogLevel.Feedback, "出现错误");
  386. $VB$Local_PageNew = PageNew;
  387. }
  388. return $VB$Local_PageNew;
  389. }
  390. }
  391. // Token: 0x06001052 RID: 4178 RVA: 0x00078568 File Offset: 0x00076768
  392. public void RefreshPage(bool KeepInput, bool Anim)
  393. {
  394. int num;
  395. if (ModMinecraft.AddClient() != null)
  396. {
  397. num = Conversions.ToInteger(ModBase.m_IdentifierRepository.Get("VersionServerLogin", ModMinecraft.AddClient()));
  398. ModBase.m_IdentifierRepository.Set("LoginPageType", num, false, null);
  399. }
  400. else
  401. {
  402. num = Conversions.ToInteger(ModBase.m_IdentifierRepository.Get("LoginPageType", null));
  403. }
  404. PageLaunchLeft.PageType pageType;
  405. switch (num)
  406. {
  407. case 0:
  408. break;
  409. case 1:
  410. if (Operators.ConditionalCompareObjectEqual(ModBase.m_IdentifierRepository.Get("CacheMsV2Access", null), "", false))
  411. {
  412. pageType = PageLaunchLeft.PageType.Ms;
  413. }
  414. else
  415. {
  416. pageType = PageLaunchLeft.PageType.MsSkin;
  417. }
  418. ModBase.m_IdentifierRepository.Set("LoginType", ModLaunch.McLoginType.Ms, false, null);
  419. this.PanType.Visibility = Visibility.Collapsed;
  420. this.PanTypeOne.Visibility = Visibility.Visible;
  421. this.PathTypeOne.Data = (Geometry)new GeometryConverter().ConvertFromString("M511.488256 95.184408c35.310345 22.516742 95.184408 55.78011 167.34033 84.437781 75.738131 29.681159 148.405797 40.93953 191.392304 45.033483v353.615193c0 73.691154-50.662669 164.781609-136.123938 244.101949C649.65917 901.181409 558.568716 942.12094 512 942.12094c-46.568716 0-137.65917-40.93953-222.096952-119.748126C204.441779 742.54073 153.77911 651.450275 153.77911 577.247376v-353.103448c42.474763-4.093953 116.165917-15.352324 191.904048-45.545227 75.226387-30.192904 133.565217-63.456272 165.805098-83.414293M512 0c-4.093953 0-8.187906 1.535232-11.258371 3.582209l-14.84058 10.234882c-1.023488 0.511744-67.550225 47.592204-170.410794 88.531735-100.813593 39.916042-198.556722 41.963018-199.58021 41.963018l-25.075462 0.511744c-10.746627 0.511744-18.934533 8.187906-18.934533 18.422789v414.000999c0 216.97951 286.064968 446.24088 440.09995 446.24088s440.09995-229.261369 440.09995-445.729136V163.758121c0-10.234883-8.69965-18.422789-18.934533-18.422789l-24.563718-0.511744c-1.023488 0-98.766617-2.046977-199.58021-41.963018-103.372314-40.93953-170.410795-88.01999-170.922538-88.531734L523.258371 3.582209c-3.070465-2.558721-7.164418-3.582209-11.258371-3.582209z M743.308346 410.930535l-260.477761 260.477761c-15.864068 15.864068-41.963018 15.864068-57.827087 0l-144.823588-144.823588c-15.864068-15.864068-15.864068-41.963018 0-57.827087 8.187906-8.187906 18.422789-11.770115 29.169415-11.770115 10.234883 0 20.981509 4.093953 29.169416 11.770115l115.654173 115.654173L685.993003 352.591704c15.864068-15.864068 41.963018-15.864068 57.827087 0 15.352324 16.375812 15.352324 42.474763-0.511744 58.338831z");
  422. this.LabTypeOne.Text = "正版登录";
  423. this.RadioLoginType5.Visibility = Visibility.Visible;
  424. this.RadioLoginType0.Visibility = Visibility.Collapsed;
  425. goto IL_37B;
  426. case 2:
  427. pageType = PageLaunchLeft.PageType.Legacy;
  428. ModBase.m_IdentifierRepository.Set("LoginType", ModLaunch.McLoginType.Legacy, false, null);
  429. this.PanType.Visibility = Visibility.Collapsed;
  430. this.PanTypeOne.Visibility = Visibility.Visible;
  431. this.PathTypeOne.Data = (Geometry)new GeometryConverter().ConvertFromString("M533.293176 788.841412a60.235294 60.235294 0 1 1 85.202824 85.202823l-42.616471 42.586353c-129.355294 129.385412-339.124706 129.385412-468.510117 0-129.385412-129.385412-129.385412-339.124706 0-468.510117l42.586353-42.616471a60.235294 60.235294 0 1 1 85.202823 85.202824l-42.61647 42.586352a210.823529 210.823529 0 1 0 298.164706 298.164706l42.586352-42.61647z m255.548236-255.548236l42.61647-42.586352a210.823529 210.823529 0 1 0-298.164706-298.164706l-42.586352 42.61647a60.235294 60.235294 0 1 1-85.202824-85.202823l42.616471-42.586353c129.355294-129.385412 339.124706-129.385412 468.510117 0 129.385412 129.385412 129.385412 339.124706 0 468.510117l-42.586353 42.616471a60.235294 60.235294 0 1 1-85.202823-85.202824zM192.542118 192.542118a60.235294 60.235294 0 0 1 85.202823 0l553.712941 553.712941a60.235294 60.235294 0 0 1-85.202823 85.202823L192.542118 277.744941a60.235294 60.235294 0 0 1 0-85.202823z");
  432. this.LabTypeOne.Text = "离线登录";
  433. goto IL_37B;
  434. case 3:
  435. if (Operators.ConditionalCompareObjectEqual(ModBase.m_IdentifierRepository.Get("CacheNideAccess", null), "", false))
  436. {
  437. pageType = PageLaunchLeft.PageType.Nide;
  438. }
  439. else
  440. {
  441. pageType = PageLaunchLeft.PageType.NideSkin;
  442. }
  443. ModBase.m_IdentifierRepository.Set("LoginType", ModLaunch.McLoginType.Nide, false, null);
  444. this.PanType.Visibility = Visibility.Collapsed;
  445. this.PanTypeOne.Visibility = Visibility.Visible;
  446. this.PathTypeOne.Data = (Geometry)new GeometryConverter().ConvertFromString("M834.5 684.1c-31.2-70.4-98.9-120.9-179.1-127.3 63.5-8.5 112.6-63 112.6-128.8 0-71.8-58.2-130-130-130s-130 58.2-130 130c0 65.9 49 120.3 112.6 128.8-80.2 6.4-148 57-179.1 127.3-8.7 19.7 6 42 27.6 42 12.1 0 22.7-7.5 27.7-18.5 24.3-53.9 78.5-91.5 141.3-91.5s117 37.6 141.3 91.5c5 11.1 15.6 18.5 27.7 18.5 21.4 0 36.1-22.3 27.4-42zM567.9 427.9c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70-70-31.4-70-70zM460.3 347.9H216.9c-16.6 0-30 13.4-30 30s13.4 30 30 30h243.3c16.6 0 30-13.4 30-30 0.1-16.5-13.4-30-29.9-30zM367.4 459.6H216.9c-16.6 0-30 13.4-30 30s13.4 30 30 30h150.4c16.6 0 30-13.4 30-30 0.1-16.6-13.4-30-29.9-30zM297.4 571.2H217c-16.6 0-30 13.4-30 30s13.4 30 30 30h80.4c16.6 0 30-13.4 30-30 0-16.5-13.5-30-30-30zM900 236v552H124V236h776m0-60H124c-33.1 0-60 26.9-60 60v552c0 33.1 26.9 60 60 60h776c33.1 0 60-26.9 60-60V236c0-33.1-26.9-60-60-60z");
  447. this.LabTypeOne.Text = "统一通行证登录";
  448. goto IL_37B;
  449. case 4:
  450. if (Operators.ConditionalCompareObjectEqual(ModBase.m_IdentifierRepository.Get("CacheAuthAccess", null), "", false))
  451. {
  452. pageType = PageLaunchLeft.PageType.Auth;
  453. }
  454. else
  455. {
  456. pageType = PageLaunchLeft.PageType.AuthSkin;
  457. }
  458. ModBase.m_IdentifierRepository.Set("LoginType", ModLaunch.McLoginType.Auth, false, null);
  459. this.PanType.Visibility = Visibility.Collapsed;
  460. this.PanTypeOne.Visibility = Visibility.Visible;
  461. this.PathTypeOne.Data = (Geometry)new GeometryConverter().ConvertFromString("M834.5 684.1c-31.2-70.4-98.9-120.9-179.1-127.3 63.5-8.5 112.6-63 112.6-128.8 0-71.8-58.2-130-130-130s-130 58.2-130 130c0 65.9 49 120.3 112.6 128.8-80.2 6.4-148 57-179.1 127.3-8.7 19.7 6 42 27.6 42 12.1 0 22.7-7.5 27.7-18.5 24.3-53.9 78.5-91.5 141.3-91.5s117 37.6 141.3 91.5c5 11.1 15.6 18.5 27.7 18.5 21.4 0 36.1-22.3 27.4-42zM567.9 427.9c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70-70-31.4-70-70zM460.3 347.9H216.9c-16.6 0-30 13.4-30 30s13.4 30 30 30h243.3c16.6 0 30-13.4 30-30 0.1-16.5-13.4-30-29.9-30zM367.4 459.6H216.9c-16.6 0-30 13.4-30 30s13.4 30 30 30h150.4c16.6 0 30-13.4 30-30 0.1-16.6-13.4-30-29.9-30zM297.4 571.2H217c-16.6 0-30 13.4-30 30s13.4 30 30 30h80.4c16.6 0 30-13.4 30-30 0-16.5-13.5-30-30-30zM900 236v552H124V236h776m0-60H124c-33.1 0-60 26.9-60 60v552c0 33.1 26.9 60 60 60h776c33.1 0 60-26.9 60-60V236c0-33.1-26.9-60-60-60z");
  462. this.LabTypeOne.Text = Conversions.ToString((ModMinecraft.AddClient() == null) ? ModBase.m_IdentifierRepository.Get("CacheAuthServerName", null) : ModBase.m_IdentifierRepository.Get("VersionServerAuthName", ModMinecraft.AddClient()));
  463. if (Operators.CompareString(this.LabTypeOne.Text, "", false) == 0)
  464. {
  465. this.LabTypeOne.Text = "第三方登录";
  466. goto IL_37B;
  467. }
  468. goto IL_37B;
  469. default:
  470. ModBase.Log("[Control] 未知的登录页面:" + Conversions.ToString(num), ModBase.LogLevel.Hint, "出现错误");
  471. break;
  472. }
  473. if (this.RadioLoginType5.Checked)
  474. {
  475. if (Operators.ConditionalCompareObjectEqual(ModBase.m_IdentifierRepository.Get("CacheMsV2Access", null), "", false))
  476. {
  477. pageType = PageLaunchLeft.PageType.Ms;
  478. }
  479. else
  480. {
  481. pageType = PageLaunchLeft.PageType.MsSkin;
  482. }
  483. ModBase.m_IdentifierRepository.Set("LoginType", ModLaunch.McLoginType.Ms, false, null);
  484. }
  485. else
  486. {
  487. pageType = PageLaunchLeft.PageType.Legacy;
  488. ModBase.m_IdentifierRepository.Set("LoginType", ModLaunch.McLoginType.Legacy, false, null);
  489. }
  490. this.PanType.Visibility = Visibility.Visible;
  491. this.PanTypeOne.Visibility = Visibility.Collapsed;
  492. this.RadioLoginType5.Visibility = Visibility.Visible;
  493. this.RadioLoginType0.Visibility = Visibility.Visible;
  494. IL_37B:
  495. if (this.m_PrototypeMapper != pageType)
  496. {
  497. object[] array;
  498. bool[] array2;
  499. NewLateBinding.LateCall(this.PageChange(pageType, Anim), null, "Reload", array = new object[]
  500. {
  501. KeepInput
  502. }, null, null, array2 = new bool[]
  503. {
  504. true
  505. }, true);
  506. if (array2[0])
  507. {
  508. KeepInput = (bool)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array[0]), typeof(bool));
  509. }
  510. MyRadioButton myRadioButton = (MyRadioButton)base.FindName(Conversions.ToString(Operators.ConcatenateObject("RadioLoginType", ModBase.m_IdentifierRepository.Get("LoginType", null))));
  511. if (myRadioButton != null)
  512. {
  513. myRadioButton.Checked = true;
  514. }
  515. }
  516. }
  517. // Token: 0x06001053 RID: 4179 RVA: 0x00009F76 File Offset: 0x00008176
  518. private void RadioLoginType_Change(object sender, bool raiseByMouse)
  519. {
  520. if (raiseByMouse)
  521. {
  522. this.RefreshPage(true, true);
  523. }
  524. }
  525. // Token: 0x06001054 RID: 4180 RVA: 0x00009F83 File Offset: 0x00008183
  526. private static ModBase.EqualableList<string> SkinMsInput()
  527. {
  528. return new ModBase.EqualableList<string>
  529. {
  530. Conversions.ToString(ModBase.m_IdentifierRepository.Get("CacheMsV2Name", null)),
  531. Conversions.ToString(ModBase.m_IdentifierRepository.Get("CacheMsV2Uuid", null))
  532. };
  533. }
  534. // Token: 0x06001055 RID: 4181 RVA: 0x0007898C File Offset: 0x00076B8C
  535. private static void SkinMsLoad(ModLoader.LoaderTask<ModBase.EqualableList<string>, string> Data)
  536. {
  537. ModBase.RunInUi((PageLaunchLeft._Closure$__.$I15-0 == null) ? (PageLaunchLeft._Closure$__.$I15-0 = delegate()
  538. {
  539. if (ModMain.m_ConfigRepository != null && ModMain.m_ConfigRepository.Skin != null)
  540. {
  541. ModMain.m_ConfigRepository.Skin.Clear();
  542. }
  543. }) : PageLaunchLeft._Closure$__.$I15-0, false);
  544. string text = Data.Input[0];
  545. string uuid = Data.Input[1];
  546. if (Operators.CompareString(text, "", false) == 0)
  547. {
  548. Data.Output = ModBase.m_SerializerRepository + "Skins/" + ModMinecraft.McSkinSex(Conversions.ToString(ModLaunch.McLoginLegacyUuid(text))) + ".png";
  549. ModBase.Log("[Minecraft] 获取微软正版皮肤失败,ID 为空", ModBase.LogLevel.Normal, "出现错误");
  550. }
  551. else
  552. {
  553. try
  554. {
  555. string text2 = ModMinecraft.McSkinGetAddress(uuid, "Ms");
  556. if (Data.IsAborted)
  557. {
  558. throw new ThreadInterruptedException("当前任务已取消:" + text);
  559. }
  560. text2 = ModMinecraft.McSkinDownload(text2);
  561. if (Data.IsAborted)
  562. {
  563. throw new ThreadInterruptedException("当前任务已取消:" + text);
  564. }
  565. Data.Output = text2;
  566. }
  567. catch (Exception ex)
  568. {
  569. if (Operators.CompareString(ex.GetType().Name, "ThreadInterruptedException", false) == 0)
  570. {
  571. Data.Output = "";
  572. return;
  573. }
  574. if (ModBase.GetExceptionSummary(ex).Contains("429"))
  575. {
  576. Data.Output = ModBase.m_SerializerRepository + "Skins/" + ModMinecraft.McSkinSex(Conversions.ToString(ModLaunch.McLoginLegacyUuid(text))) + ".png";
  577. ModBase.Log("[Minecraft] 获取正版皮肤失败(" + text + "):获取皮肤太过频繁,请 5 分钟后再试!", ModBase.LogLevel.Hint, "出现错误");
  578. }
  579. else if (ModBase.GetExceptionSummary(ex).Contains("未设置自定义皮肤"))
  580. {
  581. Data.Output = ModBase.m_SerializerRepository + "Skins/" + ModMinecraft.McSkinSex(Conversions.ToString(ModLaunch.McLoginLegacyUuid(text))) + ".png";
  582. ModBase.Log("[Minecraft] 用户未设置自定义皮肤,跳过皮肤加载", ModBase.LogLevel.Normal, "出现错误");
  583. }
  584. else
  585. {
  586. Data.Output = ModBase.m_SerializerRepository + "Skins/" + ModMinecraft.McSkinSex(Conversions.ToString(ModLaunch.McLoginLegacyUuid(text))) + ".png";
  587. ModBase.Log(ex, "获取微软正版皮肤失败(" + text + ")", ModBase.LogLevel.Hint, "出现错误");
  588. }
  589. }
  590. }
  591. if (ModMain.m_ConfigRepository != null)
  592. {
  593. ModBase.RunInUi(new Action(ModMain.m_ConfigRepository.Skin.Load), false);
  594. return;
  595. }
  596. if (!Data.IsAborted)
  597. {
  598. Data.Input = null;
  599. }
  600. }
  601. // Token: 0x06001056 RID: 4182 RVA: 0x00078BF8 File Offset: 0x00076DF8
  602. private static ModBase.EqualableList<string> SkinLegacyInput()
  603. {
  604. int num = Conversions.ToInteger(ModBase.m_IdentifierRepository.Get("LaunchSkinType", null));
  605. ModBase.EqualableList<string> result;
  606. if (num != 0)
  607. {
  608. if (num != 3)
  609. {
  610. result = new ModBase.EqualableList<string>
  611. {
  612. Conversions.ToString(num)
  613. };
  614. }
  615. else
  616. {
  617. result = new ModBase.EqualableList<string>
  618. {
  619. Conversions.ToString(3),
  620. Conversions.ToString(ModBase.m_IdentifierRepository.Get("LaunchSkinID", null))
  621. };
  622. }
  623. }
  624. else if (ModMain.m_ProcIterator != null && ModMain.m_ProcIterator.m_ImporterMapper)
  625. {
  626. result = new ModBase.EqualableList<string>
  627. {
  628. Conversions.ToString(0),
  629. ModMain.m_ProcIterator.ComboName.Text.Trim() ?? ""
  630. };
  631. }
  632. else if (Operators.ConditionalCompareObjectEqual(ModBase.m_IdentifierRepository.Get("LoginLegacyName", null), "", false))
  633. {
  634. result = new ModBase.EqualableList<string>
  635. {
  636. Conversions.ToString(0),
  637. ""
  638. };
  639. }
  640. else
  641. {
  642. result = new ModBase.EqualableList<string>
  643. {
  644. Conversions.ToString(0),
  645. ModBase.m_IdentifierRepository.Get("LoginLegacyName", null).ToString().BeforeFirst("¨", false) ?? ""
  646. };
  647. }
  648. return result;
  649. }
  650. // Token: 0x06001057 RID: 4183 RVA: 0x00078D34 File Offset: 0x00076F34
  651. private static void SkinLegacyLoad(ModLoader.LoaderTask<ModBase.EqualableList<string>, string> Data)
  652. {
  653. ModBase.RunInUi((PageLaunchLeft._Closure$__.$I18-0 == null) ? (PageLaunchLeft._Closure$__.$I18-0 = delegate()
  654. {
  655. if (ModMain.m_ProcIterator != null && ModMain.m_ProcIterator.Skin != null)
  656. {
  657. ModMain.m_ProcIterator.Skin.Clear();
  658. }
  659. }) : PageLaunchLeft._Closure$__.$I18-0, false);
  660. string left = Data.Input[0];
  661. if (Operators.CompareString(left, Conversions.ToString(0), false) == 0)
  662. {
  663. Data.Output = ModBase.m_SerializerRepository + "Skins/" + ModMinecraft.McSkinSex(Conversions.ToString(ModLaunch.McLoginLegacyUuid(Data.Input[1]))) + ".png";
  664. }
  665. else
  666. {
  667. if (Operators.CompareString(left, Conversions.ToString(1), false) != 0)
  668. {
  669. if (Operators.CompareString(left, Conversions.ToString(2), false) == 0)
  670. {
  671. Data.Output = ModBase.m_SerializerRepository + "Skins/Alex.png";
  672. goto IL_2C1;
  673. }
  674. if (Operators.CompareString(left, Conversions.ToString(3), false) == 0)
  675. {
  676. string text = Data.Input[1];
  677. try
  678. {
  679. if (Enumerable.Count<char>(text) < 2)
  680. {
  681. Data.Output = ModBase.m_SerializerRepository + "Skins/Steve.png";
  682. }
  683. else
  684. {
  685. string text2 = Conversions.ToString(ModLaunch.McLoginMojangUuid(text, true));
  686. if (Data.IsAborted)
  687. {
  688. throw new ThreadInterruptedException("当前任务已取消:" + text);
  689. }
  690. text2 = ModMinecraft.McSkinGetAddress(text2, "Mojang");
  691. if (Data.IsAborted)
  692. {
  693. throw new ThreadInterruptedException("当前任务已取消:" + text);
  694. }
  695. text2 = ModMinecraft.McSkinDownload(text2);
  696. if (Data.IsAborted)
  697. {
  698. throw new ThreadInterruptedException("当前任务已取消:" + text);
  699. }
  700. Data.Output = text2;
  701. }
  702. goto IL_2C1;
  703. }
  704. catch (Exception ex)
  705. {
  706. if (Operators.CompareString(ex.GetType().Name, "ThreadInterruptedException", false) == 0)
  707. {
  708. Data.Output = "";
  709. return;
  710. }
  711. if (ModBase.GetExceptionSummary(ex).Contains("429"))
  712. {
  713. Data.Output = ModBase.m_SerializerRepository + "Skins/" + ModMinecraft.McSkinSex(Conversions.ToString(ModLaunch.McLoginLegacyUuid(text))) + ".png";
  714. ModBase.Log("获取离线登录使用的正版皮肤失败(" + text + "):获取皮肤太过频繁,请 5 分钟后再试!", ModBase.LogLevel.Normal, "出现错误");
  715. }
  716. else
  717. {
  718. Data.Output = ModBase.m_SerializerRepository + "Skins/" + ModMinecraft.McSkinSex(Conversions.ToString(ModLaunch.McLoginLegacyUuid(text))) + ".png";
  719. ModBase.Log(ex, "获取离线登录使用的正版皮肤失败(" + text + ")", ModBase.LogLevel.Debug, "出现错误");
  720. }
  721. goto IL_2C1;
  722. }
  723. }
  724. if (Operators.CompareString(left, Conversions.ToString(4), false) != 0)
  725. {
  726. goto IL_2C1;
  727. }
  728. if (File.Exists(ModBase.m_InstanceRepository + "CustomSkin.png"))
  729. {
  730. Data.Output = ModBase.m_InstanceRepository + "CustomSkin.png";
  731. goto IL_2C1;
  732. }
  733. ModMain.Hint("未找到离线皮肤自定义文件,可能它已被删除。PCL 将使用默认的 Steve 皮肤!", ModMain.HintType.Info, true);
  734. ModBase.m_IdentifierRepository.Set("LaunchSkinType", 1, false, null);
  735. }
  736. Data.Output = ModBase.m_SerializerRepository + "Skins/Steve.png";
  737. }
  738. IL_2C1:
  739. if (ModMain.m_ProcIterator != null)
  740. {
  741. ModBase.RunInUi(new Action(ModMain.m_ProcIterator.Skin.Load), false);
  742. return;
  743. }
  744. if (!Data.IsAborted)
  745. {
  746. Data.Input = null;
  747. }
  748. }
  749. // Token: 0x06001058 RID: 4184 RVA: 0x00009FC0 File Offset: 0x000081C0
  750. private static ModBase.EqualableList<string> SkinNideInput()
  751. {
  752. return new ModBase.EqualableList<string>
  753. {
  754. Conversions.ToString(ModBase.m_IdentifierRepository.Get("CacheNideName", null)),
  755. Conversions.ToString(ModBase.m_IdentifierRepository.Get("CacheNideUuid", null))
  756. };
  757. }
  758. // Token: 0x06001059 RID: 4185 RVA: 0x00079044 File Offset: 0x00077244
  759. private static void SkinNideLoad(ModLoader.LoaderTask<ModBase.EqualableList<string>, string> Data)
  760. {
  761. ModBase.RunInUi((PageLaunchLeft._Closure$__.$I21-0 == null) ? (PageLaunchLeft._Closure$__.$I21-0 = delegate()
  762. {
  763. if (ModMain.broadcasterRepository != null && ModMain.broadcasterRepository.Skin != null)
  764. {
  765. ModMain.broadcasterRepository.Skin.Clear();
  766. }
  767. }) : PageLaunchLeft._Closure$__.$I21-0, false);
  768. string text = Data.Input[0];
  769. string uuid = Data.Input[1];
  770. if (Operators.CompareString(text, "", false) == 0)
  771. {
  772. Data.Output = ModBase.m_SerializerRepository + "Skins/" + ModMinecraft.McSkinSex(Conversions.ToString(ModLaunch.McLoginLegacyUuid(text))) + ".png";
  773. ModBase.Log("[Minecraft] 获取统一通行证皮肤失败,ID 为空", ModBase.LogLevel.Normal, "出现错误");
  774. }
  775. else
  776. {
  777. try
  778. {
  779. string text2 = ModMinecraft.McSkinGetAddress(uuid, "Nide");
  780. if (Data.IsAborted)
  781. {
  782. throw new ThreadInterruptedException("当前任务已取消:" + text);
  783. }
  784. text2 = ModMinecraft.McSkinDownload(text2);
  785. if (Data.IsAborted)
  786. {
  787. throw new ThreadInterruptedException("当前任务已取消:" + text);
  788. }
  789. Data.Output = text2;
  790. }
  791. catch (Exception ex)
  792. {
  793. if (Operators.CompareString(ex.GetType().Name, "ThreadInterruptedException", false) == 0)
  794. {
  795. Data.Output = "";
  796. return;
  797. }
  798. if (ModBase.GetExceptionSummary(ex).Contains("429"))
  799. {
  800. Data.Output = ModBase.m_SerializerRepository + "Skins/Steve.png";
  801. ModBase.Log("[Minecraft] 获取统一通行证皮肤失败(" + text + "):获取皮肤太过频繁,请 5 分钟后再试!", ModBase.LogLevel.Hint, "出现错误");
  802. }
  803. else if (ModBase.GetExceptionSummary(ex).Contains("未设置自定义皮肤"))
  804. {
  805. Data.Output = ModBase.m_SerializerRepository + "Skins/Steve.png";
  806. ModBase.Log("[Minecraft] 用户未设置自定义皮肤,跳过皮肤加载", ModBase.LogLevel.Normal, "出现错误");
  807. }
  808. else
  809. {
  810. Data.Output = ModBase.m_SerializerRepository + "Skins/Steve.png";
  811. ModBase.Log(ex, "获取统一通行证皮肤失败(" + text + ")", ModBase.LogLevel.Hint, "出现错误");
  812. }
  813. }
  814. }
  815. if (ModMain.broadcasterRepository != null)
  816. {
  817. ModBase.RunInUi(new Action(ModMain.broadcasterRepository.Skin.Load), false);
  818. return;
  819. }
  820. if (!Data.IsAborted)
  821. {
  822. Data.Input = null;
  823. }
  824. }
  825. // Token: 0x0600105A RID: 4186 RVA: 0x00009FFD File Offset: 0x000081FD
  826. private static ModBase.EqualableList<string> SkinAuthInput()
  827. {
  828. return new ModBase.EqualableList<string>
  829. {
  830. Conversions.ToString(ModBase.m_IdentifierRepository.Get("CacheAuthName", null)),
  831. Conversions.ToString(ModBase.m_IdentifierRepository.Get("CacheAuthUuid", null))
  832. };
  833. }
  834. // Token: 0x0600105B RID: 4187 RVA: 0x00079260 File Offset: 0x00077460
  835. private static void SkinAuthLoad(ModLoader.LoaderTask<ModBase.EqualableList<string>, string> Data)
  836. {
  837. ModBase.RunInUi((PageLaunchLeft._Closure$__.$I24-0 == null) ? (PageLaunchLeft._Closure$__.$I24-0 = delegate()
  838. {
  839. if (ModMain.readerRepository != null && ModMain.readerRepository.Skin != null)
  840. {
  841. ModMain.readerRepository.Skin.Clear();
  842. }
  843. }) : PageLaunchLeft._Closure$__.$I24-0, false);
  844. string text = Data.Input[0];
  845. string uuid = Data.Input[1];
  846. if (Operators.CompareString(text, "", false) == 0)
  847. {
  848. Data.Output = ModBase.m_SerializerRepository + "Skins/Steve.png";
  849. ModBase.Log("[Minecraft] 获取 Authlib-Injector 皮肤失败,ID 为空", ModBase.LogLevel.Normal, "出现错误");
  850. }
  851. else
  852. {
  853. try
  854. {
  855. string text2 = ModMinecraft.McSkinGetAddress(uuid, "Auth");
  856. if (Data.IsAborted)
  857. {
  858. throw new ThreadInterruptedException("当前任务已取消:" + text);
  859. }
  860. text2 = ModMinecraft.McSkinDownload(text2);
  861. if (Data.IsAborted)
  862. {
  863. throw new ThreadInterruptedException("当前任务已取消:" + text);
  864. }
  865. Data.Output = text2;
  866. }
  867. catch (Exception ex)
  868. {
  869. if (Operators.CompareString(ex.GetType().Name, "ThreadInterruptedException", false) == 0)
  870. {
  871. Data.Output = "";
  872. return;
  873. }
  874. if (ModBase.GetExceptionSummary(ex).Contains("429"))
  875. {
  876. Data.Output = ModBase.m_SerializerRepository + "Skins/Steve.png";
  877. ModBase.Log("[Minecraft] 获取 Authlib-Injector 皮肤失败(" + text + "):获取皮肤太过频繁,请 5 分钟后再试!", ModBase.LogLevel.Hint, "出现错误");
  878. }
  879. else if (ModBase.GetExceptionSummary(ex).Contains("未设置自定义皮肤"))
  880. {
  881. Data.Output = ModBase.m_SerializerRepository + "Skins/Steve.png";
  882. ModBase.Log("[Minecraft] 用户未设置自定义皮肤,跳过皮肤加载", ModBase.LogLevel.Normal, "出现错误");
  883. }
  884. else
  885. {
  886. Data.Output = ModBase.m_SerializerRepository + "Skins/Steve.png";
  887. ModBase.Log(ex, "获取 Authlib-Injector 皮肤失败(" + text + ")", ModBase.LogLevel.Hint, "出现错误");
  888. }
  889. }
  890. }
  891. if (ModMain.readerRepository != null)
  892. {
  893. ModBase.RunInUi(new Action(ModMain.readerRepository.Skin.Load), false);
  894. return;
  895. }
  896. if (!Data.IsAborted)
  897. {
  898. Data.Input = null;
  899. }
  900. }
  901. // Token: 0x0600105C RID: 4188 RVA: 0x0000A03A File Offset: 0x0000823A
  902. private void BtnVersion_Click(object sender, EventArgs e)
  903. {
  904. if (ModLaunch.databaseTests.State != ModBase.LoadState.Loading)
  905. {
  906. ModMain._ProcessIterator.PageChange(FormMain.PageType.VersionSelect, FormMain.PageSubType.Default);
  907. }
  908. }
  909. // Token: 0x0600105D RID: 4189 RVA: 0x00079468 File Offset: 0x00077668
  910. public void LaunchButtonClick()
  911. {
  912. if (ModLaunch.databaseTests.State != ModBase.LoadState.Loading && this.BtnLaunch.IsEnabled && (ModMain._ProcessIterator._GetterIterator == null || ModMain._ProcessIterator._GetterIterator.NewBroadcaster() == MyPageRight.PageStates.ContentStay || ModMain._ProcessIterator._GetterIterator.NewBroadcaster() == MyPageRight.PageStates.ContentEnter))
  913. {
  914. if (ModMain.mapRepository && !ModMain.m_ErrorRepository)
  915. {
  916. ModSecret.ThemeUnlock(12, false, "隐藏主题 滑稽彩 已解锁!");
  917. ModMain.m_ErrorRepository = true;
  918. ModMain.recordIterator.AprilScaleTrans.ScaleX = 1.0;
  919. ModMain.recordIterator.AprilScaleTrans.ScaleY = 1.0;
  920. ModMain.recordIterator.AprilPosTrans.X = 0.0;
  921. ModMain.recordIterator.AprilPosTrans.Y = 0.0;
  922. ModMain._ProcessIterator.BtnExtraApril.ShowRefresh();
  923. }
  924. if (Operators.CompareString(this.BtnLaunch.Text, "启动游戏", false) == 0)
  925. {
  926. ModLaunch.McLaunchStart(null);
  927. return;
  928. }
  929. if (Operators.CompareString(this.BtnLaunch.Text, "下载游戏", false) == 0)
  930. {
  931. ModMain._ProcessIterator.PageChange(FormMain.PageType.Download, FormMain.PageSubType.DownloadInstall);
  932. }
  933. }
  934. }
  935. // Token: 0x0600105E RID: 4190 RVA: 0x000795A8 File Offset: 0x000777A8
  936. public void RefreshButtonsUI()
  937. {
  938. if (this.BtnLaunch.IsLoaded)
  939. {
  940. int num;
  941. if (this.m_CodeMapper && ModMinecraft._ListenerTests.State != ModBase.LoadState.Loading)
  942. {
  943. if (ModMinecraft.m_CreatorTests.State != ModBase.LoadState.Loading)
  944. {
  945. if (ModMinecraft.AddClient() != null)
  946. {
  947. num = 3;
  948. goto IL_78;
  949. }
  950. if (Conversions.ToBoolean(Conversions.ToBoolean(ModBase.m_IdentifierRepository.Get("UiHiddenPageDownload", null)) && !PageSetupUI.CreateClient()))
  951. {
  952. num = 1;
  953. goto IL_78;
  954. }
  955. num = 2;
  956. goto IL_78;
  957. }
  958. }
  959. num = 0;
  960. IL_78:
  961. if (num != this.m_MerchantMapper || Operators.CompareString((ModMinecraft.AddClient() == null) ? "" : ModMinecraft.AddClient().Path, (this._AuthenticationMapper == null) ? "" : this._AuthenticationMapper.Path, false) != 0)
  962. {
  963. this._AuthenticationMapper = ModMinecraft.AddClient();
  964. this.m_MerchantMapper = num;
  965. switch (num)
  966. {
  967. case 0:
  968. ModBase.Log("[Minecraft] 启动按钮:正在加载 Minecraft 版本", ModBase.LogLevel.Normal, "出现错误");
  969. ModMain.recordIterator.BtnLaunch.Text = "正在加载";
  970. ModMain.recordIterator.BtnLaunch.IsEnabled = false;
  971. ModMain.recordIterator.LabVersion.Text = "正在加载中,请稍候";
  972. ModMain.recordIterator.BtnVersion.IsEnabled = false;
  973. ModMain.recordIterator.BtnMore.Visibility = Visibility.Collapsed;
  974. break;
  975. case 1:
  976. ModBase.Log("[Minecraft] 启动按钮:无 Minecraft 版本,下载已禁用", ModBase.LogLevel.Normal, "出现错误");
  977. ModMain.recordIterator.BtnLaunch.Text = "启动游戏";
  978. ModMain.recordIterator.BtnLaunch.IsEnabled = false;
  979. ModMain.recordIterator.LabVersion.Text = "未找到可用的游戏版本";
  980. ModMain.recordIterator.BtnVersion.IsEnabled = true;
  981. ModMain.recordIterator.BtnMore.Visibility = Visibility.Collapsed;
  982. break;
  983. case 2:
  984. ModBase.Log("[Minecraft] 启动按钮:无 Minecraft 版本,要求下载", ModBase.LogLevel.Normal, "出现错误");
  985. ModMain.recordIterator.BtnLaunch.Text = "下载游戏";
  986. ModMain.recordIterator.BtnLaunch.IsEnabled = true;
  987. ModMain.recordIterator.LabVersion.Text = "未找到可用的游戏版本";
  988. ModMain.recordIterator.BtnVersion.IsEnabled = true;
  989. ModMain.recordIterator.BtnMore.Visibility = Visibility.Collapsed;
  990. break;
  991. case 3:
  992. ModBase.Log("[Minecraft] 启动按钮:Minecraft 版本:" + ModMinecraft.AddClient().Path, ModBase.LogLevel.Normal, "出现错误");
  993. ModMain.recordIterator.BtnLaunch.Text = "启动游戏";
  994. ModMain.recordIterator.BtnVersion.IsEnabled = true;
  995. ModMain.recordIterator.BtnLaunch.IsEnabled = true;
  996. ModMain.recordIterator.LabVersion.Text = ModMinecraft.AddClient().Name;
  997. break;
  998. }
  999. }
  1000. ModMain.recordIterator.BtnVersion.Visibility = (Conversions.ToBoolean(!PageSetupUI.CreateClient() && Conversions.ToBoolean(ModBase.m_IdentifierRepository.Get("UiHiddenFunctionSelect", null))) ? Visibility.Collapsed : Visibility.Visible);
  1001. if (num == 3)
  1002. {
  1003. ModMain.recordIterator.BtnMore.Visibility = ModMain.recordIterator.BtnVersion.Visibility;
  1004. }
  1005. }
  1006. }
  1007. // Token: 0x0600105F RID: 4191 RVA: 0x000798B4 File Offset: 0x00077AB4
  1008. private void BtnCancel_Click()
  1009. {
  1010. if (ModLaunch.m_PredicateTests != null)
  1011. {
  1012. ModLaunch.m_PredicateTests.Abort();
  1013. ModLaunch.McLaunchLog("已取消启动");
  1014. try
  1015. {
  1016. if (ModLaunch.customerTests != null)
  1017. {
  1018. ModLaunch.customerTests.Kill();
  1019. }
  1020. else if (ModLaunch._PoolTests != null && !ModLaunch._PoolTests.HasExited)
  1021. {
  1022. ModLaunch._PoolTests.Kill();
  1023. }
  1024. }
  1025. catch (Exception ex)
  1026. {
  1027. ModBase.Log(ex, "取消启动结束进程失败", ModBase.LogLevel.Hint, "出现错误");
  1028. }
  1029. }
  1030. }
  1031. // Token: 0x06001060 RID: 4192 RVA: 0x0000A05A File Offset: 0x0000825A
  1032. private void BtnMore_Click(object sender, EventArgs e)
  1033. {
  1034. if (ModLaunch.databaseTests.State != ModBase.LoadState.Loading)
  1035. {
  1036. ModMinecraft.AddClient().Load();
  1037. PageVersionLeft._InstanceConfig = ModMinecraft.AddClient();
  1038. ModMain._ProcessIterator.PageChange(FormMain.PageType.VersionSetup, FormMain.PageSubType.Default);
  1039. }
  1040. }
  1041. // Token: 0x06001061 RID: 4193 RVA: 0x00079940 File Offset: 0x00077B40
  1042. public void LaunchingRefresh()
  1043. {
  1044. try
  1045. {
  1046. PageLaunchLeft._Closure$__33-0 CS$<>8__locals1 = new PageLaunchLeft._Closure$__33-0(CS$<>8__locals1);
  1047. CS$<>8__locals1.$VB$Me = this;
  1048. if (ModLaunch.m_PredicateTests.State != ModBase.LoadState.Aborted)
  1049. {
  1050. bool flag = false;
  1051. try
  1052. {
  1053. try
  1054. {
  1055. foreach (ModLoader.LoaderBase loaderBase in ModLaunch.m_PredicateTests.GetLoaderList(false))
  1056. {
  1057. if (loaderBase.State == ModBase.LoadState.Loading || loaderBase.State == ModBase.LoadState.Waiting)
  1058. {
  1059. this.LabLaunchingStage.Text = loaderBase.Name;
  1060. flag = (Operators.CompareString(loaderBase.Name, "等待游戏窗口出现", false) == 0 || Operators.CompareString(loaderBase.Name, "结束处理", false) == 0);
  1061. goto IL_E2;
  1062. }
  1063. }
  1064. }
  1065. finally
  1066. {
  1067. List<ModLoader.LoaderBase>.Enumerator enumerator;
  1068. ((IDisposable)enumerator).Dispose();
  1069. }
  1070. this.LabLaunchingStage.Text = "已完成";
  1071. }
  1072. catch (Exception ex)
  1073. {
  1074. ModBase.Log(ex, "获取是否启动完成失败,可能是由于启动状态改变导致集合已修改", ModBase.LogLevel.Debug, "出现错误");
  1075. return;
  1076. }
  1077. IL_E2:
  1078. if (ModAnimation.AniIsRun("Launch State Page"))
  1079. {
  1080. flag = false;
  1081. }
  1082. double progress = ModLaunch.m_PredicateTests.Progress;
  1083. if (progress >= this.algoMapper)
  1084. {
  1085. ref double ptr = ref this.algoMapper;
  1086. this.algoMapper = ptr + ((progress - this.algoMapper) * 0.2 + 0.005);
  1087. }
  1088. if (progress <= this.algoMapper)
  1089. {
  1090. this.algoMapper = progress;
  1091. }
  1092. if (flag)
  1093. {
  1094. this.algoMapper = 1.0;
  1095. }
  1096. this.LabLaunchingTitle.Text = (flag ? "已启动游戏" : ((ModLaunch.filterTests.requestMap == null) ? "正在启动游戏" : "正在导出启动脚本"));
  1097. this.LabLaunchingProgress.Text = ModBase.StrFillNum(this.algoMapper * 100.0, 2) + " %";
  1098. CS$<>8__locals1.$VB$Local_HasLaunchDownloader = false;
  1099. try
  1100. {
  1101. try
  1102. {
  1103. foreach (ModNet.LoaderDownload loaderDownload in ModNet.tokenTests.regTest)
  1104. {
  1105. if (loaderDownload.RealParent != null && Operators.CompareString(loaderDownload.RealParent.Name, "Minecraft 启动", false) == 0 && loaderDownload.State == ModBase.LoadState.Loading)
  1106. {
  1107. CS$<>8__locals1.$VB$Local_HasLaunchDownloader = true;
  1108. }
  1109. }
  1110. }
  1111. finally
  1112. {
  1113. IEnumerator<ModNet.LoaderDownload> enumerator2;
  1114. if (enumerator2 != null)
  1115. {
  1116. enumerator2.Dispose();
  1117. }
  1118. }
  1119. }
  1120. catch (Exception ex2)
  1121. {
  1122. ModBase.Log(ex2, "获取 Minecraft 启动下载器失败,可能是因为启动被取消", ModBase.LogLevel.Debug, "出现错误");
  1123. CS$<>8__locals1.$VB$Local_HasLaunchDownloader = false;
  1124. }
  1125. this.LabLaunchingDownload.Text = ModBase.GetString(ModNet.tokenTests.m_BridgeTest) + "/s";
  1126. List<ModAnimation.AniData> list = new List<ModAnimation.AniData>
  1127. {
  1128. ModAnimation.AaGridLengthWidth(this.ProgressLaunchingFinished, this.algoMapper - this.ProgressLaunchingFinished.Width.Value, 260, 0, new ModAnimation.AniEaseOutFluent(ModAnimation.AniEasePower.Middle), false),
  1129. ModAnimation.AaGridLengthWidth(this.ProgressLaunchingUnfinished, 1.0 - this.algoMapper - this.ProgressLaunchingUnfinished.Width.Value, 260, 0, new ModAnimation.AniEaseOutFluent(ModAnimation.AniEasePower.Middle), false)
  1130. };
  1131. if (CS$<>8__locals1.$VB$Local_HasLaunchDownloader == (this.LabLaunchingDownload.Visibility == Visibility.Collapsed))
  1132. {
  1133. this.LabLaunchingDownload.Visibility = Visibility.Visible;
  1134. this.LabLaunchingDownloadLeft.Visibility = Visibility.Visible;
  1135. list.AddRange(new ModAnimation.AniData[]
  1136. {
  1137. ModAnimation.AaOpacity(this.LabLaunchingDownload, (CS$<>8__locals1.$VB$Local_HasLaunchDownloader > false) - this.LabLaunchingDownload.Opacity, 100, 0, null, false),
  1138. ModAnimation.AaOpacity(this.LabLaunchingDownloadLeft, (CS$<>8__locals1.$VB$Local_HasLaunchDownloader ? 0.5 : 0.0) - this.LabLaunchingDownloadLeft.Opacity, 100, 0, null, false),
  1139. ModAnimation.AaCode(delegate
  1140. {
  1141. if (!CS$<>8__locals1.$VB$Local_HasLaunchDownloader)
  1142. {
  1143. CS$<>8__locals1.$VB$Me.LabLaunchingDownload.Visibility = Visibility.Collapsed;
  1144. CS$<>8__locals1.$VB$Me.LabLaunchingDownloadLeft.Visibility = Visibility.Collapsed;
  1145. }
  1146. }, 110, false)
  1147. });
  1148. }
  1149. if (!flag == (this.LabLaunchingProgress.Visibility == Visibility.Collapsed))
  1150. {
  1151. this.LabLaunchingProgress.Visibility = Visibility.Visible;
  1152. this.LabLaunchingProgressLeft.Visibility = Visibility.Visible;
  1153. if (flag)
  1154. {
  1155. this.PanLaunchingHint.Visibility = Visibility.Visible;
  1156. }
  1157. list.AddRange(new ModAnimation.AniData[]
  1158. {
  1159. ModAnimation.AaOpacity(this.LabLaunchingProgress, !flag - this.LabLaunchingProgress.Opacity, 100, 0, null, false),
  1160. ModAnimation.AaOpacity(this.LabLaunchingProgressLeft, ((!flag) ? 0.5 : 0.0) - this.LabLaunchingProgressLeft.Opacity, 100, 0, null, false),
  1161. ModAnimation.AaOpacity(this.PanLaunchingHint, (flag > false) - this.PanLaunchingHint.Opacity, 100, 0, null, false)
  1162. });
  1163. }
  1164. ModAnimation.AniStart(list, "Launching Progress", false);
  1165. }
  1166. }
  1167. catch (Exception ex3)
  1168. {
  1169. ModBase.Log(ex3, "刷新启动信息失败", ModBase.LogLevel.Feedback, "出现错误");
  1170. }
  1171. }
  1172. // Token: 0x06001062 RID: 4194 RVA: 0x00079E7C File Offset: 0x0007807C
  1173. private void PanLaunchingInfo_SizeChangedW(object sender, SizeChangedEventArgs e)
  1174. {
  1175. double value = e.NewSize.Width - e.PreviousSize.Width;
  1176. if (e.PreviousSize.Width != 0.0 && !this.m_ComparatorMapper && Math.Abs(value) >= 1.0 && this.PanLaunchingInfo.ActualWidth != 0.0)
  1177. {
  1178. ModAnimation.AniStart(new ModAnimation.AniData[]
  1179. {
  1180. ModAnimation.AaWidth(this.PanLaunchingInfo, value, 180, 0, new ModAnimation.AniEaseOutFluent(ModAnimation.AniEasePower.Middle), false),
  1181. ModAnimation.AaCode(delegate
  1182. {
  1183. this.m_ComparatorMapper = false;
  1184. this.PanLaunchingInfo.Width = this.mappingMapper;
  1185. }, 0, true)
  1186. }, "Launching Info Width", false);
  1187. this.m_ComparatorMapper = true;
  1188. this.mappingMapper = this.PanLaunchingInfo.Width;
  1189. this.PanLaunchingInfo.Width = e.PreviousSize.Width;
  1190. }
  1191. }
  1192. // Token: 0x06001063 RID: 4195 RVA: 0x00079F74 File Offset: 0x00078174
  1193. private void PanLaunchingInfo_SizeChangedH(object sender, SizeChangedEventArgs e)
  1194. {
  1195. double value = e.NewSize.Height - e.PreviousSize.Height;
  1196. if (e.PreviousSize.Height != 0.0 && !this.m_TokenizerMapper && Math.Abs(value) >= 1.0 && this.PanLaunchingInfo.ActualHeight != 0.0)
  1197. {
  1198. ModAnimation.AniStart(new ModAnimation.AniData[]
  1199. {
  1200. ModAnimation.AaHeight(this.PanLaunchingInfo, value, 180, 0, new ModAnimation.AniEaseOutFluent(ModAnimation.AniEasePower.Middle), false),
  1201. ModAnimation.AaCode(delegate
  1202. {
  1203. this.m_TokenizerMapper = false;
  1204. this.PanLaunchingInfo.Height = this.filterMapper;
  1205. }, 0, true)
  1206. }, "Launching Info Height", false);
  1207. this.m_TokenizerMapper = true;
  1208. this.filterMapper = this.PanLaunchingInfo.Height;
  1209. this.PanLaunchingInfo.Height = e.PreviousSize.Height;
  1210. }
  1211. }
  1212. // Token: 0x1700026B RID: 619
  1213. // (get) Token: 0x06001064 RID: 4196 RVA: 0x0000A08F File Offset: 0x0000828F
  1214. // (set) Token: 0x06001065 RID: 4197 RVA: 0x0000A097 File Offset: 0x00008297
  1215. internal virtual PageLaunchLeft PanBack { get; set; }
  1216. // Token: 0x1700026C RID: 620
  1217. // (get) Token: 0x06001066 RID: 4198 RVA: 0x0000A0A0 File Offset: 0x000082A0
  1218. // (set) Token: 0x06001067 RID: 4199 RVA: 0x0000A0A8 File Offset: 0x000082A8
  1219. internal virtual Grid PanInput { get; set; }
  1220. // Token: 0x1700026D RID: 621
  1221. // (get) Token: 0x06001068 RID: 4200 RVA: 0x0000A0B1 File Offset: 0x000082B1
  1222. // (set) Token: 0x06001069 RID: 4201 RVA: 0x0007A06C File Offset: 0x0007826C
  1223. internal virtual MyButton BtnVersion
  1224. {
  1225. [CompilerGenerated]
  1226. get
  1227. {
  1228. return this._PoolMapper;
  1229. }
  1230. [CompilerGenerated]
  1231. set
  1232. {
  1233. MyButton.ClickEventHandler value2 = new MyButton.ClickEventHandler(this.BtnVersion_Click);
  1234. MyButton poolMapper = this._PoolMapper;
  1235. if (poolMapper != null)
  1236. {
  1237. poolMapper.Click -= value2;
  1238. }
  1239. this._PoolMapper = value;
  1240. poolMapper = this._PoolMapper;
  1241. if (poolMapper != null)
  1242. {
  1243. poolMapper.Click += value2;
  1244. }
  1245. }
  1246. }
  1247. // Token: 0x1700026E RID: 622
  1248. // (get) Token: 0x0600106A RID: 4202 RVA: 0x0000A0B9 File Offset: 0x000082B9
  1249. // (set) Token: 0x0600106B RID: 4203 RVA: 0x0007A0B0 File Offset: 0x000782B0
  1250. internal virtual MyButton BtnMore
  1251. {
  1252. [CompilerGenerated]
  1253. get
  1254. {
  1255. return this.m_CustomerMapper;
  1256. }
  1257. [CompilerGenerated]
  1258. set
  1259. {
  1260. MyButton.ClickEventHandler value2 = new MyButton.ClickEventHandler(this.BtnMore_Click);
  1261. MyButton customerMapper = this.m_CustomerMapper;
  1262. if (customerMapper != null)
  1263. {
  1264. customerMapper.Click -= value2;
  1265. }
  1266. this.m_CustomerMapper = value;
  1267. customerMapper = this.m_CustomerMapper;
  1268. if (customerMapper != null)
  1269. {
  1270. customerMapper.Click += value2;
  1271. }
  1272. }
  1273. }
  1274. // Token: 0x1700026F RID: 623
  1275. // (get) Token: 0x0600106C RID: 4204 RVA: 0x0000A0C1 File Offset: 0x000082C1
  1276. // (set) Token: 0x0600106D RID: 4205 RVA: 0x0000A0C9 File Offset: 0x000082C9
  1277. internal virtual Grid PanLogin { get; set; }
  1278. // Token: 0x17000270 RID: 624
  1279. // (get) Token: 0x0600106E RID: 4206 RVA: 0x0000A0D2 File Offset: 0x000082D2
  1280. // (set) Token: 0x0600106F RID: 4207 RVA: 0x0000A0DA File Offset: 0x000082DA
  1281. internal virtual Grid PanTypeOne { get; set; }
  1282. // Token: 0x17000271 RID: 625
  1283. // (get) Token: 0x06001070 RID: 4208 RVA: 0x0000A0E3 File Offset: 0x000082E3
  1284. // (set) Token: 0x06001071 RID: 4209 RVA: 0x0000A0EB File Offset: 0x000082EB
  1285. internal virtual Path PathTypeOne { get; set; }
  1286. // Token: 0x17000272 RID: 626
  1287. // (get) Token: 0x06001072 RID: 4210 RVA: 0x0000A0F4 File Offset: 0x000082F4
  1288. // (set) Token: 0x06001073 RID: 4211 RVA: 0x0000A0FC File Offset: 0x000082FC
  1289. internal virtual TextBlock LabTypeOne { get; set; }
  1290. // Token: 0x17000273 RID: 627
  1291. // (get) Token: 0x06001074 RID: 4212 RVA: 0x0000A105 File Offset: 0x00008305
  1292. // (set) Token: 0x06001075 RID: 4213 RVA: 0x0000A10D File Offset: 0x0000830D
  1293. internal virtual Grid PanType { get; set; }
  1294. // Token: 0x17000274 RID: 628
  1295. // (get) Token: 0x06001076 RID: 4214 RVA: 0x0000A116 File Offset: 0x00008316
  1296. // (set) Token: 0x06001077 RID: 4215 RVA: 0x0007A0F4 File Offset: 0x000782F4
  1297. internal virtual MyRadioButton RadioLoginType5
  1298. {
  1299. [CompilerGenerated]
  1300. get
  1301. {
  1302. return this.m_ProcessMapper;
  1303. }
  1304. [CompilerGenerated]
  1305. set
  1306. {
  1307. MyRadioButton.CheckEventHandler obj = new MyRadioButton.CheckEventHandler(this.RadioLoginType_Change);
  1308. MyRadioButton processMapper = this.m_ProcessMapper;
  1309. if (processMapper != null)
  1310. {
  1311. processMapper.ResolveTests(obj);
  1312. }
  1313. this.m_ProcessMapper = value;
  1314. processMapper = this.m_ProcessMapper;
  1315. if (processMapper != null)
  1316. {
  1317. processMapper.LogoutTests(obj);
  1318. }
  1319. }
  1320. }
  1321. // Token: 0x17000275 RID: 629
  1322. // (get) Token: 0x06001078 RID: 4216 RVA: 0x0000A11E File Offset: 0x0000831E
  1323. // (set) Token: 0x06001079 RID: 4217 RVA: 0x0007A138 File Offset: 0x00078338
  1324. internal virtual MyRadioButton RadioLoginType0
  1325. {
  1326. [CompilerGenerated]
  1327. get
  1328. {
  1329. return this._ParameterMapper;
  1330. }
  1331. [CompilerGenerated]
  1332. set
  1333. {
  1334. MyRadioButton.CheckEventHandler obj = new MyRadioButton.CheckEventHandler(this.RadioLoginType_Change);
  1335. MyRadioButton parameterMapper = this._ParameterMapper;
  1336. if (parameterMapper != null)
  1337. {
  1338. parameterMapper.ResolveTests(obj);
  1339. }
  1340. this._ParameterMapper = value;
  1341. parameterMapper = this._ParameterMapper;
  1342. if (parameterMapper != null)
  1343. {
  1344. parameterMapper.LogoutTests(obj);
  1345. }
  1346. }
  1347. }
  1348. // Token: 0x17000276 RID: 630
  1349. // (get) Token: 0x0600107A RID: 4218 RVA: 0x0000A126 File Offset: 0x00008326
  1350. // (set) Token: 0x0600107B RID: 4219 RVA: 0x0000A12E File Offset: 0x0000832E
  1351. internal virtual ScaleTransform AprilScaleTrans { get; set; }
  1352. // Token: 0x17000277 RID: 631
  1353. // (get) Token: 0x0600107C RID: 4220 RVA: 0x0000A137 File Offset: 0x00008337
  1354. // (set) Token: 0x0600107D RID: 4221 RVA: 0x0000A13F File Offset: 0x0000833F
  1355. internal virtual TranslateTransform AprilPosTrans { get; set; }
  1356. // Token: 0x17000278 RID: 632
  1357. // (get) Token: 0x0600107E RID: 4222 RVA: 0x0000A148 File Offset: 0x00008348
  1358. // (set) Token: 0x0600107F RID: 4223 RVA: 0x0007A17C File Offset: 0x0007837C
  1359. internal virtual MyButton BtnLaunch
  1360. {
  1361. [CompilerGenerated]
  1362. get
  1363. {
  1364. return this.invocationMapper;
  1365. }
  1366. [CompilerGenerated]
  1367. set
  1368. {
  1369. MyButton.ClickEventHandler value2 = delegate(object sender, MouseButtonEventArgs e)
  1370. {
  1371. this.LaunchButtonClick();
  1372. };
  1373. RoutedEventHandler value3 = delegate(object sender, RoutedEventArgs e)
  1374. {
  1375. this.RefreshButtonsUI();
  1376. };
  1377. MyButton myButton = this.invocationMapper;
  1378. if (myButton != null)
  1379. {
  1380. myButton.Click -= value2;
  1381. myButton.Loaded -= value3;
  1382. }
  1383. this.invocationMapper = value;
  1384. myButton = this.invocationMapper;
  1385. if (myButton != null)
  1386. {
  1387. myButton.Click += value2;
  1388. myButton.Loaded += value3;
  1389. }
  1390. }
  1391. }
  1392. // Token: 0x17000279 RID: 633
  1393. // (get) Token: 0x06001080 RID: 4224 RVA: 0x0000A150 File Offset: 0x00008350
  1394. // (set) Token: 0x06001081 RID: 4225 RVA: 0x0000A158 File Offset: 0x00008358
  1395. internal virtual TextBlock LabVersion { get; set; }
  1396. // Token: 0x1700027A RID: 634
  1397. // (get) Token: 0x06001082 RID: 4226 RVA: 0x0000A161 File Offset: 0x00008361
  1398. // (set) Token: 0x06001083 RID: 4227 RVA: 0x0000A169 File Offset: 0x00008369
  1399. internal virtual Grid PanLaunching { get; set; }
  1400. // Token: 0x1700027B RID: 635
  1401. // (get) Token: 0x06001084 RID: 4228 RVA: 0x0000A172 File Offset: 0x00008372
  1402. // (set) Token: 0x06001085 RID: 4229 RVA: 0x0000A17A File Offset: 0x0000837A
  1403. internal virtual MyLoading LoadLaunching { get; set; }
  1404. // Token: 0x1700027C RID: 636
  1405. // (get) Token: 0x06001086 RID: 4230 RVA: 0x0000A183 File Offset: 0x00008383
  1406. // (set) Token: 0x06001087 RID: 4231 RVA: 0x0000A18B File Offset: 0x0000838B
  1407. internal virtual TextBlock LabLaunchingTitle { get; set; }
  1408. // Token: 0x1700027D RID: 637
  1409. // (get) Token: 0x06001088 RID: 4232 RVA: 0x0000A194 File Offset: 0x00008394
  1410. // (set) Token: 0x06001089 RID: 4233 RVA: 0x0000A19C File Offset: 0x0000839C
  1411. internal virtual TextBlock LabLaunchingName { get; set; }
  1412. // Token: 0x1700027E RID: 638
  1413. // (get) Token: 0x0600108A RID: 4234 RVA: 0x0000A1A5 File Offset: 0x000083A5
  1414. // (set) Token: 0x0600108B RID: 4235 RVA: 0x0000A1AD File Offset: 0x000083AD
  1415. internal virtual ColumnDefinition ProgressLaunchingFinished { get; set; }
  1416. // Token: 0x1700027F RID: 639
  1417. // (get) Token: 0x0600108C RID: 4236 RVA: 0x0000A1B6 File Offset: 0x000083B6
  1418. // (set) Token: 0x0600108D RID: 4237 RVA: 0x0000A1BE File Offset: 0x000083BE
  1419. internal virtual ColumnDefinition ProgressLaunchingUnfinished { get; set; }
  1420. // Token: 0x17000280 RID: 640
  1421. // (get) Token: 0x0600108E RID: 4238 RVA: 0x0000A1C7 File Offset: 0x000083C7
  1422. // (set) Token: 0x0600108F RID: 4239 RVA: 0x0007A1DC File Offset: 0x000783DC
  1423. internal virtual Grid PanLaunchingInfo
  1424. {
  1425. [CompilerGenerated]
  1426. get
  1427. {
  1428. return this.m_ListenerMapper;
  1429. }
  1430. [CompilerGenerated]
  1431. set
  1432. {
  1433. SizeChangedEventHandler value2 = new SizeChangedEventHandler(this.PanLaunchingInfo_SizeChangedW);
  1434. SizeChangedEventHandler value3 = new SizeChangedEventHandler(this.PanLaunchingInfo_SizeChangedH);
  1435. Grid listenerMapper = this.m_ListenerMapper;
  1436. if (listenerMapper != null)
  1437. {
  1438. listenerMapper.SizeChanged -= value2;
  1439. listenerMapper.SizeChanged -= value3;
  1440. }
  1441. this.m_ListenerMapper = value;
  1442. listenerMapper = this.m_ListenerMapper;
  1443. if (listenerMapper != null)
  1444. {
  1445. listenerMapper.SizeChanged += value2;
  1446. listenerMapper.SizeChanged += value3;
  1447. }
  1448. }
  1449. }
  1450. // Token: 0x17000281 RID: 641
  1451. // (get) Token: 0x06001090 RID: 4240 RVA: 0x0000A1CF File Offset: 0x000083CF
  1452. // (set) Token: 0x06001091 RID: 4241 RVA: 0x0000A1D7 File Offset: 0x000083D7
  1453. internal virtual TextBlock LabLaunchingStage { get; set; }
  1454. // Token: 0x17000282 RID: 642
  1455. // (get) Token: 0x06001092 RID: 4242 RVA: 0x0000A1E0 File Offset: 0x000083E0
  1456. // (set) Token: 0x06001093 RID: 4243 RVA: 0x0000A1E8 File Offset: 0x000083E8
  1457. internal virtual TextBlock LabLaunchingMethod { get; set; }
  1458. // Token: 0x17000283 RID: 643
  1459. // (get) Token: 0x06001094 RID: 4244 RVA: 0x0000A1F1 File Offset: 0x000083F1
  1460. // (set) Token: 0x06001095 RID: 4245 RVA: 0x0000A1F9 File Offset: 0x000083F9
  1461. internal virtual TextBlock LabLaunchingProgressLeft { get; set; }
  1462. // Token: 0x17000284 RID: 644
  1463. // (get) Token: 0x06001096 RID: 4246 RVA: 0x0000A202 File Offset: 0x00008402
  1464. // (set) Token: 0x06001097 RID: 4247 RVA: 0x0000A20A File Offset: 0x0000840A
  1465. internal virtual TextBlock LabLaunchingProgress { get; set; }
  1466. // Token: 0x17000285 RID: 645
  1467. // (get) Token: 0x06001098 RID: 4248 RVA: 0x0000A213 File Offset: 0x00008413
  1468. // (set) Token: 0x06001099 RID: 4249 RVA: 0x0000A21B File Offset: 0x0000841B
  1469. internal virtual TextBlock LabLaunchingDownloadLeft { get; set; }
  1470. // Token: 0x17000286 RID: 646
  1471. // (get) Token: 0x0600109A RID: 4250 RVA: 0x0000A224 File Offset: 0x00008424
  1472. // (set) Token: 0x0600109B RID: 4251 RVA: 0x0000A22C File Offset: 0x0000842C
  1473. internal virtual TextBlock LabLaunchingDownload { get; set; }
  1474. // Token: 0x17000287 RID: 647
  1475. // (get) Token: 0x0600109C RID: 4252 RVA: 0x0000A235 File Offset: 0x00008435
  1476. // (set) Token: 0x0600109D RID: 4253 RVA: 0x0000A23D File Offset: 0x0000843D
  1477. internal virtual Grid PanLaunchingHint { get; set; }
  1478. // Token: 0x17000288 RID: 648
  1479. // (get) Token: 0x0600109E RID: 4254 RVA: 0x0000A246 File Offset: 0x00008446
  1480. // (set) Token: 0x0600109F RID: 4255 RVA: 0x0000A24E File Offset: 0x0000844E
  1481. internal virtual TextBlock LabLaunchingHint { get; set; }
  1482. // Token: 0x17000289 RID: 649
  1483. // (get) Token: 0x060010A0 RID: 4256 RVA: 0x0000A257 File Offset: 0x00008457
  1484. // (set) Token: 0x060010A1 RID: 4257 RVA: 0x0007A23C File Offset: 0x0007843C
  1485. internal virtual MyButton BtnCancel
  1486. {
  1487. [CompilerGenerated]
  1488. get
  1489. {
  1490. return this._ExceptionMapper;
  1491. }
  1492. [CompilerGenerated]
  1493. set
  1494. {
  1495. MyButton.ClickEventHandler value2 = delegate(object sender, MouseButtonEventArgs e)
  1496. {
  1497. this.BtnCancel_Click();
  1498. };
  1499. MyButton exceptionMapper = this._ExceptionMapper;
  1500. if (exceptionMapper != null)
  1501. {
  1502. exceptionMapper.Click -= value2;
  1503. }
  1504. this._ExceptionMapper = value;
  1505. exceptionMapper = this._ExceptionMapper;
  1506. if (exceptionMapper != null)
  1507. {
  1508. exceptionMapper.Click += value2;
  1509. }
  1510. }
  1511. }
  1512. // Token: 0x060010A2 RID: 4258 RVA: 0x0007A280 File Offset: 0x00078480
  1513. [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  1514. public void InitializeComponent()
  1515. {
  1516. if (!this._UtilsMapper)
  1517. {
  1518. this._UtilsMapper = true;
  1519. Uri resourceLocator = new Uri("/Plain Craft Launcher 2;component/pages/pagelaunch/pagelaunchleft.xaml", UriKind.Relative);
  1520. Application.LoadComponent(this, resourceLocator);
  1521. }
  1522. }
  1523. // Token: 0x060010A3 RID: 4259 RVA: 0x0000414E File Offset: 0x0000234E
  1524. [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  1525. internal Delegate _CreateDelegate(Type delegateType, string handler)
  1526. {
  1527. return Delegate.CreateDelegate(delegateType, this, handler);
  1528. }
  1529. // Token: 0x060010A4 RID: 4260 RVA: 0x0007A2B0 File Offset: 0x000784B0
  1530. [EditorBrowsable(EditorBrowsableState.Never)]
  1531. [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  1532. public void System_Windows_Markup_IComponentConnector_Connect(int connectionId, object target)
  1533. {
  1534. if (connectionId == 1)
  1535. {
  1536. this.PanBack = (PageLaunchLeft)target;
  1537. return;
  1538. }
  1539. if (connectionId == 2)
  1540. {
  1541. this.PanInput = (Grid)target;
  1542. return;
  1543. }
  1544. if (connectionId == 3)
  1545. {
  1546. this.BtnVersion = (MyButton)target;
  1547. return;
  1548. }
  1549. if (connectionId == 4)
  1550. {
  1551. this.BtnMore = (MyButton)target;
  1552. return;
  1553. }
  1554. if (connectionId == 5)
  1555. {
  1556. this.PanLogin = (Grid)target;
  1557. return;
  1558. }
  1559. if (connectionId == 6)
  1560. {
  1561. this.PanTypeOne = (Grid)target;
  1562. return;
  1563. }
  1564. if (connectionId == 7)
  1565. {
  1566. this.PathTypeOne = (Path)target;
  1567. return;
  1568. }
  1569. if (connectionId == 8)
  1570. {
  1571. this.LabTypeOne = (TextBlock)target;
  1572. return;
  1573. }
  1574. if (connectionId == 9)
  1575. {
  1576. this.PanType = (Grid)target;
  1577. return;
  1578. }
  1579. if (connectionId == 10)
  1580. {
  1581. this.RadioLoginType5 = (MyRadioButton)target;
  1582. return;
  1583. }
  1584. if (connectionId == 11)
  1585. {
  1586. this.RadioLoginType0 = (MyRadioButton)target;
  1587. return;
  1588. }
  1589. if (connectionId == 12)
  1590. {
  1591. this.AprilScaleTrans = (ScaleTransform)target;
  1592. return;
  1593. }
  1594. if (connectionId == 13)
  1595. {
  1596. this.AprilPosTrans = (TranslateTransform)target;
  1597. return;
  1598. }
  1599. if (connectionId == 14)
  1600. {
  1601. this.BtnLaunch = (MyButton)target;
  1602. return;
  1603. }
  1604. if (connectionId == 15)
  1605. {
  1606. this.LabVersion = (TextBlock)target;
  1607. return;
  1608. }
  1609. if (connectionId == 16)
  1610. {
  1611. this.PanLaunching = (Grid)target;
  1612. return;
  1613. }
  1614. if (connectionId == 17)
  1615. {
  1616. this.LoadLaunching = (MyLoading)target;
  1617. return;
  1618. }
  1619. if (connectionId == 18)
  1620. {
  1621. this.LabLaunchingTitle = (TextBlock)target;
  1622. return;
  1623. }
  1624. if (connectionId == 19)
  1625. {
  1626. this.LabLaunchingName = (TextBlock)target;
  1627. return;
  1628. }
  1629. if (connectionId == 20)
  1630. {
  1631. this.ProgressLaunchingFinished = (ColumnDefinition)target;
  1632. return;
  1633. }
  1634. if (connectionId == 21)
  1635. {
  1636. this.ProgressLaunchingUnfinished = (ColumnDefinition)target;
  1637. return;
  1638. }
  1639. if (connectionId == 22)
  1640. {
  1641. this.PanLaunchingInfo = (Grid)target;
  1642. return;
  1643. }
  1644. if (connectionId == 23)
  1645. {
  1646. this.LabLaunchingStage = (TextBlock)target;
  1647. return;
  1648. }
  1649. if (connectionId == 24)
  1650. {
  1651. this.LabLaunchingMethod = (TextBlock)target;
  1652. return;
  1653. }
  1654. if (connectionId == 25)
  1655. {
  1656. this.LabLaunchingProgressLeft = (TextBlock)target;
  1657. return;
  1658. }
  1659. if (connectionId == 26)
  1660. {
  1661. this.LabLaunchingProgress = (TextBlock)target;
  1662. return;
  1663. }
  1664. if (connectionId == 27)
  1665. {
  1666. this.LabLaunchingDownloadLeft = (TextBlock)target;
  1667. return;
  1668. }
  1669. if (connectionId == 28)
  1670. {
  1671. this.LabLaunchingDownload = (TextBlock)target;
  1672. return;
  1673. }
  1674. if (connectionId == 29)
  1675. {
  1676. this.PanLaunchingHint = (Grid)target;
  1677. return;
  1678. }
  1679. if (connectionId == 30)
  1680. {
  1681. this.LabLaunchingHint = (TextBlock)target;
  1682. return;
  1683. }
  1684. if (connectionId == 31)
  1685. {
  1686. this.BtnCancel = (MyButton)target;
  1687. return;
  1688. }
  1689. this._UtilsMapper = true;
  1690. }
  1691. // Token: 0x04000897 RID: 2199
  1692. private bool attributeMapper;
  1693. // Token: 0x04000898 RID: 2200
  1694. private bool m_CodeMapper;
  1695. // Token: 0x04000899 RID: 2201
  1696. private PageLaunchLeft.PageType m_PrototypeMapper;
  1697. // Token: 0x0400089A RID: 2202
  1698. public static ModLoader.LoaderTask<ModBase.EqualableList<string>, string> annotationMapper = new ModLoader.LoaderTask<ModBase.EqualableList<string>, string>("Loader Skin Ms", new Action<ModLoader.LoaderTask<ModBase.EqualableList<string>, string>>(PageLaunchLeft.SkinMsLoad), new Func<ModBase.EqualableList<string>>(PageLaunchLeft.SkinMsInput), ThreadPriority.AboveNormal);
  1699. // Token: 0x0400089B RID: 2203
  1700. public static ModLoader.LoaderTask<ModBase.EqualableList<string>, string> infoMapper = new ModLoader.LoaderTask<ModBase.EqualableList<string>, string>("Loader Skin Legacy", new Action<ModLoader.LoaderTask<ModBase.EqualableList<string>, string>>(PageLaunchLeft.SkinLegacyLoad), new Func<ModBase.EqualableList<string>>(PageLaunchLeft.SkinLegacyInput), ThreadPriority.AboveNormal);
  1701. // Token: 0x0400089C RID: 2204
  1702. public static ModLoader.LoaderTask<ModBase.EqualableList<string>, string> m_AdapterMapper = new ModLoader.LoaderTask<ModBase.EqualableList<string>, string>("Loader Skin Nide", new Action<ModLoader.LoaderTask<ModBase.EqualableList<string>, string>>(PageLaunchLeft.SkinNideLoad), new Func<ModBase.EqualableList<string>>(PageLaunchLeft.SkinNideInput), ThreadPriority.AboveNormal);
  1703. // Token: 0x0400089D RID: 2205
  1704. public static ModLoader.LoaderTask<ModBase.EqualableList<string>, string> m_FacadeMapper = new ModLoader.LoaderTask<ModBase.EqualableList<string>, string>("Loader Skin Auth", new Action<ModLoader.LoaderTask<ModBase.EqualableList<string>, string>>(PageLaunchLeft.SkinAuthLoad), new Func<ModBase.EqualableList<string>>(PageLaunchLeft.SkinAuthInput), ThreadPriority.AboveNormal);
  1705. // Token: 0x0400089E RID: 2206
  1706. public static List<ModLoader.LoaderTask<ModBase.EqualableList<string>, string>> m_ListMapper = new List<ModLoader.LoaderTask<ModBase.EqualableList<string>, string>>
  1707. {
  1708. PageLaunchLeft.annotationMapper,
  1709. PageLaunchLeft.infoMapper,
  1710. PageLaunchLeft.m_AdapterMapper,
  1711. PageLaunchLeft.m_FacadeMapper
  1712. };
  1713. // Token: 0x0400089F RID: 2207
  1714. private int m_MerchantMapper;
  1715. // Token: 0x040008A0 RID: 2208
  1716. private ModMinecraft.McVersion _AuthenticationMapper;
  1717. // Token: 0x040008A1 RID: 2209
  1718. private double algoMapper;
  1719. // Token: 0x040008A2 RID: 2210
  1720. private bool m_ComparatorMapper;
  1721. // Token: 0x040008A3 RID: 2211
  1722. private double mappingMapper;
  1723. // Token: 0x040008A4 RID: 2212
  1724. private bool m_TokenizerMapper;
  1725. // Token: 0x040008A5 RID: 2213
  1726. private double filterMapper;
  1727. // Token: 0x040008A6 RID: 2214
  1728. [AccessedThroughProperty("PanBack")]
  1729. [CompilerGenerated]
  1730. private PageLaunchLeft _DatabaseMapper;
  1731. // Token: 0x040008A7 RID: 2215
  1732. [AccessedThroughProperty("PanInput")]
  1733. [CompilerGenerated]
  1734. private Grid predicateMapper;
  1735. // Token: 0x040008A8 RID: 2216
  1736. [CompilerGenerated]
  1737. [AccessedThroughProperty("BtnVersion")]
  1738. private MyButton _PoolMapper;
  1739. // Token: 0x040008A9 RID: 2217
  1740. [CompilerGenerated]
  1741. [AccessedThroughProperty("BtnMore")]
  1742. private MyButton m_CustomerMapper;
  1743. // Token: 0x040008AA RID: 2218
  1744. [AccessedThroughProperty("PanLogin")]
  1745. [CompilerGenerated]
  1746. private Grid pageMapper;
  1747. // Token: 0x040008AB RID: 2219
  1748. [AccessedThroughProperty("PanTypeOne")]
  1749. [CompilerGenerated]
  1750. private Grid interceptorMapper;
  1751. // Token: 0x040008AC RID: 2220
  1752. [CompilerGenerated]
  1753. [AccessedThroughProperty("PathTypeOne")]
  1754. private Path _ContainerMapper;
  1755. // Token: 0x040008AD RID: 2221
  1756. [AccessedThroughProperty("LabTypeOne")]
  1757. [CompilerGenerated]
  1758. private TextBlock m_ParamsMapper;
  1759. // Token: 0x040008AE RID: 2222
  1760. [AccessedThroughProperty("PanType")]
  1761. [CompilerGenerated]
  1762. private Grid m_DispatcherMapper;
  1763. // Token: 0x040008AF RID: 2223
  1764. [AccessedThroughProperty("RadioLoginType5")]
  1765. [CompilerGenerated]
  1766. private MyRadioButton m_ProcessMapper;
  1767. // Token: 0x040008B0 RID: 2224
  1768. [CompilerGenerated]
  1769. [AccessedThroughProperty("RadioLoginType0")]
  1770. private MyRadioButton _ParameterMapper;
  1771. // Token: 0x040008B1 RID: 2225
  1772. [CompilerGenerated]
  1773. [AccessedThroughProperty("AprilScaleTrans")]
  1774. private ScaleTransform m_RecordMapper;
  1775. // Token: 0x040008B2 RID: 2226
  1776. [AccessedThroughProperty("AprilPosTrans")]
  1777. [CompilerGenerated]
  1778. private TranslateTransform m_ServiceMapper;
  1779. // Token: 0x040008B3 RID: 2227
  1780. [CompilerGenerated]
  1781. [AccessedThroughProperty("BtnLaunch")]
  1782. private MyButton invocationMapper;
  1783. // Token: 0x040008B4 RID: 2228
  1784. [AccessedThroughProperty("LabVersion")]
  1785. [CompilerGenerated]
  1786. private TextBlock m_ProxyMapper;
  1787. // Token: 0x040008B5 RID: 2229
  1788. [CompilerGenerated]
  1789. [AccessedThroughProperty("PanLaunching")]
  1790. private Grid _MessageMapper;
  1791. // Token: 0x040008B6 RID: 2230
  1792. [CompilerGenerated]
  1793. [AccessedThroughProperty("LoadLaunching")]
  1794. private MyLoading creatorMapper;
  1795. // Token: 0x040008B7 RID: 2231
  1796. [AccessedThroughProperty("LabLaunchingTitle")]
  1797. [CompilerGenerated]
  1798. private TextBlock _InitializerMapper;
  1799. // Token: 0x040008B8 RID: 2232
  1800. [CompilerGenerated]
  1801. [AccessedThroughProperty("LabLaunchingName")]
  1802. private TextBlock singletonMapper;
  1803. // Token: 0x040008B9 RID: 2233
  1804. [AccessedThroughProperty("ProgressLaunchingFinished")]
  1805. [CompilerGenerated]
  1806. private ColumnDefinition m_RegMapper;
  1807. // Token: 0x040008BA RID: 2234
  1808. [CompilerGenerated]
  1809. [AccessedThroughProperty("ProgressLaunchingUnfinished")]
  1810. private ColumnDefinition m_ProductMapper;
  1811. // Token: 0x040008BB RID: 2235
  1812. [CompilerGenerated]
  1813. [AccessedThroughProperty("PanLaunchingInfo")]
  1814. private Grid m_ListenerMapper;
  1815. // Token: 0x040008BC RID: 2236
  1816. [CompilerGenerated]
  1817. [AccessedThroughProperty("LabLaunchingStage")]
  1818. private TextBlock collectionMapper;
  1819. // Token: 0x040008BD RID: 2237
  1820. [CompilerGenerated]
  1821. [AccessedThroughProperty("LabLaunchingMethod")]
  1822. private TextBlock visitorMapper;
  1823. // Token: 0x040008BE RID: 2238
  1824. [AccessedThroughProperty("LabLaunchingProgressLeft")]
  1825. [CompilerGenerated]
  1826. private TextBlock _ValueMapper;
  1827. // Token: 0x040008BF RID: 2239
  1828. [CompilerGenerated]
  1829. [AccessedThroughProperty("LabLaunchingProgress")]
  1830. private TextBlock objectMapper;
  1831. // Token: 0x040008C0 RID: 2240
  1832. [AccessedThroughProperty("LabLaunchingDownloadLeft")]
  1833. [CompilerGenerated]
  1834. private TextBlock _BridgeMapper;
  1835. // Token: 0x040008C1 RID: 2241
  1836. [AccessedThroughProperty("LabLaunchingDownload")]
  1837. [CompilerGenerated]
  1838. private TextBlock _ItemMapper;
  1839. // Token: 0x040008C2 RID: 2242
  1840. [CompilerGenerated]
  1841. [AccessedThroughProperty("PanLaunchingHint")]
  1842. private Grid m_ReponseMapper;
  1843. // Token: 0x040008C3 RID: 2243
  1844. [CompilerGenerated]
  1845. [AccessedThroughProperty("LabLaunchingHint")]
  1846. private TextBlock globalMapper;
  1847. // Token: 0x040008C4 RID: 2244
  1848. [AccessedThroughProperty("BtnCancel")]
  1849. [CompilerGenerated]
  1850. private MyButton _ExceptionMapper;
  1851. // Token: 0x040008C5 RID: 2245
  1852. private bool _UtilsMapper;
  1853. // Token: 0x02000198 RID: 408
  1854. private enum PageType
  1855. {
  1856. // Token: 0x040008C7 RID: 2247
  1857. None,
  1858. // Token: 0x040008C8 RID: 2248
  1859. Legacy,
  1860. // Token: 0x040008C9 RID: 2249
  1861. Nide,
  1862. // Token: 0x040008CA RID: 2250
  1863. NideSkin,
  1864. // Token: 0x040008CB RID: 2251
  1865. Auth,
  1866. // Token: 0x040008CC RID: 2252
  1867. AuthSkin,
  1868. // Token: 0x040008CD RID: 2253
  1869. Ms,
  1870. // Token: 0x040008CE RID: 2254
  1871. MsSkin
  1872. }
  1873. }
  1874. }