| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493 |
- using System;
- using System.Collections.Generic;
- using System.Net;
- using System.Net.Security;
- using System.Reflection;
- using System.Runtime.CompilerServices;
- using System.Security.Cryptography.X509Certificates;
- using System.Windows;
- using System.Windows.Media;
- using System.Windows.Media.Effects;
- using Microsoft.VisualBasic;
- using Microsoft.VisualBasic.CompilerServices;
- namespace PCL
- {
- // Token: 0x020001AD RID: 429
- public class ModSetup
- {
- // Token: 0x060011C4 RID: 4548 RVA: 0x0007E55C File Offset: 0x0007C75C
- public ModSetup()
- {
- this.m_ValThread = new Dictionary<string, ModSetup.SetupEntry>
- {
- {
- "Identify",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, false)
- },
- {
- "WindowHeight",
- new ModSetup.SetupEntry(550, 0, false)
- },
- {
- "WindowWidth",
- new ModSetup.SetupEntry(900, 0, false)
- },
- {
- "HintDownloadThread",
- new ModSetup.SetupEntry(false, ModSetup.SetupSource.Registry, false)
- },
- {
- "HintNotice",
- new ModSetup.SetupEntry(0, ModSetup.SetupSource.Registry, false)
- },
- {
- "HintDownload",
- new ModSetup.SetupEntry(0, ModSetup.SetupSource.Registry, false)
- },
- {
- "HintInstallBack",
- new ModSetup.SetupEntry(false, ModSetup.SetupSource.Registry, false)
- },
- {
- "HintHide",
- new ModSetup.SetupEntry(false, ModSetup.SetupSource.Registry, false)
- },
- {
- "HintHandInstall",
- new ModSetup.SetupEntry(false, ModSetup.SetupSource.Registry, false)
- },
- {
- "HintBuy",
- new ModSetup.SetupEntry(false, ModSetup.SetupSource.Registry, false)
- },
- {
- "HintClearRubbish",
- new ModSetup.SetupEntry(0, ModSetup.SetupSource.Registry, false)
- },
- {
- "HintUpdateMod",
- new ModSetup.SetupEntry(false, ModSetup.SetupSource.Registry, false)
- },
- {
- "TestSetupReader",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "SystemEula",
- new ModSetup.SetupEntry(false, ModSetup.SetupSource.Registry, false)
- },
- {
- "SystemCount",
- new ModSetup.SetupEntry(0, ModSetup.SetupSource.Registry, true)
- },
- {
- "SystemLaunchCount",
- new ModSetup.SetupEntry(0, ModSetup.SetupSource.Registry, true)
- },
- {
- "SystemLastVersionReg",
- new ModSetup.SetupEntry(0, ModSetup.SetupSource.Registry, true)
- },
- {
- "SystemHighestBetaVersionReg",
- new ModSetup.SetupEntry(0, ModSetup.SetupSource.Registry, true)
- },
- {
- "SystemHighestAlphaVersionReg",
- new ModSetup.SetupEntry(0, ModSetup.SetupSource.Registry, true)
- },
- {
- "SystemSetupVersionReg",
- new ModSetup.SetupEntry(1, ModSetup.SetupSource.Registry, false)
- },
- {
- "SystemSetupVersionIni",
- new ModSetup.SetupEntry(1, 0, false)
- },
- {
- "SystemHelpVersion",
- new ModSetup.SetupEntry(0, ModSetup.SetupSource.Registry, false)
- },
- {
- "SystemDebugMode",
- new ModSetup.SetupEntry(false, ModSetup.SetupSource.Registry, false)
- },
- {
- "SystemDebugAnim",
- new ModSetup.SetupEntry(9, ModSetup.SetupSource.Registry, false)
- },
- {
- "SystemDebugDelay",
- new ModSetup.SetupEntry(false, ModSetup.SetupSource.Registry, false)
- },
- {
- "SystemDebugSkipCopy",
- new ModSetup.SetupEntry(false, ModSetup.SetupSource.Registry, false)
- },
- {
- "SystemSystemCache",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, false)
- },
- {
- "SystemSystemUpdate",
- new ModSetup.SetupEntry(0, 0, false)
- },
- {
- "SystemSystemActivity",
- new ModSetup.SetupEntry(0, 0, false)
- },
- {
- "CacheSavedPageUrl",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, false)
- },
- {
- "CacheSavedPageVersion",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, false)
- },
- {
- "CacheMsOAuthRefresh",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheMsAccess",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheMsProfileJson",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheMsUuid",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheMsName",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheMsV2Migrated",
- new ModSetup.SetupEntry(false, ModSetup.SetupSource.Registry, false)
- },
- {
- "CacheMsV2OAuthRefresh",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheMsV2Access",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheMsV2ProfileJson",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheMsV2Uuid",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheMsV2Name",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheNideAccess",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheNideClient",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheNideUuid",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheNideName",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheNideUsername",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheNidePass",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheNideServer",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheAuthAccess",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheAuthClient",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheAuthUuid",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheAuthName",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheAuthUsername",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheAuthPass",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheAuthServerServer",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheAuthServerName",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheAuthServerRegister",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "CacheDownloadFolder",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, false)
- },
- {
- "CacheJavaListVersion",
- new ModSetup.SetupEntry(0, ModSetup.SetupSource.Registry, false)
- },
- {
- "LoginRemember",
- new ModSetup.SetupEntry(true, ModSetup.SetupSource.Registry, true)
- },
- {
- "LoginLegacyName",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "LoginMsJson",
- new ModSetup.SetupEntry("{}", ModSetup.SetupSource.Registry, true)
- },
- {
- "LoginNideEmail",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "LoginNidePass",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "LoginAuthEmail",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "LoginAuthPass",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "LoginType",
- new ModSetup.SetupEntry(ModLaunch.McLoginType.Legacy, ModSetup.SetupSource.Registry, false)
- },
- {
- "LoginPageType",
- new ModSetup.SetupEntry(0, 0, false)
- },
- {
- "LaunchSkinID",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, false)
- },
- {
- "LaunchSkinType",
- new ModSetup.SetupEntry(0, ModSetup.SetupSource.Registry, false)
- },
- {
- "LaunchSkinSlim",
- new ModSetup.SetupEntry(false, ModSetup.SetupSource.Registry, false)
- },
- {
- "LaunchVersionSelect",
- new ModSetup.SetupEntry("", 0, false)
- },
- {
- "LaunchFolderSelect",
- new ModSetup.SetupEntry("", 0, false)
- },
- {
- "LaunchFolders",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, false)
- },
- {
- "LaunchArgumentTitle",
- new ModSetup.SetupEntry("", 0, false)
- },
- {
- "LaunchArgumentInfo",
- new ModSetup.SetupEntry("PCL", 0, false)
- },
- {
- "LaunchArgumentJavaSelect",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, false)
- },
- {
- "LaunchArgumentJavaAll",
- new ModSetup.SetupEntry("[]", ModSetup.SetupSource.Registry, false)
- },
- {
- "LaunchArgumentIndie",
- new ModSetup.SetupEntry(0, 0, false)
- },
- {
- "LaunchArgumentVisible",
- new ModSetup.SetupEntry(5, ModSetup.SetupSource.Registry, false)
- },
- {
- "LaunchArgumentPriority",
- new ModSetup.SetupEntry(1, ModSetup.SetupSource.Registry, false)
- },
- {
- "LaunchArgumentWindowWidth",
- new ModSetup.SetupEntry(854, 0, false)
- },
- {
- "LaunchArgumentWindowHeight",
- new ModSetup.SetupEntry(480, 0, false)
- },
- {
- "LaunchArgumentWindowType",
- new ModSetup.SetupEntry(1, 0, false)
- },
- {
- "LaunchArgumentRam",
- new ModSetup.SetupEntry(false, ModSetup.SetupSource.Registry, false)
- },
- {
- "LaunchAdvanceJvm",
- new ModSetup.SetupEntry("-XX:+UseG1GC -XX:-UseAdaptiveSizePolicy -XX:-OmitStackTraceInFastThrow -Djdk.lang.Process.allowAmbiguousCommands=true -Dfml.ignoreInvalidMinecraftCertificates=True -Dfml.ignorePatchDiscrepancies=True -Dlog4j2.formatMsgNoLookups=true", 0, false)
- },
- {
- "LaunchAdvanceGame",
- new ModSetup.SetupEntry("", 0, false)
- },
- {
- "LaunchAdvanceRun",
- new ModSetup.SetupEntry("", 0, false)
- },
- {
- "LaunchAdvanceRunWait",
- new ModSetup.SetupEntry(true, 0, false)
- },
- {
- "LaunchAdvanceAssets",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "LaunchAdvanceJava",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "LaunchRamType",
- new ModSetup.SetupEntry(0, 0, false)
- },
- {
- "LaunchRamCustom",
- new ModSetup.SetupEntry(15, 0, false)
- },
- {
- "LinkEula",
- new ModSetup.SetupEntry(false, ModSetup.SetupSource.Registry, false)
- },
- {
- "LinkName",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, false)
- },
- {
- "LinkHiperCertLast",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, false)
- },
- {
- "LinkHiperCertTime",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, false)
- },
- {
- "LinkHiperCertWarn",
- new ModSetup.SetupEntry(true, ModSetup.SetupSource.Registry, false)
- },
- {
- "LinkIoiVersion",
- new ModSetup.SetupEntry(0, ModSetup.SetupSource.Registry, true)
- },
- {
- "ToolHelpChinese",
- new ModSetup.SetupEntry(true, ModSetup.SetupSource.Registry, false)
- },
- {
- "ToolDownloadThread",
- new ModSetup.SetupEntry(63, ModSetup.SetupSource.Registry, false)
- },
- {
- "ToolDownloadSpeed",
- new ModSetup.SetupEntry(42, ModSetup.SetupSource.Registry, false)
- },
- {
- "ToolDownloadVersion",
- new ModSetup.SetupEntry(0, ModSetup.SetupSource.Registry, false)
- },
- {
- "ToolDownloadTranslate",
- new ModSetup.SetupEntry(0, ModSetup.SetupSource.Registry, false)
- },
- {
- "ToolDownloadIgnoreQuilt",
- new ModSetup.SetupEntry(true, ModSetup.SetupSource.Registry, false)
- },
- {
- "ToolDownloadCert",
- new ModSetup.SetupEntry(false, ModSetup.SetupSource.Registry, false)
- },
- {
- "ToolDownloadMod",
- new ModSetup.SetupEntry(1, ModSetup.SetupSource.Registry, false)
- },
- {
- "ToolModLocalNameStyle",
- new ModSetup.SetupEntry(0, ModSetup.SetupSource.Registry, false)
- },
- {
- "ToolUpdateAlpha",
- new ModSetup.SetupEntry(0, ModSetup.SetupSource.Registry, true)
- },
- {
- "ToolUpdateRelease",
- new ModSetup.SetupEntry(false, ModSetup.SetupSource.Registry, false)
- },
- {
- "ToolUpdateSnapshot",
- new ModSetup.SetupEntry(false, ModSetup.SetupSource.Registry, false)
- },
- {
- "ToolUpdateReleaseLast",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, false)
- },
- {
- "ToolUpdateSnapshotLast",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, false)
- },
- {
- "UiLauncherTransparent",
- new ModSetup.SetupEntry(600, 0, false)
- },
- {
- "UiLauncherHue",
- new ModSetup.SetupEntry(180, 0, false)
- },
- {
- "UiLauncherSat",
- new ModSetup.SetupEntry(80, 0, false)
- },
- {
- "UiLauncherDelta",
- new ModSetup.SetupEntry(90, 0, false)
- },
- {
- "UiLauncherLight",
- new ModSetup.SetupEntry(20, 0, false)
- },
- {
- "UiLauncherTheme",
- new ModSetup.SetupEntry(0, 0, false)
- },
- {
- "UiLauncherThemeGold",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Registry, true)
- },
- {
- "UiLauncherThemeHide",
- new ModSetup.SetupEntry("0|1|2|3|4", ModSetup.SetupSource.Registry, true)
- },
- {
- "UiLauncherThemeHide2",
- new ModSetup.SetupEntry("0|1|2|3|4", ModSetup.SetupSource.Registry, true)
- },
- {
- "UiLauncherLogo",
- new ModSetup.SetupEntry(true, 0, false)
- },
- {
- "UiLauncherEmail",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "UiBackgroundColorful",
- new ModSetup.SetupEntry(true, 0, false)
- },
- {
- "UiBackgroundOpacity",
- new ModSetup.SetupEntry(1000, 0, false)
- },
- {
- "UiBackgroundBlur",
- new ModSetup.SetupEntry(0, 0, false)
- },
- {
- "UiBackgroundSuit",
- new ModSetup.SetupEntry(0, 0, false)
- },
- {
- "UiCustomType",
- new ModSetup.SetupEntry(0, 0, false)
- },
- {
- "UiCustomPreset",
- new ModSetup.SetupEntry(0, 0, false)
- },
- {
- "UiCustomNet",
- new ModSetup.SetupEntry("", 0, false)
- },
- {
- "UiLogoType",
- new ModSetup.SetupEntry(1, 0, false)
- },
- {
- "UiLogoText",
- new ModSetup.SetupEntry("", 0, false)
- },
- {
- "UiLogoLeft",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "UiMusicVolume",
- new ModSetup.SetupEntry(500, 0, false)
- },
- {
- "UiMusicStop",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "UiMusicStart",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "UiMusicRandom",
- new ModSetup.SetupEntry(true, 0, false)
- },
- {
- "UiMusicAuto",
- new ModSetup.SetupEntry(true, 0, false)
- },
- {
- "UiHiddenPageDownload",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "UiHiddenPageLink",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "UiHiddenPageSetup",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "UiHiddenPageOther",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "UiHiddenFunctionSelect",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "UiHiddenFunctionModUpdate",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "UiHiddenFunctionHidden",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "UiHiddenSetupLaunch",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "UiHiddenSetupUi",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "UiHiddenSetupLink",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "UiHiddenSetupSystem",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "UiHiddenOtherHelp",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "UiHiddenOtherFeedback",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "UiHiddenOtherVote",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "UiHiddenOtherAbout",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "UiHiddenOtherTest",
- new ModSetup.SetupEntry(false, 0, false)
- },
- {
- "VersionAdvanceJvm",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Version, false)
- },
- {
- "VersionAdvanceGame",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Version, false)
- },
- {
- "VersionAdvanceAssets",
- new ModSetup.SetupEntry(0, ModSetup.SetupSource.Version, false)
- },
- {
- "VersionAdvanceAssetsV2",
- new ModSetup.SetupEntry(false, ModSetup.SetupSource.Version, false)
- },
- {
- "VersionAdvanceJava",
- new ModSetup.SetupEntry(false, ModSetup.SetupSource.Version, false)
- },
- {
- "VersionAdvanceRun",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Version, false)
- },
- {
- "VersionAdvanceRunWait",
- new ModSetup.SetupEntry(true, ModSetup.SetupSource.Version, false)
- },
- {
- "VersionRamType",
- new ModSetup.SetupEntry(2, ModSetup.SetupSource.Version, false)
- },
- {
- "VersionRamCustom",
- new ModSetup.SetupEntry(15, ModSetup.SetupSource.Version, false)
- },
- {
- "VersionRamOptimize",
- new ModSetup.SetupEntry(0, ModSetup.SetupSource.Version, false)
- },
- {
- "VersionArgumentTitle",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Version, false)
- },
- {
- "VersionArgumentInfo",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Version, false)
- },
- {
- "VersionArgumentIndie",
- new ModSetup.SetupEntry(-1, ModSetup.SetupSource.Version, false)
- },
- {
- "VersionArgumentJavaSelect",
- new ModSetup.SetupEntry("使用全局设置", ModSetup.SetupSource.Version, false)
- },
- {
- "VersionServerEnter",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Version, false)
- },
- {
- "VersionServerLogin",
- new ModSetup.SetupEntry(0, ModSetup.SetupSource.Version, false)
- },
- {
- "VersionServerNide",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Version, false)
- },
- {
- "VersionServerAuthRegister",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Version, false)
- },
- {
- "VersionServerAuthName",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Version, false)
- },
- {
- "VersionServerAuthServer",
- new ModSetup.SetupEntry("", ModSetup.SetupSource.Version, false)
- }
- };
- }
- // Token: 0x060011C5 RID: 4549 RVA: 0x0000AB01 File Offset: 0x00008D01
- public void Set(string Key, object Value, bool ForceReload = false, ModMinecraft.McVersion Version = null)
- {
- this.Set(Key, RuntimeHelpers.GetObjectValue(Value), this.m_ValThread[Key], ForceReload, Version);
- }
- // Token: 0x060011C6 RID: 4550 RVA: 0x0007FCC0 File Offset: 0x0007DEC0
- private void Set(string Key, object Value, ModSetup.SetupEntry E, bool ForceReload, ModMinecraft.McVersion Version)
- {
- try
- {
- Value = RuntimeHelpers.GetObjectValue(Conversion.CTypeDynamic(RuntimeHelpers.GetObjectValue(Value), E.Type));
- if (E.databaseMap == 2)
- {
- if (Operators.ConditionalCompareObjectEqual(E.Value, Value, false) && !ForceReload)
- {
- return;
- }
- }
- else if (E.Source != ModSetup.SetupSource.Version)
- {
- E.databaseMap = 2;
- }
- E.Value = RuntimeHelpers.GetObjectValue(Value);
- if (E._MappingMap)
- {
- try
- {
- if (Value == null)
- {
- Value = "";
- }
- Value = ModSecret.SecretEncrypt(Conversions.ToString(Value), "PCL" + ModBase._TagRepository);
- }
- catch (Exception ex)
- {
- ModBase.Log(ex, "加密设置失败:" + Key, ModBase.LogLevel.Developer, "出现错误");
- }
- }
- switch (E.Source)
- {
- case ModSetup.SetupSource.Normal:
- ModBase.WriteIni("Setup", Key, Conversions.ToString(Value));
- break;
- case ModSetup.SetupSource.Registry:
- ModBase.WriteReg(Key, Conversions.ToString(Value), false);
- break;
- case ModSetup.SetupSource.Version:
- if (Version == null)
- {
- throw new Exception("更改版本设置 " + Key + " 时未提供目标版本");
- }
- ModBase.WriteIni(Version.Path + "PCL\\Setup.ini", Key, Conversions.ToString(Value));
- break;
- }
- MethodInfo method = typeof(ModSetup).GetMethod(Key);
- if (method != null)
- {
- method.Invoke(this, new object[]
- {
- Value
- });
- }
- }
- catch (Exception ex2)
- {
- ModBase.Log(ex2, Conversions.ToString(Operators.ConcatenateObject(Operators.ConcatenateObject("设置设置项时出错(" + Key + ", ", Value), ")")), ModBase.LogLevel.Feedback, "出现错误");
- }
- }
- // Token: 0x060011C7 RID: 4551 RVA: 0x0000AB1F File Offset: 0x00008D1F
- public object Load(string Key, bool ForceReload = false, ModMinecraft.McVersion Version = null)
- {
- return this.Load(Key, this.m_ValThread[Key], ForceReload, Version);
- }
- // Token: 0x060011C8 RID: 4552 RVA: 0x0007FE88 File Offset: 0x0007E088
- private object Load(string Key, ModSetup.SetupEntry E, bool ForceReload, ModMinecraft.McVersion Version)
- {
- object value;
- if (E.databaseMap == 2 && !ForceReload)
- {
- value = E.Value;
- }
- else
- {
- this.Read(Key, ref E, Version);
- if (E.Source != ModSetup.SetupSource.Version)
- {
- E.databaseMap = 2;
- }
- MethodInfo method = typeof(ModSetup).GetMethod(Key);
- if (method != null)
- {
- method.Invoke(this, new object[]
- {
- E.Value
- });
- }
- value = E.Value;
- }
- return value;
- }
- // Token: 0x060011C9 RID: 4553 RVA: 0x0000AB36 File Offset: 0x00008D36
- public object Get(string Key, ModMinecraft.McVersion Version = null)
- {
- if (!this.m_ValThread.ContainsKey(Key))
- {
- throw new KeyNotFoundException("未找到设置项:" + Key)
- {
- Source = Key
- };
- }
- return this.Get(Key, this.m_ValThread[Key], Version);
- }
- // Token: 0x060011CA RID: 4554 RVA: 0x0007FEFC File Offset: 0x0007E0FC
- private object Get(string Key, ModSetup.SetupEntry E, ModMinecraft.McVersion Version)
- {
- string text = this.ForceValue(Key);
- if (text != null)
- {
- E.Value = RuntimeHelpers.GetObjectValue(Conversion.CTypeDynamic(text, E.Type));
- E.databaseMap = 1;
- }
- if (E.databaseMap == 0)
- {
- this.Read(Key, ref E, Version);
- if (E.Source != ModSetup.SetupSource.Version)
- {
- E.databaseMap = 1;
- }
- }
- return E.Value;
- }
- // Token: 0x060011CB RID: 4555 RVA: 0x0007FF5C File Offset: 0x0007E15C
- public void Reset(string Key, bool ForceReload = false, ModMinecraft.McVersion Version = null)
- {
- ModSetup.SetupEntry setupEntry = this.m_ValThread[Key];
- this.Set(Key, RuntimeHelpers.GetObjectValue(setupEntry.m_TokenizerMap), setupEntry, ForceReload, Version);
- }
- // Token: 0x060011CC RID: 4556 RVA: 0x0000AB72 File Offset: 0x00008D72
- public string GetDefault(string Key)
- {
- return Conversions.ToString(this.m_ValThread[Key].m_TokenizerMap);
- }
- // Token: 0x060011CD RID: 4557 RVA: 0x0007FF8C File Offset: 0x0007E18C
- private void Read(string Key, ref ModSetup.SetupEntry E, ModMinecraft.McVersion Version)
- {
- try
- {
- if (E.databaseMap == 0)
- {
- ModSetup.SetupSource source = E.Source;
- string text;
- if (source != ModSetup.SetupSource.Normal)
- {
- if (source != ModSetup.SetupSource.Registry)
- {
- if (Version == null)
- {
- throw new Exception("读取版本设置 " + Key + " 时未提供目标版本");
- }
- text = ModBase.ReadIni(Version.Path + "PCL\\Setup.ini", Key, Conversions.ToString(E.filterMap));
- }
- else
- {
- text = ModBase.ReadReg(Key, Conversions.ToString(E.filterMap));
- }
- }
- else
- {
- text = ModBase.ReadIni("Setup", Key, Conversions.ToString(E.filterMap));
- }
- if (E._MappingMap)
- {
- if (text.Equals(RuntimeHelpers.GetObjectValue(E.filterMap)))
- {
- text = Conversions.ToString(E.m_TokenizerMap);
- }
- else
- {
- try
- {
- text = ModSecret.SecretDecrypt(text, "PCL" + ModBase._TagRepository);
- }
- catch (Exception ex)
- {
- ModBase.Log(ex, "解密设置失败:" + Key, ModBase.LogLevel.Developer, "出现错误");
- text = Conversions.ToString(E.m_TokenizerMap);
- ModBase.m_IdentifierRepository.Set(Key, RuntimeHelpers.GetObjectValue(E.m_TokenizerMap), true, null);
- }
- }
- }
- E.Value = RuntimeHelpers.GetObjectValue(Conversion.CTypeDynamic(text, E.Type));
- }
- }
- catch (Exception ex2)
- {
- ModBase.Log(ex2, "读取设置失败:" + Key, ModBase.LogLevel.Hint, "出现错误");
- E.Value = RuntimeHelpers.GetObjectValue(Conversion.CTypeDynamic(RuntimeHelpers.GetObjectValue(E.m_TokenizerMap), E.Type));
- }
- }
- // Token: 0x060011CE RID: 4558 RVA: 0x0008014C File Offset: 0x0007E34C
- private string ForceValue(string Key)
- {
- string result;
- if (Operators.CompareString(Key, "UiLauncherTheme", false) == 0)
- {
- result = "0";
- }
- else if (Operators.CompareString(Key, "UiHiddenPageLink", false) == 0)
- {
- result = Conversions.ToString(true);
- }
- else if (Operators.CompareString(Key, "UiHiddenSetupLink", false) == 0)
- {
- result = Conversions.ToString(true);
- }
- else
- {
- result = null;
- }
- return result;
- }
- // Token: 0x060011CF RID: 4559 RVA: 0x000801A0 File Offset: 0x0007E3A0
- public void LaunchVersionSelect(string Value)
- {
- ModBase.Log("[Setup] 当前选择的 Minecraft 版本:" + Value, ModBase.LogLevel.Normal, "出现错误");
- ModBase.WriteIni(ModMinecraft.m_ProxyTests + "PCL.ini", "Version", Information.IsNothing(ModMinecraft.AddClient()) ? "" : ModMinecraft.AddClient().Name);
- }
- // Token: 0x060011D0 RID: 4560 RVA: 0x000801FC File Offset: 0x0007E3FC
- public void LaunchFolderSelect(string Value)
- {
- ModBase.Log("[Setup] 当前选择的 Minecraft 文件夹:" + Value.ToString().Replace("$", ModBase.Path), ModBase.LogLevel.Normal, "出现错误");
- ModMinecraft.m_ProxyTests = Value.ToString().Replace("$", ModBase.Path);
- }
- // Token: 0x060011D1 RID: 4561 RVA: 0x0000AB8A File Offset: 0x00008D8A
- public void LaunchRamType(int Type)
- {
- if (ModMain._PolicyIterator != null)
- {
- ModMain._PolicyIterator.RamType(Type);
- }
- }
- // Token: 0x060011D2 RID: 4562 RVA: 0x0000AB9E File Offset: 0x00008D9E
- public void LaunchSkinType(int Value)
- {
- ModBase.RunInUi(delegate()
- {
- if (!Information.IsNothing(ModMain._PolicyIterator))
- {
- switch (Value)
- {
- case 0:
- case 1:
- case 2:
- ModMain._PolicyIterator.PanSkinID.Visibility = Visibility.Collapsed;
- ModMain._PolicyIterator.PanSkinChange.Visibility = Visibility.Collapsed;
- break;
- case 3:
- ModMain._PolicyIterator.PanSkinID.Visibility = Visibility.Visible;
- ModMain._PolicyIterator.PanSkinChange.Visibility = Visibility.Collapsed;
- break;
- case 4:
- ModMain._PolicyIterator.PanSkinID.Visibility = Visibility.Collapsed;
- ModMain._PolicyIterator.PanSkinChange.Visibility = Visibility.Visible;
- break;
- }
- ModMain._PolicyIterator.CardSkin.TriggerForceResize();
- }
- PageLaunchLeft.infoMapper.Start(null, false);
- }, false);
- }
- // Token: 0x060011D3 RID: 4563 RVA: 0x0000ABBD File Offset: 0x00008DBD
- public void LaunchSkinID(string Value)
- {
- PageLaunchLeft.infoMapper.Start(null, false);
- }
- // Token: 0x060011D4 RID: 4564 RVA: 0x0000ABCB File Offset: 0x00008DCB
- public void ToolDownloadThread(int Value)
- {
- ModNet.m_StateTests = checked(Value + 1);
- }
- // Token: 0x060011D5 RID: 4565 RVA: 0x0000ABD5 File Offset: 0x00008DD5
- public void ToolDownloadCert(bool Value)
- {
- ServicePointManager.ServerCertificateValidationCallback = (Value ? null : ((ModSetup._Closure$__.$IR21-1 == null) ? (ModSetup._Closure$__.$IR21-1 = ((object a0, X509Certificate a1, X509Chain a2, SslPolicyErrors a3) => ((ModSetup._Closure$__.$I21-0 == null) ? (ModSetup._Closure$__.$I21-0 = (() => true)) : ModSetup._Closure$__.$I21-0)())) : ModSetup._Closure$__.$IR21-1));
- }
- // Token: 0x060011D6 RID: 4566 RVA: 0x00080250 File Offset: 0x0007E450
- public void ToolDownloadSpeed(int Value)
- {
- checked
- {
- if (Value <= 14)
- {
- ModNet.m_TemplateTests = (long)Math.Round(unchecked((double)(checked(Value + 1)) * 0.1 * 1024.0 * 1024.0));
- return;
- }
- if (Value <= 31)
- {
- ModNet.m_TemplateTests = (long)Math.Round(unchecked((double)(checked(Value - 11)) * 0.5 * 1024.0 * 1024.0));
- return;
- }
- if (Value <= 41)
- {
- ModNet.m_TemplateTests = unchecked((long)(checked((Value - 21) * 1024))) * 1024L;
- return;
- }
- ModNet.m_TemplateTests = -1L;
- }
- }
- // Token: 0x060011D7 RID: 4567 RVA: 0x0000AC06 File Offset: 0x00008E06
- public void UiLauncherTransparent(int Value)
- {
- ModMain._ProcessIterator.Opacity = (double)Value / 1000.0 + 0.4;
- }
- // Token: 0x060011D8 RID: 4568 RVA: 0x0000AC28 File Offset: 0x00008E28
- public void UiBackgroundColorful(bool Value)
- {
- ModSecret.ViewReader(-1);
- }
- // Token: 0x060011D9 RID: 4569 RVA: 0x0000AC30 File Offset: 0x00008E30
- public void UiBackgroundOpacity(int Value)
- {
- ModMain._ProcessIterator.ImgBack.Opacity = (double)Value / 1000.0;
- }
- // Token: 0x060011DA RID: 4570 RVA: 0x000802F4 File Offset: 0x0007E4F4
- public void UiBackgroundBlur(int Value)
- {
- checked
- {
- if (Value == 0)
- {
- ModMain._ProcessIterator.ImgBack.Effect = null;
- }
- else
- {
- ModMain._ProcessIterator.ImgBack.Effect = new BlurEffect
- {
- Radius = (double)(Value + 1)
- };
- }
- ModMain._ProcessIterator.ImgBack.Margin = new Thickness((double)(0 - (Value + 1)) / 1.8);
- }
- }
- // Token: 0x060011DB RID: 4571 RVA: 0x00080358 File Offset: 0x0007E558
- public void UiBackgroundSuit(int Value)
- {
- if (!Information.IsNothing(ModMain._ProcessIterator.ImgBack.Background))
- {
- double width = ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).ImageSource.Width;
- double height = ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).ImageSource.Height;
- if (Value == 0)
- {
- if (width < ModMain._ProcessIterator.PanMain.ActualWidth / 2.0 && height < ModMain._ProcessIterator.PanMain.ActualHeight / 2.0)
- {
- Value = 4;
- }
- else
- {
- Value = 2;
- }
- }
- ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).TileMode = TileMode.None;
- ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).Viewport = new Rect(0.0, 0.0, 1.0, 1.0);
- ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).ViewportUnits = BrushMappingMode.RelativeToBoundingBox;
- switch (Value)
- {
- case 1:
- ModMain._ProcessIterator.ImgBack.HorizontalAlignment = HorizontalAlignment.Center;
- ModMain._ProcessIterator.ImgBack.VerticalAlignment = VerticalAlignment.Center;
- ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).Stretch = Stretch.None;
- ModMain._ProcessIterator.ImgBack.Width = ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).ImageSource.Width;
- ModMain._ProcessIterator.ImgBack.Height = ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).ImageSource.Height;
- return;
- case 2:
- ModMain._ProcessIterator.ImgBack.HorizontalAlignment = HorizontalAlignment.Stretch;
- ModMain._ProcessIterator.ImgBack.VerticalAlignment = VerticalAlignment.Stretch;
- ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).Stretch = Stretch.UniformToFill;
- ModMain._ProcessIterator.ImgBack.Width = double.NaN;
- ModMain._ProcessIterator.ImgBack.Height = double.NaN;
- return;
- case 3:
- ModMain._ProcessIterator.ImgBack.HorizontalAlignment = HorizontalAlignment.Stretch;
- ModMain._ProcessIterator.ImgBack.VerticalAlignment = VerticalAlignment.Stretch;
- ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).Stretch = Stretch.Fill;
- ModMain._ProcessIterator.ImgBack.Width = double.NaN;
- ModMain._ProcessIterator.ImgBack.Height = double.NaN;
- return;
- case 4:
- ModMain._ProcessIterator.ImgBack.HorizontalAlignment = HorizontalAlignment.Stretch;
- ModMain._ProcessIterator.ImgBack.VerticalAlignment = VerticalAlignment.Stretch;
- ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).Stretch = Stretch.None;
- ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).TileMode = TileMode.Tile;
- ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).Viewport = new Rect(0.0, 0.0, ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).ImageSource.Width, ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).ImageSource.Height);
- ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).ViewportUnits = BrushMappingMode.Absolute;
- ModMain._ProcessIterator.ImgBack.Width = double.NaN;
- ModMain._ProcessIterator.ImgBack.Height = double.NaN;
- return;
- case 5:
- ModMain._ProcessIterator.ImgBack.HorizontalAlignment = HorizontalAlignment.Left;
- ModMain._ProcessIterator.ImgBack.VerticalAlignment = VerticalAlignment.Top;
- ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).Stretch = Stretch.None;
- ModMain._ProcessIterator.ImgBack.Width = ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).ImageSource.Width;
- ModMain._ProcessIterator.ImgBack.Height = ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).ImageSource.Height;
- return;
- case 6:
- ModMain._ProcessIterator.ImgBack.HorizontalAlignment = HorizontalAlignment.Right;
- ModMain._ProcessIterator.ImgBack.VerticalAlignment = VerticalAlignment.Top;
- ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).Stretch = Stretch.None;
- ModMain._ProcessIterator.ImgBack.Width = ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).ImageSource.Width;
- ModMain._ProcessIterator.ImgBack.Height = ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).ImageSource.Height;
- return;
- case 7:
- ModMain._ProcessIterator.ImgBack.HorizontalAlignment = HorizontalAlignment.Left;
- ModMain._ProcessIterator.ImgBack.VerticalAlignment = VerticalAlignment.Bottom;
- ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).Stretch = Stretch.None;
- ModMain._ProcessIterator.ImgBack.Width = ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).ImageSource.Width;
- ModMain._ProcessIterator.ImgBack.Height = ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).ImageSource.Height;
- return;
- case 8:
- ModMain._ProcessIterator.ImgBack.HorizontalAlignment = HorizontalAlignment.Right;
- ModMain._ProcessIterator.ImgBack.VerticalAlignment = VerticalAlignment.Bottom;
- ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).Stretch = Stretch.None;
- ModMain._ProcessIterator.ImgBack.Width = ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).ImageSource.Width;
- ModMain._ProcessIterator.ImgBack.Height = ((ImageBrush)ModMain._ProcessIterator.ImgBack.Background).ImageSource.Height;
- break;
- default:
- return;
- }
- }
- }
- // Token: 0x060011DC RID: 4572 RVA: 0x0008096C File Offset: 0x0007EB6C
- public void UiCustomType(int Value)
- {
- if (ModMain.m_OrderIterator != null)
- {
- switch (Value)
- {
- case 0:
- ModMain.m_OrderIterator.PanCustomPreset.Visibility = Visibility.Collapsed;
- ModMain.m_OrderIterator.PanCustomLocal.Visibility = Visibility.Collapsed;
- ModMain.m_OrderIterator.PanCustomNet.Visibility = Visibility.Collapsed;
- ModMain.m_OrderIterator.HintCustom.Visibility = Visibility.Collapsed;
- break;
- case 1:
- ModMain.m_OrderIterator.PanCustomPreset.Visibility = Visibility.Collapsed;
- ModMain.m_OrderIterator.PanCustomLocal.Visibility = Visibility.Visible;
- ModMain.m_OrderIterator.PanCustomNet.Visibility = Visibility.Collapsed;
- ModMain.m_OrderIterator.HintCustom.Visibility = Visibility.Visible;
- ModMain.m_OrderIterator.HintCustom.Text = string.Format("从 PCL 文件夹下的 Custom.xaml 读取主页内容。{0}你可以手动编辑该文件,向主页添加文本、图片、常用网站、快捷启动等功能。", "\r\n");
- ModMain.m_OrderIterator.HintCustom.EventType = "";
- ModMain.m_OrderIterator.HintCustom.EventData = "";
- break;
- case 2:
- ModMain.m_OrderIterator.PanCustomPreset.Visibility = Visibility.Collapsed;
- ModMain.m_OrderIterator.PanCustomLocal.Visibility = Visibility.Collapsed;
- ModMain.m_OrderIterator.PanCustomNet.Visibility = Visibility.Visible;
- ModMain.m_OrderIterator.HintCustom.Visibility = Visibility.Visible;
- ModMain.m_OrderIterator.HintCustom.Text = string.Format("从指定网址联网获取主页内容。服主也可以用于动态更新服务器公告。{0}如果你制作了稳定运行的联网主页,可以点击这条提示投稿,若合格即可加入预设!", "\r\n");
- ModMain.m_OrderIterator.HintCustom.EventType = "打开网页";
- ModMain.m_OrderIterator.HintCustom.EventData = "https://github.com/Hex-Dragon/PCL2/discussions/2528";
- break;
- case 3:
- ModMain.m_OrderIterator.PanCustomPreset.Visibility = Visibility.Visible;
- ModMain.m_OrderIterator.PanCustomLocal.Visibility = Visibility.Collapsed;
- ModMain.m_OrderIterator.PanCustomNet.Visibility = Visibility.Collapsed;
- ModMain.m_OrderIterator.HintCustom.Visibility = Visibility.Collapsed;
- break;
- }
- ModMain.m_OrderIterator.CardCustom.TriggerForceResize();
- }
- }
- // Token: 0x060011DD RID: 4573 RVA: 0x00080B48 File Offset: 0x0007ED48
- public void UiLogoType(int Value)
- {
- switch (Value)
- {
- case 0:
- ModMain._ProcessIterator.ShapeTitleLogo.Visibility = Visibility.Collapsed;
- ModMain._ProcessIterator.LabTitleLogo.Visibility = Visibility.Collapsed;
- ModMain._ProcessIterator.ImageTitleLogo.Visibility = Visibility.Collapsed;
- if (!Information.IsNothing(ModMain.m_OrderIterator))
- {
- ModMain.m_OrderIterator.CheckLogoLeft.Visibility = Visibility.Visible;
- ModMain.m_OrderIterator.PanLogoText.Visibility = Visibility.Collapsed;
- ModMain.m_OrderIterator.PanLogoChange.Visibility = Visibility.Collapsed;
- }
- break;
- case 1:
- ModMain._ProcessIterator.ShapeTitleLogo.Visibility = Visibility.Visible;
- ModMain._ProcessIterator.LabTitleLogo.Visibility = Visibility.Collapsed;
- ModMain._ProcessIterator.ImageTitleLogo.Visibility = Visibility.Collapsed;
- if (!Information.IsNothing(ModMain.m_OrderIterator))
- {
- ModMain.m_OrderIterator.CheckLogoLeft.Visibility = Visibility.Collapsed;
- ModMain.m_OrderIterator.PanLogoText.Visibility = Visibility.Collapsed;
- ModMain.m_OrderIterator.PanLogoChange.Visibility = Visibility.Collapsed;
- }
- break;
- case 2:
- ModMain._ProcessIterator.ShapeTitleLogo.Visibility = Visibility.Collapsed;
- ModMain._ProcessIterator.LabTitleLogo.Visibility = Visibility.Visible;
- ModMain._ProcessIterator.ImageTitleLogo.Visibility = Visibility.Collapsed;
- if (!Information.IsNothing(ModMain.m_OrderIterator))
- {
- ModMain.m_OrderIterator.CheckLogoLeft.Visibility = Visibility.Collapsed;
- ModMain.m_OrderIterator.PanLogoText.Visibility = Visibility.Visible;
- ModMain.m_OrderIterator.PanLogoChange.Visibility = Visibility.Collapsed;
- }
- ModBase.m_IdentifierRepository.Load("UiLogoText", true, null);
- break;
- case 3:
- ModMain._ProcessIterator.ShapeTitleLogo.Visibility = Visibility.Collapsed;
- ModMain._ProcessIterator.LabTitleLogo.Visibility = Visibility.Collapsed;
- ModMain._ProcessIterator.ImageTitleLogo.Visibility = Visibility.Visible;
- if (!Information.IsNothing(ModMain.m_OrderIterator))
- {
- ModMain.m_OrderIterator.CheckLogoLeft.Visibility = Visibility.Collapsed;
- ModMain.m_OrderIterator.PanLogoText.Visibility = Visibility.Collapsed;
- ModMain.m_OrderIterator.PanLogoChange.Visibility = Visibility.Visible;
- }
- try
- {
- ModMain._ProcessIterator.ImageTitleLogo.Source = ModBase.Path + "PCL\\Logo.png";
- }
- catch (Exception ex)
- {
- ModMain._ProcessIterator.ImageTitleLogo.Source = null;
- ModBase.Log(ex, "显示标题栏图片失败", ModBase.LogLevel.Msgbox, "出现错误");
- }
- break;
- }
- ModBase.m_IdentifierRepository.Load("UiLogoLeft", true, null);
- if (!Information.IsNothing(ModMain.m_OrderIterator))
- {
- ModMain.m_OrderIterator.CardLogo.TriggerForceResize();
- }
- }
- // Token: 0x060011DE RID: 4574 RVA: 0x0000AC4D File Offset: 0x00008E4D
- public void UiLogoText(string Value)
- {
- ModMain._ProcessIterator.LabTitleLogo.Text = Value;
- }
- // Token: 0x060011DF RID: 4575 RVA: 0x00080DD8 File Offset: 0x0007EFD8
- public void UiLogoLeft(bool Value)
- {
- ModMain._ProcessIterator.PanTitleMain.ColumnDefinitions[0].Width = new GridLength((double)((!Value || !Operators.ConditionalCompareObjectEqual(ModBase.m_IdentifierRepository.Get("UiLogoType", null), 0, false)) ? 1 : 0), GridUnitType.Star);
- }
- // Token: 0x060011E0 RID: 4576 RVA: 0x0000AC5F File Offset: 0x00008E5F
- public void UiHiddenPageLink(bool Value)
- {
- PageSetupUI.HiddenRefresh();
- }
- // Token: 0x060011E1 RID: 4577 RVA: 0x0000AC5F File Offset: 0x00008E5F
- public void UiHiddenPageDownload(bool Value)
- {
- PageSetupUI.HiddenRefresh();
- }
- // Token: 0x060011E2 RID: 4578 RVA: 0x0000AC5F File Offset: 0x00008E5F
- public void UiHiddenPageSetup(bool Value)
- {
- PageSetupUI.HiddenRefresh();
- }
- // Token: 0x060011E3 RID: 4579 RVA: 0x0000AC5F File Offset: 0x00008E5F
- public void UiHiddenPageOther(bool Value)
- {
- PageSetupUI.HiddenRefresh();
- }
- // Token: 0x060011E4 RID: 4580 RVA: 0x0000AC5F File Offset: 0x00008E5F
- public void UiHiddenFunctionSelect(bool Value)
- {
- PageSetupUI.HiddenRefresh();
- }
- // Token: 0x060011E5 RID: 4581 RVA: 0x0000AC5F File Offset: 0x00008E5F
- public void UiHiddenFunctionModUpdate(bool Value)
- {
- PageSetupUI.HiddenRefresh();
- }
- // Token: 0x060011E6 RID: 4582 RVA: 0x0000AC5F File Offset: 0x00008E5F
- public void UiHiddenFunctionHidden(bool Value)
- {
- PageSetupUI.HiddenRefresh();
- }
- // Token: 0x060011E7 RID: 4583 RVA: 0x0000AC5F File Offset: 0x00008E5F
- public void UiHiddenSetupLaunch(bool Value)
- {
- PageSetupUI.HiddenRefresh();
- }
- // Token: 0x060011E8 RID: 4584 RVA: 0x0000AC5F File Offset: 0x00008E5F
- public void UiHiddenSetupUi(bool Value)
- {
- PageSetupUI.HiddenRefresh();
- }
- // Token: 0x060011E9 RID: 4585 RVA: 0x0000AC5F File Offset: 0x00008E5F
- public void UiHiddenSetupLink(bool Value)
- {
- PageSetupUI.HiddenRefresh();
- }
- // Token: 0x060011EA RID: 4586 RVA: 0x0000AC5F File Offset: 0x00008E5F
- public void UiHiddenSetupSystem(bool Value)
- {
- PageSetupUI.HiddenRefresh();
- }
- // Token: 0x060011EB RID: 4587 RVA: 0x0000AC5F File Offset: 0x00008E5F
- public void UiHiddenOtherHelp(bool Value)
- {
- PageSetupUI.HiddenRefresh();
- }
- // Token: 0x060011EC RID: 4588 RVA: 0x0000AC5F File Offset: 0x00008E5F
- public void UiHiddenOtherFeedback(bool Value)
- {
- PageSetupUI.HiddenRefresh();
- }
- // Token: 0x060011ED RID: 4589 RVA: 0x0000AC5F File Offset: 0x00008E5F
- public void UiHiddenOtherVote(bool Value)
- {
- PageSetupUI.HiddenRefresh();
- }
- // Token: 0x060011EE RID: 4590 RVA: 0x0000AC5F File Offset: 0x00008E5F
- public void UiHiddenOtherAbout(bool Value)
- {
- PageSetupUI.HiddenRefresh();
- }
- // Token: 0x060011EF RID: 4591 RVA: 0x0000AC5F File Offset: 0x00008E5F
- public void UiHiddenOtherTest(bool Value)
- {
- PageSetupUI.HiddenRefresh();
- }
- // Token: 0x060011F0 RID: 4592 RVA: 0x0000AC66 File Offset: 0x00008E66
- public void SystemDebugMode(bool Value)
- {
- ModBase._TokenRepository = Value;
- }
- // Token: 0x060011F1 RID: 4593 RVA: 0x00080E2C File Offset: 0x0007F02C
- public void SystemDebugAnim(int Value)
- {
- ModAnimation.m_Task = ((Value >= 30) ? 200.0 : ModBase.MathClamp((double)Value * 0.1 + 0.1, 0.1, 3.0));
- }
- // Token: 0x060011F2 RID: 4594 RVA: 0x0000AC6E File Offset: 0x00008E6E
- public void VersionRamType(int Type)
- {
- if (ModMain.composerRepository != null)
- {
- ModMain.composerRepository.RamType(Type);
- }
- }
- // Token: 0x060011F3 RID: 4595 RVA: 0x00080E7C File Offset: 0x0007F07C
- public void VersionServerLogin(int Type)
- {
- if (ModMain.composerRepository != null)
- {
- ModBase.WriteIni(ModMinecraft.m_ProxyTests + "PCL.ini", "VersionCache", "");
- if (PageVersionLeft._InstanceConfig != null)
- {
- PageVersionLeft._InstanceConfig = new ModMinecraft.McVersion(PageVersionLeft._InstanceConfig.Name).Load();
- ModLoader.LoaderFolderRun(ModMinecraft._ListenerTests, ModMinecraft.m_ProxyTests, ModLoader.LoaderFolderRunType.ForceRun, 1, "versions\\", false);
- }
- }
- }
- // Token: 0x04000937 RID: 2359
- private readonly Dictionary<string, ModSetup.SetupEntry> m_ValThread;
- // Token: 0x020001AE RID: 430
- private enum SetupSource
- {
- // Token: 0x04000939 RID: 2361
- Normal,
- // Token: 0x0400093A RID: 2362
- Registry,
- // Token: 0x0400093B RID: 2363
- Version
- }
- // Token: 0x020001AF RID: 431
- private class SetupEntry
- {
- // Token: 0x060011F5 RID: 4597 RVA: 0x00080EE8 File Offset: 0x0007F0E8
- public SetupEntry(object Value, object Source = 0, object Encoded = false)
- {
- this.databaseMap = 0;
- try
- {
- this.m_TokenizerMap = RuntimeHelpers.GetObjectValue(Value);
- this._MappingMap = Conversions.ToBoolean(Encoded);
- this.Value = RuntimeHelpers.GetObjectValue(Value);
- this.Source = (ModSetup.SetupSource)Conversions.ToInteger(Source);
- this.Type = (Value ?? new object()).GetType();
- this.filterMap = RuntimeHelpers.GetObjectValue(Conversions.ToBoolean(Encoded) ? ModSecret.SecretEncrypt(Conversions.ToString(Value), "PCL" + ModBase._TagRepository) : Value);
- }
- catch (Exception ex)
- {
- ModBase.Log(ex, "初始化 SetupEntry 失败", ModBase.LogLevel.Feedback, "出现错误");
- }
- }
- // Token: 0x0400093C RID: 2364
- public bool _MappingMap;
- // Token: 0x0400093D RID: 2365
- public object m_TokenizerMap;
- // Token: 0x0400093E RID: 2366
- public object filterMap;
- // Token: 0x0400093F RID: 2367
- public object Value;
- // Token: 0x04000940 RID: 2368
- public ModSetup.SetupSource Source;
- // Token: 0x04000941 RID: 2369
- public byte databaseMap;
- // Token: 0x04000942 RID: 2370
- public Type Type;
- }
- }
- }
|