MultipleMaids.Update.cs 401 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.IO;
  5. using System.Linq;
  6. using System.Text;
  7. using ExIni;
  8. using UnityEngine;
  9. using UnityEngine.Rendering;
  10. using Object = UnityEngine.Object;
  11. namespace CM3D2.MultipleMaids.Plugin
  12. {
  13. public partial class MultipleMaids
  14. {
  15. public void Update()
  16. {
  17. if (!isInit)
  18. return;
  19. if (allowUpdate)
  20. {
  21. this.MaidUpdate();
  22. if (isFadeOut)
  23. {
  24. bool flag = false;
  25. for (int index = 0; index < maxMaidCnt; ++index)
  26. {
  27. if ((bool)((UnityEngine.Object)maidArray[index]) && maidArray[index].Visible && maidArray[index].IsAllProcPropBusy)
  28. flag = true;
  29. }
  30. if (!flag)
  31. {
  32. if (!isBusyInit)
  33. {
  34. isBusyInit = true;
  35. }
  36. else
  37. {
  38. for (int index1 = 0; index1 < maxMaidCnt; ++index1)
  39. {
  40. if (!isLock[index1] && (UnityEngine.Object)maidArray[index1] != (UnityEngine.Object)null)
  41. {
  42. maidArray[index1].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
  43. maidArray[index1].SetAutoTwistAll(true);
  44. }
  45. poseCount[index1] = 30;
  46. if ((bool)((UnityEngine.Object)maidArray[index1]) && maidArray[index1].Visible)
  47. {
  48. maidArray[index1].body0.BoneHitHeightY = -10f;
  49. if (selectList.Count > index1 && goSlot[(int)selectList[index1]] == null)
  50. {
  51. maidArray[index1].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
  52. maidArray[index1].SetAutoTwistAll(true);
  53. goSlot[(int)selectList[index1]] = new List<TBodySkin>((IEnumerable<TBodySkin>)maidArray[index1].body0.goSlot);
  54. bodyHit[(int)selectList[index1]] = new List<TBodyHit>();
  55. for (int index2 = 0; index2 < goSlot[(int)selectList[index1]].Count; ++index2)
  56. {
  57. TBodyHit tbodyHit = new TBodyHit();
  58. TBodyHit bodyhit = maidArray[index1].body0.goSlot[index2].bonehair.bodyhit;
  59. if (bodyhit != null)
  60. {
  61. tbodyHit.spherelist = new List<THitSphere>((IEnumerable<THitSphere>)bodyhit.spherelist);
  62. tbodyHit.m_listHandHitL = new List<THitSphere>((IEnumerable<THitSphere>)bodyhit.m_listHandHitL);
  63. tbodyHit.m_listHandHitR = new List<THitSphere>((IEnumerable<THitSphere>)bodyhit.m_listHandHitR);
  64. tbodyHit.RotOffset = bodyhit.RotOffset;
  65. tbodyHit.tRoot = bodyhit.tRoot;
  66. tbodyHit.skrt_R1 = bodyhit.skrt_R1;
  67. tbodyHit.skrt_R2 = bodyhit.skrt_R2;
  68. tbodyHit.skrt_R3 = bodyhit.skrt_R3;
  69. tbodyHit.skrt_L1 = bodyhit.skrt_L1;
  70. tbodyHit.skrt_L2 = bodyhit.skrt_L2;
  71. tbodyHit.skrt_L3 = bodyhit.skrt_L3;
  72. tbodyHit.MOMO_FUTO = bodyhit.MOMO_FUTO;
  73. tbodyHit.HARA_FUTO = bodyhit.HARA_FUTO;
  74. tbodyHit.KOSHI_SCL = bodyhit.KOSHI_SCL;
  75. tbodyHit.KOSHI_SVAL = bodyhit.KOSHI_SVAL;
  76. tbodyHit.BodySkinTAG = bodyhit.BodySkinTAG;
  77. tbodyHit.SkirtFT = bodyhit.SkirtFT;
  78. tbodyHit.MST = bodyhit.MST;
  79. tbodyHit.MST_v = bodyhit.MST_v;
  80. }
  81. bodyHit[(int)selectList[index1]].Add(tbodyHit);
  82. }
  83. if (!isVR)
  84. {
  85. try
  86. {
  87. shodaiFlg[(int)selectList[index1]] = false;
  88. TMorph morph = maidArray[index1].body0.Face.morph;
  89. float num = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValues")[(int)morph.hash[(object)"tangopen"]];
  90. }
  91. catch
  92. {
  93. shodaiFlg[(int)selectList[index1]] = true;
  94. }
  95. if (!isVR)
  96. {
  97. eyeL[(int)selectList[index1]] = maidArray[index1].body0.quaDefEyeL.eulerAngles;
  98. eyeR[(int)selectList[index1]] = maidArray[index1].body0.quaDefEyeR.eulerAngles;
  99. }
  100. }
  101. if (isKamiyure)
  102. {
  103. for (int index2 = 0; index2 < maidArray[index1].body0.goSlot.Count; ++index2)
  104. {
  105. if (index2 >= 3 && index2 <= 6 && (UnityEngine.Object)maidArray[index1].body0.goSlot[index2].obj != (UnityEngine.Object)null)
  106. {
  107. DynamicBone component = maidArray[index1].body0.goSlot[index2].obj.GetComponent<DynamicBone>();
  108. if ((UnityEngine.Object)component != (UnityEngine.Object)null)
  109. {
  110. component.m_Damping = kamiyure2;
  111. component.m_Elasticity = kamiyure3;
  112. if (index2 == 5)
  113. component.m_Elasticity = kamiyure3 / 20f;
  114. component.m_Radius = kamiyure4;
  115. component.UpdateParameters();
  116. }
  117. }
  118. }
  119. }
  120. }
  121. }
  122. }
  123. isBusyInit = false;
  124. GameMain.Instance.MainCamera.FadeIn(1f, false, (CameraMain.dgOnCompleteFade)null, true, true, new Color());
  125. isFadeOut = false;
  126. bGui = true;
  127. }
  128. }
  129. }
  130. }
  131. if (isVR && isVRScroll && (!this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Ctrl) && !this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Alt) && (!Input.GetKey(KeyCode.Space) && !Input.GetKey(KeyCode.Z)) && (!Input.GetKey(KeyCode.X) && !Input.GetKey(KeyCode.W) && (!Input.GetKey(KeyCode.Q) && !Input.GetKey(KeyCode.R))) && (!Input.GetKey(KeyCode.E) && !Input.GetKey(KeyCode.Y) && (!Input.GetKey(KeyCode.V) && !Input.GetKey(KeyCode.C)) && !Input.GetKey(KeyCode.D)) && !Input.GetKey(KeyCode.S)))
  132. {
  133. Vector3 maid = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<OvrCamera, Vector3>(GameMain.Instance.OvrMgr.OvrCamera, "v") + UTY.GetChildObject(mainCamera.gameObject, "TrackingSpace/CenterEyeAnchor", false).transform.rotation * Vector3.forward * (Input.GetAxis("Mouse ScrollWheel") * (float)(5.0 * (double)Time.deltaTime * 2.0 * 5.0));
  134. CM3D2.MultipleMaids.Plugin.MultipleMaids.SetFieldValue3<OvrCamera, Vector3>(GameMain.Instance.OvrMgr.OvrCamera, "v", maid);
  135. Transform fieldValue = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<OvrCamera, Transform>(GameMain.Instance.OvrMgr.OvrCamera, "m_trBaseHead");
  136. fieldValue.position = maid;
  137. CM3D2.MultipleMaids.Plugin.MultipleMaids.SetFieldValue4<OvrCamera, Transform>(GameMain.Instance.OvrMgr.OvrCamera, "m_trBaseHead", fieldValue);
  138. }
  139. if (isMekure1a || isMekure2a || isZurasia)
  140. {
  141. mekureCount = 10;
  142. for (int index = 0; index < maidCnt; ++index)
  143. {
  144. if ((bool)((UnityEngine.Object)maidArray[index]) && maidArray[index].Visible)
  145. {
  146. if (isMekure1a)
  147. {
  148. if (isMekure1)
  149. {
  150. maidArray[index].ItemChangeTemp("skirt", "めくれスカート");
  151. maidArray[index].ItemChangeTemp("onepiece", "めくれスカート");
  152. }
  153. else
  154. {
  155. this.ResetProp(maidArray[index], MPN.skirt);
  156. this.ResetProp(maidArray[index], MPN.onepiece);
  157. }
  158. maidArray[index].AllProcPropSeqStart();
  159. }
  160. if (isMekure2a)
  161. {
  162. if (isMekure2)
  163. {
  164. maidArray[index].ItemChangeTemp("skirt", "めくれスカート後ろ");
  165. maidArray[index].ItemChangeTemp("onepiece", "めくれスカート後ろ");
  166. }
  167. else
  168. {
  169. this.ResetProp(maidArray[index], MPN.skirt);
  170. this.ResetProp(maidArray[index], MPN.onepiece);
  171. }
  172. maidArray[index].AllProcPropSeqStart();
  173. }
  174. if (isZurasia)
  175. {
  176. if (isZurasi)
  177. {
  178. maidArray[index].ItemChangeTemp("panz", "パンツずらし");
  179. maidArray[index].ItemChangeTemp("mizugi", "パンツずらし");
  180. }
  181. else
  182. {
  183. this.ResetProp(maidArray[index], MPN.panz);
  184. this.ResetProp(maidArray[index], MPN.mizugi);
  185. }
  186. maidArray[index].AllProcPropSeqStart();
  187. }
  188. }
  189. }
  190. isMekure1a = false;
  191. isMekure2a = false;
  192. isZurasia = false;
  193. }
  194. if (mekureCount > 0)
  195. {
  196. --mekureCount;
  197. for (int index1 = 0; index1 < maidCnt; ++index1)
  198. {
  199. if ((bool)((UnityEngine.Object)maidArray[index1]) && maidArray[index1].Visible && goSlot[(int)selectList[index1]] != null)
  200. {
  201. maidArray[index1].body0.goSlot = new List<TBodySkin>((IEnumerable<TBodySkin>)goSlot[(int)selectList[index1]]);
  202. for (int index2 = 0; index2 < bodyHit[(int)selectList[index1]].Count; ++index2)
  203. maidArray[index1].body0.goSlot[index2].bonehair.bodyhit = bodyHit[(int)selectList[index1]][index2];
  204. }
  205. }
  206. }
  207. if (isKamiyure)
  208. {
  209. int num = maidCnt;
  210. if (num == 0)
  211. num = 3;
  212. for (int index1 = 0; index1 < num; ++index1)
  213. {
  214. if ((bool)((UnityEngine.Object)maidArray[index1]) && maidArray[index1].Visible)
  215. {
  216. Maid maid = maidArray[index1];
  217. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  218. {
  219. if (index2 >= 3 && index2 <= 6 && (UnityEngine.Object)maid.body0.goSlot[index2].obj != (UnityEngine.Object)null)
  220. {
  221. DynamicBone component = maid.body0.goSlot[index2].obj.GetComponent<DynamicBone>();
  222. if ((UnityEngine.Object)component != (UnityEngine.Object)null && ((double)component.m_Damping != (double)kamiyure2 || (double)component.m_Elasticity != (double)kamiyure3 || (double)component.m_Radius != (double)kamiyure4) && (index2 != 5 || ((double)component.m_Damping != (double)kamiyure2 || (double)component.m_Elasticity != (double)kamiyure3 / 20.0 || (double)component.m_Radius != (double)kamiyure4)))
  223. {
  224. component.m_Damping = kamiyure2;
  225. component.m_Elasticity = kamiyure3;
  226. if (index2 == 5)
  227. component.m_Elasticity = kamiyure3 / 20f;
  228. component.m_Radius = kamiyure4;
  229. component.UpdateParameters();
  230. }
  231. }
  232. }
  233. }
  234. }
  235. }
  236. if (isSkirtyure)
  237. {
  238. int num = maidCnt;
  239. if (num == 0)
  240. num = 3;
  241. for (int index1 = 0; index1 < num; ++index1)
  242. {
  243. if ((bool)((UnityEngine.Object)maidArray[index1]) && maidArray[index1].Visible)
  244. {
  245. for (int index2 = 0; index2 < maidArray[index1].body0.goSlot.Count; ++index2)
  246. {
  247. if ((UnityEngine.Object)maidArray[index1].body0.goSlot[index2].obj != (UnityEngine.Object)null)
  248. {
  249. DynamicSkirtBone fieldValue = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<BoneHair3, DynamicSkirtBone>(maidArray[index1].body0.goSlot[index2].bonehair3, "m_SkirtBone");
  250. if ((UnityEngine.Object)fieldValue != (UnityEngine.Object)null)
  251. {
  252. fieldValue.m_vGravity = new Vector3(0.5f, 0.5f, 0.5f);
  253. if ((double)fieldValue.m_fPanierForce != (double)skirtyure3 || (double)fieldValue.m_fPanierForceDistanceThreshold != (double)skirtyure2 || (double)fieldValue.m_fRegDefaultRadius != (double)skirtyure4)
  254. {
  255. fieldValue.m_fPanierForce = skirtyure3;
  256. fieldValue.m_fPanierForceDistanceThreshold = skirtyure2;
  257. fieldValue.m_fRegDefaultRadius = skirtyure4;
  258. }
  259. }
  260. }
  261. }
  262. }
  263. }
  264. }
  265. if ((!Input.GetKey(KeyCode.KeypadEnter) && Input.GetKeyDown(KeyCode.Keypad1) || (Input.GetKeyDown(KeyCode.Keypad2) || Input.GetKeyDown(KeyCode.Keypad3)) || (Input.GetKeyDown(KeyCode.Keypad4) || Input.GetKeyDown(KeyCode.Keypad5) || (Input.GetKeyDown(KeyCode.Keypad6) || Input.GetKeyDown(KeyCode.Keypad7))) || (Input.GetKeyDown(KeyCode.Keypad8) || Input.GetKeyDown(KeyCode.Keypad9) || (Input.GetKeyDown(KeyCode.Keypad0) || Input.GetKeyDown(KeyCode.KeypadDivide)) || Input.GetKeyDown(KeyCode.KeypadMultiply)) || Input.GetKeyDown(KeyCode.KeypadMinus)) && (Input.GetKey(KeyCode.H) || isVR))
  266. {
  267. if (Input.GetKeyDown(KeyCode.Keypad1))
  268. isWear = !isWear;
  269. if (Input.GetKeyDown(KeyCode.Keypad2))
  270. isSkirt = !isSkirt;
  271. if (Input.GetKeyDown(KeyCode.Keypad3))
  272. isBra = !isBra;
  273. if (Input.GetKeyDown(KeyCode.Keypad4))
  274. isPanz = !isPanz;
  275. if (Input.GetKeyDown(KeyCode.Keypad5))
  276. isHeadset = !isHeadset;
  277. if (Input.GetKeyDown(KeyCode.Keypad6))
  278. isAccUde = !isAccUde;
  279. if (Input.GetKeyDown(KeyCode.Keypad7))
  280. isGlove = !isGlove;
  281. if (Input.GetKeyDown(KeyCode.Keypad8))
  282. isStkg = !isStkg;
  283. if (Input.GetKeyDown(KeyCode.Keypad9))
  284. isShoes = !isShoes;
  285. if (Input.GetKeyDown(KeyCode.Keypad0))
  286. isAccSenaka = !isAccSenaka;
  287. if (Input.GetKeyDown(KeyCode.KeypadDivide))
  288. isMekure1 = !isMekure1;
  289. if (Input.GetKeyDown(KeyCode.KeypadMultiply))
  290. isMekure2 = !isMekure2;
  291. if (Input.GetKeyDown(KeyCode.KeypadMinus))
  292. isZurasi = !isZurasi;
  293. h2Flg = true;
  294. if (sceneLevel != 3 && sceneLevel != 5)
  295. {
  296. maidArray[0] = GameMain.Instance.CharacterMgr.GetMaid(0);
  297. maidArray[1] = GameMain.Instance.CharacterMgr.GetMaid(1);
  298. maidArray[2] = GameMain.Instance.CharacterMgr.GetMaid(2);
  299. maidArray[3] = GameMain.Instance.CharacterMgr.GetMaid(3);
  300. maidCnt = 4;
  301. }
  302. for (int index1 = 0; index1 < maidCnt; ++index1)
  303. {
  304. if ((bool)((UnityEngine.Object)maidArray[index1]) && maidArray[index1].Visible)
  305. {
  306. if (Input.GetKeyDown(KeyCode.KeypadDivide) || Input.GetKeyDown(KeyCode.KeypadMultiply) || Input.GetKeyDown(KeyCode.KeypadMinus))
  307. {
  308. if (sceneLevel == 3 || sceneLevel == 5)
  309. {
  310. if (!isVR && goSlot[(int)selectList[index1]] != null)
  311. {
  312. maidArray[index1].body0.goSlot = new List<TBodySkin>((IEnumerable<TBodySkin>)goSlot[(int)selectList[index1]]);
  313. for (int index2 = 0; index2 < bodyHit[(int)selectList[index1]].Count; ++index2)
  314. maidArray[index1].body0.goSlot[index2].bonehair.bodyhit = bodyHit[(int)selectList[index1]][index2];
  315. }
  316. if (Input.GetKeyDown(KeyCode.KeypadDivide))
  317. isMekure1a = true;
  318. if (Input.GetKeyDown(KeyCode.KeypadMultiply))
  319. isMekure2a = true;
  320. if (Input.GetKeyDown(KeyCode.KeypadMinus))
  321. isZurasia = true;
  322. }
  323. else
  324. {
  325. if (Input.GetKeyDown(KeyCode.KeypadDivide))
  326. {
  327. if (isMekure1)
  328. {
  329. maidArray[index1].ItemChangeTemp("skirt", "めくれスカート");
  330. maidArray[index1].ItemChangeTemp("onepiece", "めくれスカート");
  331. }
  332. else
  333. {
  334. this.ResetProp(maidArray[index1], MPN.skirt);
  335. this.ResetProp(maidArray[index1], MPN.onepiece);
  336. }
  337. maidArray[index1].AllProcPropSeqStart();
  338. }
  339. if (Input.GetKeyDown(KeyCode.KeypadMultiply))
  340. {
  341. if (isMekure2)
  342. {
  343. maidArray[index1].ItemChangeTemp("skirt", "めくれスカート後ろ");
  344. maidArray[index1].ItemChangeTemp("onepiece", "めくれスカート後ろ");
  345. }
  346. else
  347. {
  348. this.ResetProp(maidArray[index1], MPN.skirt);
  349. this.ResetProp(maidArray[index1], MPN.onepiece);
  350. }
  351. maidArray[index1].AllProcPropSeqStart();
  352. }
  353. if (Input.GetKeyDown(KeyCode.KeypadMinus))
  354. {
  355. if (isZurasi)
  356. {
  357. maidArray[index1].ItemChangeTemp("panz", "パンツずらし");
  358. maidArray[index1].ItemChangeTemp("mizugi", "パンツずらし");
  359. }
  360. else
  361. {
  362. this.ResetProp(maidArray[index1], MPN.panz);
  363. this.ResetProp(maidArray[index1], MPN.mizugi);
  364. }
  365. maidArray[index1].AllProcPropSeqStart();
  366. }
  367. }
  368. }
  369. else
  370. {
  371. Hashtable fieldValue = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TBody, Hashtable>(maidArray[index1].body0, "m_hFoceHide");
  372. if (Input.GetKeyDown(KeyCode.Keypad1))
  373. {
  374. fieldValue[(object)TBody.SlotID.wear] = (object)isWear;
  375. fieldValue[(object)TBody.SlotID.onepiece] = (object)isWear;
  376. fieldValue[(object)TBody.SlotID.mizugi] = (object)isWear;
  377. }
  378. if (Input.GetKeyDown(KeyCode.Keypad2))
  379. fieldValue[(object)TBody.SlotID.skirt] = (object)isSkirt;
  380. if (Input.GetKeyDown(KeyCode.Keypad3))
  381. fieldValue[(object)TBody.SlotID.bra] = (object)isBra;
  382. if (Input.GetKeyDown(KeyCode.Keypad4))
  383. fieldValue[(object)TBody.SlotID.panz] = (object)isPanz;
  384. if (Input.GetKeyDown(KeyCode.Keypad5))
  385. {
  386. fieldValue[(object)TBody.SlotID.headset] = (object)isHeadset;
  387. fieldValue[(object)TBody.SlotID.accHat] = (object)isHeadset;
  388. }
  389. if (Input.GetKeyDown(KeyCode.Keypad6))
  390. fieldValue[(object)TBody.SlotID.accUde] = (object)isAccUde;
  391. if (Input.GetKeyDown(KeyCode.Keypad7))
  392. fieldValue[(object)TBody.SlotID.glove] = (object)isGlove;
  393. if (Input.GetKeyDown(KeyCode.Keypad8))
  394. fieldValue[(object)TBody.SlotID.stkg] = (object)isStkg;
  395. if (Input.GetKeyDown(KeyCode.Keypad9))
  396. fieldValue[(object)TBody.SlotID.shoes] = (object)isShoes;
  397. if (Input.GetKeyDown(KeyCode.Keypad0))
  398. fieldValue[(object)TBody.SlotID.accSenaka] = (object)isAccSenaka;
  399. CM3D2.MultipleMaids.Plugin.MultipleMaids.SetFieldValue6<TBody, Hashtable>(maidArray[index1].body0, "m_hFoceHide", fieldValue);
  400. maidArray[index1].body0.FixMaskFlag();
  401. maidArray[index1].body0.FixVisibleFlag(false);
  402. }
  403. }
  404. }
  405. }
  406. Vector3 vector3_1;
  407. Quaternion rotation;
  408. if (!yotogiFlg && (sceneLevel == 14 || sceneLevel == 24))
  409. {
  410. Maid maid = maidArray[0];
  411. Vector3 vector3_2 = mainCameraTransform.TransformDirection(Vector3.forward);
  412. Vector3 vector3_3 = mainCameraTransform.TransformDirection(Vector3.right);
  413. vector3_1 = mainCameraTransform.TransformDirection(Vector3.up);
  414. if (Input.GetKeyDown(KeyCode.LeftBracket) || Input.GetKeyDown(KeyCode.BackQuote) && this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Alt))
  415. {
  416. for (int index = 0; index < 10; ++index)
  417. {
  418. Transform transform1 = maid.transform;
  419. Vector3 position1 = maid.transform.position;
  420. Vector3 right = Vector3.right;
  421. rotation = maid.transform.rotation;
  422. double num1 = -(double)rotation.eulerAngles.x;
  423. transform1.RotateAround(position1, right, (float)num1);
  424. Transform transform2 = maid.transform;
  425. Vector3 position2 = maid.transform.position;
  426. Vector3 forward = Vector3.forward;
  427. rotation = maid.transform.rotation;
  428. double num2 = -(double)rotation.eulerAngles.z;
  429. transform2.RotateAround(position2, forward, (float)num2);
  430. }
  431. }
  432. else if (Input.GetKey(KeyCode.Minus) && this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Shift) || Input.GetKey(KeyCode.I) && this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Alt))
  433. maid.transform.RotateAround(maid.transform.position, new Vector3(vector3_3.x, 0.0f, vector3_3.z), 0.4f);
  434. else if (Input.GetKey(KeyCode.Quote) && this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Shift) || Input.GetKey(KeyCode.K) && this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Alt))
  435. maid.transform.RotateAround(maid.transform.position, new Vector3(vector3_3.x, 0.0f, vector3_3.z), -0.4f);
  436. else if (Input.GetKey(KeyCode.Minus) || Input.GetKey(KeyCode.J) && this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Alt))
  437. maid.transform.RotateAround(maid.transform.position, new Vector3(vector3_2.x, 0.0f, vector3_2.z), 0.4f);
  438. else if (Input.GetKey(KeyCode.Quote) || Input.GetKey(KeyCode.L) && this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Alt))
  439. maid.transform.RotateAround(maid.transform.position, new Vector3(vector3_2.x, 0.0f, vector3_2.z), -0.4f);
  440. if (Input.GetKeyUp(KeyCode.H) && !hFlg)
  441. {
  442. if (h2Flg)
  443. {
  444. h2Flg = false;
  445. }
  446. else
  447. {
  448. if (isVR)
  449. isF6 = true;
  450. if (!(bool)((UnityEngine.Object)maidArray[0]))
  451. maidArray[0] = GameMain.Instance.CharacterMgr.GetMaid(0);
  452. string str = "";
  453. if (wearIndex == 0)
  454. {
  455. str = "Underwear";
  456. wearIndex = 1;
  457. isWear = false;
  458. isSkirt = false;
  459. isBra = true;
  460. isPanz = true;
  461. isHeadset = false;
  462. isGlove = false;
  463. isStkg = true;
  464. isShoes = false;
  465. }
  466. else if (wearIndex == 1)
  467. {
  468. str = "Nude";
  469. wearIndex = 2;
  470. isWear = false;
  471. isSkirt = false;
  472. isBra = false;
  473. isPanz = false;
  474. isHeadset = false;
  475. isGlove = false;
  476. isStkg = false;
  477. isShoes = false;
  478. }
  479. else if (wearIndex == 2)
  480. {
  481. str = "None";
  482. wearIndex = 0;
  483. isWear = true;
  484. isSkirt = true;
  485. isBra = true;
  486. isPanz = true;
  487. isHeadset = true;
  488. isGlove = true;
  489. isStkg = true;
  490. isShoes = true;
  491. }
  492. TBody.MaskMode f_eMode = (TBody.MaskMode)Enum.Parse(typeof(TBody.MaskMode), str);
  493. for (int index1 = 0; index1 < maidCnt; ++index1)
  494. {
  495. if ((bool)((UnityEngine.Object)maidArray[index1]) && maidArray[index1].Visible)
  496. {
  497. if (!isVR && goSlot[(int)selectList[index1]] != null)
  498. {
  499. maidArray[index1].body0.goSlot = new List<TBodySkin>((IEnumerable<TBodySkin>)goSlot[(int)selectList[index1]]);
  500. for (int index2 = 0; index2 < bodyHit[(int)selectList[index1]].Count; ++index2)
  501. maidArray[index1].body0.goSlot[index2].bonehair.bodyhit = bodyHit[(int)selectList[index1]][index2];
  502. }
  503. maidArray[index1].body0.SetMaskMode(f_eMode);
  504. }
  505. }
  506. }
  507. }
  508. }
  509. if (isVR)
  510. {
  511. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha1))
  512. {
  513. string bgName = GameMain.Instance.BgMgr.GetBGName();
  514. int num = 0;
  515. foreach (string bg in bgArray)
  516. {
  517. if (bg == bgName)
  518. {
  519. bgIndex = num;
  520. bgIndex6 = num;
  521. break;
  522. }
  523. ++num;
  524. }
  525. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  526. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  527. lightX6 = lightX[0];
  528. lightY6 = lightY[0];
  529. loadScene = 10000;
  530. kankyoLoadFlg = true;
  531. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  532. }
  533. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha2))
  534. {
  535. string bgName = GameMain.Instance.BgMgr.GetBGName();
  536. int num = 0;
  537. foreach (string bg in bgArray)
  538. {
  539. if (bg == bgName)
  540. {
  541. bgIndex = num;
  542. bgIndex6 = num;
  543. break;
  544. }
  545. ++num;
  546. }
  547. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  548. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  549. lightX6 = lightX[0];
  550. lightY6 = lightY[0];
  551. loadScene = 10001;
  552. kankyoLoadFlg = true;
  553. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  554. }
  555. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha3))
  556. {
  557. string bgName = GameMain.Instance.BgMgr.GetBGName();
  558. int num = 0;
  559. foreach (string bg in bgArray)
  560. {
  561. if (bg == bgName)
  562. {
  563. bgIndex = num;
  564. bgIndex6 = num;
  565. break;
  566. }
  567. ++num;
  568. }
  569. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  570. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  571. lightX6 = lightX[0];
  572. lightY6 = lightY[0];
  573. loadScene = 10002;
  574. kankyoLoadFlg = true;
  575. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  576. }
  577. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha4))
  578. {
  579. string bgName = GameMain.Instance.BgMgr.GetBGName();
  580. int num = 0;
  581. foreach (string bg in bgArray)
  582. {
  583. if (bg == bgName)
  584. {
  585. bgIndex = num;
  586. bgIndex6 = num;
  587. break;
  588. }
  589. ++num;
  590. }
  591. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  592. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  593. lightX6 = lightX[0];
  594. lightY6 = lightY[0];
  595. loadScene = 10003;
  596. kankyoLoadFlg = true;
  597. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  598. }
  599. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha5))
  600. {
  601. string bgName = GameMain.Instance.BgMgr.GetBGName();
  602. int num = 0;
  603. foreach (string bg in bgArray)
  604. {
  605. if (bg == bgName)
  606. {
  607. bgIndex = num;
  608. bgIndex6 = num;
  609. break;
  610. }
  611. ++num;
  612. }
  613. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  614. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  615. lightX6 = lightX[0];
  616. lightY6 = lightY[0];
  617. loadScene = 10004;
  618. kankyoLoadFlg = true;
  619. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  620. }
  621. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha6))
  622. {
  623. string bgName = GameMain.Instance.BgMgr.GetBGName();
  624. int num = 0;
  625. foreach (string bg in bgArray)
  626. {
  627. if (bg == bgName)
  628. {
  629. bgIndex = num;
  630. bgIndex6 = num;
  631. break;
  632. }
  633. ++num;
  634. }
  635. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  636. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  637. lightX6 = lightX[0];
  638. lightY6 = lightY[0];
  639. loadScene = 10005;
  640. kankyoLoadFlg = true;
  641. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  642. }
  643. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha7))
  644. {
  645. string bgName = GameMain.Instance.BgMgr.GetBGName();
  646. int num = 0;
  647. foreach (string bg in bgArray)
  648. {
  649. if (bg == bgName)
  650. {
  651. bgIndex = num;
  652. bgIndex6 = num;
  653. break;
  654. }
  655. ++num;
  656. }
  657. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  658. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  659. lightX6 = lightX[0];
  660. lightY6 = lightY[0];
  661. loadScene = 10006;
  662. kankyoLoadFlg = true;
  663. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  664. }
  665. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha8))
  666. {
  667. string bgName = GameMain.Instance.BgMgr.GetBGName();
  668. int num = 0;
  669. foreach (string bg in bgArray)
  670. {
  671. if (bg == bgName)
  672. {
  673. bgIndex = num;
  674. bgIndex6 = num;
  675. break;
  676. }
  677. ++num;
  678. }
  679. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  680. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  681. lightX6 = lightX[0];
  682. lightY6 = lightY[0];
  683. loadScene = 10007;
  684. kankyoLoadFlg = true;
  685. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  686. }
  687. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha9))
  688. {
  689. string bgName = GameMain.Instance.BgMgr.GetBGName();
  690. int num = 0;
  691. foreach (string bg in bgArray)
  692. {
  693. if (bg == bgName)
  694. {
  695. bgIndex = num;
  696. bgIndex6 = num;
  697. break;
  698. }
  699. ++num;
  700. }
  701. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  702. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  703. lightX6 = lightX[0];
  704. lightY6 = lightY[0];
  705. loadScene = 10008;
  706. kankyoLoadFlg = true;
  707. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  708. }
  709. if (Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.Alpha0))
  710. {
  711. string bgName = GameMain.Instance.BgMgr.GetBGName();
  712. int num = 0;
  713. foreach (string bg in bgArray)
  714. {
  715. if (bg == bgName)
  716. {
  717. bgIndex = num;
  718. bgIndex6 = num;
  719. break;
  720. }
  721. ++num;
  722. }
  723. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  724. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  725. lightX6 = lightX[0];
  726. lightY6 = lightY[0];
  727. loadScene = 10009;
  728. kankyoLoadFlg = true;
  729. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  730. }
  731. }
  732. if (isSavePose4)
  733. {
  734. isSavePose4 = false;
  735. Maid maid = maidArray[selectMaidIndex];
  736. Vector3 localEulerAngles = maid.transform.localEulerAngles;
  737. maid.transform.localEulerAngles = new Vector3(0.0f, 0.0f, 0.0f);
  738. Vector3 position = maid.transform.position;
  739. maid.transform.position = new Vector3(0.0f, 0.0f, 0.0f);
  740. Transform transform = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  741. transform.eulerAngles = bipRotation;
  742. transform.position = bipPosition;
  743. maid.transform.localEulerAngles = localEulerAngles;
  744. maid.transform.position = position;
  745. CacheBoneDataArray cacheBoneDataArray = maid.gameObject.AddComponent<CacheBoneDataArray>();
  746. cacheBoneDataArray.CreateCache(maid.body0.GetBone("Bip01"));
  747. byte[] anmBinary = cacheBoneDataArray.GetAnmBinary(true, true);
  748. string path1 = Path.GetFullPath(".\\") + "Mod\\MultipleMaidsPose\\" + inName3 + ".anm";
  749. for (int index = 0; index < 100 && File.Exists(path1); ++index)
  750. {
  751. inName3 += "_";
  752. path1 = Path.GetFullPath(".\\") + "Mod\\MultipleMaidsPose\\" + inName3 + ".anm";
  753. }
  754. File.WriteAllBytes(path1, anmBinary);
  755. strList2 = new List<string>();
  756. strListE = new List<string>();
  757. strListE2 = new List<string>();
  758. strListS = new List<string>();
  759. strListD = new List<string>();
  760. strS = "";
  761. List<string> stringList1 = new List<string>(350 + poseArray2.Length);
  762. stringList1.AddRange((IEnumerable<string>)poseArray2);
  763. List<string> stringList2 = new List<string>();
  764. for (int index = 11; index < 200; ++index)
  765. {
  766. if (index < 100)
  767. {
  768. using (AFileBase afileBase = GameUty.FileSystem.FileOpen("edit_pose_0" + (object)index + "_f.anm"))
  769. {
  770. if (afileBase.IsValid())
  771. stringList2.Add("edit_pose_0" + (object)index + "_f");
  772. }
  773. }
  774. else
  775. {
  776. using (AFileBase afileBase = GameUty.FileSystem.FileOpen("edit_pose_" + (object)index + "_f.anm"))
  777. {
  778. if (afileBase.IsValid())
  779. stringList2.Add("edit_pose_" + (object)index + "_f");
  780. }
  781. }
  782. }
  783. for (int index1 = 15; index1 < 25; ++index1)
  784. {
  785. for (int index2 = 0; index2 < 2; ++index2)
  786. {
  787. string str = "s";
  788. if (index2 == 1)
  789. str = "w";
  790. for (int index3 = 1; index3 < 20; ++index3)
  791. {
  792. if (index3 < 10)
  793. {
  794. using (AFileBase afileBase = GameUty.FileSystem.FileOpen("edit_pose_dg" + (object)index1 + str + "_00" + (object)index3 + "_f.anm"))
  795. {
  796. if (afileBase.IsValid())
  797. stringList2.Add("edit_pose_dg" + (object)index1 + str + "_00" + (object)index3 + "_f");
  798. }
  799. }
  800. else
  801. {
  802. using (AFileBase afileBase = GameUty.FileSystem.FileOpen("edit_pose_dg" + (object)index1 + str + "_0" + (object)index3 + "_f.anm"))
  803. {
  804. if (afileBase.IsValid())
  805. stringList2.Add("edit_pose_dg" + (object)index1 + str + "_0" + (object)index3 + "_f");
  806. }
  807. }
  808. }
  809. }
  810. }
  811. if (stringList2.Count > 0)
  812. stringList1.AddRange((IEnumerable<string>)stringList2.ToArray());
  813. stringList1.AddRange((IEnumerable<string>)poseArrayVP2);
  814. stringList1.AddRange((IEnumerable<string>)poseArrayFB);
  815. stringList1.AddRange((IEnumerable<string>)poseArray4);
  816. stringList1.AddRange((IEnumerable<string>)poseArray5);
  817. stringList1.AddRange((IEnumerable<string>)poseArray6);
  818. poseArray = stringList1.ToArray();
  819. ((System.Action<string, List<string>>)((path, result_list) =>
  820. {
  821. string[] files = Directory.GetFiles(path);
  822. countS = 0;
  823. for (int index = 0; index < files.Length; ++index)
  824. {
  825. if (Path.GetExtension(files[index]) == ".anm")
  826. {
  827. strListS.Add(files[index].Split('\\')[files[index].Split('\\').Length - 1].Split('.')[0] + "                    /" + files[index]);
  828. ++countS;
  829. }
  830. }
  831. }))(Path.GetFullPath(".\\") + "Mod\\MultipleMaidsPose", new List<string>());
  832. string[] list = GameUty.FileSystem.GetList("motion", AFileSystemBase.ListType.AllFile);
  833. int num1 = 0;
  834. List<string> stringList3 = new List<string>();
  835. foreach (string path2 in list)
  836. {
  837. string withoutExtension = Path.GetFileNameWithoutExtension(path2);
  838. string directoryName = Path.GetDirectoryName(path2);
  839. if (!withoutExtension.StartsWith("maid_motion_") && !withoutExtension.StartsWith("work_00") && (!withoutExtension.EndsWith("_3_") && !withoutExtension.EndsWith("_5_")) && (!withoutExtension.StartsWith("ck_") && !withoutExtension.StartsWith("vr_") && (!withoutExtension.StartsWith("dance_mc") && !withoutExtension.Contains("a01_"))) && (!withoutExtension.StartsWith("j_") && !withoutExtension.StartsWith("k_") && (!withoutExtension.StartsWith("t_") && !withoutExtension.StartsWith("cbl_")) && (!withoutExtension.Contains("b01_") && !withoutExtension.Contains("b02_") && (!withoutExtension.Contains("_kubi_") && !withoutExtension.EndsWith("_m2")))) && (!withoutExtension.EndsWith("_m3") && !withoutExtension.Contains("_m2_once") && (!withoutExtension.Contains("_m3_once") && !withoutExtension.StartsWith("h_")) && (!withoutExtension.StartsWith("event_") && !withoutExtension.StartsWith("man_") && (!withoutExtension.EndsWith("_m") && !withoutExtension.Contains("_m_")))) && !withoutExtension.Contains("_man") && (!(withoutExtension == "dance_cm3d2_001_zoukin") && !(withoutExtension == "dance_cm3d2_001_mop") && (!(withoutExtension == "maid_motion") && !(withoutExtension == "aruki_1_idougo_f")) && (!(withoutExtension == "sleep2") && !(withoutExtension == "stand_akire2") && (!(withoutExtension == "ero_scene_001") && !(withoutExtension == "ero_scenefm_001"))) && (!(withoutExtension == "training_001") && !(withoutExtension == "workff_001") && (!(withoutExtension == "workfm_001") && !(withoutExtension == "dance_cm3d21_005_moe_mset"))) && !(withoutExtension == "hinpyoukai_001")))
  840. {
  841. if (!directoryName.Contains("\\sex\\"))
  842. {
  843. if (!withoutExtension.StartsWith("sex_"))
  844. {
  845. if (withoutExtension.StartsWith("dance_test"))
  846. {
  847. strListD.Add(withoutExtension);
  848. }
  849. else
  850. {
  851. bool flag = false;
  852. foreach (string str1 in strListS)
  853. {
  854. char[] chArray = new char[1] { '/' };
  855. string str2 = str1.Split(chArray)[0].Replace("                    ", "");
  856. if (withoutExtension == str2)
  857. {
  858. flag = true;
  859. break;
  860. }
  861. }
  862. if (!flag)
  863. stringList3.Add(withoutExtension);
  864. }
  865. }
  866. }
  867. else if (!withoutExtension.StartsWith("pose_"))
  868. strListE.Add(withoutExtension);
  869. }
  870. }
  871. foreach (string str in stringList3)
  872. {
  873. bool flag = false;
  874. for (int index = 0; index < poseArray.Length; ++index)
  875. {
  876. if (str == poseArray[index])
  877. flag = true;
  878. }
  879. if (!flag && str.StartsWith("edit_"))
  880. strList2.Add(str);
  881. }
  882. foreach (string str in stringList3)
  883. {
  884. bool flag = false;
  885. for (int index = 0; index < poseArray.Length; ++index)
  886. {
  887. if (str == poseArray[index])
  888. flag = true;
  889. }
  890. if (!flag && str.StartsWith("pose_"))
  891. strList2.Add(str);
  892. }
  893. foreach (string str in stringList3)
  894. {
  895. bool flag = false;
  896. for (int index = 0; index < poseArray.Length; ++index)
  897. {
  898. if (str == poseArray[index])
  899. flag = true;
  900. }
  901. if (!flag && !str.StartsWith("edit_") && !str.StartsWith("pose_"))
  902. strList2.Add(str);
  903. }
  904. foreach (string str in strListE)
  905. {
  906. bool flag = false;
  907. for (int index = 0; index < poseArray.Length; ++index)
  908. {
  909. if (str == poseArray[index])
  910. flag = true;
  911. }
  912. if (!flag)
  913. {
  914. strListE2.Add(str);
  915. ++num1;
  916. }
  917. }
  918. stringList1.AddRange((IEnumerable<string>)strList2.ToArray());
  919. stringList1.AddRange((IEnumerable<string>)strListE2.ToArray());
  920. existPose = false;
  921. poseIniStr = "";
  922. foreach (IniKey key in this.Preferences["pose"].Keys)
  923. {
  924. IniKey iniKey = this.Preferences["pose"][key.Key];
  925. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  926. {
  927. stringList1.AddRange((IEnumerable<string>)new string[1]
  928. {
  929. key.Key
  930. });
  931. existPose = true;
  932. if (poseIniStr == "")
  933. poseIniStr = key.Key;
  934. }
  935. }
  936. stringList1.AddRange((IEnumerable<string>)strListS.ToArray());
  937. poseArray = stringList1.ToArray();
  938. List<string> stringList4 = new List<string>(50 + poseGroupArray2.Length);
  939. stringList4.AddRange((IEnumerable<string>)poseGroupArray2);
  940. stringList4.AddRange((IEnumerable<string>)poseGroupArrayVP);
  941. stringList4.AddRange((IEnumerable<string>)poseGroupArrayFB);
  942. stringList4.AddRange((IEnumerable<string>)poseGroupArray3);
  943. stringList4.Add(poseArray5[0]);
  944. stringList4.Add(poseArray6[0]);
  945. stringList4.Add(strList2[0]);
  946. stringList4.Add(strListE2[0]);
  947. existPose = true;
  948. if (strListS.Count > 0 && poseIniStr == "")
  949. stringList4.Add(strListS[0]);
  950. if (poseIniStr != "")
  951. stringList4.Add(poseIniStr);
  952. poseGroupArray = stringList4.ToArray();
  953. groupList = new ArrayList();
  954. for (int index1 = 0; index1 < poseArray.Length; ++index1)
  955. {
  956. for (int index2 = 0; index2 < poseGroupArray.Length; ++index2)
  957. {
  958. if (poseGroupArray[index2] == poseArray[index1])
  959. {
  960. groupList.Add((object)index1);
  961. if (poseGroupArray[index2] == strList2[0])
  962. sPoseCount = index1;
  963. }
  964. }
  965. }
  966. poseGroupComboList = new GUIContent[poseGroupArray.Length + 1];
  967. poseGroupComboList[0] = new GUIContent("1:通常");
  968. for (int index = 0; index < poseGroupArray.Length; ++index)
  969. {
  970. if (poseGroupArray[index] == "maid_dressroom01")
  971. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":立ち");
  972. if (poseGroupArray[index] == "tennis_kamae_f")
  973. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":中腰");
  974. if (poseGroupArray[index] == "senakanagasi_f")
  975. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":膝をつく");
  976. if (poseGroupArray[index] == "work_hansei")
  977. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":座り");
  978. if (poseGroupArray[index] == "inu_taiki_f")
  979. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":四つん這い");
  980. if (poseGroupArray[index] == "syagami_pose_f")
  981. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":床座り");
  982. if (poseGroupArray[index] == "densyasuwari_taiki_f")
  983. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":椅子座り");
  984. if (poseGroupArray[index] == "work_kaiwa")
  985. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ソファー座り");
  986. if (poseGroupArray[index] == "dance_cm3d2_001_f1,14.14")
  987. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ドキドキ☆Fallin' Love");
  988. if (poseGroupArray[index] == "dance_cm3d_001_f1,39.25")
  989. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":entrance to you");
  990. if (poseGroupArray[index] == "dance_cm3d_002_end_f1,50.71")
  991. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":scarlet leap");
  992. if (poseGroupArray[index] == "dance_cm3d2_002_smt_f,7.76,")
  993. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":stellar my tears");
  994. if (poseGroupArray[index] == "dance_cm3d_003_sp2_f1,90.15")
  995. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":rhythmix to you");
  996. if (poseGroupArray[index] == "dance_cm3d2_003_hs_f1,0.01,")
  997. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":happy!happy!スキャンダル!!");
  998. if (poseGroupArray[index] == "dance_cm3d_004_kano_f1,124.93")
  999. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":Can Know Two Close");
  1000. if (poseGroupArray[index] == "dance_cm3d2_004_sse_f1,0.01")
  1001. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":sweet sweet everyday");
  1002. if (poseGroupArray[index] == "turusi_sex_in_taiki_f")
  1003. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":拘束");
  1004. if (poseGroupArray[index] == "rosyutu_pose01_f")
  1005. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ");
  1006. if (poseGroupArray[index] == "rosyutu_aruki_f_once_,1.37")
  1007. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":歩き");
  1008. if (poseGroupArray[index] == "stand_desk1")
  1009. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":その他");
  1010. if (poseGroupArray[index] == poseArray5[0])
  1011. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ダンスMC");
  1012. if (poseGroupArray[index] == poseArray6[0])
  1013. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ダンス");
  1014. if (index == poseGroupArray.Length - 3)
  1015. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
  1016. if (index == poseGroupArray.Length - 2)
  1017. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
  1018. if (index == poseGroupArray.Length - 1)
  1019. poseGroupComboList[index + 1] = new GUIContent("99:登録ポーズ");
  1020. }
  1021. int index4 = -1;
  1022. for (int index1 = 0; index1 < groupList.Count; ++index1)
  1023. {
  1024. if (poseIndex[selectMaidIndex] < (int)groupList[index1])
  1025. {
  1026. index4 = index1;
  1027. break;
  1028. }
  1029. }
  1030. int length = (int)groupList[0];
  1031. int num2 = 0;
  1032. if (index4 > 0)
  1033. {
  1034. length = (int)groupList[index4] - (int)groupList[index4 - 1];
  1035. num2 = (int)groupList[index4 - 1];
  1036. }
  1037. if (index4 < 0)
  1038. {
  1039. index4 = groupList.Count;
  1040. length = poseArray.Length - (int)groupList[index4 - 1];
  1041. num2 = (int)groupList[index4 - 1];
  1042. }
  1043. poseComboList = new GUIContent[length];
  1044. int index5 = 0;
  1045. for (int index1 = num2; index1 < num2 + length; ++index1)
  1046. {
  1047. bool flag = false;
  1048. foreach (IniKey key in this.Preferences["pose"].Keys)
  1049. {
  1050. if (poseArray[index1] == key.Key)
  1051. {
  1052. IniKey iniKey = this.Preferences["pose"][key.Key];
  1053. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  1054. {
  1055. poseComboList[index5] = new GUIContent((index5 + 1).ToString() + ":" + iniKey.Value.Split('_')[0] + "                    " + key.Key);
  1056. flag = true;
  1057. }
  1058. }
  1059. }
  1060. if (!flag)
  1061. poseComboList[index5] = new GUIContent((index5 + 1).ToString() + ":" + poseArray[index1]);
  1062. ++index5;
  1063. }
  1064. poseGroupCombo.selectedItemIndex = index4;
  1065. poseGroupIndex = index4;
  1066. poseCombo.selectedItemIndex = 0;
  1067. for (int group = (int)groupList[groupList.Count - 1]; group < poseArray.Length; ++group)
  1068. {
  1069. if (poseArray[group].Split('/')[0].Replace("                    ", "") == inName3)
  1070. {
  1071. poseIndex[selectMaidIndex] = group;
  1072. string path2 = poseArray[group].Split('/')[1];
  1073. byte[] numArray = new byte[0];
  1074. try
  1075. {
  1076. using (FileStream fileStream = new FileStream(path2, FileMode.Open, FileAccess.Read))
  1077. {
  1078. numArray = new byte[fileStream.Length];
  1079. fileStream.Read(numArray, 0, numArray.Length);
  1080. }
  1081. }
  1082. catch
  1083. {
  1084. }
  1085. if (0 < numArray.Length)
  1086. {
  1087. long hashCode = (long)Path.GetFileName(path2).GetHashCode();
  1088. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  1089. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  1090. {
  1091. Maid.AutoTwist.ShoulderL,
  1092. Maid.AutoTwist.ShoulderR,
  1093. Maid.AutoTwist.WristL,
  1094. Maid.AutoTwist.WristR,
  1095. Maid.AutoTwist.ThighL,
  1096. Maid.AutoTwist.ThighR
  1097. };
  1098. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  1099. maid.SetAutoTwist(f_eType, true);
  1100. break;
  1101. }
  1102. break;
  1103. }
  1104. }
  1105. isLock[selectMaidIndex] = false;
  1106. inName3 = "";
  1107. isSavePose = false;
  1108. }
  1109. if (isSavePose3)
  1110. {
  1111. Maid maid = maidArray[selectMaidIndex];
  1112. isSavePose3 = false;
  1113. isSavePose4 = true;
  1114. Transform transform = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  1115. transform.eulerAngles = bipRotation;
  1116. transform.position = bipPosition;
  1117. }
  1118. if (isSavePose2)
  1119. {
  1120. Maid maid = maidArray[selectMaidIndex];
  1121. isSavePose2 = false;
  1122. isSavePose3 = true;
  1123. Transform transform = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  1124. transform.eulerAngles = bipRotation;
  1125. transform.position = bipPosition;
  1126. }
  1127. if (isSavePose)
  1128. {
  1129. Maid maid = maidArray[selectMaidIndex];
  1130. Transform transform = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  1131. bipPosition = new Vector3(transform.position.x - maid.transform.position.x, transform.position.y, transform.position.z - maid.transform.position.z);
  1132. bipRotation = transform.eulerAngles;
  1133. maid.transform.localEulerAngles = new Vector3(0.0f, 0.0f, 0.0f);
  1134. maid.transform.position = new Vector3(maid.transform.position.x, 0.0f, maid.transform.position.z);
  1135. isSavePose = false;
  1136. isSavePose2 = true;
  1137. isStop[selectMaidIndex] = true;
  1138. }
  1139. if (saveScene > 0)
  1140. {
  1141. string str1 = "";
  1142. string str2 = "";
  1143. DateTime now = DateTime.Now;
  1144. string str3 = now.Year.ToString() + "/" + now.Month.ToString("00") + "/" + now.Day.ToString("00") + " " + now.Hour.ToString("00") + ":" + now.Minute.ToString("00");
  1145. if (saveScene < 9999)
  1146. {
  1147. date[saveScene - 1 - page * 10] = str3;
  1148. ninzu[saveScene - 1 - page * 10] = maidCnt.ToString() + "人";
  1149. }
  1150. string[] strArray1 = new string[7]
  1151. {
  1152. str2 + str3 + "," + (object) maidCnt + "," + bgArray[bgIndex].Replace("_", " ") + ",",
  1153. bg.localEulerAngles.x.ToString("0.###"),
  1154. ",",
  1155. null,
  1156. null,
  1157. null,
  1158. null
  1159. };
  1160. string[] strArray2 = strArray1;
  1161. int index1 = 3;
  1162. float num = bg.localEulerAngles.y;
  1163. string str4 = num.ToString("0.###");
  1164. strArray2[index1] = str4;
  1165. strArray1[4] = ",";
  1166. string[] strArray3 = strArray1;
  1167. int index2 = 5;
  1168. num = bg.localEulerAngles.z;
  1169. string str5 = num.ToString("0.###");
  1170. strArray3[index2] = str5;
  1171. strArray1[6] = ",";
  1172. string str6 = string.Concat(strArray1);
  1173. string[] strArray4 = new string[7];
  1174. strArray4[0] = str6;
  1175. string[] strArray5 = strArray4;
  1176. int index3 = 1;
  1177. num = bg.position.x;
  1178. string str7 = num.ToString("0.###");
  1179. strArray5[index3] = str7;
  1180. strArray4[2] = ",";
  1181. string[] strArray6 = strArray4;
  1182. int index4 = 3;
  1183. num = bg.position.y;
  1184. string str8 = num.ToString("0.###");
  1185. strArray6[index4] = str8;
  1186. strArray4[4] = ",";
  1187. string[] strArray7 = strArray4;
  1188. int index5 = 5;
  1189. num = bg.position.z;
  1190. string str9 = num.ToString("0.###");
  1191. strArray7[index5] = str9;
  1192. strArray4[6] = ",";
  1193. string str10 = string.Concat(strArray4);
  1194. string[] strArray8 = new string[7];
  1195. strArray8[0] = str10;
  1196. string[] strArray9 = strArray8;
  1197. int index6 = 1;
  1198. num = bg.localScale.x;
  1199. string str11 = num.ToString("0.###");
  1200. strArray9[index6] = str11;
  1201. strArray8[2] = ",";
  1202. string[] strArray10 = strArray8;
  1203. int index7 = 3;
  1204. num = bg.localScale.y;
  1205. string str12 = num.ToString("0.###");
  1206. strArray10[index7] = str12;
  1207. strArray8[4] = ",";
  1208. string[] strArray11 = strArray8;
  1209. int index8 = 5;
  1210. num = bg.localScale.z;
  1211. string str13 = num.ToString("0.###");
  1212. strArray11[index8] = str13;
  1213. strArray8[6] = ",";
  1214. string str14 = string.Concat(strArray8) + softG.x.ToString("0.###") + "," + softG.y.ToString("0.###") + "," + softG.z.ToString("0.###") + "," + (object)bgmIndex + "," + (object)effectIndex + "," + (object)lightIndex[0] + "," + (object)lightColorR[0] + "," + (object)lightColorG[0] + "," + (object)lightColorB[0] + ",";
  1215. string[] strArray12 = new string[7];
  1216. strArray12[0] = str14;
  1217. string[] strArray13 = strArray12;
  1218. int index9 = 1;
  1219. num = GameMain.Instance.MainLight.transform.eulerAngles.x;
  1220. string str15 = num.ToString("0.###");
  1221. strArray13[index9] = str15;
  1222. strArray12[2] = ",";
  1223. string[] strArray14 = strArray12;
  1224. int index10 = 3;
  1225. num = GameMain.Instance.MainLight.transform.eulerAngles.y;
  1226. string str16 = num.ToString("0.###");
  1227. strArray14[index10] = str16;
  1228. strArray12[4] = ",";
  1229. string[] strArray15 = strArray12;
  1230. int index11 = 5;
  1231. num = GameMain.Instance.MainLight.transform.eulerAngles.z;
  1232. string str17 = num.ToString("0.###");
  1233. strArray15[index11] = str17;
  1234. strArray12[6] = ",";
  1235. string str18 = string.Concat(strArray12) + (object)GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().intensity + "," + (object)GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().spotAngle + "," + (object)GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().range + "," + (object)mainCamera.GetTargetPos().x + "," + (object)mainCamera.GetTargetPos().y + "," + (object)mainCamera.GetTargetPos().z + "," + (object)mainCamera.GetDistance() + ",";
  1236. string[] strArray16 = new string[7];
  1237. strArray16[0] = str18;
  1238. string[] strArray17 = strArray16;
  1239. int index12 = 1;
  1240. num = mainCamera.transform.eulerAngles.x;
  1241. string str19 = num.ToString("0.###");
  1242. strArray17[index12] = str19;
  1243. strArray16[2] = ",";
  1244. string[] strArray18 = strArray16;
  1245. int index13 = 3;
  1246. num = mainCamera.transform.eulerAngles.y;
  1247. string str20 = num.ToString("0.###");
  1248. strArray18[index13] = str20;
  1249. strArray16[4] = ",";
  1250. string[] strArray19 = strArray16;
  1251. int index14 = 5;
  1252. num = mainCamera.transform.eulerAngles.z;
  1253. string str21 = num.ToString("0.###");
  1254. strArray19[index14] = str21;
  1255. strArray16[6] = ",";
  1256. string str22 = string.Concat(strArray16);
  1257. inName = inName.Replace("_", " ").Replace(",", " ");
  1258. inText = inText.Replace("_", " ").Replace(",", " ");
  1259. string str23;
  1260. if (isMessage)
  1261. str23 = str22 + "1," + inName + "," + inText.Replace("\n", "&kaigyo");
  1262. else
  1263. str23 = str22 + "0,,";
  1264. if (doguObject.Count > 0)
  1265. {
  1266. string str24 = str23 + "," + doguArray[doguIndex[doguSelectIndex]].Replace("_", " ") + ",";
  1267. string[] strArray20 = new string[7];
  1268. strArray20[0] = str24;
  1269. string[] strArray21 = strArray20;
  1270. int index15 = 1;
  1271. num = doguObject[doguSelectIndex].transform.localEulerAngles.x;
  1272. string str25 = num.ToString("0.###");
  1273. strArray21[index15] = str25;
  1274. strArray20[2] = ",";
  1275. string[] strArray22 = strArray20;
  1276. int index16 = 3;
  1277. num = doguObject[doguSelectIndex].transform.localEulerAngles.y;
  1278. string str26 = num.ToString("0.###");
  1279. strArray22[index16] = str26;
  1280. strArray20[4] = ",";
  1281. string[] strArray23 = strArray20;
  1282. int index17 = 5;
  1283. num = doguObject[doguSelectIndex].transform.localEulerAngles.z;
  1284. string str27 = num.ToString("0.###");
  1285. strArray23[index17] = str27;
  1286. strArray20[6] = ",";
  1287. string str28 = string.Concat(strArray20);
  1288. string[] strArray24 = new string[7];
  1289. strArray24[0] = str28;
  1290. string[] strArray25 = strArray24;
  1291. int index18 = 1;
  1292. num = doguObject[doguSelectIndex].transform.position.x;
  1293. string str29 = num.ToString("0.###");
  1294. strArray25[index18] = str29;
  1295. strArray24[2] = ",";
  1296. string[] strArray26 = strArray24;
  1297. int index19 = 3;
  1298. num = doguObject[doguSelectIndex].transform.position.y;
  1299. string str30 = num.ToString("0.###");
  1300. strArray26[index19] = str30;
  1301. strArray24[4] = ",";
  1302. string[] strArray27 = strArray24;
  1303. int index20 = 5;
  1304. num = doguObject[doguSelectIndex].transform.position.z;
  1305. string str31 = num.ToString("0.###");
  1306. strArray27[index20] = str31;
  1307. strArray24[6] = ",";
  1308. string str32 = string.Concat(strArray24);
  1309. string[] strArray28 = new string[6];
  1310. strArray28[0] = str32;
  1311. string[] strArray29 = strArray28;
  1312. int index21 = 1;
  1313. num = doguObject[doguSelectIndex].transform.localScale.x;
  1314. string str33 = num.ToString("0.###");
  1315. strArray29[index21] = str33;
  1316. strArray28[2] = ",";
  1317. string[] strArray30 = strArray28;
  1318. int index22 = 3;
  1319. num = doguObject[doguSelectIndex].transform.localScale.y;
  1320. string str34 = num.ToString("0.###");
  1321. strArray30[index22] = str34;
  1322. strArray28[4] = ",";
  1323. string[] strArray31 = strArray28;
  1324. int index23 = 5;
  1325. num = doguObject[doguSelectIndex].transform.localScale.z;
  1326. string str35 = num.ToString("0.###");
  1327. strArray31[index23] = str35;
  1328. str23 = string.Concat(strArray28);
  1329. }
  1330. string str36 = str23 + "_";
  1331. for (int i = 0; i < maidCnt; ++i)
  1332. {
  1333. Maid maid = maidArray[i];
  1334. string str24 = "";
  1335. string str25 = "";
  1336. this.SetIK(maid, i);
  1337. for (int index15 = 0; index15 < 20; ++index15)
  1338. {
  1339. string str26 = str24;
  1340. string[] strArray20 = new string[7];
  1341. strArray20[0] = str26;
  1342. string[] strArray21 = strArray20;
  1343. int index16 = 1;
  1344. num = Finger[i, index15].localEulerAngles.x;
  1345. string str27 = num.ToString("0.###");
  1346. strArray21[index16] = str27;
  1347. strArray20[2] = ",";
  1348. string[] strArray22 = strArray20;
  1349. int index17 = 3;
  1350. num = Finger[i, index15].localEulerAngles.y;
  1351. string str28 = num.ToString("0.###");
  1352. strArray22[index17] = str28;
  1353. strArray20[4] = ",";
  1354. string[] strArray23 = strArray20;
  1355. int index18 = 5;
  1356. num = Finger[i, index15].localEulerAngles.z;
  1357. string str29 = num.ToString("0.###");
  1358. strArray23[index18] = str29;
  1359. strArray20[6] = ":";
  1360. str24 = string.Concat(strArray20);
  1361. }
  1362. for (int index15 = 20; index15 < 40; ++index15)
  1363. {
  1364. string str26 = str25;
  1365. string[] strArray20 = new string[7];
  1366. strArray20[0] = str26;
  1367. string[] strArray21 = strArray20;
  1368. int index16 = 1;
  1369. num = Finger[i, index15].localEulerAngles.x;
  1370. string str27 = num.ToString("0.###");
  1371. strArray21[index16] = str27;
  1372. strArray20[2] = ",";
  1373. string[] strArray22 = strArray20;
  1374. int index17 = 3;
  1375. num = Finger[i, index15].localEulerAngles.y;
  1376. string str28 = num.ToString("0.###");
  1377. strArray22[index17] = str28;
  1378. strArray20[4] = ",";
  1379. string[] strArray23 = strArray20;
  1380. int index18 = 5;
  1381. num = Finger[i, index15].localEulerAngles.z;
  1382. string str29 = num.ToString("0.###");
  1383. strArray23[index18] = str29;
  1384. strArray20[6] = ":";
  1385. str25 = string.Concat(strArray20);
  1386. }
  1387. string str30 = "";
  1388. string[] strArray24 = new string[7];
  1389. strArray24[0] = str30;
  1390. string[] strArray25 = strArray24;
  1391. int index19 = 1;
  1392. num = Spine.eulerAngles.x;
  1393. string str31 = num.ToString("0.###");
  1394. strArray25[index19] = str31;
  1395. strArray24[2] = ",";
  1396. string[] strArray26 = strArray24;
  1397. int index20 = 3;
  1398. num = Spine.eulerAngles.y;
  1399. string str32 = num.ToString("0.###");
  1400. strArray26[index20] = str32;
  1401. strArray24[4] = ",";
  1402. string[] strArray27 = strArray24;
  1403. int index21 = 5;
  1404. num = Spine.eulerAngles.z;
  1405. string str33 = num.ToString("0.###");
  1406. strArray27[index21] = str33;
  1407. strArray24[6] = ":";
  1408. string str34 = string.Concat(strArray24);
  1409. string[] strArray28 = new string[7];
  1410. strArray28[0] = str34;
  1411. string[] strArray29 = strArray28;
  1412. int index22 = 1;
  1413. num = Spine0a.eulerAngles.x;
  1414. string str35 = num.ToString("0.###");
  1415. strArray29[index22] = str35;
  1416. strArray28[2] = ",";
  1417. string[] strArray30 = strArray28;
  1418. int index23 = 3;
  1419. num = Spine0a.eulerAngles.y;
  1420. string str37 = num.ToString("0.###");
  1421. strArray30[index23] = str37;
  1422. strArray28[4] = ",";
  1423. string[] strArray31 = strArray28;
  1424. int index24 = 5;
  1425. num = Spine0a.eulerAngles.z;
  1426. string str38 = num.ToString("0.###");
  1427. strArray31[index24] = str38;
  1428. strArray28[6] = ":";
  1429. string str39 = string.Concat(strArray28);
  1430. string[] strArray32 = new string[7];
  1431. strArray32[0] = str39;
  1432. string[] strArray33 = strArray32;
  1433. int index25 = 1;
  1434. num = Spine1.eulerAngles.x;
  1435. string str40 = num.ToString("0.###");
  1436. strArray33[index25] = str40;
  1437. strArray32[2] = ",";
  1438. string[] strArray34 = strArray32;
  1439. int index26 = 3;
  1440. num = Spine1.eulerAngles.y;
  1441. string str41 = num.ToString("0.###");
  1442. strArray34[index26] = str41;
  1443. strArray32[4] = ",";
  1444. string[] strArray35 = strArray32;
  1445. int index27 = 5;
  1446. num = Spine1.eulerAngles.z;
  1447. string str42 = num.ToString("0.###");
  1448. strArray35[index27] = str42;
  1449. strArray32[6] = ":";
  1450. string str43 = string.Concat(strArray32);
  1451. string[] strArray36 = new string[7];
  1452. strArray36[0] = str43;
  1453. string[] strArray37 = strArray36;
  1454. int index28 = 1;
  1455. num = Spine1a.eulerAngles.x;
  1456. string str44 = num.ToString("0.###");
  1457. strArray37[index28] = str44;
  1458. strArray36[2] = ",";
  1459. string[] strArray38 = strArray36;
  1460. int index29 = 3;
  1461. num = Spine1a.eulerAngles.y;
  1462. string str45 = num.ToString("0.###");
  1463. strArray38[index29] = str45;
  1464. strArray36[4] = ",";
  1465. string[] strArray39 = strArray36;
  1466. int index30 = 5;
  1467. num = Spine1a.eulerAngles.z;
  1468. string str46 = num.ToString("0.###");
  1469. strArray39[index30] = str46;
  1470. strArray36[6] = ":";
  1471. string str47 = string.Concat(strArray36);
  1472. string[] strArray40 = new string[7];
  1473. strArray40[0] = str47;
  1474. string[] strArray41 = strArray40;
  1475. int index31 = 1;
  1476. num = Pelvis.eulerAngles.x;
  1477. string str48 = num.ToString("0.###");
  1478. strArray41[index31] = str48;
  1479. strArray40[2] = ",";
  1480. string[] strArray42 = strArray40;
  1481. int index32 = 3;
  1482. num = Pelvis.eulerAngles.y;
  1483. string str49 = num.ToString("0.###");
  1484. strArray42[index32] = str49;
  1485. strArray40[4] = ",";
  1486. string[] strArray43 = strArray40;
  1487. int index33 = 5;
  1488. num = Pelvis.eulerAngles.z;
  1489. string str50 = num.ToString("0.###");
  1490. strArray43[index33] = str50;
  1491. strArray40[6] = ":";
  1492. string str51 = string.Concat(strArray40);
  1493. string[] strArray44 = new string[7];
  1494. strArray44[0] = str51;
  1495. string[] strArray45 = strArray44;
  1496. int index34 = 1;
  1497. num = HandL1[i].localEulerAngles.x;
  1498. string str52 = num.ToString("0.###");
  1499. strArray45[index34] = str52;
  1500. strArray44[2] = ",";
  1501. string[] strArray46 = strArray44;
  1502. int index35 = 3;
  1503. num = HandL1[i].localEulerAngles.y;
  1504. string str53 = num.ToString("0.###");
  1505. strArray46[index35] = str53;
  1506. strArray44[4] = ",";
  1507. string[] strArray47 = strArray44;
  1508. int index36 = 5;
  1509. num = HandL1[i].localEulerAngles.z;
  1510. string str54 = num.ToString("0.###");
  1511. strArray47[index36] = str54;
  1512. strArray44[6] = ":";
  1513. string str55 = string.Concat(strArray44);
  1514. string[] strArray48 = new string[7];
  1515. strArray48[0] = str55;
  1516. string[] strArray49 = strArray48;
  1517. int index37 = 1;
  1518. num = UpperArmL1[i].eulerAngles.x;
  1519. string str56 = num.ToString("0.###");
  1520. strArray49[index37] = str56;
  1521. strArray48[2] = ",";
  1522. string[] strArray50 = strArray48;
  1523. int index38 = 3;
  1524. num = UpperArmL1[i].eulerAngles.y;
  1525. string str57 = num.ToString("0.###");
  1526. strArray50[index38] = str57;
  1527. strArray48[4] = ",";
  1528. string[] strArray51 = strArray48;
  1529. int index39 = 5;
  1530. num = UpperArmL1[i].eulerAngles.z;
  1531. string str58 = num.ToString("0.###");
  1532. strArray51[index39] = str58;
  1533. strArray48[6] = ":";
  1534. string str59 = string.Concat(strArray48);
  1535. string[] strArray52 = new string[7];
  1536. strArray52[0] = str59;
  1537. string[] strArray53 = strArray52;
  1538. int index40 = 1;
  1539. num = ForearmL1[i].eulerAngles.x;
  1540. string str60 = num.ToString("0.###");
  1541. strArray53[index40] = str60;
  1542. strArray52[2] = ",";
  1543. string[] strArray54 = strArray52;
  1544. int index41 = 3;
  1545. num = ForearmL1[i].eulerAngles.y;
  1546. string str61 = num.ToString("0.###");
  1547. strArray54[index41] = str61;
  1548. strArray52[4] = ",";
  1549. string[] strArray55 = strArray52;
  1550. int index42 = 5;
  1551. num = ForearmL1[i].eulerAngles.z;
  1552. string str62 = num.ToString("0.###");
  1553. strArray55[index42] = str62;
  1554. strArray52[6] = ":";
  1555. string str63 = string.Concat(strArray52);
  1556. string[] strArray56 = new string[7];
  1557. strArray56[0] = str63;
  1558. string[] strArray57 = strArray56;
  1559. int index43 = 1;
  1560. num = HandR1[i].localEulerAngles.x;
  1561. string str64 = num.ToString("0.###");
  1562. strArray57[index43] = str64;
  1563. strArray56[2] = ",";
  1564. string[] strArray58 = strArray56;
  1565. int index44 = 3;
  1566. num = HandR1[i].localEulerAngles.y;
  1567. string str65 = num.ToString("0.###");
  1568. strArray58[index44] = str65;
  1569. strArray56[4] = ",";
  1570. string[] strArray59 = strArray56;
  1571. int index45 = 5;
  1572. num = HandR1[i].localEulerAngles.z;
  1573. string str66 = num.ToString("0.###");
  1574. strArray59[index45] = str66;
  1575. strArray56[6] = ":";
  1576. string str67 = string.Concat(strArray56);
  1577. string[] strArray60 = new string[7];
  1578. strArray60[0] = str67;
  1579. string[] strArray61 = strArray60;
  1580. int index46 = 1;
  1581. num = UpperArmR1[i].eulerAngles.x;
  1582. string str68 = num.ToString("0.###");
  1583. strArray61[index46] = str68;
  1584. strArray60[2] = ",";
  1585. string[] strArray62 = strArray60;
  1586. int index47 = 3;
  1587. num = UpperArmR1[i].eulerAngles.y;
  1588. string str69 = num.ToString("0.###");
  1589. strArray62[index47] = str69;
  1590. strArray60[4] = ",";
  1591. string[] strArray63 = strArray60;
  1592. int index48 = 5;
  1593. num = UpperArmR1[i].eulerAngles.z;
  1594. string str70 = num.ToString("0.###");
  1595. strArray63[index48] = str70;
  1596. strArray60[6] = ":";
  1597. string str71 = string.Concat(strArray60);
  1598. string[] strArray64 = new string[7];
  1599. strArray64[0] = str71;
  1600. string[] strArray65 = strArray64;
  1601. int index49 = 1;
  1602. num = ForearmR1[i].eulerAngles.x;
  1603. string str72 = num.ToString("0.###");
  1604. strArray65[index49] = str72;
  1605. strArray64[2] = ",";
  1606. string[] strArray66 = strArray64;
  1607. int index50 = 3;
  1608. num = ForearmR1[i].eulerAngles.y;
  1609. string str73 = num.ToString("0.###");
  1610. strArray66[index50] = str73;
  1611. strArray64[4] = ",";
  1612. string[] strArray67 = strArray64;
  1613. int index51 = 5;
  1614. num = ForearmR1[i].eulerAngles.z;
  1615. string str74 = num.ToString("0.###");
  1616. strArray67[index51] = str74;
  1617. strArray64[6] = ":";
  1618. string str75 = string.Concat(strArray64);
  1619. string[] strArray68 = new string[7];
  1620. strArray68[0] = str75;
  1621. string[] strArray69 = strArray68;
  1622. int index52 = 1;
  1623. num = HandL2[i].localEulerAngles.x;
  1624. string str76 = num.ToString("0.###");
  1625. strArray69[index52] = str76;
  1626. strArray68[2] = ",";
  1627. string[] strArray70 = strArray68;
  1628. int index53 = 3;
  1629. num = HandL2[i].localEulerAngles.y;
  1630. string str77 = num.ToString("0.###");
  1631. strArray70[index53] = str77;
  1632. strArray68[4] = ",";
  1633. string[] strArray71 = strArray68;
  1634. int index54 = 5;
  1635. num = HandL2[i].localEulerAngles.z;
  1636. string str78 = num.ToString("0.###");
  1637. strArray71[index54] = str78;
  1638. strArray68[6] = ":";
  1639. string str79 = string.Concat(strArray68);
  1640. string[] strArray72 = new string[7];
  1641. strArray72[0] = str79;
  1642. string[] strArray73 = strArray72;
  1643. int index55 = 1;
  1644. num = UpperArmL2[i].eulerAngles.x;
  1645. string str80 = num.ToString("0.###");
  1646. strArray73[index55] = str80;
  1647. strArray72[2] = ",";
  1648. string[] strArray74 = strArray72;
  1649. int index56 = 3;
  1650. num = UpperArmL2[i].eulerAngles.y;
  1651. string str81 = num.ToString("0.###");
  1652. strArray74[index56] = str81;
  1653. strArray72[4] = ",";
  1654. string[] strArray75 = strArray72;
  1655. int index57 = 5;
  1656. num = UpperArmL2[i].eulerAngles.z;
  1657. string str82 = num.ToString("0.###");
  1658. strArray75[index57] = str82;
  1659. strArray72[6] = ":";
  1660. string str83 = string.Concat(strArray72);
  1661. string[] strArray76 = new string[7];
  1662. strArray76[0] = str83;
  1663. string[] strArray77 = strArray76;
  1664. int index58 = 1;
  1665. num = ForearmL2[i].eulerAngles.x;
  1666. string str84 = num.ToString("0.###");
  1667. strArray77[index58] = str84;
  1668. strArray76[2] = ",";
  1669. string[] strArray78 = strArray76;
  1670. int index59 = 3;
  1671. num = ForearmL2[i].eulerAngles.y;
  1672. string str85 = num.ToString("0.###");
  1673. strArray78[index59] = str85;
  1674. strArray76[4] = ",";
  1675. string[] strArray79 = strArray76;
  1676. int index60 = 5;
  1677. num = ForearmL2[i].eulerAngles.z;
  1678. string str86 = num.ToString("0.###");
  1679. strArray79[index60] = str86;
  1680. strArray76[6] = ":";
  1681. string str87 = string.Concat(strArray76);
  1682. string[] strArray80 = new string[7];
  1683. strArray80[0] = str87;
  1684. string[] strArray81 = strArray80;
  1685. int index61 = 1;
  1686. num = HandR2[i].localEulerAngles.x;
  1687. string str88 = num.ToString("0.###");
  1688. strArray81[index61] = str88;
  1689. strArray80[2] = ",";
  1690. string[] strArray82 = strArray80;
  1691. int index62 = 3;
  1692. num = HandR2[i].localEulerAngles.y;
  1693. string str89 = num.ToString("0.###");
  1694. strArray82[index62] = str89;
  1695. strArray80[4] = ",";
  1696. string[] strArray83 = strArray80;
  1697. int index63 = 5;
  1698. num = HandR2[i].localEulerAngles.z;
  1699. string str90 = num.ToString("0.###");
  1700. strArray83[index63] = str90;
  1701. strArray80[6] = ":";
  1702. string str91 = string.Concat(strArray80);
  1703. string[] strArray84 = new string[7];
  1704. strArray84[0] = str91;
  1705. string[] strArray85 = strArray84;
  1706. int index64 = 1;
  1707. num = UpperArmR2[i].eulerAngles.x;
  1708. string str92 = num.ToString("0.###");
  1709. strArray85[index64] = str92;
  1710. strArray84[2] = ",";
  1711. string[] strArray86 = strArray84;
  1712. int index65 = 3;
  1713. num = UpperArmR2[i].eulerAngles.y;
  1714. string str93 = num.ToString("0.###");
  1715. strArray86[index65] = str93;
  1716. strArray84[4] = ",";
  1717. string[] strArray87 = strArray84;
  1718. int index66 = 5;
  1719. num = UpperArmR2[i].eulerAngles.z;
  1720. string str94 = num.ToString("0.###");
  1721. strArray87[index66] = str94;
  1722. strArray84[6] = ":";
  1723. string str95 = string.Concat(strArray84);
  1724. string[] strArray88 = new string[7];
  1725. strArray88[0] = str95;
  1726. string[] strArray89 = strArray88;
  1727. int index67 = 1;
  1728. num = ForearmR2[i].eulerAngles.x;
  1729. string str96 = num.ToString("0.###");
  1730. strArray89[index67] = str96;
  1731. strArray88[2] = ",";
  1732. string[] strArray90 = strArray88;
  1733. int index68 = 3;
  1734. num = ForearmR2[i].eulerAngles.y;
  1735. string str97 = num.ToString("0.###");
  1736. strArray90[index68] = str97;
  1737. strArray88[4] = ",";
  1738. string[] strArray91 = strArray88;
  1739. int index69 = 5;
  1740. num = ForearmR2[i].eulerAngles.z;
  1741. string str98 = num.ToString("0.###");
  1742. strArray91[index69] = str98;
  1743. strArray88[6] = ":";
  1744. string str99 = string.Concat(strArray88);
  1745. string[] strArray92 = new string[7];
  1746. strArray92[0] = str99;
  1747. string[] strArray93 = strArray92;
  1748. int index70 = 1;
  1749. num = Head.eulerAngles.x;
  1750. string str100 = num.ToString("0.###");
  1751. strArray93[index70] = str100;
  1752. strArray92[2] = ",";
  1753. string[] strArray94 = strArray92;
  1754. int index71 = 3;
  1755. num = Head.eulerAngles.y;
  1756. string str101 = num.ToString("0.###");
  1757. strArray94[index71] = str101;
  1758. strArray92[4] = ",";
  1759. string[] strArray95 = strArray92;
  1760. int index72 = 5;
  1761. num = Head.eulerAngles.z;
  1762. string str102 = num.ToString("0.###");
  1763. strArray95[index72] = str102;
  1764. strArray92[6] = ":";
  1765. string str103 = string.Concat(strArray92);
  1766. string[] strArray96 = new string[7];
  1767. strArray96[0] = str103;
  1768. string[] strArray97 = strArray96;
  1769. int index73 = 1;
  1770. num = maid.transform.localEulerAngles.x;
  1771. string str104 = num.ToString("0.###");
  1772. strArray97[index73] = str104;
  1773. strArray96[2] = ",";
  1774. string[] strArray98 = strArray96;
  1775. int index74 = 3;
  1776. num = maid.transform.localEulerAngles.y;
  1777. string str105 = num.ToString("0.###");
  1778. strArray98[index74] = str105;
  1779. strArray96[4] = ",";
  1780. string[] strArray99 = strArray96;
  1781. int index75 = 5;
  1782. num = maid.transform.localEulerAngles.z;
  1783. string str106 = num.ToString("0.###");
  1784. strArray99[index75] = str106;
  1785. strArray96[6] = ":";
  1786. string str107 = string.Concat(strArray96);
  1787. string[] strArray100 = new string[7];
  1788. strArray100[0] = str107;
  1789. string[] strArray101 = strArray100;
  1790. int index76 = 1;
  1791. num = maid.transform.position.x;
  1792. string str108 = num.ToString("0.###");
  1793. strArray101[index76] = str108;
  1794. strArray100[2] = ",";
  1795. string[] strArray102 = strArray100;
  1796. int index77 = 3;
  1797. num = maid.transform.position.y;
  1798. string str109 = num.ToString("0.###");
  1799. strArray102[index77] = str109;
  1800. strArray100[4] = ",";
  1801. string[] strArray103 = strArray100;
  1802. int index78 = 5;
  1803. num = maid.transform.position.z;
  1804. string str110 = num.ToString("0.###");
  1805. strArray103[index78] = str110;
  1806. strArray100[6] = ":";
  1807. string str111 = string.Concat(strArray100);
  1808. string[] strArray104 = new string[7];
  1809. strArray104[0] = str111;
  1810. string[] strArray105 = strArray104;
  1811. int index79 = 1;
  1812. num = maid.transform.localScale.x;
  1813. string str112 = num.ToString("0.###");
  1814. strArray105[index79] = str112;
  1815. strArray104[2] = ",";
  1816. string[] strArray106 = strArray104;
  1817. int index80 = 3;
  1818. num = maid.transform.localScale.y;
  1819. string str113 = num.ToString("0.###");
  1820. strArray106[index80] = str113;
  1821. strArray104[4] = ",";
  1822. string[] strArray107 = strArray104;
  1823. int index81 = 5;
  1824. num = maid.transform.localScale.z;
  1825. string str114 = num.ToString("0.###");
  1826. strArray107[index81] = str114;
  1827. strArray104[6] = ":";
  1828. string str115 = string.Concat(strArray104);
  1829. string str116;
  1830. if (poseArray[poseIndex[i]].Contains("MultipleMaidsPose"))
  1831. {
  1832. string str26 = poseArray[poseIndex[i]].Replace(" ", "").Split('/')[0];
  1833. str116 = str115 + "MultipleMaidsPose" + str26.Replace("_", " ").Replace(",", "|") + ":";
  1834. }
  1835. else
  1836. str116 = str115 + poseArray[poseIndex[i]].Replace("_", " ").Replace(",", "|") + ":";
  1837. string str117 = str116 + (object)faceIndex[i] + ":";
  1838. TMorph morph = maid.body0.Face.morph;
  1839. float[] fieldValue1 = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  1840. float[] fieldValue2 = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  1841. string str118 = str117 + (object)fieldValue2[(int)morph.hash[(object)"eyeclose"]] + "," + (object)fieldValue2[(int)morph.hash[(object)"eyeclose2"]] + "," + (object)fieldValue2[(int)morph.hash[(object)"eyeclose3"]] + "," + (object)fieldValue2[(int)morph.hash[(object)"eyeclose6"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"hitomih"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"hitomis"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mayuha"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mayuup"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mayuv"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mayuvhalf"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"moutha"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mouths"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mouthdw"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mouthup"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"tangout"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"tangup"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"eyebig"]] + "," + (object)fieldValue2[(int)morph.hash[(object)"eyeclose5"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mayuw"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mouthhe"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mouthc"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mouthi"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mouthuphalf"]] + ",";
  1842. string str119;
  1843. try
  1844. {
  1845. str119 = str118 + (object)fieldValue1[(int)morph.hash[(object)"tangopen"]] + ",";
  1846. }
  1847. catch
  1848. {
  1849. str119 = str118 + "0,";
  1850. }
  1851. string str120 = (double)fieldValue1[(int)morph.hash[(object)"namida"]] <= 0.0 ? str119 + (object)0 + "," : str119 + (object)1 + ",";
  1852. string str121 = (double)fieldValue1[(int)morph.hash[(object)"tear1"]] <= 0.0 ? str120 + (object)0 + "," : str120 + (object)1 + ",";
  1853. string str122 = (double)fieldValue1[(int)morph.hash[(object)"tear2"]] <= 0.0 ? str121 + (object)0 + "," : str121 + (object)1 + ",";
  1854. string str123 = (double)fieldValue1[(int)morph.hash[(object)"tear3"]] <= 0.0 ? str122 + (object)0 + "," : str122 + (object)1 + ",";
  1855. string str124 = (double)fieldValue1[(int)morph.hash[(object)"shock"]] <= 0.0 ? str123 + (object)0 + "," : str123 + (object)1 + ",";
  1856. string str125 = (double)fieldValue1[(int)morph.hash[(object)"yodare"]] <= 0.0 ? str124 + (object)0 + "," : str124 + (object)1 + ",";
  1857. string str126 = (double)fieldValue1[(int)morph.hash[(object)"hoho"]] <= 0.0 ? str125 + (object)0 + "," : str125 + (object)1 + ",";
  1858. string str127 = (double)fieldValue1[(int)morph.hash[(object)"hoho2"]] <= 0.0 ? str126 + (object)0 + "," : str126 + (object)1 + ",";
  1859. string str128 = (double)fieldValue1[(int)morph.hash[(object)"hohos"]] <= 0.0 ? str127 + (object)0 + "," : str127 + (object)1 + ",";
  1860. string str129 = (double)fieldValue1[(int)morph.hash[(object)"hohol"]] <= 0.0 ? str128 + (object)0 + "," : str128 + (object)1 + ",";
  1861. string str130 = (double)fieldValue1[(int)morph.hash[(object)"toothoff"]] <= 0.0 ? str129 + (object)0 + "," : str129 + (object)1 + ",";
  1862. string str131 = (double)fieldValue1[(int)morph.hash[(object)"nosefook"]] <= 0.0 ? str130 + (object)0 + ":" : str130 + (object)1 + ":";
  1863. string str132 = "";
  1864. string str133 = (!isLook[i] ? (object)(str132 + (object)0 + ",0,0:") : (object)(str132 + (object)1 + "," + lookX[i].ToString("0.###") + "," + lookY[i].ToString("0.###") + ":")).ToString() + (object)itemIndex[i] + ":";
  1865. Transform transform1 = CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handL", true);
  1866. Transform transform2 = CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handR", true);
  1867. string str134 = str133 + transform1.localEulerAngles.x.ToString("0.###") + "," + transform1.localEulerAngles.y.ToString("0.###") + "," + transform1.localEulerAngles.z.ToString("0.###") + ":" + transform2.localEulerAngles.x.ToString("0.###") + "," + transform2.localEulerAngles.y.ToString("0.###") + "," + transform2.localEulerAngles.z.ToString("0.###") + ":";
  1868. string[] strArray108 = new string[7];
  1869. strArray108[0] = str134;
  1870. string[] strArray109 = strArray108;
  1871. int index82 = 1;
  1872. num = ClavicleL1[i].eulerAngles.x;
  1873. string str135 = num.ToString("0.###");
  1874. strArray109[index82] = str135;
  1875. strArray108[2] = ",";
  1876. string[] strArray110 = strArray108;
  1877. int index83 = 3;
  1878. num = ClavicleL1[i].eulerAngles.y;
  1879. string str136 = num.ToString("0.###");
  1880. strArray110[index83] = str136;
  1881. strArray108[4] = ",";
  1882. string[] strArray111 = strArray108;
  1883. int index84 = 5;
  1884. num = ClavicleL1[i].eulerAngles.z;
  1885. string str137 = num.ToString("0.###");
  1886. strArray111[index84] = str137;
  1887. strArray108[6] = ":";
  1888. string str138 = string.Concat(strArray108);
  1889. string[] strArray112 = new string[7];
  1890. strArray112[0] = str138;
  1891. string[] strArray113 = strArray112;
  1892. int index85 = 1;
  1893. num = ClavicleR1[i].eulerAngles.x;
  1894. string str139 = num.ToString("0.###");
  1895. strArray113[index85] = str139;
  1896. strArray112[2] = ",";
  1897. string[] strArray114 = strArray112;
  1898. int index86 = 3;
  1899. num = ClavicleR1[i].eulerAngles.y;
  1900. string str140 = num.ToString("0.###");
  1901. strArray114[index86] = str140;
  1902. strArray112[4] = ",";
  1903. string[] strArray115 = strArray112;
  1904. int index87 = 5;
  1905. num = ClavicleR1[i].eulerAngles.z;
  1906. string str141 = num.ToString("0.###");
  1907. strArray115[index87] = str141;
  1908. strArray112[6] = ":";
  1909. string str142 = string.Concat(strArray112);
  1910. string str143 = !hanten[i] ? str142 + "0:" : str142 + "1:";
  1911. Transform transform3 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  1912. Transform transform4 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0", true);
  1913. Transform transform5 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0", true);
  1914. Transform transform6 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe01", true);
  1915. Transform transform7 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe01", true);
  1916. Transform transform8 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0Nub", true);
  1917. Transform transform9 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0Nub", true);
  1918. Transform transform10 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1", true);
  1919. Transform transform11 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1", true);
  1920. Transform transform12 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe11", true);
  1921. Transform transform13 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe11", true);
  1922. Transform transform14 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1Nub", true);
  1923. Transform transform15 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1Nub", true);
  1924. Transform transform16 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2", true);
  1925. Transform transform17 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2", true);
  1926. Transform transform18 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe21", true);
  1927. Transform transform19 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe21", true);
  1928. Transform transform20 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2Nub", true);
  1929. Transform transform21 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2Nub", true);
  1930. string str144 = str143;
  1931. string[] strArray116 = new string[7];
  1932. strArray116[0] = str144;
  1933. string[] strArray117 = strArray116;
  1934. int index88 = 1;
  1935. num = transform3.eulerAngles.x;
  1936. string str145 = num.ToString("0.###");
  1937. strArray117[index88] = str145;
  1938. strArray116[2] = ",";
  1939. string[] strArray118 = strArray116;
  1940. int index89 = 3;
  1941. num = transform3.eulerAngles.y;
  1942. string str146 = num.ToString("0.###");
  1943. strArray118[index89] = str146;
  1944. strArray116[4] = ",";
  1945. string[] strArray119 = strArray116;
  1946. int index90 = 5;
  1947. num = transform3.eulerAngles.z;
  1948. string str147 = num.ToString("0.###");
  1949. strArray119[index90] = str147;
  1950. strArray116[6] = ":";
  1951. string str148 = string.Concat(strArray116);
  1952. string[] strArray120 = new string[7];
  1953. strArray120[0] = str148;
  1954. string[] strArray121 = strArray120;
  1955. int index91 = 1;
  1956. num = transform4.localEulerAngles.x;
  1957. string str149 = num.ToString("0.###");
  1958. strArray121[index91] = str149;
  1959. strArray120[2] = ",";
  1960. string[] strArray122 = strArray120;
  1961. int index92 = 3;
  1962. num = transform4.localEulerAngles.y;
  1963. string str150 = num.ToString("0.###");
  1964. strArray122[index92] = str150;
  1965. strArray120[4] = ",";
  1966. string[] strArray123 = strArray120;
  1967. int index93 = 5;
  1968. num = transform4.localEulerAngles.z;
  1969. string str151 = num.ToString("0.###");
  1970. strArray123[index93] = str151;
  1971. strArray120[6] = ":";
  1972. string str152 = string.Concat(strArray120);
  1973. string[] strArray124 = new string[7];
  1974. strArray124[0] = str152;
  1975. string[] strArray125 = strArray124;
  1976. int index94 = 1;
  1977. num = transform5.localEulerAngles.x;
  1978. string str153 = num.ToString("0.###");
  1979. strArray125[index94] = str153;
  1980. strArray124[2] = ",";
  1981. string[] strArray126 = strArray124;
  1982. int index95 = 3;
  1983. num = transform5.localEulerAngles.y;
  1984. string str154 = num.ToString("0.###");
  1985. strArray126[index95] = str154;
  1986. strArray124[4] = ",";
  1987. string[] strArray127 = strArray124;
  1988. int index96 = 5;
  1989. num = transform5.localEulerAngles.z;
  1990. string str155 = num.ToString("0.###");
  1991. strArray127[index96] = str155;
  1992. strArray124[6] = ":";
  1993. string str156 = string.Concat(strArray124);
  1994. string[] strArray128 = new string[7];
  1995. strArray128[0] = str156;
  1996. string[] strArray129 = strArray128;
  1997. int index97 = 1;
  1998. num = transform6.localEulerAngles.x;
  1999. string str157 = num.ToString("0.###");
  2000. strArray129[index97] = str157;
  2001. strArray128[2] = ",";
  2002. string[] strArray130 = strArray128;
  2003. int index98 = 3;
  2004. num = transform6.localEulerAngles.y;
  2005. string str158 = num.ToString("0.###");
  2006. strArray130[index98] = str158;
  2007. strArray128[4] = ",";
  2008. string[] strArray131 = strArray128;
  2009. int index99 = 5;
  2010. num = transform6.localEulerAngles.z;
  2011. string str159 = num.ToString("0.###");
  2012. strArray131[index99] = str159;
  2013. strArray128[6] = ":";
  2014. string str160 = string.Concat(strArray128);
  2015. string[] strArray132 = new string[7];
  2016. strArray132[0] = str160;
  2017. string[] strArray133 = strArray132;
  2018. int index100 = 1;
  2019. num = transform7.localEulerAngles.x;
  2020. string str161 = num.ToString("0.###");
  2021. strArray133[index100] = str161;
  2022. strArray132[2] = ",";
  2023. string[] strArray134 = strArray132;
  2024. int index101 = 3;
  2025. num = transform7.localEulerAngles.y;
  2026. string str162 = num.ToString("0.###");
  2027. strArray134[index101] = str162;
  2028. strArray132[4] = ",";
  2029. string[] strArray135 = strArray132;
  2030. int index102 = 5;
  2031. num = transform7.localEulerAngles.z;
  2032. string str163 = num.ToString("0.###");
  2033. strArray135[index102] = str163;
  2034. strArray132[6] = ":";
  2035. string str164 = string.Concat(strArray132);
  2036. string[] strArray136 = new string[7];
  2037. strArray136[0] = str164;
  2038. string[] strArray137 = strArray136;
  2039. int index103 = 1;
  2040. num = transform8.localEulerAngles.x;
  2041. string str165 = num.ToString("0.###");
  2042. strArray137[index103] = str165;
  2043. strArray136[2] = ",";
  2044. string[] strArray138 = strArray136;
  2045. int index104 = 3;
  2046. num = transform8.localEulerAngles.y;
  2047. string str166 = num.ToString("0.###");
  2048. strArray138[index104] = str166;
  2049. strArray136[4] = ",";
  2050. string[] strArray139 = strArray136;
  2051. int index105 = 5;
  2052. num = transform8.localEulerAngles.z;
  2053. string str167 = num.ToString("0.###");
  2054. strArray139[index105] = str167;
  2055. strArray136[6] = ":";
  2056. string str168 = string.Concat(strArray136);
  2057. string[] strArray140 = new string[7];
  2058. strArray140[0] = str168;
  2059. string[] strArray141 = strArray140;
  2060. int index106 = 1;
  2061. num = transform9.localEulerAngles.x;
  2062. string str169 = num.ToString("0.###");
  2063. strArray141[index106] = str169;
  2064. strArray140[2] = ",";
  2065. string[] strArray142 = strArray140;
  2066. int index107 = 3;
  2067. num = transform9.localEulerAngles.y;
  2068. string str170 = num.ToString("0.###");
  2069. strArray142[index107] = str170;
  2070. strArray140[4] = ",";
  2071. string[] strArray143 = strArray140;
  2072. int index108 = 5;
  2073. num = transform9.localEulerAngles.z;
  2074. string str171 = num.ToString("0.###");
  2075. strArray143[index108] = str171;
  2076. strArray140[6] = ":";
  2077. string str172 = string.Concat(strArray140);
  2078. string[] strArray144 = new string[7];
  2079. strArray144[0] = str172;
  2080. string[] strArray145 = strArray144;
  2081. int index109 = 1;
  2082. num = transform10.localEulerAngles.x;
  2083. string str173 = num.ToString("0.###");
  2084. strArray145[index109] = str173;
  2085. strArray144[2] = ",";
  2086. string[] strArray146 = strArray144;
  2087. int index110 = 3;
  2088. num = transform10.localEulerAngles.y;
  2089. string str174 = num.ToString("0.###");
  2090. strArray146[index110] = str174;
  2091. strArray144[4] = ",";
  2092. string[] strArray147 = strArray144;
  2093. int index111 = 5;
  2094. num = transform10.localEulerAngles.z;
  2095. string str175 = num.ToString("0.###");
  2096. strArray147[index111] = str175;
  2097. strArray144[6] = ":";
  2098. string str176 = string.Concat(strArray144);
  2099. string[] strArray148 = new string[7];
  2100. strArray148[0] = str176;
  2101. string[] strArray149 = strArray148;
  2102. int index112 = 1;
  2103. num = transform11.localEulerAngles.x;
  2104. string str177 = num.ToString("0.###");
  2105. strArray149[index112] = str177;
  2106. strArray148[2] = ",";
  2107. string[] strArray150 = strArray148;
  2108. int index113 = 3;
  2109. num = transform11.localEulerAngles.y;
  2110. string str178 = num.ToString("0.###");
  2111. strArray150[index113] = str178;
  2112. strArray148[4] = ",";
  2113. string[] strArray151 = strArray148;
  2114. int index114 = 5;
  2115. num = transform11.localEulerAngles.z;
  2116. string str179 = num.ToString("0.###");
  2117. strArray151[index114] = str179;
  2118. strArray148[6] = ":";
  2119. string str180 = string.Concat(strArray148);
  2120. string[] strArray152 = new string[7];
  2121. strArray152[0] = str180;
  2122. string[] strArray153 = strArray152;
  2123. int index115 = 1;
  2124. num = transform12.localEulerAngles.x;
  2125. string str181 = num.ToString("0.###");
  2126. strArray153[index115] = str181;
  2127. strArray152[2] = ",";
  2128. string[] strArray154 = strArray152;
  2129. int index116 = 3;
  2130. num = transform12.localEulerAngles.y;
  2131. string str182 = num.ToString("0.###");
  2132. strArray154[index116] = str182;
  2133. strArray152[4] = ",";
  2134. string[] strArray155 = strArray152;
  2135. int index117 = 5;
  2136. num = transform12.localEulerAngles.z;
  2137. string str183 = num.ToString("0.###");
  2138. strArray155[index117] = str183;
  2139. strArray152[6] = ":";
  2140. string str184 = string.Concat(strArray152);
  2141. string[] strArray156 = new string[7];
  2142. strArray156[0] = str184;
  2143. string[] strArray157 = strArray156;
  2144. int index118 = 1;
  2145. num = transform13.localEulerAngles.x;
  2146. string str185 = num.ToString("0.###");
  2147. strArray157[index118] = str185;
  2148. strArray156[2] = ",";
  2149. string[] strArray158 = strArray156;
  2150. int index119 = 3;
  2151. num = transform13.localEulerAngles.y;
  2152. string str186 = num.ToString("0.###");
  2153. strArray158[index119] = str186;
  2154. strArray156[4] = ",";
  2155. string[] strArray159 = strArray156;
  2156. int index120 = 5;
  2157. num = transform13.localEulerAngles.z;
  2158. string str187 = num.ToString("0.###");
  2159. strArray159[index120] = str187;
  2160. strArray156[6] = ":";
  2161. string str188 = string.Concat(strArray156);
  2162. string[] strArray160 = new string[7];
  2163. strArray160[0] = str188;
  2164. string[] strArray161 = strArray160;
  2165. int index121 = 1;
  2166. num = transform14.localEulerAngles.x;
  2167. string str189 = num.ToString("0.###");
  2168. strArray161[index121] = str189;
  2169. strArray160[2] = ",";
  2170. string[] strArray162 = strArray160;
  2171. int index122 = 3;
  2172. num = transform14.localEulerAngles.y;
  2173. string str190 = num.ToString("0.###");
  2174. strArray162[index122] = str190;
  2175. strArray160[4] = ",";
  2176. string[] strArray163 = strArray160;
  2177. int index123 = 5;
  2178. num = transform14.localEulerAngles.z;
  2179. string str191 = num.ToString("0.###");
  2180. strArray163[index123] = str191;
  2181. strArray160[6] = ":";
  2182. string str192 = string.Concat(strArray160);
  2183. string[] strArray164 = new string[7];
  2184. strArray164[0] = str192;
  2185. string[] strArray165 = strArray164;
  2186. int index124 = 1;
  2187. num = transform15.localEulerAngles.x;
  2188. string str193 = num.ToString("0.###");
  2189. strArray165[index124] = str193;
  2190. strArray164[2] = ",";
  2191. string[] strArray166 = strArray164;
  2192. int index125 = 3;
  2193. num = transform15.localEulerAngles.y;
  2194. string str194 = num.ToString("0.###");
  2195. strArray166[index125] = str194;
  2196. strArray164[4] = ",";
  2197. string[] strArray167 = strArray164;
  2198. int index126 = 5;
  2199. num = transform15.localEulerAngles.z;
  2200. string str195 = num.ToString("0.###");
  2201. strArray167[index126] = str195;
  2202. strArray164[6] = ":";
  2203. string str196 = string.Concat(strArray164);
  2204. string[] strArray168 = new string[7];
  2205. strArray168[0] = str196;
  2206. string[] strArray169 = strArray168;
  2207. int index127 = 1;
  2208. num = transform16.localEulerAngles.x;
  2209. string str197 = num.ToString("0.###");
  2210. strArray169[index127] = str197;
  2211. strArray168[2] = ",";
  2212. string[] strArray170 = strArray168;
  2213. int index128 = 3;
  2214. num = transform16.localEulerAngles.y;
  2215. string str198 = num.ToString("0.###");
  2216. strArray170[index128] = str198;
  2217. strArray168[4] = ",";
  2218. string[] strArray171 = strArray168;
  2219. int index129 = 5;
  2220. num = transform16.localEulerAngles.z;
  2221. string str199 = num.ToString("0.###");
  2222. strArray171[index129] = str199;
  2223. strArray168[6] = ":";
  2224. string str200 = string.Concat(strArray168);
  2225. string[] strArray172 = new string[7];
  2226. strArray172[0] = str200;
  2227. string[] strArray173 = strArray172;
  2228. int index130 = 1;
  2229. num = transform17.localEulerAngles.x;
  2230. string str201 = num.ToString("0.###");
  2231. strArray173[index130] = str201;
  2232. strArray172[2] = ",";
  2233. string[] strArray174 = strArray172;
  2234. int index131 = 3;
  2235. num = transform17.localEulerAngles.y;
  2236. string str202 = num.ToString("0.###");
  2237. strArray174[index131] = str202;
  2238. strArray172[4] = ",";
  2239. string[] strArray175 = strArray172;
  2240. int index132 = 5;
  2241. num = transform17.localEulerAngles.z;
  2242. string str203 = num.ToString("0.###");
  2243. strArray175[index132] = str203;
  2244. strArray172[6] = ":";
  2245. string str204 = string.Concat(strArray172);
  2246. string[] strArray176 = new string[7];
  2247. strArray176[0] = str204;
  2248. string[] strArray177 = strArray176;
  2249. int index133 = 1;
  2250. num = transform18.localEulerAngles.x;
  2251. string str205 = num.ToString("0.###");
  2252. strArray177[index133] = str205;
  2253. strArray176[2] = ",";
  2254. string[] strArray178 = strArray176;
  2255. int index134 = 3;
  2256. num = transform18.localEulerAngles.y;
  2257. string str206 = num.ToString("0.###");
  2258. strArray178[index134] = str206;
  2259. strArray176[4] = ",";
  2260. string[] strArray179 = strArray176;
  2261. int index135 = 5;
  2262. num = transform18.localEulerAngles.z;
  2263. string str207 = num.ToString("0.###");
  2264. strArray179[index135] = str207;
  2265. strArray176[6] = ":";
  2266. string str208 = string.Concat(strArray176);
  2267. string[] strArray180 = new string[7];
  2268. strArray180[0] = str208;
  2269. string[] strArray181 = strArray180;
  2270. int index136 = 1;
  2271. num = transform19.localEulerAngles.x;
  2272. string str209 = num.ToString("0.###");
  2273. strArray181[index136] = str209;
  2274. strArray180[2] = ",";
  2275. string[] strArray182 = strArray180;
  2276. int index137 = 3;
  2277. num = transform19.localEulerAngles.y;
  2278. string str210 = num.ToString("0.###");
  2279. strArray182[index137] = str210;
  2280. strArray180[4] = ",";
  2281. string[] strArray183 = strArray180;
  2282. int index138 = 5;
  2283. num = transform19.localEulerAngles.z;
  2284. string str211 = num.ToString("0.###");
  2285. strArray183[index138] = str211;
  2286. strArray180[6] = ":";
  2287. string str212 = string.Concat(strArray180);
  2288. string[] strArray184 = new string[7];
  2289. strArray184[0] = str212;
  2290. string[] strArray185 = strArray184;
  2291. int index139 = 1;
  2292. num = transform20.localEulerAngles.x;
  2293. string str213 = num.ToString("0.###");
  2294. strArray185[index139] = str213;
  2295. strArray184[2] = ",";
  2296. string[] strArray186 = strArray184;
  2297. int index140 = 3;
  2298. num = transform20.localEulerAngles.y;
  2299. string str214 = num.ToString("0.###");
  2300. strArray186[index140] = str214;
  2301. strArray184[4] = ",";
  2302. string[] strArray187 = strArray184;
  2303. int index141 = 5;
  2304. num = transform20.localEulerAngles.z;
  2305. string str215 = num.ToString("0.###");
  2306. strArray187[index141] = str215;
  2307. strArray184[6] = ":";
  2308. string str216 = string.Concat(strArray184);
  2309. string[] strArray188 = new string[7];
  2310. strArray188[0] = str216;
  2311. string[] strArray189 = strArray188;
  2312. int index142 = 1;
  2313. num = transform21.localEulerAngles.x;
  2314. string str217 = num.ToString("0.###");
  2315. strArray189[index142] = str217;
  2316. strArray188[2] = ",";
  2317. string[] strArray190 = strArray188;
  2318. int index143 = 3;
  2319. num = transform21.localEulerAngles.y;
  2320. string str218 = num.ToString("0.###");
  2321. strArray190[index143] = str218;
  2322. strArray188[4] = ",";
  2323. string[] strArray191 = strArray188;
  2324. int index144 = 5;
  2325. num = transform21.localEulerAngles.z;
  2326. string str219 = num.ToString("0.###");
  2327. strArray191[index144] = str219;
  2328. strArray188[6] = ":";
  2329. string str220 = string.Concat(strArray188);
  2330. string[] strArray192 = new string[7];
  2331. strArray192[0] = str220;
  2332. string[] strArray193 = strArray192;
  2333. int index145 = 1;
  2334. num = maid.body0.quaDefEyeL.eulerAngles.x;
  2335. string str221 = num.ToString("0.###");
  2336. strArray193[index145] = str221;
  2337. strArray192[2] = ",";
  2338. string[] strArray194 = strArray192;
  2339. int index146 = 3;
  2340. num = maid.body0.quaDefEyeL.eulerAngles.y;
  2341. string str222 = num.ToString("0.###");
  2342. strArray194[index146] = str222;
  2343. strArray192[4] = ",";
  2344. string[] strArray195 = strArray192;
  2345. int index147 = 5;
  2346. num = maid.body0.quaDefEyeL.eulerAngles.z;
  2347. string str223 = num.ToString("0.###");
  2348. strArray195[index147] = str223;
  2349. strArray192[6] = ":";
  2350. string str224 = string.Concat(strArray192);
  2351. string[] strArray196 = new string[7];
  2352. strArray196[0] = str224;
  2353. string[] strArray197 = strArray196;
  2354. int index148 = 1;
  2355. num = maid.body0.quaDefEyeR.eulerAngles.x;
  2356. string str225 = num.ToString("0.###");
  2357. strArray197[index148] = str225;
  2358. strArray196[2] = ",";
  2359. string[] strArray198 = strArray196;
  2360. int index149 = 3;
  2361. num = maid.body0.quaDefEyeR.eulerAngles.y;
  2362. string str226 = num.ToString("0.###");
  2363. strArray198[index149] = str226;
  2364. strArray196[4] = ",";
  2365. string[] strArray199 = strArray196;
  2366. int index150 = 5;
  2367. num = maid.body0.quaDefEyeR.eulerAngles.z;
  2368. string str227 = num.ToString("0.###");
  2369. strArray199[index150] = str227;
  2370. strArray196[6] = ":";
  2371. string str228 = string.Concat(strArray196);
  2372. Transform transform22 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Mune_L", true);
  2373. Transform transform23 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Mune_L_sub", true);
  2374. Transform transform24 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Mune_R", true);
  2375. Transform transform25 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Mune_R_sub", true);
  2376. string str229 = str228;
  2377. string[] strArray200 = new string[7];
  2378. strArray200[0] = str229;
  2379. string[] strArray201 = strArray200;
  2380. int index151 = 1;
  2381. num = transform22.localEulerAngles.x;
  2382. string str230 = num.ToString("0.###");
  2383. strArray201[index151] = str230;
  2384. strArray200[2] = ",";
  2385. string[] strArray202 = strArray200;
  2386. int index152 = 3;
  2387. num = transform22.localEulerAngles.y;
  2388. string str231 = num.ToString("0.###");
  2389. strArray202[index152] = str231;
  2390. strArray200[4] = ",";
  2391. string[] strArray203 = strArray200;
  2392. int index153 = 5;
  2393. num = transform22.localEulerAngles.z;
  2394. string str232 = num.ToString("0.###");
  2395. strArray203[index153] = str232;
  2396. strArray200[6] = ":";
  2397. string str233 = string.Concat(strArray200);
  2398. string[] strArray204 = new string[7];
  2399. strArray204[0] = str233;
  2400. string[] strArray205 = strArray204;
  2401. int index154 = 1;
  2402. num = transform23.localEulerAngles.x;
  2403. string str234 = num.ToString("0.###");
  2404. strArray205[index154] = str234;
  2405. strArray204[2] = ",";
  2406. string[] strArray206 = strArray204;
  2407. int index155 = 3;
  2408. num = transform23.localEulerAngles.y;
  2409. string str235 = num.ToString("0.###");
  2410. strArray206[index155] = str235;
  2411. strArray204[4] = ",";
  2412. string[] strArray207 = strArray204;
  2413. int index156 = 5;
  2414. num = transform23.localEulerAngles.z;
  2415. string str236 = num.ToString("0.###");
  2416. strArray207[index156] = str236;
  2417. strArray204[6] = ":";
  2418. string str237 = string.Concat(strArray204);
  2419. string[] strArray208 = new string[7];
  2420. strArray208[0] = str237;
  2421. string[] strArray209 = strArray208;
  2422. int index157 = 1;
  2423. num = transform24.localEulerAngles.x;
  2424. string str238 = num.ToString("0.###");
  2425. strArray209[index157] = str238;
  2426. strArray208[2] = ",";
  2427. string[] strArray210 = strArray208;
  2428. int index158 = 3;
  2429. num = transform24.localEulerAngles.y;
  2430. string str239 = num.ToString("0.###");
  2431. strArray210[index158] = str239;
  2432. strArray208[4] = ",";
  2433. string[] strArray211 = strArray208;
  2434. int index159 = 5;
  2435. num = transform24.localEulerAngles.z;
  2436. string str240 = num.ToString("0.###");
  2437. strArray211[index159] = str240;
  2438. strArray208[6] = ":";
  2439. string str241 = string.Concat(strArray208);
  2440. string[] strArray212 = new string[7];
  2441. strArray212[0] = str241;
  2442. string[] strArray213 = strArray212;
  2443. int index160 = 1;
  2444. num = transform25.localEulerAngles.x;
  2445. string str242 = num.ToString("0.###");
  2446. strArray213[index160] = str242;
  2447. strArray212[2] = ",";
  2448. string[] strArray214 = strArray212;
  2449. int index161 = 3;
  2450. num = transform25.localEulerAngles.y;
  2451. string str243 = num.ToString("0.###");
  2452. strArray214[index161] = str243;
  2453. strArray212[4] = ",";
  2454. string[] strArray215 = strArray212;
  2455. int index162 = 5;
  2456. num = transform25.localEulerAngles.z;
  2457. string str244 = num.ToString("0.###");
  2458. strArray215[index162] = str244;
  2459. strArray212[6] = ":";
  2460. string str245 = string.Concat(strArray212);
  2461. string[] strArray216 = new string[6];
  2462. strArray216[0] = str245;
  2463. string[] strArray217 = strArray216;
  2464. int index163 = 1;
  2465. num = transform3.position.x;
  2466. string str246 = num.ToString("0.###");
  2467. strArray217[index163] = str246;
  2468. strArray216[2] = ",";
  2469. string[] strArray218 = strArray216;
  2470. int index164 = 3;
  2471. num = transform3.position.y;
  2472. string str247 = num.ToString("0.###");
  2473. strArray218[index164] = str247;
  2474. strArray216[4] = ",";
  2475. string[] strArray219 = strArray216;
  2476. int index165 = 5;
  2477. num = transform3.position.z;
  2478. string str248 = num.ToString("0.###");
  2479. strArray219[index165] = str248;
  2480. string str249 = string.Concat(strArray216);
  2481. str1 = str1 + str24 + str25 + str131 + str249;
  2482. if (i + 1 != maidCnt)
  2483. str1 += ";";
  2484. }
  2485. string str250 = "_" + (object)lightKage[0] + ",";
  2486. string str251;
  2487. if (isBloom)
  2488. {
  2489. string str24 = str250 + "1," + (object)bloom1 + "," + (object)bloom2 + "," + (object)bloom3 + "," + (object)bloom4 + "," + (object)bloom5 + ",";
  2490. str251 = !isBloomA ? str24 + "0," : str24 + "1,";
  2491. }
  2492. else
  2493. str251 = str250 + "0,0,0,0,0,0,0,";
  2494. string str252 = (!isBlur ? (object)(str251 + "0,0,0,0,0,") : (object)(str251 + "1," + (object)blur1 + "," + (object)blur2 + "," + (object)blur3 + "," + (object)blur4 + ",")).ToString() + (object)bokashi + "," + (object)kamiyure + ",";
  2495. string str253;
  2496. if (isDepth)
  2497. {
  2498. string str24 = str252 + "1," + (object)depth1 + "," + (object)depth2 + "," + (object)depth3 + "," + (object)depth4 + ",";
  2499. str253 = !isDepthA ? str24 + "0," : str24 + "1,";
  2500. }
  2501. else
  2502. str253 = str252 + "0,0,0,0,0,0,";
  2503. string str254 = !isFog ? str253 + "0,0,0,0,0,0,0,0," : str253 + "1," + (object)fog1 + "," + (object)fog2 + "," + (object)fog3 + "," + (object)fog4 + "," + (object)fog5 + "," + (object)fog6 + "," + (object)fog7 + ",";
  2504. string str255 = !isSepia ? str254 + "0" : str254 + "1";
  2505. string str256 = "_";
  2506. for (int index15 = 1; index15 < lightList.Count; ++index15)
  2507. str256 = str256 + (object)lightIndex[index15] + "," + (object)lightColorR[index15] + "," + (object)lightColorG[index15] + "," + (object)lightColorB[index15] + "," + (object)lightX[index15] + "," + (object)lightY[index15] + "," + (object)lightAkarusa[index15] + "," + (object)lightRange[index15] + ";";
  2508. string str257 = "_";
  2509. for (int index15 = 0; index15 < doguBObject.Count; ++index15)
  2510. {
  2511. string str24 = str257 + doguBObject[index15].name.Replace("_", " ") + ",";
  2512. string[] strArray20 = new string[7];
  2513. strArray20[0] = str24;
  2514. string[] strArray21 = strArray20;
  2515. int index16 = 1;
  2516. num = doguBObject[index15].transform.localEulerAngles.x;
  2517. string str25 = num.ToString("0.###");
  2518. strArray21[index16] = str25;
  2519. strArray20[2] = ",";
  2520. string[] strArray22 = strArray20;
  2521. int index17 = 3;
  2522. num = doguBObject[index15].transform.localEulerAngles.y;
  2523. string str26 = num.ToString("0.###");
  2524. strArray22[index17] = str26;
  2525. strArray20[4] = ",";
  2526. string[] strArray23 = strArray20;
  2527. int index18 = 5;
  2528. num = doguBObject[index15].transform.localEulerAngles.z;
  2529. string str27 = num.ToString("0.###");
  2530. strArray23[index18] = str27;
  2531. strArray20[6] = ",";
  2532. string str28 = string.Concat(strArray20);
  2533. string[] strArray24 = new string[7];
  2534. strArray24[0] = str28;
  2535. string[] strArray25 = strArray24;
  2536. int index19 = 1;
  2537. num = doguBObject[index15].transform.position.x;
  2538. string str29 = num.ToString("0.###");
  2539. strArray25[index19] = str29;
  2540. strArray24[2] = ",";
  2541. string[] strArray26 = strArray24;
  2542. int index20 = 3;
  2543. num = doguBObject[index15].transform.position.y;
  2544. string str30 = num.ToString("0.###");
  2545. strArray26[index20] = str30;
  2546. strArray24[4] = ",";
  2547. string[] strArray27 = strArray24;
  2548. int index21 = 5;
  2549. num = doguBObject[index15].transform.position.z;
  2550. string str31 = num.ToString("0.###");
  2551. strArray27[index21] = str31;
  2552. strArray24[6] = ",";
  2553. string str32 = string.Concat(strArray24);
  2554. string[] strArray28 = new string[6];
  2555. strArray28[0] = str32;
  2556. string[] strArray29 = strArray28;
  2557. int index22 = 1;
  2558. num = doguBObject[index15].transform.localScale.x;
  2559. string str33 = num.ToString("0.###");
  2560. strArray29[index22] = str33;
  2561. strArray28[2] = ",";
  2562. string[] strArray30 = strArray28;
  2563. int index23 = 3;
  2564. num = doguBObject[index15].transform.localScale.y;
  2565. string str34 = num.ToString("0.###");
  2566. strArray30[index23] = str34;
  2567. strArray28[4] = ",";
  2568. string[] strArray31 = strArray28;
  2569. int index24 = 5;
  2570. num = doguBObject[index15].transform.localScale.z;
  2571. string str35 = num.ToString("0.###");
  2572. strArray31[index24] = str35;
  2573. str257 = string.Concat(strArray28) + ";";
  2574. }
  2575. string str258 = "_";
  2576. for (int index15 = 0; index15 < lightList.Count; ++index15)
  2577. str258 = str258 + (object)lightList[index15].transform.position.x + "," + (object)lightList[index15].transform.position.y + "," + (object)lightList[index15].transform.position.z + ";";
  2578. this.Preferences["scene"]["s" + (object)saveScene].Value = str36 + str1 + str255 + str256 + str257 + str258;
  2579. this.SaveConfig();
  2580. saveScene = 0;
  2581. }
  2582. for (int index = 0; index < maidCnt; ++index)
  2583. {
  2584. if (haraCount[index] > 0)
  2585. {
  2586. --haraCount[index];
  2587. CMT.SearchObjName(maidArray[index].body0.m_Bones.transform, "Bip01", true).position = haraPosition[index];
  2588. }
  2589. if (isLoadFace[index])
  2590. {
  2591. isLoadFace[index] = false;
  2592. TMorph morph = maidArray[index].body0.Face.morph;
  2593. float[] fieldValue = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  2594. fieldValue[(int)morph.hash[(object)"mouthuphalf"]] = fieldValue[(int)morph.hash[(object)"mouthuphalf"]] - 0.01f;
  2595. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  2596. }
  2597. }
  2598. if (isScene)
  2599. {
  2600. isScene = false;
  2601. string[] strArray1 = this.Preferences["scene"]["s" + (object)loadScene].Value.Split('_');
  2602. string[] strArray2 = strArray1[1].Split(';');
  2603. string[] strArray3 = strArray1[0].Split(',');
  2604. string[] strArray4 = (string[])null;
  2605. string[] strArray5 = (string[])null;
  2606. string[] strArray6 = (string[])null;
  2607. string[] strArray7 = (string[])null;
  2608. if (strArray1.Length >= 5)
  2609. {
  2610. strArray4 = strArray1[2].Split(',');
  2611. strArray5 = strArray1[3].Split(';');
  2612. strArray6 = strArray1[4].Split(';');
  2613. }
  2614. if (strArray1.Length >= 6)
  2615. strArray7 = strArray1[5].Split(';');
  2616. if (!int.TryParse(strArray3[2], out bgIndex))
  2617. {
  2618. string str = strArray3[2].Replace(" ", "_");
  2619. for (int index = 0; index < bgArray.Length; ++index)
  2620. {
  2621. if (str == bgArray[index])
  2622. {
  2623. bgIndex = index;
  2624. break;
  2625. }
  2626. }
  2627. }
  2628. if (bgArray[bgIndex].Length == 36)
  2629. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  2630. else
  2631. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  2632. bgCombo.selectedItemIndex = bgIndex;
  2633. bg.localEulerAngles = new Vector3(float.Parse(strArray3[3]), float.Parse(strArray3[4]), float.Parse(strArray3[5]));
  2634. bg.position = new Vector3(float.Parse(strArray3[6]), float.Parse(strArray3[7]), float.Parse(strArray3[8]));
  2635. bg.localScale = new Vector3(float.Parse(strArray3[9]), float.Parse(strArray3[10]), float.Parse(strArray3[11]));
  2636. softG = new Vector3(float.Parse(strArray3[12]), float.Parse(strArray3[13]), float.Parse(strArray3[14]));
  2637. for (int index1 = 0; index1 < maidCnt; ++index1)
  2638. {
  2639. Maid maid = maidArray[index1];
  2640. delCount[index1] = 20;
  2641. if (!isVR && goSlot[(int)selectList[index1]] != null)
  2642. {
  2643. maidArray[index1].body0.goSlot = new List<TBodySkin>((IEnumerable<TBodySkin>)goSlot[(int)selectList[index1]]);
  2644. for (int index2 = 0; index2 < bodyHit[(int)selectList[index1]].Count; ++index2)
  2645. maidArray[index1].body0.goSlot[index2].bonehair.bodyhit = bodyHit[(int)selectList[index1]][index2];
  2646. }
  2647. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  2648. {
  2649. if ((UnityEngine.Object)maid.body0.goSlot[index2].obj != (UnityEngine.Object)null)
  2650. {
  2651. DynamicBone component = maid.body0.goSlot[index2].obj.GetComponent<DynamicBone>();
  2652. if ((UnityEngine.Object)component != (UnityEngine.Object)null && component.enabled)
  2653. component.m_Gravity = new Vector3(softG.x * 5f, softG.y * 5f + kamiyure, softG.z * 5f);
  2654. }
  2655. List<THair1> fieldValue = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TBoneHair_, List<THair1>>(maid.body0.goSlot[index2].bonehair, "hair1list");
  2656. for (int index3 = 0; index3 < fieldValue.Count; ++index3)
  2657. fieldValue[index3].SoftG = new Vector3(softG.x, softG.y + kamiyure, softG.z);
  2658. }
  2659. }
  2660. if (!kankyoLoadFlg)
  2661. {
  2662. int bgmIndex = this.bgmIndex;
  2663. this.bgmIndex = int.Parse(strArray3[15]);
  2664. if (bgmIndex != this.bgmIndex)
  2665. {
  2666. GameMain.Instance.SoundMgr.PlayBGM(bgmArray[this.bgmIndex] + ".ogg", 0.0f, true);
  2667. bgmCombo.selectedItemIndex = this.bgmIndex;
  2668. }
  2669. }
  2670. if (doguObject.Count > 0 && (UnityEngine.Object)doguObject[doguSelectIndex] != (UnityEngine.Object)null)
  2671. {
  2672. UnityEngine.Object.Destroy((UnityEngine.Object)doguObject[doguSelectIndex]);
  2673. doguObject.RemoveAt(doguSelectIndex);
  2674. doguIndex.RemoveAt(doguSelectIndex);
  2675. }
  2676. doguSelectIndex = 0;
  2677. if (strArray3.Length > 16)
  2678. {
  2679. effectIndex = int.Parse(strArray3[16]);
  2680. if (!isVR)
  2681. {
  2682. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  2683. component.mode = Vignetting.AberrationMode.Simple;
  2684. component.intensity = -3.98f;
  2685. component.chromaticAberration = -0.75f;
  2686. component.axialAberration = 1.18f;
  2687. component.blurSpread = 4.19f;
  2688. component.luminanceDependency = 0.494f;
  2689. component.blurDistance = 1.71f;
  2690. component.enabled = false;
  2691. if ((bool)((UnityEngine.Object)kami))
  2692. kami.SetActive(false);
  2693. if (effectIndex == 0)
  2694. component.enabled = false;
  2695. if (effectIndex == 1)
  2696. {
  2697. component.mode = Vignetting.AberrationMode.Simple;
  2698. component.intensity = -1f;
  2699. component.chromaticAberration = 0.0f;
  2700. component.axialAberration = 0.0f;
  2701. component.blurSpread = 5f;
  2702. component.luminanceDependency = 0.0f;
  2703. component.blurDistance = 0.0f;
  2704. component.enabled = true;
  2705. }
  2706. if (effectIndex == 2)
  2707. component.enabled = true;
  2708. if (effectIndex == 3)
  2709. {
  2710. component.mode = Vignetting.AberrationMode.Simple;
  2711. component.intensity = 9f;
  2712. component.chromaticAberration = 0.0f;
  2713. component.axialAberration = 0.0f;
  2714. component.blurSpread = 5f;
  2715. component.luminanceDependency = 0.0f;
  2716. component.blurDistance = 0.0f;
  2717. component.enabled = true;
  2718. }
  2719. if (effectIndex == 4)
  2720. {
  2721. kami = (GameObject)UnityEngine.Object.Instantiate(Resources.Load("Prefab/p_kamihubuki_photo_ver"));
  2722. Vector3 localPosition = kami.transform.localPosition;
  2723. localPosition.y = 3.5f;
  2724. kami.transform.localPosition = localPosition;
  2725. }
  2726. if (effectIndex == 5)
  2727. {
  2728. kami = (GameObject)UnityEngine.Object.Instantiate(Resources.Load("Prefab/p_kamihubuki_photo_ver"));
  2729. Vector3 localPosition = kami.transform.localPosition;
  2730. localPosition.y = 3.5f;
  2731. kami.transform.localPosition = localPosition;
  2732. component.enabled = true;
  2733. component.mode = Vignetting.AberrationMode.Simple;
  2734. component.intensity = -2.5f;
  2735. component.chromaticAberration = -0.3f;
  2736. component.axialAberration = 0.5f;
  2737. component.blurSpread = 4.5f;
  2738. component.luminanceDependency = 0.2f;
  2739. component.blurDistance = 0.8f;
  2740. component.enabled = true;
  2741. }
  2742. Vector3 localPosition1;
  2743. if (effectIndex == 6)
  2744. {
  2745. kami.SetActive(false);
  2746. kami = (GameObject)UnityEngine.Object.Instantiate(Resources.Load("Prefab/p_powder_snow_photo_ver"));
  2747. localPosition1 = kami.transform.localPosition;
  2748. localPosition1.y = 3.5f;
  2749. kami.transform.localPosition = localPosition1;
  2750. }
  2751. if (effectIndex == 7)
  2752. {
  2753. kami.SetActive(false);
  2754. kami = (GameObject)UnityEngine.Object.Instantiate(Resources.Load("Prefab/p_powder_snow_photo_ver"));
  2755. localPosition1 = kami.transform.localPosition;
  2756. localPosition1.y = 3.5f;
  2757. kami.transform.localPosition = localPosition1;
  2758. component.enabled = true;
  2759. component.mode = Vignetting.AberrationMode.Simple;
  2760. component.intensity = -2.5f;
  2761. component.chromaticAberration = -0.3f;
  2762. component.axialAberration = 0.5f;
  2763. component.blurSpread = 4.5f;
  2764. component.luminanceDependency = 0.2f;
  2765. component.blurDistance = 0.8f;
  2766. component.enabled = true;
  2767. }
  2768. if (effectIndex == 8)
  2769. {
  2770. kami.SetActive(false);
  2771. kami = (GameObject)UnityEngine.Object.Instantiate(Resources.Load("Prefab/p_powder_snow_photo_ver"));
  2772. localPosition1 = kami.transform.localPosition;
  2773. localPosition1.y = 3.5f;
  2774. kami.transform.localPosition = localPosition1;
  2775. component.mode = Vignetting.AberrationMode.Simple;
  2776. component.intensity = 8f;
  2777. component.chromaticAberration = 0.0f;
  2778. component.axialAberration = 0.0f;
  2779. component.blurSpread = 5f;
  2780. component.luminanceDependency = 0.0f;
  2781. component.blurDistance = 0.0f;
  2782. component.enabled = true;
  2783. }
  2784. }
  2785. for (int index = 1; index < lightList.Count; ++index)
  2786. UnityEngine.Object.Destroy((UnityEngine.Object)lightList[index]);
  2787. lightIndex = new List<int>();
  2788. lightIndex.Add(0);
  2789. lightColorR = new List<float>();
  2790. lightColorR.Add(1f);
  2791. lightColorG = new List<float>();
  2792. lightColorG.Add(1f);
  2793. lightColorB = new List<float>();
  2794. lightColorB.Add(1f);
  2795. lightX = new List<float>();
  2796. lightX.Add(40f);
  2797. lightY = new List<float>();
  2798. lightY.Add(180f);
  2799. lightAkarusa = new List<float>();
  2800. lightAkarusa.Add(0.95f);
  2801. lightKage = new List<float>();
  2802. lightKage.Add(0.098f);
  2803. lightRange = new List<float>();
  2804. lightRange.Add(50f);
  2805. lightCombo.selectedItemIndex = 0;
  2806. lightList = new List<GameObject>();
  2807. lightList.Add(GameMain.Instance.MainLight.gameObject);
  2808. lightComboList = new GUIContent[lightList.Count];
  2809. for (int index = 0; index < lightList.Count; ++index)
  2810. lightComboList[index] = index != 0 ? new GUIContent("追加" + (object)index) : new GUIContent("メイン");
  2811. selectLightIndex = 0;
  2812. GameMain.Instance.MainLight.Reset();
  2813. GameMain.Instance.MainLight.SetIntensity(0.95f);
  2814. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().spotAngle = 50f;
  2815. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().range = 10f;
  2816. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  2817. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().type = LightType.Directional;
  2818. bgObject.SetActive(true);
  2819. mainCamera.GetComponent<UnityEngine.Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  2820. isIdx1 = false;
  2821. isIdx2 = false;
  2822. isIdx3 = false;
  2823. isIdx4 = false;
  2824. lightIndex[0] = int.Parse(strArray3[17]);
  2825. lightColorR[0] = float.Parse(strArray3[18]);
  2826. lightColorG[0] = float.Parse(strArray3[19]);
  2827. lightColorB[0] = float.Parse(strArray3[20]);
  2828. GameMain.Instance.MainLight.Reset();
  2829. GameMain.Instance.MainLight.SetIntensity(0.95f);
  2830. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().spotAngle = 50f;
  2831. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().range = 10f;
  2832. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  2833. if (lightIndex[0] == 0)
  2834. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().type = LightType.Directional;
  2835. else if (lightIndex[0] == 1)
  2836. {
  2837. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right * 40f;
  2838. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().type = LightType.Spot;
  2839. }
  2840. else if (lightIndex[0] == 2)
  2841. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().type = LightType.Point;
  2842. else if (lightIndex[0] == 3)
  2843. {
  2844. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().type = LightType.Directional;
  2845. bgObject.SetActive(false);
  2846. }
  2847. if (lightIndex[0] != 3)
  2848. {
  2849. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().color = new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  2850. bgObject.SetActive(true);
  2851. mainCamera.GetComponent<UnityEngine.Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  2852. }
  2853. else
  2854. mainCamera.GetComponent<UnityEngine.Camera>().backgroundColor = new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  2855. GameMain.Instance.MainLight.transform.eulerAngles = new Vector3(float.Parse(strArray3[21]), float.Parse(strArray3[22]), float.Parse(strArray3[23]));
  2856. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().intensity = float.Parse(strArray3[24]);
  2857. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().spotAngle = float.Parse(strArray3[25]);
  2858. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().range = float.Parse(strArray3[26]);
  2859. lightX = new List<float>();
  2860. lightX.Add(float.Parse(strArray3[21]));
  2861. lightY = new List<float>();
  2862. lightY.Add(float.Parse(strArray3[22]));
  2863. lightAkarusa = new List<float>();
  2864. lightAkarusa.Add(float.Parse(strArray3[24]));
  2865. lightKage = new List<float>();
  2866. lightKage.Add(0.098f);
  2867. lightRange = new List<float>();
  2868. lightRange.Add(float.Parse(strArray3[25]));
  2869. selectLightIndex = 0;
  2870. isIdx1 = false;
  2871. isIdx2 = false;
  2872. isIdx3 = false;
  2873. isIdx4 = false;
  2874. if (!kankyoLoadFlg && !isVR)
  2875. {
  2876. mainCamera.SetTargetPos(new Vector3(float.Parse(strArray3[27]), float.Parse(strArray3[28]), float.Parse(strArray3[29])), true);
  2877. mainCamera.SetDistance(float.Parse(strArray3[30]), true);
  2878. mainCamera.transform.eulerAngles = new Vector3(float.Parse(strArray3[31]), float.Parse(strArray3[32]), float.Parse(strArray3[33]));
  2879. if (int.Parse(strArray3[34]) == 1)
  2880. {
  2881. inName = strArray3[35];
  2882. inText = strArray3[36];
  2883. inText = inText.Replace("&kaigyo", "\n");
  2884. isMessage = true;
  2885. bGuiMessage = false;
  2886. GameObject gameObject = GameObject.Find("__GameMain__/SystemUI Root").transform.Find("MessageWindowPanel").gameObject;
  2887. MessageWindowMgr messageWindowMgr = GameMain.Instance.ScriptMgr.adv_kag.MessageWindowMgr;
  2888. messageWindowMgr.OpenMessageWindowPanel();
  2889. MessageClass messageClass = new MessageClass(gameObject, messageWindowMgr);
  2890. messageClass.SetText(inName, inText, "", 0);
  2891. messageClass.FinishChAnime();
  2892. }
  2893. else if (isMessage)
  2894. {
  2895. isMessage = false;
  2896. GameObject gameObject = GameObject.Find("__GameMain__/SystemUI Root").transform.Find("MessageWindowPanel").gameObject;
  2897. GameMain.Instance.ScriptMgr.adv_kag.MessageWindowMgr.CloseMessageWindowPanel();
  2898. }
  2899. }
  2900. }
  2901. if (strArray3.Length > 37 && strArray3[37] != "")
  2902. {
  2903. if (doguSelectIndex == doguObject.Count)
  2904. doguIndex.Add(0);
  2905. else if (doguObject.Count > 0 && (UnityEngine.Object)doguObject[doguSelectIndex] != (UnityEngine.Object)null)
  2906. {
  2907. UnityEngine.Object.Destroy((UnityEngine.Object)doguObject[doguSelectIndex]);
  2908. doguObject.RemoveAt(doguSelectIndex);
  2909. }
  2910. else
  2911. {
  2912. doguIndex.Add(0);
  2913. doguSelectIndex = doguIndex.Count - 1;
  2914. }
  2915. string str = strArray3[37].Replace(" ", "_");
  2916. for (int index = 0; index < doguArray.Length; ++index)
  2917. {
  2918. if (str == doguArray[index])
  2919. {
  2920. doguIndex[doguSelectIndex] = index;
  2921. break;
  2922. }
  2923. }
  2924. if (!doguArray[doguIndex[doguSelectIndex]].StartsWith("mirror"))
  2925. {
  2926. UnityEngine.Object original = (UnityEngine.Object)null;
  2927. for (int index = 0; index < 5; ++index)
  2928. {
  2929. original = Resources.Load("Prefab/" + doguArray[doguIndex[doguSelectIndex]]);
  2930. if (!(original != (UnityEngine.Object)null))
  2931. {
  2932. List<int> doguIndex;
  2933. int doguSelectIndex;
  2934. (doguIndex = this.doguIndex)[doguSelectIndex = this.doguSelectIndex] = doguIndex[doguSelectIndex] + 1;
  2935. }
  2936. else
  2937. break;
  2938. }
  2939. doguObject.Add(UnityEngine.Object.Instantiate(original) as GameObject);
  2940. }
  2941. else
  2942. {
  2943. Material material = new Material(Shader.Find("Mirror"));
  2944. GameObject primitive = GameObject.CreatePrimitive(PrimitiveType.Plane);
  2945. primitive.transform.localScale = new Vector3(0.3f, 1f, 0.3f);
  2946. primitive.GetComponent<Renderer>().material = material;
  2947. primitive.AddComponent<MirrorReflection2>();
  2948. MirrorReflection2 component = primitive.GetComponent<MirrorReflection2>();
  2949. component.m_TextureSize = 2048;
  2950. component.m_ClipPlaneOffset = 0.0f;
  2951. primitive.GetComponent<Renderer>().enabled = true;
  2952. doguObject.Add(primitive);
  2953. }
  2954. Vector3 zero1 = Vector3.zero;
  2955. Vector3 zero2 = Vector3.zero;
  2956. zero2.x = -90f;
  2957. switch (doguIndex[doguSelectIndex])
  2958. {
  2959. case 1:
  2960. zero1.z = -0.5f;
  2961. break;
  2962. case 2:
  2963. zero1.z = -0.5f;
  2964. break;
  2965. case 3:
  2966. zero1.z = 0.5f;
  2967. zero2.z = 90f;
  2968. break;
  2969. case 4:
  2970. zero1.z = 0.9f;
  2971. break;
  2972. case 5:
  2973. zero1.z = 0.9f;
  2974. break;
  2975. case 6:
  2976. zero1.z = 0.6f;
  2977. zero2.x = 0.0f;
  2978. doguObject[doguSelectIndex].transform.localScale = new Vector3(4.5f, 4.5f, 4.5f);
  2979. break;
  2980. case 7:
  2981. zero1.z = 0.6f;
  2982. doguObject[doguSelectIndex].transform.localScale = new Vector3(3.5f, 3.5f, 3.5f);
  2983. break;
  2984. case 8:
  2985. zero1.z = 0.5f;
  2986. zero2.x = 0.0f;
  2987. break;
  2988. case 9:
  2989. zero1.z = 0.32f;
  2990. zero2.z = 180f;
  2991. break;
  2992. case 10:
  2993. zero1.z = 0.6f;
  2994. break;
  2995. case 11:
  2996. zero1.z = 0.6f;
  2997. break;
  2998. case 12:
  2999. zero1.z = 0.5f;
  3000. zero2.z = 180f;
  3001. break;
  3002. case 13:
  3003. zero1.z = 0.7f;
  3004. zero2.z = 180f;
  3005. break;
  3006. case 14:
  3007. zero1.z = -0.4f;
  3008. break;
  3009. case 15:
  3010. zero1.z = -0.4f;
  3011. break;
  3012. case 16:
  3013. zero1.z = -0.4f;
  3014. zero2.z = 180f;
  3015. break;
  3016. case 17:
  3017. zero1.z = -0.4f;
  3018. break;
  3019. case 18:
  3020. zero1.z = -0.2f;
  3021. break;
  3022. case 19:
  3023. zero1.z = 0.0f;
  3024. break;
  3025. case 20:
  3026. zero1.z = 3.4f;
  3027. zero1.x = -1f;
  3028. break;
  3029. case 21:
  3030. zero1.z = 3.4f;
  3031. zero1.x = -1f;
  3032. break;
  3033. case 22:
  3034. zero1.z = 3.4f;
  3035. zero1.y = 0.3f;
  3036. zero1.x = -1f;
  3037. break;
  3038. case 23:
  3039. zero1.z = 2.7f;
  3040. zero1.x = 0.77f;
  3041. zero2.z = 90f;
  3042. break;
  3043. case 25:
  3044. zero1.z = 0.5f;
  3045. zero1.y = 0.9f;
  3046. zero2.z = 180f;
  3047. break;
  3048. case 26:
  3049. zero1.z = 0.5f;
  3050. zero1.y = 0.9f;
  3051. zero2.z = 180f;
  3052. break;
  3053. case 29:
  3054. zero1.z = 0.5f;
  3055. zero1.x = -1.05f;
  3056. break;
  3057. case 30:
  3058. zero1.z = 0.0f;
  3059. zero2.z = 0.0f;
  3060. doguObject[doguSelectIndex].transform.localScale = new Vector3(0.75f, 0.75f, 0.75f);
  3061. break;
  3062. case 31:
  3063. zero1.z = -0.6f;
  3064. zero1.y = 0.96f;
  3065. zero2.z = 180f;
  3066. doguObject[doguSelectIndex].transform.localScale = new Vector3(0.2f, 0.4f, 0.2f);
  3067. break;
  3068. case 32:
  3069. zero1.z = -0.6f;
  3070. zero1.y = 0.96f;
  3071. zero2.z = 180f;
  3072. doguObject[doguSelectIndex].transform.localScale = new Vector3(0.1f, 0.4f, 0.2f);
  3073. break;
  3074. case 33:
  3075. zero1.z = -0.6f;
  3076. zero1.y = 0.85f;
  3077. zero2.z = 180f;
  3078. doguObject[doguSelectIndex].transform.localScale = new Vector3(0.03f, 0.18f, 0.124f);
  3079. break;
  3080. default:
  3081. zero1.z = 0.5f;
  3082. break;
  3083. }
  3084. doguObject[doguSelectIndex].transform.localPosition = zero1;
  3085. doguObject[doguSelectIndex].transform.localRotation = Quaternion.Euler(zero2);
  3086. doguObject[doguSelectIndex].transform.localEulerAngles = new Vector3(float.Parse(strArray3[38]), float.Parse(strArray3[39]), float.Parse(strArray3[40]));
  3087. doguObject[doguSelectIndex].transform.position = new Vector3(float.Parse(strArray3[41]), float.Parse(strArray3[42]), float.Parse(strArray3[43]));
  3088. doguObject[doguSelectIndex].transform.localScale = new Vector3(float.Parse(strArray3[44]), float.Parse(strArray3[45]), float.Parse(strArray3[46]));
  3089. }
  3090. if (!kankyoLoadFlg)
  3091. {
  3092. for (int i = 0; i < strArray2.Length && maidCnt > i; ++i)
  3093. {
  3094. Maid maid = maidArray[i];
  3095. if ((bool)((UnityEngine.Object)maid) && maid.Visible)
  3096. {
  3097. this.SetIK(maid, i);
  3098. Transform transform1 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  3099. Transform transform2 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0", true);
  3100. Transform transform3 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0", true);
  3101. Transform transform4 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe01", true);
  3102. Transform transform5 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe01", true);
  3103. Transform transform6 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0Nub", true);
  3104. Transform transform7 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0Nub", true);
  3105. Transform transform8 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1", true);
  3106. Transform transform9 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1", true);
  3107. Transform transform10 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe11", true);
  3108. Transform transform11 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe11", true);
  3109. Transform transform12 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1Nub", true);
  3110. Transform transform13 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1Nub", true);
  3111. Transform transform14 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2", true);
  3112. Transform transform15 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2", true);
  3113. Transform transform16 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe21", true);
  3114. Transform transform17 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe21", true);
  3115. Transform transform18 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2Nub", true);
  3116. Transform transform19 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2Nub", true);
  3117. string[] strArray8 = strArray2[i].Split(':');
  3118. for (int index = 0; index < 40; ++index)
  3119. {
  3120. string[] strArray9 = strArray8[index].Split(',');
  3121. Finger[i, index].localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3122. }
  3123. bool flag1 = false;
  3124. if (strArray8.Length == 64)
  3125. flag1 = true;
  3126. if (!isVR)
  3127. {
  3128. maid.body0.quaDefEyeL.eulerAngles = eyeL[(int)selectList[i]];
  3129. maid.body0.quaDefEyeR.eulerAngles = eyeR[(int)selectList[i]];
  3130. }
  3131. for (int index1 = 0; index1 < 3; ++index1)
  3132. {
  3133. for (int index2 = 40; index2 < strArray8.Length; ++index2)
  3134. {
  3135. string[] strArray9 = strArray8[index2].Split(',');
  3136. switch (index2)
  3137. {
  3138. case 40:
  3139. if (flag1)
  3140. Spine.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3141. if (!flag1)
  3142. {
  3143. Spine.eulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3144. break;
  3145. }
  3146. break;
  3147. case 41:
  3148. if (flag1)
  3149. Spine0a.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3150. if (!flag1)
  3151. {
  3152. Spine0a.eulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3153. break;
  3154. }
  3155. break;
  3156. case 42:
  3157. if (flag1)
  3158. Spine1.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3159. if (!flag1)
  3160. {
  3161. Spine1.eulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3162. break;
  3163. }
  3164. break;
  3165. case 43:
  3166. if (flag1)
  3167. Spine1a.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3168. if (!flag1)
  3169. {
  3170. Spine1a.eulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3171. break;
  3172. }
  3173. break;
  3174. case 44:
  3175. if (flag1)
  3176. Pelvis.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3177. if (!flag1)
  3178. {
  3179. Pelvis.eulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3180. break;
  3181. }
  3182. break;
  3183. case 45:
  3184. HandL1[i].localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3185. break;
  3186. case 46:
  3187. if (flag1)
  3188. UpperArmL1[i].localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3189. if (!flag1)
  3190. {
  3191. UpperArmL1[i].eulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3192. break;
  3193. }
  3194. break;
  3195. case 47:
  3196. if (flag1)
  3197. ForearmL1[i].localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3198. if (!flag1)
  3199. {
  3200. ForearmL1[i].eulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3201. break;
  3202. }
  3203. break;
  3204. case 48:
  3205. HandR1[i].localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3206. break;
  3207. case 49:
  3208. if (flag1)
  3209. UpperArmR1[i].localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3210. if (!flag1)
  3211. {
  3212. UpperArmR1[i].eulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3213. break;
  3214. }
  3215. break;
  3216. case 50:
  3217. if (flag1)
  3218. ForearmR1[i].localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3219. if (!flag1)
  3220. {
  3221. ForearmR1[i].eulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3222. break;
  3223. }
  3224. break;
  3225. case 51:
  3226. HandL2[i].localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3227. break;
  3228. case 52:
  3229. if (flag1)
  3230. UpperArmL2[i].localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3231. if (!flag1)
  3232. {
  3233. UpperArmL2[i].eulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3234. break;
  3235. }
  3236. break;
  3237. case 53:
  3238. if (flag1)
  3239. ForearmL2[i].localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3240. if (!flag1)
  3241. {
  3242. ForearmL2[i].eulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3243. break;
  3244. }
  3245. break;
  3246. case 54:
  3247. HandR2[i].localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3248. break;
  3249. case 55:
  3250. if (flag1)
  3251. UpperArmR2[i].localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3252. if (!flag1)
  3253. {
  3254. UpperArmR2[i].eulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3255. break;
  3256. }
  3257. break;
  3258. case 56:
  3259. if (flag1)
  3260. ForearmR2[i].localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3261. if (!flag1)
  3262. {
  3263. ForearmR2[i].eulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3264. break;
  3265. }
  3266. break;
  3267. case 57:
  3268. if (flag1)
  3269. Head.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3270. if (!flag1)
  3271. {
  3272. Head.eulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3273. break;
  3274. }
  3275. break;
  3276. case 58:
  3277. maid.transform.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3278. break;
  3279. case 59:
  3280. maid.transform.position = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3281. break;
  3282. case 60:
  3283. maid.transform.localScale = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3284. break;
  3285. case 63:
  3286. if (index1 <= 0)
  3287. {
  3288. hanten[i] = false;
  3289. hantenn[i] = false;
  3290. TMorph morph = maid.body0.Face.morph;
  3291. float[] fieldValue1 = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  3292. float[] fieldValue2 = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  3293. if (!isVR)
  3294. maid.boMabataki = false;
  3295. fieldValue2[(int)morph.hash[(object)"eyeclose"]] = float.Parse(strArray9[0]);
  3296. fieldValue2[(int)morph.hash[(object)"eyeclose2"]] = float.Parse(strArray9[1]);
  3297. fieldValue2[(int)morph.hash[(object)"eyeclose3"]] = float.Parse(strArray9[2]);
  3298. fieldValue2[(int)morph.hash[(object)"eyeclose6"]] = float.Parse(strArray9[3]);
  3299. fieldValue1[(int)morph.hash[(object)"hitomih"]] = float.Parse(strArray9[4]);
  3300. fieldValue1[(int)morph.hash[(object)"hitomis"]] = float.Parse(strArray9[5]);
  3301. fieldValue1[(int)morph.hash[(object)"mayuha"]] = float.Parse(strArray9[6]);
  3302. fieldValue1[(int)morph.hash[(object)"mayuup"]] = float.Parse(strArray9[7]);
  3303. fieldValue1[(int)morph.hash[(object)"mayuv"]] = float.Parse(strArray9[8]);
  3304. fieldValue1[(int)morph.hash[(object)"mayuvhalf"]] = float.Parse(strArray9[9]);
  3305. fieldValue1[(int)morph.hash[(object)"moutha"]] = float.Parse(strArray9[10]);
  3306. fieldValue1[(int)morph.hash[(object)"mouths"]] = float.Parse(strArray9[11]);
  3307. fieldValue1[(int)morph.hash[(object)"mouthdw"]] = float.Parse(strArray9[12]);
  3308. fieldValue1[(int)morph.hash[(object)"mouthup"]] = float.Parse(strArray9[13]);
  3309. fieldValue1[(int)morph.hash[(object)"tangout"]] = float.Parse(strArray9[14]);
  3310. fieldValue1[(int)morph.hash[(object)"tangup"]] = float.Parse(strArray9[15]);
  3311. fieldValue1[(int)morph.hash[(object)"eyebig"]] = float.Parse(strArray9[16]);
  3312. fieldValue2[(int)morph.hash[(object)"eyeclose5"]] = float.Parse(strArray9[17]);
  3313. fieldValue1[(int)morph.hash[(object)"mayuw"]] = float.Parse(strArray9[18]);
  3314. fieldValue1[(int)morph.hash[(object)"mouthhe"]] = float.Parse(strArray9[19]);
  3315. fieldValue1[(int)morph.hash[(object)"mouthc"]] = float.Parse(strArray9[20]);
  3316. fieldValue1[(int)morph.hash[(object)"mouthi"]] = float.Parse(strArray9[21]);
  3317. fieldValue1[(int)morph.hash[(object)"mouthuphalf"]] = float.Parse(strArray9[22]) + 0.01f;
  3318. isLoadFace[i] = true;
  3319. try
  3320. {
  3321. fieldValue1[(int)morph.hash[(object)"tangopen"]] = float.Parse(strArray9[23]);
  3322. }
  3323. catch
  3324. {
  3325. }
  3326. if ((double)float.Parse(strArray9[24]) == 1.0)
  3327. fieldValue1[(int)morph.hash[(object)"namida"]] = 1f;
  3328. else
  3329. fieldValue1[(int)morph.hash[(object)"namida"]] = 0.0f;
  3330. if ((double)float.Parse(strArray9[25]) == 1.0)
  3331. fieldValue1[(int)morph.hash[(object)"tear1"]] = 1f;
  3332. else
  3333. fieldValue1[(int)morph.hash[(object)"tear1"]] = 0.0f;
  3334. if ((double)float.Parse(strArray9[26]) == 1.0)
  3335. fieldValue1[(int)morph.hash[(object)"tear2"]] = 1f;
  3336. else
  3337. fieldValue1[(int)morph.hash[(object)"tear2"]] = 0.0f;
  3338. if ((double)float.Parse(strArray9[27]) == 1.0)
  3339. fieldValue1[(int)morph.hash[(object)"tear3"]] = 1f;
  3340. else
  3341. fieldValue1[(int)morph.hash[(object)"tear3"]] = 0.0f;
  3342. if ((double)float.Parse(strArray9[28]) == 1.0)
  3343. fieldValue1[(int)morph.hash[(object)"shock"]] = 1f;
  3344. else
  3345. fieldValue1[(int)morph.hash[(object)"shock"]] = 0.0f;
  3346. if ((double)float.Parse(strArray9[29]) == 1.0)
  3347. fieldValue1[(int)morph.hash[(object)"yodare"]] = 1f;
  3348. else
  3349. fieldValue1[(int)morph.hash[(object)"yodare"]] = 0.0f;
  3350. if ((double)float.Parse(strArray9[30]) == 1.0)
  3351. fieldValue1[(int)morph.hash[(object)"hoho"]] = 0.5f;
  3352. else
  3353. fieldValue1[(int)morph.hash[(object)"hoho"]] = 0.0f;
  3354. if ((double)float.Parse(strArray9[31]) == 1.0)
  3355. fieldValue1[(int)morph.hash[(object)"hoho2"]] = 0.5f;
  3356. else
  3357. fieldValue1[(int)morph.hash[(object)"hoho2"]] = 0.0f;
  3358. if ((double)float.Parse(strArray9[32]) == 1.0)
  3359. fieldValue1[(int)morph.hash[(object)"hohos"]] = 1f;
  3360. else
  3361. fieldValue1[(int)morph.hash[(object)"hohos"]] = 0.0f;
  3362. if ((double)float.Parse(strArray9[33]) == 1.0)
  3363. fieldValue1[(int)morph.hash[(object)"hohol"]] = 1f;
  3364. else
  3365. fieldValue1[(int)morph.hash[(object)"hohol"]] = 0.0f;
  3366. if ((double)float.Parse(strArray9[34]) == 1.0)
  3367. fieldValue1[(int)morph.hash[(object)"toothoff"]] = 1f;
  3368. else
  3369. fieldValue1[(int)morph.hash[(object)"toothoff"]] = 0.0f;
  3370. if (strArray9.Length > 35)
  3371. morph.boNoseFook = (double)float.Parse(strArray9[35]) == 1.0;
  3372. isFace[i] = true;
  3373. isFaceInit = true;
  3374. break;
  3375. }
  3376. break;
  3377. case 64:
  3378. if (index1 <= 0 && !isVR)
  3379. {
  3380. if (int.Parse(strArray9[0]) == 1)
  3381. {
  3382. isLook[i] = true;
  3383. lookX[i] = float.Parse(strArray9[1]);
  3384. lookY[i] = float.Parse(strArray9[2]);
  3385. if ((double)maid.body0.offsetLookTarget.x != (double)lookY[i])
  3386. {
  3387. int num = !isLock[i] ? 1 : ((double)lookY[i] >= 0.0 ? 1 : 0);
  3388. maid.body0.offsetLookTarget = num != 0 ? new Vector3(lookY[i], 1f, lookX[i]) : new Vector3(lookY[i] * 0.6f, 1f, lookX[i]);
  3389. }
  3390. if ((double)lookX[i] != (double)lookXn[i])
  3391. {
  3392. lookXn[i] = lookX[i];
  3393. maid.body0.offsetLookTarget = new Vector3(lookY[i], 1f, lookX[i]);
  3394. }
  3395. if ((double)lookY[i] != (double)lookYn[i])
  3396. {
  3397. lookYn[i] = lookY[i];
  3398. int num = !isLock[i] ? 1 : ((double)lookY[i] >= 0.0 ? 1 : 0);
  3399. maid.body0.offsetLookTarget = num != 0 ? new Vector3(lookY[i], 1f, lookX[i]) : new Vector3(lookY[i] * 0.6f, 1f, lookX[i]);
  3400. }
  3401. }
  3402. else
  3403. isLook[i] = false;
  3404. if (isLook[i])
  3405. {
  3406. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  3407. maid.body0.boHeadToCam = true;
  3408. maid.body0.boEyeToCam = true;
  3409. maid.body0.trsLookTarget = (Transform)null;
  3410. }
  3411. else
  3412. {
  3413. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  3414. maid.body0.boHeadToCam = true;
  3415. maid.body0.boEyeToCam = true;
  3416. }
  3417. break;
  3418. }
  3419. break;
  3420. case 65:
  3421. if (index1 <= 0)
  3422. {
  3423. if (itemIndex[i] != int.Parse(strArray9[0]))
  3424. {
  3425. itemIndex[i] = int.Parse(strArray9[0]);
  3426. if (itemIndex[i] == itemArray.Length - 1)
  3427. itemIndex[i] = 0;
  3428. string[] strArray10 = new string[2];
  3429. string[] strArray11 = itemArray[itemIndex[i]].Split(',');
  3430. if (itemIndex[i] > 13)
  3431. strArray11 = itemArray[itemIndex[i] + 1].Split(',');
  3432. maid.DelProp(MPN.handitem, true);
  3433. maid.DelProp(MPN.accvag, true);
  3434. maid.DelProp(MPN.accanl, true);
  3435. bool flag2 = false;
  3436. if (itemIndex[i] == 12 || itemIndex[i] == 13)
  3437. flag2 = true;
  3438. if (!flag2)
  3439. {
  3440. maid.DelProp(MPN.kousoku_upper, true);
  3441. maid.DelProp(MPN.kousoku_lower, true);
  3442. }
  3443. if (strArray11[0] != "")
  3444. maid.SetProp(strArray11[0], strArray11[1], 0, true, false);
  3445. if (itemIndex[i] == 12)
  3446. {
  3447. string[] strArray12 = itemArray[itemIndex[i] - 1].Split(',');
  3448. maid.SetProp(strArray12[0], strArray12[1], 0, true, false);
  3449. }
  3450. if (itemIndex[i] == 13)
  3451. {
  3452. string[] strArray12 = itemArray[itemIndex[i] + 1].Split(',');
  3453. maid.SetProp(strArray12[0], strArray12[1], 0, true, false);
  3454. }
  3455. if (itemIndex[i] == 23)
  3456. {
  3457. string[] strArray12 = itemArray[itemIndex[i]].Split(',');
  3458. maid.SetProp(strArray12[0], strArray12[1], 0, true, false);
  3459. cafeFlg[i] = true;
  3460. }
  3461. maid.AllProcPropSeqStart();
  3462. }
  3463. IK_hand = CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handL", true);
  3464. break;
  3465. }
  3466. break;
  3467. case 66:
  3468. CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handL", true).localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3469. break;
  3470. case 67:
  3471. CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handR", true).localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3472. break;
  3473. case 68:
  3474. if (strArray9.Length >= 2)
  3475. {
  3476. ClavicleL1[i].eulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3477. break;
  3478. }
  3479. break;
  3480. case 69:
  3481. ClavicleR1[i].eulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3482. break;
  3483. case 70:
  3484. if (int.Parse(strArray9[0]) == 1)
  3485. {
  3486. hanten[i] = true;
  3487. hantenn[i] = true;
  3488. break;
  3489. }
  3490. break;
  3491. case 71:
  3492. transform1.eulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3493. break;
  3494. case 72:
  3495. transform2.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3496. break;
  3497. case 73:
  3498. transform3.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3499. break;
  3500. case 74:
  3501. transform4.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3502. break;
  3503. case 75:
  3504. transform5.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3505. break;
  3506. case 76:
  3507. transform6.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3508. break;
  3509. case 77:
  3510. transform7.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3511. break;
  3512. case 78:
  3513. transform8.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3514. break;
  3515. case 79:
  3516. transform9.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3517. break;
  3518. case 80:
  3519. transform10.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3520. break;
  3521. case 81:
  3522. transform11.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3523. break;
  3524. case 82:
  3525. transform12.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3526. break;
  3527. case 83:
  3528. transform13.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3529. break;
  3530. case 84:
  3531. transform14.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3532. break;
  3533. case 85:
  3534. transform15.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3535. break;
  3536. case 86:
  3537. transform16.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3538. break;
  3539. case 87:
  3540. transform17.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3541. break;
  3542. case 88:
  3543. transform18.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3544. break;
  3545. case 89:
  3546. transform19.localEulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3547. break;
  3548. case 90:
  3549. if (!isVR)
  3550. {
  3551. maid.body0.quaDefEyeL.eulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3552. break;
  3553. }
  3554. break;
  3555. case 91:
  3556. if (!isVR)
  3557. {
  3558. maid.body0.quaDefEyeR.eulerAngles = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3559. break;
  3560. }
  3561. break;
  3562. case 92:
  3563. vIKMuneL[i] = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3564. muneIKL[i] = true;
  3565. break;
  3566. case 93:
  3567. vIKMuneLSub[i] = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3568. break;
  3569. case 94:
  3570. vIKMuneR[i] = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3571. muneIKR[i] = true;
  3572. break;
  3573. case 95:
  3574. vIKMuneRSub[i] = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3575. break;
  3576. case 96:
  3577. haraCount[i] = 2;
  3578. haraPosition[i] = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3579. transform1.position = new Vector3(float.Parse(strArray9[0]), float.Parse(strArray9[1]), float.Parse(strArray9[2]));
  3580. break;
  3581. }
  3582. }
  3583. }
  3584. isStop[i] = true;
  3585. isLock[i] = true;
  3586. }
  3587. }
  3588. }
  3589. isBloom = false;
  3590. bloom1 = 2.85f;
  3591. bloom2 = 3f;
  3592. bloom3 = 0.0f;
  3593. bloom4 = 0.0f;
  3594. bloom5 = 0.0f;
  3595. isBloomA = false;
  3596. isBlur = false;
  3597. blur1 = -3.98f;
  3598. blur4 = -0.75f;
  3599. blur2 = 0.9f;
  3600. blur3 = 4.19f;
  3601. bokashi = 0.0f;
  3602. kamiyure = 0.0f;
  3603. isDepth = false;
  3604. isDepthA = false;
  3605. depth1 = 3f;
  3606. depth2 = 0.1f;
  3607. depth3 = 15f;
  3608. depth4 = 3f;
  3609. isFog = false;
  3610. fog1 = 4f;
  3611. fog2 = 1f;
  3612. fog3 = 1f;
  3613. fog4 = 0.0f;
  3614. fog5 = 1f;
  3615. fog6 = 1f;
  3616. fog7 = 1f;
  3617. isSepia = false;
  3618. if (strArray4 != null)
  3619. {
  3620. lightKage[0] = float.Parse(strArray4[0]);
  3621. if (int.Parse(strArray4[1]) == 1)
  3622. {
  3623. isBloom = true;
  3624. bloom1 = float.Parse(strArray4[2]);
  3625. bloom2 = float.Parse(strArray4[3]);
  3626. bloom3 = float.Parse(strArray4[4]);
  3627. bloom4 = float.Parse(strArray4[5]);
  3628. bloom5 = float.Parse(strArray4[6]);
  3629. if (int.Parse(strArray4[7]) == 1)
  3630. isBloomA = true;
  3631. }
  3632. if (int.Parse(strArray4[8]) == 1)
  3633. {
  3634. isBlur = true;
  3635. blur1 = float.Parse(strArray4[9]);
  3636. blur2 = float.Parse(strArray4[10]);
  3637. blur3 = float.Parse(strArray4[11]);
  3638. blur4 = float.Parse(strArray4[12]);
  3639. }
  3640. bokashi = float.Parse(strArray4[13]);
  3641. kamiyure = float.Parse(strArray4[14]);
  3642. if (strArray4.Length > 15)
  3643. {
  3644. if (int.Parse(strArray4[15]) == 1)
  3645. {
  3646. isDepth = true;
  3647. depth1 = float.Parse(strArray4[16]);
  3648. depth2 = float.Parse(strArray4[17]);
  3649. depth3 = float.Parse(strArray4[18]);
  3650. depth4 = float.Parse(strArray4[19]);
  3651. if (int.Parse(strArray4[20]) == 1)
  3652. isDepthA = true;
  3653. }
  3654. if (int.Parse(strArray4[21]) == 1)
  3655. {
  3656. isFog = true;
  3657. fog1 = float.Parse(strArray4[22]);
  3658. fog2 = float.Parse(strArray4[23]);
  3659. fog3 = float.Parse(strArray4[24]);
  3660. fog4 = float.Parse(strArray4[25]);
  3661. fog5 = float.Parse(strArray4[26]);
  3662. fog6 = float.Parse(strArray4[27]);
  3663. fog7 = float.Parse(strArray4[28]);
  3664. }
  3665. if (int.Parse(strArray4[29]) == 1)
  3666. isSepia = true;
  3667. }
  3668. }
  3669. if (strArray5 != null)
  3670. {
  3671. for (int index1 = 0; index1 < strArray5.Length - 1; ++index1)
  3672. {
  3673. string[] strArray8 = strArray5[index1].Split(',');
  3674. GameObject gameObject = new GameObject("Light");
  3675. gameObject.AddComponent<UnityEngine.Light>();
  3676. lightList.Add(gameObject);
  3677. lightIndex.Add(int.Parse(strArray8[0]));
  3678. lightColorR.Add(float.Parse(strArray8[1]));
  3679. lightColorG.Add(float.Parse(strArray8[2]));
  3680. lightColorB.Add(float.Parse(strArray8[3]));
  3681. lightX.Add(float.Parse(strArray8[4]));
  3682. lightY.Add(float.Parse(strArray8[5]));
  3683. lightAkarusa.Add(float.Parse(strArray8[6]));
  3684. lightRange.Add(float.Parse(strArray8[7]));
  3685. lightKage.Add(0.098f);
  3686. gameObject.transform.position = GameMain.Instance.MainLight.transform.position;
  3687. selectLightIndex = lightList.Count - 1;
  3688. lightComboList = new GUIContent[lightList.Count];
  3689. for (int index2 = 0; index2 < lightList.Count; ++index2)
  3690. lightComboList[index2] = index2 != 0 ? new GUIContent("追加" + (object)index2) : new GUIContent("メイン");
  3691. lightCombo.selectedItemIndex = selectLightIndex;
  3692. gameObject.GetComponent<UnityEngine.Light>().intensity = lightAkarusa[index1];
  3693. gameObject.GetComponent<UnityEngine.Light>().spotAngle = lightRange[index1];
  3694. gameObject.GetComponent<UnityEngine.Light>().range = lightRange[index1] / 5f;
  3695. if (lightIndex[selectLightIndex] == 0)
  3696. lightList[selectLightIndex].GetComponent<UnityEngine.Light>().type = LightType.Directional;
  3697. else if (lightIndex[selectLightIndex] == 1)
  3698. lightList[selectLightIndex].GetComponent<UnityEngine.Light>().type = LightType.Spot;
  3699. else if (lightIndex[selectLightIndex] == 2)
  3700. lightList[selectLightIndex].GetComponent<UnityEngine.Light>().type = LightType.Point;
  3701. else if (lightIndex[selectLightIndex] == 3)
  3702. {
  3703. lightList[selectLightIndex].GetComponent<UnityEngine.Light>().type = LightType.Directional;
  3704. lightList[selectLightIndex].SetActive(false);
  3705. }
  3706. }
  3707. }
  3708. if (strArray7 != null)
  3709. {
  3710. for (int index = 0; index < lightList.Count; ++index)
  3711. {
  3712. string[] strArray8 = strArray7[index].Split(',');
  3713. lightList[index].transform.position = new Vector3(float.Parse(strArray8[0]), float.Parse(strArray8[1]), float.Parse(strArray8[2]));
  3714. if ((UnityEngine.Object)gLight[index] == (UnityEngine.Object)null)
  3715. {
  3716. gLight[index] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  3717. gLight[index].GetComponent<Renderer>().material = new Material(Shader.Find("Transparent/Diffuse"))
  3718. {
  3719. color = new Color(0.5f, 0.5f, 1f, 0.8f)
  3720. };
  3721. gLight[index].layer = 8;
  3722. gLight[index].GetComponent<Renderer>().enabled = false;
  3723. gLight[index].SetActive(false);
  3724. gLight[index].transform.position = lightList[index].transform.position;
  3725. mLight[index] = gLight[index].AddComponent<MouseDrag6>();
  3726. mLight[index].obj = gLight[index];
  3727. mLight[index].maid = lightList[index].gameObject;
  3728. mLight[index].angles = lightList[index].transform.eulerAngles;
  3729. gLight[index].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  3730. mLight[index].ido = 1;
  3731. mLight[index].isScale = false;
  3732. }
  3733. }
  3734. }
  3735. if (strArray6 != null)
  3736. {
  3737. for (int index = 0; index < doguBObject.Count; ++index)
  3738. UnityEngine.Object.Destroy((UnityEngine.Object)doguBObject[index]);
  3739. doguBObject = new List<GameObject>();
  3740. for (int index1 = 0; index1 < strArray6.Length - 1; ++index1)
  3741. {
  3742. string[] strArray8 = strArray6[index1].Split(',');
  3743. string str1 = strArray8[0].Replace(" ", "_");
  3744. GameObject original1 = (GameObject)null;
  3745. bool flag1 = false;
  3746. if (str1.Contains(".menu"))
  3747. {
  3748. string str2 = str1;
  3749. byte[] f_byBuf = (byte[])null;
  3750. try
  3751. {
  3752. using (AFileBase afileBase = GameUty.FileOpen(str2, (AFileSystemBase)null))
  3753. {
  3754. NDebug.Assert(afileBase.IsValid(), "メニューファイルが存在しません。 :" + str2);
  3755. if (f_byBuf == null)
  3756. f_byBuf = new byte[Math.Max(500000, afileBase.GetSize())];
  3757. else if (f_byBuf.Length < afileBase.GetSize())
  3758. f_byBuf = new byte[afileBase.GetSize()];
  3759. afileBase.Read(ref f_byBuf, afileBase.GetSize());
  3760. }
  3761. string[] filename2 = CM3D2.MultipleMaids.Plugin.MultipleMaids.ProcScriptBin(maidArray[0], f_byBuf, str2, false);
  3762. original1 = ImportCM2.LoadSkinMesh_R(filename2[0], filename2, "", maidArray[0].body0.goSlot[8], 1);
  3763. doguBObject.Add(original1);
  3764. original1.name = str2;
  3765. Vector3 zero1 = Vector3.zero;
  3766. Vector3 zero2 = Vector3.zero;
  3767. zero1.z = 0.4f;
  3768. if (str1.Contains("HandItem"))
  3769. {
  3770. switch (str1)
  3771. {
  3772. case "HandItemR_WineGlass_I_.menu":
  3773. zero2.z = 90f;
  3774. zero1.y = 0.04f;
  3775. goto case "HandItemL_Dance_Hataki_I_.menu";
  3776. case "HandItemR_WineBottle_I_.menu":
  3777. zero2.z = 90f;
  3778. goto case "HandItemL_Dance_Hataki_I_.menu";
  3779. case "HandItemR_Mop_I_.menu":
  3780. zero2.x = 90f;
  3781. goto case "HandItemL_Dance_Hataki_I_.menu";
  3782. case "HandItemL_Dance_Hataki_I_.menu":
  3783. case "HandItemL_Dance_Mop_I_.menu":
  3784. break;
  3785. default:
  3786. zero2.x = -90f;
  3787. goto case "HandItemL_Dance_Hataki_I_.menu";
  3788. }
  3789. }
  3790. original1.transform.localPosition = zero1;
  3791. original1.transform.localRotation = Quaternion.Euler(zero2);
  3792. }
  3793. catch
  3794. {
  3795. flag1 = true;
  3796. }
  3797. }
  3798. else
  3799. {
  3800. try
  3801. {
  3802. bool flag2 = false;
  3803. bool flag3 = false;
  3804. if (str1.StartsWith("BG_"))
  3805. {
  3806. UnityEngine.Object original2 = (UnityEngine.Object)GameMain.Instance.BgMgr.CreateAssetBundle(str1.Replace("BG_", ""));
  3807. if (original2 == (UnityEngine.Object)null)
  3808. original2 = Resources.Load(str1.Replace("BG_", "BG/"));
  3809. original1 = UnityEngine.Object.Instantiate(original2) as GameObject;
  3810. doguBObject.Add(original1);
  3811. }
  3812. else if (str1.Contains("#"))
  3813. {
  3814. original1 = GameMain.Instance.BgMgr.CreateAssetBundle(str1.Split('#')[1]);
  3815. if ((UnityEngine.Object)original1 != (UnityEngine.Object)null)
  3816. {
  3817. original1 = UnityEngine.Object.Instantiate<GameObject>(original1);
  3818. MeshRenderer[] componentsInChildren = original1.GetComponentsInChildren<MeshRenderer>();
  3819. for (int index2 = 0; index2 < componentsInChildren.Length; ++index2)
  3820. {
  3821. if ((UnityEngine.Object)componentsInChildren[index2] != (UnityEngine.Object)null)
  3822. componentsInChildren[index2].shadowCastingMode = ShadowCastingMode.Off;
  3823. }
  3824. }
  3825. flag2 = true;
  3826. if (!parArray[parIndex].Contains("Odogu_"))
  3827. flag3 = true;
  3828. doguBObject.Add(original1);
  3829. }
  3830. else if (!str1.StartsWith("mirror") && str1.IndexOf(":") < 0)
  3831. {
  3832. UnityEngine.Object original2;
  3833. if (str1.StartsWith("BG"))
  3834. {
  3835. string name = str1.Replace("BG", "");
  3836. original2 = (UnityEngine.Object)GameMain.Instance.BgMgr.CreateAssetBundle(name);
  3837. if (original2 == (UnityEngine.Object)null)
  3838. original2 = Resources.Load("BG/" + name);
  3839. }
  3840. else
  3841. original2 = Resources.Load("Prefab/" + str1);
  3842. original1 = UnityEngine.Object.Instantiate(original2) as GameObject;
  3843. doguBObject.Add(original1);
  3844. }
  3845. else if (str1.StartsWith("mirror"))
  3846. {
  3847. Material material = new Material(Shader.Find("Mirror"));
  3848. GameObject primitive = GameObject.CreatePrimitive(PrimitiveType.Plane);
  3849. primitive.transform.localScale = new Vector3(0.3f, 1f, 0.3f);
  3850. primitive.GetComponent<Renderer>().material = material;
  3851. primitive.AddComponent<MirrorReflection2>();
  3852. MirrorReflection2 component = primitive.GetComponent<MirrorReflection2>();
  3853. component.m_TextureSize = 2048;
  3854. component.m_ClipPlaneOffset = 0.0f;
  3855. primitive.GetComponent<Renderer>().enabled = true;
  3856. original1 = primitive;
  3857. doguBObject.Add(original1);
  3858. }
  3859. else
  3860. {
  3861. string[] strArray9 = str1.Split(':');
  3862. UnityEngine.Object original2 = (UnityEngine.Object)GameMain.Instance.BgMgr.CreateAssetBundle(strArray9[0]);
  3863. if (original2 == (UnityEngine.Object)null)
  3864. original2 = Resources.Load("BG/" + strArray9[0]);
  3865. GameObject gameObject = UnityEngine.Object.Instantiate(original2) as GameObject;
  3866. int num = 0;
  3867. int result = 0;
  3868. int.TryParse(strArray9[1], out result);
  3869. foreach (Transform transform in gameObject.transform)
  3870. {
  3871. if (result == num)
  3872. {
  3873. original1 = transform.gameObject;
  3874. break;
  3875. }
  3876. ++num;
  3877. }
  3878. doguBObject.Add(original1);
  3879. original1.transform.parent = (Transform)null;
  3880. UnityEngine.Object.Destroy((UnityEngine.Object)gameObject);
  3881. gameObject.SetActive(false);
  3882. }
  3883. original1.name = str1;
  3884. Vector3 zero1 = Vector3.zero;
  3885. Vector3 zero2 = Vector3.zero;
  3886. if (str1.StartsWith("BG_"))
  3887. original1.transform.localScale = new Vector3(0.1f, 0.1f, 0.1f);
  3888. switch (str1)
  3889. {
  3890. case "Odogu_XmasTreeMini_photo_ver":
  3891. zero1.z = 0.6f;
  3892. original1.transform.localScale = new Vector3(4.5f, 4.5f, 4.5f);
  3893. IEnumerator enumerator1 = original1.transform.GetEnumerator();
  3894. try
  3895. {
  3896. while (enumerator1.MoveNext())
  3897. {
  3898. Transform current = (Transform)enumerator1.Current;
  3899. if ((UnityEngine.Object)current.GetComponent<Collider>() != (UnityEngine.Object)null)
  3900. current.GetComponent<Collider>().enabled = false;
  3901. }
  3902. break;
  3903. }
  3904. finally
  3905. {
  3906. (enumerator1 as IDisposable)?.Dispose();
  3907. }
  3908. case "Odogu_KadomatsuMini_photo_ver":
  3909. zero1.z = 0.6f;
  3910. original1.transform.localScale = new Vector3(3.5f, 3.5f, 3.5f);
  3911. IEnumerator enumerator2 = original1.transform.GetEnumerator();
  3912. try
  3913. {
  3914. while (enumerator2.MoveNext())
  3915. {
  3916. Transform current = (Transform)enumerator2.Current;
  3917. if ((UnityEngine.Object)current.GetComponent<Collider>() != (UnityEngine.Object)null)
  3918. current.GetComponent<Collider>().enabled = false;
  3919. }
  3920. break;
  3921. }
  3922. finally
  3923. {
  3924. (enumerator2 as IDisposable)?.Dispose();
  3925. }
  3926. case "Odogu_ClassRoomDesk":
  3927. zero1.z = 0.5f;
  3928. zero2.x = -90f;
  3929. break;
  3930. case "mirror1":
  3931. zero1.z = -0.6f;
  3932. zero1.y = 0.96f;
  3933. zero2.z = 180f;
  3934. zero2.x = -90f;
  3935. original1.transform.localScale = new Vector3(0.2f, 0.4f, 0.2f);
  3936. break;
  3937. case "mirror2":
  3938. zero1.z = -0.6f;
  3939. zero1.y = 0.96f;
  3940. zero2.z = 180f;
  3941. zero2.x = -90f;
  3942. original1.transform.localScale = new Vector3(0.1f, 0.4f, 0.2f);
  3943. break;
  3944. case "mirror3":
  3945. zero1.z = -0.6f;
  3946. zero1.y = 0.85f;
  3947. zero2.z = 180f;
  3948. zero2.x = -90f;
  3949. original1.transform.localScale = new Vector3(0.03f, 0.18f, 0.124f);
  3950. break;
  3951. case "Particle/pLineY":
  3952. case "Particle/pLineP02":
  3953. case "Particle/pLine_act2":
  3954. original1.transform.localScale = new Vector3(3f, 3f, 3f);
  3955. break;
  3956. case "Mob_Man_Stand001":
  3957. case "Mob_Man_Stand002":
  3958. case "Mob_Man_Stand003":
  3959. case "Mob_Man_Sit001":
  3960. case "Mob_Man_Sit002":
  3961. case "Mob_Man_Sit003":
  3962. case "Mob_Girl_Stand001":
  3963. case "Mob_Girl_Stand002":
  3964. case "Mob_Girl_Stand003":
  3965. case "Mob_Girl_Sit001":
  3966. case "Mob_Girl_Sit002":
  3967. case "Mob_Girl_Sit003":
  3968. case "Salon:63":
  3969. case "Salon:65":
  3970. case "Salon:69":
  3971. case "Salon_Entrance:0":
  3972. case "Salon_Entrance:1":
  3973. case "Salon_Entrance:2":
  3974. case "Salon_Entrance:3":
  3975. case "Salon_Entrance:4":
  3976. case "Pool:26":
  3977. case "Shitsumu:23":
  3978. case "Shitsumu_Night:23":
  3979. zero1.z = 0.5f;
  3980. zero2.x = -90f;
  3981. break;
  3982. case "Odogu_Dresser_photo_ver":
  3983. GameObject.Find("Prim.00000000").GetComponent<Collider>().enabled = false;
  3984. GameObject.Find("Prim.00000001").GetComponent<Collider>().enabled = false;
  3985. GameObject.Find("Prim.00000002").GetComponent<Collider>().enabled = false;
  3986. GameObject.Find("Prim.00000004").GetComponent<Collider>().enabled = false;
  3987. break;
  3988. default:
  3989. zero1.z = 0.5f;
  3990. if (str1.StartsWith("Odogu_"))
  3991. {
  3992. IEnumerator enumerator3 = original1.transform.GetEnumerator();
  3993. try
  3994. {
  3995. while (enumerator3.MoveNext())
  3996. {
  3997. Transform current = (Transform)enumerator3.Current;
  3998. if ((UnityEngine.Object)current.GetComponent<Collider>() != (UnityEngine.Object)null)
  3999. current.GetComponent<Collider>().enabled = false;
  4000. }
  4001. break;
  4002. }
  4003. finally
  4004. {
  4005. (enumerator3 as IDisposable)?.Dispose();
  4006. }
  4007. }
  4008. else
  4009. {
  4010. if ((UnityEngine.Object)original1.GetComponent<Collider>() != (UnityEngine.Object)null)
  4011. original1.GetComponent<Collider>().enabled = false;
  4012. break;
  4013. }
  4014. }
  4015. if (flag2)
  4016. {
  4017. zero1.z = 0.4f;
  4018. if (flag3)
  4019. zero2.x = -90f;
  4020. }
  4021. original1.transform.localPosition = zero1;
  4022. original1.transform.localRotation = Quaternion.Euler(zero2);
  4023. }
  4024. catch
  4025. {
  4026. flag1 = true;
  4027. }
  4028. }
  4029. if (!flag1)
  4030. {
  4031. doguCnt = doguBObject.Count - 1;
  4032. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  4033. Vector3 localEulerAngles = original1.transform.localEulerAngles;
  4034. original1.transform.localEulerAngles = new Vector3(float.Parse(strArray8[1]), float.Parse(strArray8[2]), float.Parse(strArray8[3]));
  4035. original1.transform.position = new Vector3(float.Parse(strArray8[4]), float.Parse(strArray8[5]), float.Parse(strArray8[6]));
  4036. gDogu[doguCnt].transform.localEulerAngles = new Vector3(float.Parse(strArray8[1]), float.Parse(strArray8[2]), float.Parse(strArray8[3]));
  4037. gDogu[doguCnt].transform.position = new Vector3(float.Parse(strArray8[4]), float.Parse(strArray8[5]), float.Parse(strArray8[6]));
  4038. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  4039. gDogu[doguCnt].layer = 8;
  4040. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  4041. gDogu[doguCnt].SetActive(false);
  4042. gDogu[doguCnt].transform.position = original1.transform.position;
  4043. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  4044. mDogu[doguCnt].obj = gDogu[doguCnt];
  4045. mDogu[doguCnt].maid = original1;
  4046. mDogu[doguCnt].angles = localEulerAngles;
  4047. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  4048. mDogu[doguCnt].ido = 1;
  4049. mDogu[doguCnt].isScale = false;
  4050. if (str1 == "Particle/pLineY")
  4051. mDogu[doguCnt].count = 180;
  4052. if (str1 == "Particle/pLineP02")
  4053. mDogu[doguCnt].count = 115;
  4054. if (original1.name == "Particle/pLine_act2")
  4055. {
  4056. mDogu[doguCnt].count = 80;
  4057. original1.transform.localScale = new Vector3(3f, 3f, 3f);
  4058. }
  4059. if (original1.name == "Particle/pHeart01")
  4060. mDogu[doguCnt].count = 80;
  4061. if (str1 == "mirror1" || str1 == "mirror2" || str1 == "mirror3")
  4062. {
  4063. mDogu[doguCnt].isScale = true;
  4064. mDogu[doguCnt].isScale2 = true;
  4065. mDogu[doguCnt].scale2 = original1.transform.localScale;
  4066. if (str1 == "mirror1")
  4067. mDogu[doguCnt].scale = new Vector3(original1.transform.localScale.x * 5f, original1.transform.localScale.y * 5f, original1.transform.localScale.z * 5f);
  4068. if (str1 == "mirror2")
  4069. mDogu[doguCnt].scale = new Vector3(original1.transform.localScale.x * 10f, original1.transform.localScale.y * 10f, original1.transform.localScale.z * 10f);
  4070. if (str1 == "mirror3")
  4071. mDogu[doguCnt].scale = new Vector3(original1.transform.localScale.x * 33f, original1.transform.localScale.y * 33f, original1.transform.localScale.z * 33f);
  4072. }
  4073. if (str1 == "Odogu_XmasTreeMini_photo_ver" || str1 == "Odogu_KadomatsuMini_photo_ver")
  4074. {
  4075. mDogu[doguCnt].isScale2 = true;
  4076. mDogu[doguCnt].scale2 = original1.transform.localScale;
  4077. }
  4078. original1.transform.localScale = new Vector3(float.Parse(strArray8[7]), float.Parse(strArray8[8]), float.Parse(strArray8[9]));
  4079. }
  4080. }
  4081. }
  4082. loadScene = 0;
  4083. kankyoLoadFlg = false;
  4084. }
  4085. for (int i = 0; i < maidCnt; ++i)
  4086. {
  4087. if (loadPose[i] != "" && isLoadPose[i])
  4088. {
  4089. IniKey iniKey = this.Preferences["pose"][loadPose[i]];
  4090. if (iniKey.Value == null || !(iniKey.Value.ToString() != "") || !(iniKey.Value.ToString() != "del"))
  4091. {
  4092. loadPose[i] = "";
  4093. isLoadPose[i] = false;
  4094. }
  4095. else
  4096. {
  4097. if (loadCount[i] > 4)
  4098. {
  4099. isLoadPose[i] = false;
  4100. loadPose[i] = "";
  4101. loadCount[i] = 0;
  4102. }
  4103. int num = 0;
  4104. while (num < 10)
  4105. ++num;
  4106. ++loadCount[i];
  4107. Maid maid = maidArray[i];
  4108. isStop[i] = true;
  4109. if ((bool)((UnityEngine.Object)maid) && maid.Visible)
  4110. {
  4111. this.SetIK(maid, i);
  4112. Transform transform1 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  4113. Transform transform2 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0", true);
  4114. Transform transform3 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0", true);
  4115. Transform transform4 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe01", true);
  4116. Transform transform5 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe01", true);
  4117. Transform transform6 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe0Nub", true);
  4118. Transform transform7 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe0Nub", true);
  4119. Transform transform8 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1", true);
  4120. Transform transform9 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1", true);
  4121. Transform transform10 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe11", true);
  4122. Transform transform11 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe11", true);
  4123. Transform transform12 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe1Nub", true);
  4124. Transform transform13 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe1Nub", true);
  4125. Transform transform14 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2", true);
  4126. Transform transform15 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2", true);
  4127. Transform transform16 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe21", true);
  4128. Transform transform17 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe21", true);
  4129. Transform transform18 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Toe2Nub", true);
  4130. Transform transform19 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Toe2Nub", true);
  4131. string[] strArray1 = iniKey.Value.Split('_')[1].Split(':');
  4132. for (int index = 0; index < 40; ++index)
  4133. {
  4134. string[] strArray2 = strArray1[index].Split(',');
  4135. Finger[i, index].localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4136. }
  4137. bool flag = false;
  4138. if (strArray1.Length == 64)
  4139. flag = true;
  4140. Vector3 localEulerAngles = maid.transform.localEulerAngles;
  4141. maid.transform.localEulerAngles = new Vector3(0.0f, 0.0f, 0.0f);
  4142. Vector3 position = maid.transform.position;
  4143. maid.transform.position = new Vector3(0.0f, 0.0f, 0.0f);
  4144. for (int index1 = 0; index1 < 3; ++index1)
  4145. {
  4146. for (int index2 = 40; index2 < strArray1.Length; ++index2)
  4147. {
  4148. string[] strArray2 = strArray1[index2].Split(',');
  4149. switch (index2)
  4150. {
  4151. case 40:
  4152. if (flag)
  4153. Spine.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4154. if (!flag)
  4155. {
  4156. Spine.eulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4157. break;
  4158. }
  4159. break;
  4160. case 41:
  4161. if (flag)
  4162. Spine0a.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4163. if (!flag)
  4164. {
  4165. Spine0a.eulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4166. break;
  4167. }
  4168. break;
  4169. case 42:
  4170. if (flag)
  4171. Spine1.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4172. if (!flag)
  4173. {
  4174. Spine1.eulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4175. break;
  4176. }
  4177. break;
  4178. case 43:
  4179. if (flag)
  4180. Spine1a.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4181. if (!flag)
  4182. {
  4183. Spine1a.eulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4184. break;
  4185. }
  4186. break;
  4187. case 44:
  4188. if (flag)
  4189. Pelvis.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4190. if (!flag)
  4191. {
  4192. Pelvis.eulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4193. break;
  4194. }
  4195. break;
  4196. case 45:
  4197. HandL1[i].localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4198. break;
  4199. case 46:
  4200. if (flag)
  4201. UpperArmL1[i].localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4202. if (!flag)
  4203. {
  4204. UpperArmL1[i].eulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4205. break;
  4206. }
  4207. break;
  4208. case 47:
  4209. if (flag)
  4210. ForearmL1[i].localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4211. if (!flag)
  4212. {
  4213. ForearmL1[i].eulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4214. break;
  4215. }
  4216. break;
  4217. case 48:
  4218. HandR1[i].localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4219. break;
  4220. case 49:
  4221. if (flag)
  4222. UpperArmR1[i].localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4223. if (!flag)
  4224. {
  4225. UpperArmR1[i].eulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4226. break;
  4227. }
  4228. break;
  4229. case 50:
  4230. if (flag)
  4231. ForearmR1[i].localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4232. if (!flag)
  4233. {
  4234. ForearmR1[i].eulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4235. break;
  4236. }
  4237. break;
  4238. case 51:
  4239. HandL2[i].localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4240. break;
  4241. case 52:
  4242. if (flag)
  4243. UpperArmL2[i].localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4244. if (!flag)
  4245. {
  4246. UpperArmL2[i].eulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4247. break;
  4248. }
  4249. break;
  4250. case 53:
  4251. if (flag)
  4252. ForearmL2[i].localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4253. if (!flag)
  4254. {
  4255. ForearmL2[i].eulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4256. break;
  4257. }
  4258. break;
  4259. case 54:
  4260. HandR2[i].localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4261. break;
  4262. case 55:
  4263. if (flag)
  4264. UpperArmR2[i].localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4265. if (!flag)
  4266. {
  4267. UpperArmR2[i].eulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4268. break;
  4269. }
  4270. break;
  4271. case 56:
  4272. if (flag)
  4273. ForearmR2[i].localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4274. if (!flag)
  4275. {
  4276. ForearmR2[i].eulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4277. break;
  4278. }
  4279. break;
  4280. case 57:
  4281. if (flag)
  4282. Head.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4283. if (!flag)
  4284. {
  4285. Head.eulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4286. break;
  4287. }
  4288. break;
  4289. case 66:
  4290. CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handL", true).localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4291. break;
  4292. case 67:
  4293. CMT.SearchObjName(maid.body0.m_Bones.transform, "_IK_handR", true).localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4294. break;
  4295. case 68:
  4296. if (strArray2.Length >= 2)
  4297. {
  4298. ClavicleL1[i].eulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4299. break;
  4300. }
  4301. break;
  4302. case 69:
  4303. ClavicleR1[i].eulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4304. break;
  4305. case 71:
  4306. transform1.eulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4307. break;
  4308. case 72:
  4309. transform2.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4310. break;
  4311. case 73:
  4312. transform3.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4313. break;
  4314. case 74:
  4315. transform4.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4316. break;
  4317. case 75:
  4318. transform5.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4319. break;
  4320. case 76:
  4321. transform6.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4322. break;
  4323. case 77:
  4324. transform7.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4325. break;
  4326. case 78:
  4327. transform8.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4328. break;
  4329. case 79:
  4330. transform9.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4331. break;
  4332. case 80:
  4333. transform10.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4334. break;
  4335. case 81:
  4336. transform11.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4337. break;
  4338. case 82:
  4339. transform12.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4340. break;
  4341. case 83:
  4342. transform13.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4343. break;
  4344. case 84:
  4345. transform14.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4346. break;
  4347. case 85:
  4348. transform15.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4349. break;
  4350. case 86:
  4351. transform16.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4352. break;
  4353. case 87:
  4354. transform17.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4355. break;
  4356. case 88:
  4357. transform18.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4358. break;
  4359. case 89:
  4360. transform19.localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4361. break;
  4362. case 92:
  4363. vIKMuneL[i] = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4364. muneIKL[i] = true;
  4365. break;
  4366. case 93:
  4367. vIKMuneLSub[i] = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4368. break;
  4369. case 94:
  4370. vIKMuneR[i] = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4371. muneIKR[i] = true;
  4372. break;
  4373. case 95:
  4374. vIKMuneRSub[i] = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4375. break;
  4376. case 96:
  4377. transform1.position = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4378. break;
  4379. }
  4380. }
  4381. }
  4382. maid.transform.localEulerAngles = localEulerAngles;
  4383. maid.transform.position = position;
  4384. }
  4385. }
  4386. }
  4387. if (loadPose[i] != "" && !isLoadPose[i])
  4388. {
  4389. IniKey iniKey = this.Preferences["pose"][loadPose[i]];
  4390. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  4391. isStop[i] = true;
  4392. isLoadPose[i] = true;
  4393. }
  4394. }
  4395. if (loadScene > 0)
  4396. {
  4397. IniKey iniKey = this.Preferences["scene"]["s" + (object)loadScene];
  4398. if (iniKey.Value == null || !(iniKey.Value.ToString() != ""))
  4399. {
  4400. loadScene = 0;
  4401. }
  4402. else
  4403. {
  4404. isScene = true;
  4405. if (!kankyoLoadFlg)
  4406. {
  4407. string[] strArray1 = iniKey.Value.Split('_')[1].Split(';');
  4408. for (int i = 0; i < strArray1.Length; ++i)
  4409. {
  4410. if (maidCnt > i)
  4411. {
  4412. Maid maid = maidArray[i];
  4413. for (int index = 0; index < 10; ++index)
  4414. {
  4415. Transform transform1 = maid.transform;
  4416. Vector3 position1 = maid.transform.position;
  4417. Vector3 right = Vector3.right;
  4418. rotation = maid.transform.rotation;
  4419. double num1 = -(double)rotation.eulerAngles.x;
  4420. transform1.RotateAround(position1, right, (float)num1);
  4421. Transform transform2 = maid.transform;
  4422. Vector3 position2 = maid.transform.position;
  4423. Vector3 forward = Vector3.forward;
  4424. rotation = maid.transform.rotation;
  4425. double num2 = -(double)rotation.eulerAngles.z;
  4426. transform2.RotateAround(position2, forward, (float)num2);
  4427. }
  4428. string[] array2 = strArray1[i].Split(':');
  4429. if (!int.TryParse(array2[61], out poseIndex[i]))
  4430. {
  4431. string str = array2[61].Replace(" ", "_").Replace("|", ",");
  4432. for (int index = 0; index < poseArray.Length; ++index)
  4433. {
  4434. if (str == poseArray[index])
  4435. {
  4436. poseIndex[i] = index;
  4437. break;
  4438. }
  4439. }
  4440. }
  4441. string[] strArray2 = poseArray[poseIndex[i]].Split(',');
  4442. isStop[i] = true;
  4443. poseCount[i] = 20;
  4444. if (array2[61].Contains("MultipleMaidsPose"))
  4445. {
  4446. string url = "";
  4447. ((System.Action<string, List<string>>)((path, result_list) =>
  4448. {
  4449. string[] files = Directory.GetFiles(path);
  4450. for (int index1 = 0; index1 < files.Length; ++index1)
  4451. {
  4452. if (Path.GetExtension(files[index1]) == ".anm")
  4453. {
  4454. string str1 = files[index1].Split('\\')[files[index1].Split('\\').Length - 1].Split('.')[0];
  4455. if (str1 == array2[61].Replace("MultipleMaidsPose", ""))
  4456. {
  4457. url = files[index1];
  4458. for (int index2 = 0; index2 < poseArray.Length; ++index2)
  4459. {
  4460. string str2 = poseArray[index2].Replace(" ", "").Split('/')[0];
  4461. if (str1 == str2)
  4462. poseIndex[i] = index2;
  4463. }
  4464. break;
  4465. }
  4466. }
  4467. }
  4468. }))(Path.GetFullPath(".\\") + "Mod\\MultipleMaidsPose", new List<string>());
  4469. if (url != "")
  4470. {
  4471. string path = url;
  4472. byte[] numArray = new byte[0];
  4473. try
  4474. {
  4475. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  4476. {
  4477. numArray = new byte[fileStream.Length];
  4478. fileStream.Read(numArray, 0, numArray.Length);
  4479. }
  4480. }
  4481. catch
  4482. {
  4483. }
  4484. if (0 < numArray.Length)
  4485. {
  4486. long hashCode = (long)Path.GetFileName(path).GetHashCode();
  4487. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  4488. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  4489. {
  4490. Maid.AutoTwist.ShoulderL,
  4491. Maid.AutoTwist.ShoulderR,
  4492. Maid.AutoTwist.WristL,
  4493. Maid.AutoTwist.WristR,
  4494. Maid.AutoTwist.ThighL,
  4495. Maid.AutoTwist.ThighR
  4496. };
  4497. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  4498. maid.SetAutoTwist(f_eType, true);
  4499. }
  4500. }
  4501. }
  4502. else
  4503. {
  4504. int result;
  4505. if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  4506. loadPose[i] = strArray2[0];
  4507. else if (!strArray2[0].StartsWith("dance_"))
  4508. {
  4509. maidArray[i].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  4510. }
  4511. else
  4512. {
  4513. if (!(bool)((UnityEngine.Object)maidArray[i].body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
  4514. maidArray[i].body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  4515. maidArray[i].body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  4516. }
  4517. }
  4518. if (strArray2.Length > 1)
  4519. {
  4520. maidArray[i].body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  4521. isStop[i] = true;
  4522. if (strArray2.Length > 2)
  4523. {
  4524. CMT.SearchObjName(maidArray[i].body0.m_Bones.transform, "Bip01", true);
  4525. isPoseIti[i] = true;
  4526. poseIti[i] = maidArray[i].transform.position;
  4527. maidArray[i].transform.position = new Vector3(100f, 100f, 100f);
  4528. }
  4529. }
  4530. faceIndex[i] = int.Parse(array2[62]);
  4531. if (faceIndex[i] < faceArray.Length)
  4532. maid.FaceAnime(faceArray[faceIndex[i]], 0.01f, 0);
  4533. else
  4534. faceIndex[i] = 0;
  4535. TMorph morph = maid.body0.Face.morph;
  4536. if (!isVR)
  4537. {
  4538. maid.boMabataki = false;
  4539. morph.EyeMabataki = 0.0f;
  4540. maid.body0.Face.morph.FixBlendValues_Face();
  4541. }
  4542. }
  4543. else
  4544. break;
  4545. }
  4546. }
  4547. }
  4548. }
  4549. if (allowUpdate || sceneLevel == 14 || sceneLevel == 24)
  4550. {
  4551. if (isF6 && !(bool)((UnityEngine.Object)cameraObj) && !isVR)
  4552. {
  4553. cameraObj = new GameObject("subCamera");
  4554. subcamera = cameraObj.AddComponent<UnityEngine.Camera>();
  4555. subcamera.CopyFrom(UnityEngine.Camera.main);
  4556. cameraObj.SetActive(true);
  4557. subcamera.clearFlags = CameraClearFlags.Depth;
  4558. subcamera.cullingMask = 256;
  4559. subcamera.depth = 1f;
  4560. subcamera.transform.parent = mainCamera.transform;
  4561. float num = 2f;
  4562. if (Application.unityVersion.StartsWith("4"))
  4563. num = 1f;
  4564. GameObject gameObject = new GameObject("Light");
  4565. gameObject.AddComponent<UnityEngine.Light>();
  4566. lightList.Add(gameObject);
  4567. lightColorR.Add(1f);
  4568. lightColorG.Add(1f);
  4569. lightColorB.Add(1f);
  4570. lightIndex.Add(0);
  4571. lightX.Add(40f);
  4572. lightY.Add(180f);
  4573. lightAkarusa.Add(num);
  4574. lightKage.Add(0.098f);
  4575. lightRange.Add(50f);
  4576. gameObject.transform.position = GameMain.Instance.MainLight.transform.position;
  4577. gameObject.GetComponent<UnityEngine.Light>().intensity = 2f;
  4578. gameObject.GetComponent<UnityEngine.Light>().spotAngle = 50f;
  4579. gameObject.GetComponent<UnityEngine.Light>().range = 10f;
  4580. gameObject.GetComponent<UnityEngine.Light>().type = LightType.Directional;
  4581. gameObject.GetComponent<UnityEngine.Light>().color = new Color(0.5f, 1f, 0.0f);
  4582. gameObject.GetComponent<UnityEngine.Light>().cullingMask = 256;
  4583. }
  4584. if ((!isF6S || !this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Shift) || !Input.GetKeyDown(KeyCode.F6)) && (isF6S || !this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Shift) || !Input.GetKeyDown(KeyCode.F6)))
  4585. {
  4586. if (!isF6 && Input.GetKeyDown(KeyCode.F6) && (sceneLevel != 5 && sceneLevel != 3) && (!isVR && (bool)((UnityEngine.Object)maidArray[0])) && maidArray[0].Visible)
  4587. {
  4588. isF6 = true;
  4589. bGui = true;
  4590. isFaceInit = true;
  4591. isGuiInit = true;
  4592. maidArray[0].boMabataki = false;
  4593. selectMaidIndex = 0;
  4594. maidCnt = 1;
  4595. isFace[0] = true;
  4596. faceFlg = true;
  4597. kankyoFlg = false;
  4598. string bgName = GameMain.Instance.BgMgr.GetBGName();
  4599. int num = 0;
  4600. foreach (string bg in bgArray)
  4601. {
  4602. if (bg == bgName)
  4603. {
  4604. bgIndex = num;
  4605. bgIndex6 = num;
  4606. break;
  4607. }
  4608. ++num;
  4609. }
  4610. bgCombo.selectedItemIndex = bgIndex6;
  4611. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  4612. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  4613. }
  4614. else if (!isF6 && Input.GetKeyDown(KeyCode.F7) && (sceneLevel != 5 && sceneLevel != 3) && (!isVR && (bool)((UnityEngine.Object)maidArray[0])) && maidArray[0].Visible)
  4615. {
  4616. isF6 = true;
  4617. bGui = true;
  4618. isGuiInit = true;
  4619. selectMaidIndex = 0;
  4620. maidCnt = 1;
  4621. isFace[0] = false;
  4622. faceFlg = false;
  4623. kankyoFlg = true;
  4624. string bgName = GameMain.Instance.BgMgr.GetBGName();
  4625. int num = 0;
  4626. foreach (string bg in bgArray)
  4627. {
  4628. if (bg == bgName)
  4629. {
  4630. bgIndex = num;
  4631. bgIndex6 = num;
  4632. break;
  4633. }
  4634. ++num;
  4635. }
  4636. bgmCombo.selectedItemIndex = bgmIndex;
  4637. bgCombo.selectedItemIndex = bgIndex6;
  4638. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  4639. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  4640. lightX6 = lightX[0];
  4641. lightY6 = lightY[0];
  4642. }
  4643. else if (isVR && Input.GetKey(KeyCode.F7) && Input.GetKeyDown(KeyCode.BackQuote) || isF6 && (Input.GetKeyDown(KeyCode.F6) || Input.GetKeyDown(KeyCode.F7)))
  4644. {
  4645. isF6 = false;
  4646. bGui = false;
  4647. maidArray[0].boMabataki = true;
  4648. bgIndex = bgIndex6;
  4649. bg.localScale = new Vector3(1f, 1f, 1f);
  4650. if (!isVR)
  4651. {
  4652. Bloom fieldValue = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<CameraMain, Bloom>(mainCamera, "m_gcBloom");
  4653. fieldValue.enabled = true;
  4654. fieldValue.bloomIntensity = 2.85f;
  4655. fieldValue.hdr = Bloom.HDRBloomMode.Auto;
  4656. fieldValue.bloomThreshholdColor = new Color(1f, 1f, 1f);
  4657. fieldValue.bloomBlurIterations = 3;
  4658. }
  4659. else if (bgArray[bgIndex].Length == 36)
  4660. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  4661. else
  4662. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  4663. mainCamera.GetComponent<UnityEngine.Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  4664. maidCnt = 0;
  4665. wearIndex = 0;
  4666. faceFlg = false;
  4667. faceFlg2 = false;
  4668. sceneFlg = false;
  4669. poseFlg = false;
  4670. kankyoFlg = false;
  4671. kankyo2Flg = false;
  4672. unLockFlg = false;
  4673. ikMaid = 0;
  4674. ikBui = 0;
  4675. isNamida = false;
  4676. isTear1 = false;
  4677. isTear2 = false;
  4678. isTear3 = false;
  4679. isShock = false;
  4680. isYodare = false;
  4681. isHoho = false;
  4682. isHoho2 = false;
  4683. isHohos = false;
  4684. isHohol = false;
  4685. isToothoff = false;
  4686. isNosefook = false;
  4687. isFaceInit = false;
  4688. isPoseInit = false;
  4689. isWear = true;
  4690. isSkirt = true;
  4691. isBra = true;
  4692. isPanz = true;
  4693. isHeadset = true;
  4694. isAccUde = true;
  4695. isStkg = true;
  4696. isShoes = true;
  4697. isGlove = true;
  4698. isMegane = true;
  4699. isAccSenaka = true;
  4700. isPanel = true;
  4701. isBloom = false;
  4702. isBloomA = false;
  4703. isBlur = false;
  4704. isBlur2 = false;
  4705. bloom1 = 2.85f;
  4706. bloom2 = 3f;
  4707. bloom3 = 0.0f;
  4708. bloom4 = 0.0f;
  4709. bloom5 = 0.0f;
  4710. blur1 = -3.98f;
  4711. blur4 = -0.75f;
  4712. blur2 = 0.9f;
  4713. blur3 = 4.19f;
  4714. bokashi = 0.0f;
  4715. kamiyure = 0.0f;
  4716. isDepth = false;
  4717. isDepthA = false;
  4718. depth1 = 3f;
  4719. depth2 = 0.1f;
  4720. depth3 = 15f;
  4721. depth4 = 2.5f;
  4722. isFog = false;
  4723. fog1 = 4f;
  4724. fog2 = 1f;
  4725. fog3 = 1f;
  4726. fog4 = 0.0f;
  4727. fog5 = 1f;
  4728. fog6 = 1f;
  4729. fog7 = 1f;
  4730. isSepia = false;
  4731. isBloomS = true;
  4732. isDepthS = false;
  4733. isBlurS = false;
  4734. isFogS = false;
  4735. if ((UnityEngine.Object)depth_field_ != (UnityEngine.Object)null)
  4736. depth_field_.enabled = false;
  4737. if ((UnityEngine.Object)fog_ != (UnityEngine.Object)null)
  4738. fog_.enabled = false;
  4739. if ((UnityEngine.Object)sepia_tone_ != (UnityEngine.Object)null)
  4740. sepia_tone_.enabled = false;
  4741. isCube = false;
  4742. isCube2 = true;
  4743. isCube3 = false;
  4744. isCube4 = true;
  4745. effectIndex = 0;
  4746. selectMaidIndex = 0;
  4747. copyIndex = 0;
  4748. selectLightIndex = 0;
  4749. doguBIndex = 0;
  4750. parIndex = 0;
  4751. isEditNo = 0;
  4752. editSelectMaid = (Maid)null;
  4753. for (int index = 0; index < 10; ++index)
  4754. {
  4755. date[index] = "";
  4756. ninzu[index] = "";
  4757. }
  4758. if ((bool)((UnityEngine.Object)kami))
  4759. kami.SetActive(false);
  4760. lightIndex = new List<int>();
  4761. lightIndex.Add(0);
  4762. lightColorR = new List<float>();
  4763. lightColorR.Add(1f);
  4764. lightColorG = new List<float>();
  4765. lightColorG.Add(1f);
  4766. lightColorB = new List<float>();
  4767. lightColorB.Add(1f);
  4768. lightX = new List<float>();
  4769. lightX.Add(lightX6);
  4770. lightY = new List<float>();
  4771. lightY.Add(lightY6);
  4772. lightAkarusa = new List<float>();
  4773. lightAkarusa.Add(0.95f);
  4774. lightKage = new List<float>();
  4775. lightKage.Add(0.098f);
  4776. lightRange = new List<float>();
  4777. lightRange.Add(50f);
  4778. isIdx1 = false;
  4779. isIdx2 = false;
  4780. isIdx3 = false;
  4781. isIdx4 = false;
  4782. bgObject.SetActive(true);
  4783. GameMain.Instance.MainLight.Reset();
  4784. GameMain.Instance.MainLight.SetIntensity(0.95f);
  4785. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().spotAngle = 30f;
  4786. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().range = 10f;
  4787. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  4788. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().type = LightType.Directional;
  4789. GameMain.Instance.MainLight.transform.eulerAngles = new Vector3(lightX6, lightY6, GameMain.Instance.MainLight.transform.eulerAngles.z);
  4790. for (int index = 0; index < doguBObject.Count; ++index)
  4791. UnityEngine.Object.Destroy((UnityEngine.Object)doguBObject[index]);
  4792. doguBObject.Clear();
  4793. doguBIndex = 0;
  4794. parIndex = 0;
  4795. doguCombo.selectedItemIndex = 0;
  4796. parCombo.selectedItemIndex = 0;
  4797. for (int index = 1; index < lightList.Count; ++index)
  4798. UnityEngine.Object.Destroy((UnityEngine.Object)lightList[index]);
  4799. lightList = new List<GameObject>();
  4800. lightList.Add(GameMain.Instance.MainLight.gameObject);
  4801. lightComboList = new GUIContent[lightList.Count];
  4802. lightComboList[0] = new GUIContent("メイン");
  4803. lightCombo.selectedItemIndex = 0;
  4804. selectLightIndex = 0;
  4805. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex6]);
  4806. bgCombo.selectedItemIndex = bgIndex6;
  4807. bgCombo2.selectedItemIndex = 0;
  4808. itemCombo2.selectedItemIndex = 0;
  4809. slotCombo.selectedItemIndex = 0;
  4810. sortList.Clear();
  4811. scrollPos = new Vector2(0.0f, 0.0f);
  4812. if (!isVR)
  4813. {
  4814. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  4815. component.mode = Vignetting.AberrationMode.Simple;
  4816. component.intensity = -3.98f;
  4817. component.chromaticAberration = -0.75f;
  4818. component.axialAberration = 1.18f;
  4819. component.blurSpread = 4.19f;
  4820. component.luminanceDependency = 0.494f;
  4821. component.blurDistance = 1.71f;
  4822. component.enabled = false;
  4823. }
  4824. doguIndex.Clear();
  4825. doguSelectIndex = 0;
  4826. for (int index = 0; index < doguObject.Count; ++index)
  4827. {
  4828. if ((UnityEngine.Object)doguObject[index] != (UnityEngine.Object)null)
  4829. {
  4830. UnityEngine.Object.Destroy((UnityEngine.Object)doguObject[index]);
  4831. doguObject[index] = (GameObject)null;
  4832. }
  4833. }
  4834. doguObject.Clear();
  4835. }
  4836. }
  4837. for (int index = 0; index < maidCnt; ++index)
  4838. {
  4839. if ((bool)((UnityEngine.Object)maidArray[index]) && maidArray[index].Visible)
  4840. {
  4841. Maid maid = maidArray[index];
  4842. if (isLook[index] != isLookn[index])
  4843. {
  4844. isLookn[index] = isLook[index];
  4845. if (isLook[index])
  4846. {
  4847. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  4848. maid.body0.boHeadToCam = true;
  4849. maid.body0.boEyeToCam = true;
  4850. maid.body0.trsLookTarget = (Transform)null;
  4851. }
  4852. else
  4853. {
  4854. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  4855. maid.body0.boHeadToCam = true;
  4856. maid.body0.boEyeToCam = true;
  4857. }
  4858. }
  4859. }
  4860. }
  4861. if ((bool)((UnityEngine.Object)maidArray[selectMaidIndex]) && maidArray[selectMaidIndex].Visible && (!faceFlg && !poseFlg && (!sceneFlg && !kankyoFlg) && !kankyo2Flg || (sceneFlg || kankyoFlg) || kankyo2Flg))
  4862. {
  4863. for (int index = 0; index < maidCnt; ++index)
  4864. {
  4865. if ((bool)((UnityEngine.Object)maidArray[index]) && !maidArray[index].boMabataki)
  4866. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  4867. }
  4868. }
  4869. if ((bool)((UnityEngine.Object)maidArray[selectMaidIndex]) && maidArray[selectMaidIndex].Visible && poseFlg)
  4870. {
  4871. if (isPoseInit)
  4872. {
  4873. if (!isDanceChu)
  4874. {
  4875. Maid maid = maidArray[selectMaidIndex];
  4876. isPoseInit = false;
  4877. isWear = maid.body0.GetMask(TBody.SlotID.wear) || maid.body0.GetMask(TBody.SlotID.mizugi) || maid.body0.GetMask(TBody.SlotID.onepiece);
  4878. isSkirt = maid.body0.GetMask(TBody.SlotID.skirt);
  4879. isBra = maid.body0.GetMask(TBody.SlotID.bra);
  4880. isPanz = maid.body0.GetMask(TBody.SlotID.panz);
  4881. isMaid = maid.body0.GetMask(TBody.SlotID.body);
  4882. isHeadset = maid.body0.GetMask(TBody.SlotID.headset) || maid.body0.GetMask(TBody.SlotID.accHat) || (maid.body0.GetMask(TBody.SlotID.accHead) || maid.body0.GetMask(TBody.SlotID.accKamiSubL)) || (maid.body0.GetMask(TBody.SlotID.accKamiSubR) || maid.body0.GetMask(TBody.SlotID.accKami_1_) || maid.body0.GetMask(TBody.SlotID.accKami_2_)) || maid.body0.GetMask(TBody.SlotID.accKami_3_);
  4883. isAccUde = maid.body0.GetMask(TBody.SlotID.accUde);
  4884. isStkg = maid.body0.GetMask(TBody.SlotID.stkg);
  4885. isShoes = maid.body0.GetMask(TBody.SlotID.shoes);
  4886. isGlove = maid.body0.GetMask(TBody.SlotID.glove);
  4887. isMegane = maid.body0.GetMask(TBody.SlotID.megane);
  4888. isAccSenaka = maid.body0.GetMask(TBody.SlotID.accSenaka);
  4889. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  4890. float[] fieldValue1 = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  4891. float[] fieldValue2 = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  4892. eyeclose = fieldValue2[(int)morph.hash[(object)"eyeclose"]];
  4893. eyeclose2 = fieldValue2[(int)morph.hash[(object)"eyeclose2"]];
  4894. eyeclose3 = fieldValue2[(int)morph.hash[(object)"eyeclose3"]];
  4895. eyeclose6 = fieldValue2[(int)morph.hash[(object)"eyeclose6"]];
  4896. hitomih = fieldValue1[(int)morph.hash[(object)"hitomih"]];
  4897. hitomis = fieldValue1[(int)morph.hash[(object)"hitomis"]];
  4898. mayuha = fieldValue1[(int)morph.hash[(object)"mayuha"]];
  4899. mayuup = fieldValue1[(int)morph.hash[(object)"mayuup"]];
  4900. mayuv = fieldValue1[(int)morph.hash[(object)"mayuv"]];
  4901. mayuvhalf = fieldValue1[(int)morph.hash[(object)"mayuvhalf"]];
  4902. moutha = fieldValue1[(int)morph.hash[(object)"moutha"]];
  4903. mouths = fieldValue1[(int)morph.hash[(object)"mouths"]];
  4904. mouthdw = fieldValue1[(int)morph.hash[(object)"mouthdw"]];
  4905. mouthup = fieldValue1[(int)morph.hash[(object)"mouthup"]];
  4906. tangout = fieldValue1[(int)morph.hash[(object)"tangout"]];
  4907. tangup = fieldValue1[(int)morph.hash[(object)"tangup"]];
  4908. eyebig = fieldValue1[(int)morph.hash[(object)"eyebig"]];
  4909. eyeclose5 = fieldValue2[(int)morph.hash[(object)"eyeclose5"]];
  4910. mayuw = fieldValue1[(int)morph.hash[(object)"mayuw"]];
  4911. mouthhe = fieldValue1[(int)morph.hash[(object)"mouthhe"]];
  4912. mouthc = fieldValue1[(int)morph.hash[(object)"mouthc"]];
  4913. mouthi = fieldValue1[(int)morph.hash[(object)"mouthi"]];
  4914. mouthuphalf = fieldValue1[(int)morph.hash[(object)"mouthuphalf"]];
  4915. try
  4916. {
  4917. tangopen = fieldValue1[(int)morph.hash[(object)"tangopen"]];
  4918. }
  4919. catch
  4920. {
  4921. }
  4922. isNamida = (double)fieldValue1[(int)morph.hash[(object)"namida"]] > 0.0;
  4923. isTear1 = (double)fieldValue1[(int)morph.hash[(object)"tear1"]] > 0.0;
  4924. isTear2 = (double)fieldValue1[(int)morph.hash[(object)"tear2"]] > 0.0;
  4925. isTear3 = (double)fieldValue1[(int)morph.hash[(object)"tear3"]] > 0.0;
  4926. isShock = (double)fieldValue1[(int)morph.hash[(object)"shock"]] > 0.0;
  4927. isYodare = (double)fieldValue1[(int)morph.hash[(object)"yodare"]] > 0.0;
  4928. isHoho = (double)fieldValue1[(int)morph.hash[(object)"hoho"]] > 0.0;
  4929. isHoho2 = (double)fieldValue1[(int)morph.hash[(object)"hoho2"]] > 0.0;
  4930. isHohos = (double)fieldValue1[(int)morph.hash[(object)"hohos"]] > 0.0;
  4931. isHohol = (double)fieldValue1[(int)morph.hash[(object)"hohol"]] > 0.0;
  4932. isToothoff = (double)fieldValue1[(int)morph.hash[(object)"toothoff"]] > 0.0;
  4933. isNosefook = (double)fieldValue1[(int)morph.hash[(object)"nosefook"]] > 0.0;
  4934. }
  4935. }
  4936. else
  4937. {
  4938. Maid maid = maidArray[selectMaidIndex];
  4939. if (goSlot[(int)selectList[selectMaidIndex]] != null)
  4940. {
  4941. maidArray[selectMaidIndex].body0.goSlot = new List<TBodySkin>((IEnumerable<TBodySkin>)goSlot[(int)selectList[selectMaidIndex]]);
  4942. for (int index = 0; index < bodyHit[(int)selectList[selectMaidIndex]].Count; ++index)
  4943. maidArray[selectMaidIndex].body0.goSlot[index].bonehair.bodyhit = bodyHit[(int)selectList[selectMaidIndex]][index];
  4944. }
  4945. if (maid.body0.GetMask(TBody.SlotID.wear) != isWear)
  4946. maid.body0.SetMask(TBody.SlotID.wear, isWear);
  4947. if (maid.body0.GetMask(TBody.SlotID.mizugi) != isWear)
  4948. maid.body0.SetMask(TBody.SlotID.mizugi, isWear);
  4949. if (maid.body0.GetMask(TBody.SlotID.onepiece) != isWear)
  4950. maid.body0.SetMask(TBody.SlotID.onepiece, isWear);
  4951. if (maid.body0.GetMask(TBody.SlotID.skirt) != isSkirt)
  4952. maid.body0.SetMask(TBody.SlotID.skirt, isSkirt);
  4953. if (maid.body0.GetMask(TBody.SlotID.bra) != isBra)
  4954. maid.body0.SetMask(TBody.SlotID.bra, isBra);
  4955. if (maid.body0.GetMask(TBody.SlotID.panz) != isPanz)
  4956. maid.body0.SetMask(TBody.SlotID.panz, isPanz);
  4957. if (maid.body0.GetMask(TBody.SlotID.headset) != isHeadset)
  4958. maid.body0.SetMask(TBody.SlotID.headset, isHeadset);
  4959. if (maid.body0.GetMask(TBody.SlotID.accHat) != isHeadset)
  4960. maid.body0.SetMask(TBody.SlotID.accHat, isHeadset);
  4961. if (maid.body0.GetMask(TBody.SlotID.accHead) != isHeadset)
  4962. maid.body0.SetMask(TBody.SlotID.accHead, isHeadset);
  4963. if (maid.body0.GetMask(TBody.SlotID.accKamiSubL) != isHeadset)
  4964. maid.body0.SetMask(TBody.SlotID.accKamiSubL, isHeadset);
  4965. if (maid.body0.GetMask(TBody.SlotID.accKamiSubR) != isHeadset)
  4966. maid.body0.SetMask(TBody.SlotID.accKamiSubR, isHeadset);
  4967. if (maid.body0.GetMask(TBody.SlotID.accKami_1_) != isHeadset)
  4968. maid.body0.SetMask(TBody.SlotID.accKami_1_, isHeadset);
  4969. if (maid.body0.GetMask(TBody.SlotID.accKami_2_) != isHeadset)
  4970. maid.body0.SetMask(TBody.SlotID.accKami_2_, isHeadset);
  4971. if (maid.body0.GetMask(TBody.SlotID.accKami_3_) != isHeadset)
  4972. maid.body0.SetMask(TBody.SlotID.accKami_3_, isHeadset);
  4973. if (maid.body0.GetMask(TBody.SlotID.accUde) != isAccUde)
  4974. maid.body0.SetMask(TBody.SlotID.accUde, isAccUde);
  4975. if (maid.body0.GetMask(TBody.SlotID.stkg) != isStkg)
  4976. maid.body0.SetMask(TBody.SlotID.stkg, isStkg);
  4977. if (maid.body0.GetMask(TBody.SlotID.shoes) != isShoes)
  4978. maid.body0.SetMask(TBody.SlotID.shoes, isShoes);
  4979. if (maid.body0.GetMask(TBody.SlotID.glove) != isGlove)
  4980. maid.body0.SetMask(TBody.SlotID.glove, isGlove);
  4981. if (maid.body0.GetMask(TBody.SlotID.megane) != isMegane)
  4982. maid.body0.SetMask(TBody.SlotID.megane, isMegane);
  4983. if (maid.body0.GetMask(TBody.SlotID.accSenaka) != isAccSenaka)
  4984. maid.body0.SetMask(TBody.SlotID.accSenaka, isAccSenaka);
  4985. if (mekure1[selectMaidIndex] != mekure1n[selectMaidIndex])
  4986. {
  4987. mekure1n[selectMaidIndex] = mekure1[selectMaidIndex];
  4988. if (mekure1[selectMaidIndex])
  4989. {
  4990. maid.ItemChangeTemp("skirt", "めくれスカート");
  4991. maid.ItemChangeTemp("onepiece", "めくれスカート");
  4992. mekure2[selectMaidIndex] = false;
  4993. mekure2n[selectMaidIndex] = false;
  4994. }
  4995. else
  4996. {
  4997. this.ResetProp(maid, MPN.skirt);
  4998. this.ResetProp(maid, MPN.onepiece);
  4999. }
  5000. maid.AllProcPropSeqStart();
  5001. }
  5002. if (mekure2[selectMaidIndex] != mekure2n[selectMaidIndex])
  5003. {
  5004. mekure2n[selectMaidIndex] = mekure2[selectMaidIndex];
  5005. if (mekure2[selectMaidIndex])
  5006. {
  5007. maid.ItemChangeTemp("skirt", "めくれスカート後ろ");
  5008. maid.ItemChangeTemp("onepiece", "めくれスカート後ろ");
  5009. mekure1[selectMaidIndex] = false;
  5010. mekure1n[selectMaidIndex] = false;
  5011. }
  5012. else
  5013. {
  5014. this.ResetProp(maid, MPN.skirt);
  5015. this.ResetProp(maid, MPN.onepiece);
  5016. }
  5017. maid.AllProcPropSeqStart();
  5018. }
  5019. if (zurasi[selectMaidIndex] != zurasin[selectMaidIndex])
  5020. {
  5021. zurasin[selectMaidIndex] = zurasi[selectMaidIndex];
  5022. if (zurasi[selectMaidIndex])
  5023. {
  5024. maid.ItemChangeTemp("panz", "パンツずらし");
  5025. maid.ItemChangeTemp("mizugi", "パンツずらし");
  5026. }
  5027. else
  5028. {
  5029. this.ResetProp(maid, MPN.panz);
  5030. this.ResetProp(maid, MPN.mizugi);
  5031. }
  5032. maid.AllProcPropSeqStart();
  5033. }
  5034. if (!isDanceChu)
  5035. {
  5036. if (maid.body0.GetMask(TBody.SlotID.body) != isMaid)
  5037. {
  5038. Hashtable fieldValue = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TBody, Hashtable>(maid.body0, "m_hFoceHide");
  5039. fieldValue[(object)TBody.SlotID.body] = (object)isMaid;
  5040. fieldValue[(object)TBody.SlotID.head] = (object)isMaid;
  5041. fieldValue[(object)TBody.SlotID.eye] = (object)isMaid;
  5042. fieldValue[(object)TBody.SlotID.hairF] = (object)isMaid;
  5043. fieldValue[(object)TBody.SlotID.hairR] = (object)isMaid;
  5044. fieldValue[(object)TBody.SlotID.hairS] = (object)isMaid;
  5045. fieldValue[(object)TBody.SlotID.hairT] = (object)isMaid;
  5046. fieldValue[(object)TBody.SlotID.hairAho] = (object)isMaid;
  5047. fieldValue[(object)TBody.SlotID.chikubi] = (object)isMaid;
  5048. fieldValue[(object)TBody.SlotID.underhair] = (object)isMaid;
  5049. fieldValue[(object)TBody.SlotID.moza] = (object)isMaid;
  5050. if (maid.body0.goSlot[19].m_strModelFileName.Contains("melala_body"))
  5051. fieldValue[(object)TBody.SlotID.accHana] = (object)isMaid;
  5052. maid.body0.FixMaskFlag();
  5053. maid.body0.FixVisibleFlag(false);
  5054. }
  5055. if (isLook[selectMaidIndex] != isLookn[selectMaidIndex])
  5056. {
  5057. isLookn[selectMaidIndex] = isLook[selectMaidIndex];
  5058. if (isLook[selectMaidIndex])
  5059. {
  5060. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  5061. maid.body0.boHeadToCam = true;
  5062. maid.body0.boEyeToCam = true;
  5063. maid.body0.trsLookTarget = (Transform)null;
  5064. }
  5065. else
  5066. {
  5067. maid.body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
  5068. maid.body0.boHeadToCam = true;
  5069. maid.body0.boEyeToCam = true;
  5070. }
  5071. }
  5072. if (isLook[selectMaidIndex])
  5073. {
  5074. if ((double)maid.body0.offsetLookTarget.x != (double)lookY[selectMaidIndex])
  5075. {
  5076. int num = !isLock[selectMaidIndex] ? 1 : ((double)lookY[selectMaidIndex] >= 0.0 ? 1 : 0);
  5077. maid.body0.offsetLookTarget = num != 0 ? new Vector3(lookY[selectMaidIndex], 1f, lookX[selectMaidIndex]) : new Vector3(lookY[selectMaidIndex] * 0.6f, 1f, lookX[selectMaidIndex]);
  5078. }
  5079. if ((double)lookX[selectMaidIndex] != (double)lookXn[selectMaidIndex])
  5080. {
  5081. lookXn[selectMaidIndex] = lookX[selectMaidIndex];
  5082. maid.body0.offsetLookTarget = new Vector3(lookY[selectMaidIndex], 1f, lookX[selectMaidIndex]);
  5083. }
  5084. if ((double)lookY[selectMaidIndex] != (double)lookYn[selectMaidIndex])
  5085. {
  5086. lookYn[selectMaidIndex] = lookY[selectMaidIndex];
  5087. int num = !isLock[selectMaidIndex] ? 1 : ((double)lookY[selectMaidIndex] >= 0.0 ? 1 : 0);
  5088. maid.body0.offsetLookTarget = num != 0 ? new Vector3(lookY[selectMaidIndex], 1f, lookX[selectMaidIndex]) : new Vector3(lookY[selectMaidIndex] * 0.6f, 1f, lookX[selectMaidIndex]);
  5089. }
  5090. }
  5091. if (isHanten)
  5092. {
  5093. isHanten = false;
  5094. this.SetHanten(maid, selectMaidIndex);
  5095. }
  5096. if (hanten[selectMaidIndex] != hantenn[selectMaidIndex])
  5097. {
  5098. hantenn[selectMaidIndex] = hanten[selectMaidIndex];
  5099. isStop[selectMaidIndex] = true;
  5100. isLock[selectMaidIndex] = true;
  5101. isHanten = true;
  5102. }
  5103. if (voice1[selectMaidIndex] != voice1n[selectMaidIndex])
  5104. {
  5105. voice1n[selectMaidIndex] = voice1[selectMaidIndex];
  5106. if (voice1[selectMaidIndex])
  5107. {
  5108. zFlg[selectMaidIndex] = true;
  5109. xFlg[selectMaidIndex] = false;
  5110. voice2[selectMaidIndex] = false;
  5111. voice2n[selectMaidIndex] = false;
  5112. }
  5113. else
  5114. zFlg[selectMaidIndex] = false;
  5115. }
  5116. if (voice2[selectMaidIndex] != voice2n[selectMaidIndex])
  5117. {
  5118. voice2n[selectMaidIndex] = voice2[selectMaidIndex];
  5119. if (voice2[selectMaidIndex])
  5120. {
  5121. xFlg[selectMaidIndex] = true;
  5122. zFlg[selectMaidIndex] = false;
  5123. voice1[selectMaidIndex] = false;
  5124. voice1n[selectMaidIndex] = false;
  5125. }
  5126. else
  5127. xFlg[selectMaidIndex] = false;
  5128. }
  5129. for (int index = 0; index < maidCnt; ++index)
  5130. {
  5131. if (!maidArray[index].boMabataki)
  5132. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  5133. }
  5134. }
  5135. }
  5136. }
  5137. if ((bool)((UnityEngine.Object)maidArray[selectMaidIndex]) && maidArray[selectMaidIndex].Visible && (isF6 || okFlg && faceFlg))
  5138. {
  5139. if (isFaceInit)
  5140. {
  5141. if (!isDanceChu)
  5142. {
  5143. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  5144. float[] fieldValue1 = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  5145. float[] fieldValue2 = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  5146. Maid maid = maidArray[selectMaidIndex];
  5147. maidArray[selectMaidIndex].boMabataki = false;
  5148. morph.EyeMabataki = 0.0f;
  5149. isFaceInit = false;
  5150. maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
  5151. eyeclose = fieldValue2[(int)morph.hash[(object)"eyeclose"]];
  5152. eyeclose2 = fieldValue2[(int)morph.hash[(object)"eyeclose2"]];
  5153. eyeclose3 = fieldValue2[(int)morph.hash[(object)"eyeclose3"]];
  5154. eyeclose6 = fieldValue2[(int)morph.hash[(object)"eyeclose6"]];
  5155. hitomih = fieldValue1[(int)morph.hash[(object)"hitomih"]];
  5156. hitomis = fieldValue1[(int)morph.hash[(object)"hitomis"]];
  5157. mayuha = fieldValue1[(int)morph.hash[(object)"mayuha"]];
  5158. mayuup = fieldValue1[(int)morph.hash[(object)"mayuup"]];
  5159. mayuv = fieldValue1[(int)morph.hash[(object)"mayuv"]];
  5160. mayuvhalf = fieldValue1[(int)morph.hash[(object)"mayuvhalf"]];
  5161. moutha = fieldValue1[(int)morph.hash[(object)"moutha"]];
  5162. mouths = fieldValue1[(int)morph.hash[(object)"mouths"]];
  5163. mouthdw = fieldValue1[(int)morph.hash[(object)"mouthdw"]];
  5164. mouthup = fieldValue1[(int)morph.hash[(object)"mouthup"]];
  5165. tangout = fieldValue1[(int)morph.hash[(object)"tangout"]];
  5166. tangup = fieldValue1[(int)morph.hash[(object)"tangup"]];
  5167. eyebig = fieldValue1[(int)morph.hash[(object)"eyebig"]];
  5168. eyeclose5 = fieldValue2[(int)morph.hash[(object)"eyeclose5"]];
  5169. mayuw = fieldValue1[(int)morph.hash[(object)"mayuw"]];
  5170. mouthhe = fieldValue1[(int)morph.hash[(object)"mouthhe"]];
  5171. mouthc = fieldValue1[(int)morph.hash[(object)"mouthc"]];
  5172. mouthi = fieldValue1[(int)morph.hash[(object)"mouthi"]];
  5173. mouthuphalf = fieldValue1[(int)morph.hash[(object)"mouthuphalf"]];
  5174. try
  5175. {
  5176. tangopen = fieldValue1[(int)morph.hash[(object)"tangopen"]];
  5177. }
  5178. catch
  5179. {
  5180. }
  5181. isWear = maid.body0.GetMask(TBody.SlotID.wear) || maid.body0.GetMask(TBody.SlotID.mizugi) || maid.body0.GetMask(TBody.SlotID.onepiece);
  5182. isSkirt = maid.body0.GetMask(TBody.SlotID.skirt);
  5183. isBra = maid.body0.GetMask(TBody.SlotID.bra);
  5184. isPanz = maid.body0.GetMask(TBody.SlotID.panz);
  5185. isHeadset = maid.body0.GetMask(TBody.SlotID.headset) || maid.body0.GetMask(TBody.SlotID.accHat) || (maid.body0.GetMask(TBody.SlotID.accHead) || maid.body0.GetMask(TBody.SlotID.accKamiSubL)) || (maid.body0.GetMask(TBody.SlotID.accKamiSubR) || maid.body0.GetMask(TBody.SlotID.accKami_1_) || maid.body0.GetMask(TBody.SlotID.accKami_2_)) || maid.body0.GetMask(TBody.SlotID.accKami_3_);
  5186. isAccUde = maid.body0.GetMask(TBody.SlotID.accUde);
  5187. isStkg = maid.body0.GetMask(TBody.SlotID.stkg);
  5188. isShoes = maid.body0.GetMask(TBody.SlotID.shoes);
  5189. isGlove = maid.body0.GetMask(TBody.SlotID.glove);
  5190. isMegane = maid.body0.GetMask(TBody.SlotID.megane);
  5191. isAccSenaka = maid.body0.GetMask(TBody.SlotID.accSenaka);
  5192. isNamida = (double)fieldValue1[(int)morph.hash[(object)"namida"]] > 0.0;
  5193. isTear1 = (double)fieldValue1[(int)morph.hash[(object)"tear1"]] > 0.0;
  5194. isTear2 = (double)fieldValue1[(int)morph.hash[(object)"tear2"]] > 0.0;
  5195. isTear3 = (double)fieldValue1[(int)morph.hash[(object)"tear3"]] > 0.0;
  5196. isShock = (double)fieldValue1[(int)morph.hash[(object)"shock"]] > 0.0;
  5197. isYodare = (double)fieldValue1[(int)morph.hash[(object)"yodare"]] > 0.0;
  5198. isHoho = (double)fieldValue1[(int)morph.hash[(object)"hoho"]] > 0.0;
  5199. isHoho2 = (double)fieldValue1[(int)morph.hash[(object)"hoho2"]] > 0.0;
  5200. isHohos = (double)fieldValue1[(int)morph.hash[(object)"hohos"]] > 0.0;
  5201. isHohol = (double)fieldValue1[(int)morph.hash[(object)"hohol"]] > 0.0;
  5202. isToothoff = (double)fieldValue1[(int)morph.hash[(object)"toothoff"]] > 0.0;
  5203. isNosefook = (double)fieldValue1[(int)morph.hash[(object)"nosefook"]] > 0.0;
  5204. }
  5205. }
  5206. else
  5207. {
  5208. Maid maid = maidArray[selectMaidIndex];
  5209. if (!yotogiFlg && sceneLevel != 5 && sceneLevel != 3)
  5210. {
  5211. if (maid.body0.GetMask(TBody.SlotID.wear) != isWear)
  5212. maid.body0.SetMask(TBody.SlotID.wear, isWear);
  5213. if (maid.body0.GetMask(TBody.SlotID.mizugi) != isWear)
  5214. maid.body0.SetMask(TBody.SlotID.mizugi, isWear);
  5215. if (maid.body0.GetMask(TBody.SlotID.onepiece) != isWear)
  5216. maid.body0.SetMask(TBody.SlotID.onepiece, isWear);
  5217. if (maid.body0.GetMask(TBody.SlotID.skirt) != isSkirt)
  5218. maid.body0.SetMask(TBody.SlotID.skirt, isSkirt);
  5219. if (maid.body0.GetMask(TBody.SlotID.bra) != isBra)
  5220. maid.body0.SetMask(TBody.SlotID.bra, isBra);
  5221. if (maid.body0.GetMask(TBody.SlotID.panz) != isPanz)
  5222. maid.body0.SetMask(TBody.SlotID.panz, isPanz);
  5223. if (maid.body0.GetMask(TBody.SlotID.headset) != isHeadset)
  5224. maid.body0.SetMask(TBody.SlotID.headset, isHeadset);
  5225. if (maid.body0.GetMask(TBody.SlotID.accHat) != isHeadset)
  5226. maid.body0.SetMask(TBody.SlotID.accHat, isHeadset);
  5227. if (maid.body0.GetMask(TBody.SlotID.accHead) != isHeadset)
  5228. maid.body0.SetMask(TBody.SlotID.accHead, isHeadset);
  5229. if (maid.body0.GetMask(TBody.SlotID.accKamiSubL) != isHeadset)
  5230. maid.body0.SetMask(TBody.SlotID.accKamiSubL, isHeadset);
  5231. if (maid.body0.GetMask(TBody.SlotID.accKamiSubR) != isHeadset)
  5232. maid.body0.SetMask(TBody.SlotID.accKamiSubR, isHeadset);
  5233. if (maid.body0.GetMask(TBody.SlotID.accKami_1_) != isHeadset)
  5234. maid.body0.SetMask(TBody.SlotID.accKami_1_, isHeadset);
  5235. if (maid.body0.GetMask(TBody.SlotID.accKami_2_) != isHeadset)
  5236. maid.body0.SetMask(TBody.SlotID.accKami_2_, isHeadset);
  5237. if (maid.body0.GetMask(TBody.SlotID.accKami_3_) != isHeadset)
  5238. maid.body0.SetMask(TBody.SlotID.accKami_3_, isHeadset);
  5239. if (maid.body0.GetMask(TBody.SlotID.accUde) != isAccUde)
  5240. maid.body0.SetMask(TBody.SlotID.accUde, isAccUde);
  5241. if (maid.body0.GetMask(TBody.SlotID.stkg) != isStkg)
  5242. maid.body0.SetMask(TBody.SlotID.stkg, isStkg);
  5243. if (maid.body0.GetMask(TBody.SlotID.shoes) != isShoes)
  5244. maid.body0.SetMask(TBody.SlotID.shoes, isShoes);
  5245. if (maid.body0.GetMask(TBody.SlotID.glove) != isGlove)
  5246. maid.body0.SetMask(TBody.SlotID.glove, isGlove);
  5247. if (maid.body0.GetMask(TBody.SlotID.megane) != isMegane)
  5248. maid.body0.SetMask(TBody.SlotID.megane, isMegane);
  5249. if (maid.body0.GetMask(TBody.SlotID.accSenaka) != isAccSenaka)
  5250. maid.body0.SetMask(TBody.SlotID.accSenaka, isAccSenaka);
  5251. if (mekure1[selectMaidIndex] != mekure1n[selectMaidIndex])
  5252. {
  5253. mekure1n[selectMaidIndex] = mekure1[selectMaidIndex];
  5254. if (mekure1[selectMaidIndex])
  5255. {
  5256. maid.ItemChangeTemp("skirt", "めくれスカート");
  5257. maid.ItemChangeTemp("onepiece", "めくれスカート");
  5258. mekure2[selectMaidIndex] = false;
  5259. mekure2n[selectMaidIndex] = false;
  5260. }
  5261. else
  5262. {
  5263. this.ResetProp(maid, MPN.skirt);
  5264. this.ResetProp(maid, MPN.onepiece);
  5265. }
  5266. maid.AllProcPropSeqStart();
  5267. }
  5268. if (mekure2[selectMaidIndex] != mekure2n[selectMaidIndex])
  5269. {
  5270. mekure2n[selectMaidIndex] = mekure2[selectMaidIndex];
  5271. if (mekure2[selectMaidIndex])
  5272. {
  5273. maid.ItemChangeTemp("skirt", "めくれスカート後ろ");
  5274. maid.ItemChangeTemp("onepiece", "めくれスカート後ろ");
  5275. mekure1[selectMaidIndex] = false;
  5276. mekure1n[selectMaidIndex] = false;
  5277. }
  5278. else
  5279. {
  5280. this.ResetProp(maid, MPN.skirt);
  5281. this.ResetProp(maid, MPN.onepiece);
  5282. }
  5283. maid.AllProcPropSeqStart();
  5284. }
  5285. if (zurasi[selectMaidIndex] != zurasin[selectMaidIndex])
  5286. {
  5287. zurasin[selectMaidIndex] = zurasi[selectMaidIndex];
  5288. if (zurasi[selectMaidIndex])
  5289. {
  5290. maid.ItemChangeTemp("panz", "パンツずらし");
  5291. maid.ItemChangeTemp("mizugi", "パンツずらし");
  5292. }
  5293. else
  5294. {
  5295. this.ResetProp(maid, MPN.panz);
  5296. this.ResetProp(maid, MPN.mizugi);
  5297. }
  5298. maid.AllProcPropSeqStart();
  5299. }
  5300. }
  5301. if (!isDanceChu)
  5302. {
  5303. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  5304. float[] fieldValue1 = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  5305. float[] fieldValue2 = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  5306. fieldValue2[(int)morph.hash[(object)"eyeclose"]] = eyeclose;
  5307. fieldValue2[(int)morph.hash[(object)"eyeclose2"]] = eyeclose2;
  5308. fieldValue2[(int)morph.hash[(object)"eyeclose3"]] = eyeclose3;
  5309. fieldValue2[(int)morph.hash[(object)"eyeclose6"]] = eyeclose6;
  5310. fieldValue1[(int)morph.hash[(object)"hitomih"]] = hitomih;
  5311. fieldValue1[(int)morph.hash[(object)"hitomis"]] = hitomis;
  5312. fieldValue1[(int)morph.hash[(object)"mayuha"]] = mayuha;
  5313. fieldValue1[(int)morph.hash[(object)"mayuup"]] = mayuup;
  5314. fieldValue1[(int)morph.hash[(object)"mayuv"]] = mayuv;
  5315. fieldValue1[(int)morph.hash[(object)"mayuvhalf"]] = mayuvhalf;
  5316. fieldValue1[(int)morph.hash[(object)"tangout"]] = tangout;
  5317. fieldValue1[(int)morph.hash[(object)"tangup"]] = tangup;
  5318. fieldValue1[(int)morph.hash[(object)"eyebig"]] = eyebig;
  5319. fieldValue2[(int)morph.hash[(object)"eyeclose5"]] = eyeclose5;
  5320. fieldValue1[(int)morph.hash[(object)"mayuw"]] = mayuw;
  5321. try
  5322. {
  5323. fieldValue1[(int)morph.hash[(object)"tangopen"]] = tangopen;
  5324. }
  5325. catch
  5326. {
  5327. }
  5328. if (!isDanceChu)
  5329. {
  5330. fieldValue1[(int)morph.hash[(object)"moutha"]] = moutha;
  5331. fieldValue1[(int)morph.hash[(object)"mouths"]] = mouths;
  5332. fieldValue1[(int)morph.hash[(object)"mouthdw"]] = mouthdw;
  5333. fieldValue1[(int)morph.hash[(object)"mouthup"]] = mouthup;
  5334. fieldValue1[(int)morph.hash[(object)"mouthhe"]] = mouthhe;
  5335. fieldValue1[(int)morph.hash[(object)"mouthc"]] = mouthc;
  5336. fieldValue1[(int)morph.hash[(object)"mouthi"]] = mouthi;
  5337. fieldValue1[(int)morph.hash[(object)"mouthuphalf"]] = mouthuphalf;
  5338. }
  5339. if (isNamida)
  5340. fieldValue1[(int)morph.hash[(object)"namida"]] = 1f;
  5341. else
  5342. fieldValue1[(int)morph.hash[(object)"namida"]] = 0.0f;
  5343. if (isTear1)
  5344. fieldValue1[(int)morph.hash[(object)"tear1"]] = 1f;
  5345. else
  5346. fieldValue1[(int)morph.hash[(object)"tear1"]] = 0.0f;
  5347. if (isTear2)
  5348. fieldValue1[(int)morph.hash[(object)"tear2"]] = 1f;
  5349. else
  5350. fieldValue1[(int)morph.hash[(object)"tear2"]] = 0.0f;
  5351. if (isTear3)
  5352. fieldValue1[(int)morph.hash[(object)"tear3"]] = 1f;
  5353. else
  5354. fieldValue1[(int)morph.hash[(object)"tear3"]] = 0.0f;
  5355. if (isShock)
  5356. fieldValue1[(int)morph.hash[(object)"shock"]] = 1f;
  5357. else
  5358. fieldValue1[(int)morph.hash[(object)"shock"]] = 0.0f;
  5359. if (isYodare)
  5360. fieldValue1[(int)morph.hash[(object)"yodare"]] = 1f;
  5361. else
  5362. fieldValue1[(int)morph.hash[(object)"yodare"]] = 0.0f;
  5363. if (isHoho)
  5364. fieldValue1[(int)morph.hash[(object)"hoho"]] = 0.5f;
  5365. else
  5366. fieldValue1[(int)morph.hash[(object)"hoho"]] = 0.0f;
  5367. if (isHoho2)
  5368. fieldValue1[(int)morph.hash[(object)"hoho2"]] = 0.5f;
  5369. else
  5370. fieldValue1[(int)morph.hash[(object)"hoho2"]] = 0.0f;
  5371. if (isHohos)
  5372. fieldValue1[(int)morph.hash[(object)"hohos"]] = 1f;
  5373. else
  5374. fieldValue1[(int)morph.hash[(object)"hohos"]] = 0.0f;
  5375. if (isHohol)
  5376. fieldValue1[(int)morph.hash[(object)"hohol"]] = 1f;
  5377. else
  5378. fieldValue1[(int)morph.hash[(object)"hohol"]] = 0.0f;
  5379. if (isToothoff)
  5380. fieldValue1[(int)morph.hash[(object)"toothoff"]] = 1f;
  5381. else
  5382. fieldValue1[(int)morph.hash[(object)"toothoff"]] = 0.0f;
  5383. morph.boNoseFook = isNosefook;
  5384. for (int index = 0; index < maidCnt; ++index)
  5385. maidArray[index].body0.Face.morph.FixBlendValues_Face();
  5386. }
  5387. }
  5388. }
  5389. if (isF6 && !okFlg && (!escFlg && Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.Tab)))
  5390. bGui = !bGui;
  5391. if (isF6 && (UnityEngine.Object)maidArray[0] != (UnityEngine.Object)null && maidArray[0].Visible)
  5392. {
  5393. for (int index = 0; index < 999; ++index)
  5394. {
  5395. if ((UnityEngine.Object)gDogu[index] != (UnityEngine.Object)null)
  5396. {
  5397. gDogu[index].GetComponent<Renderer>().enabled = false;
  5398. gDogu[index].SetActive(false);
  5399. if (mDogu[index].del)
  5400. {
  5401. mDogu[index].del = false;
  5402. UnityEngine.Object.Destroy((UnityEngine.Object)doguBObject[index]);
  5403. doguBObject.RemoveAt(index);
  5404. }
  5405. else if (mDogu[index].count > 0)
  5406. {
  5407. --mDogu[index].count;
  5408. if (doguBObject.Count > index && (UnityEngine.Object)doguBObject[index] != (UnityEngine.Object)null && doguBObject[index].name.StartsWith("Particle/p"))
  5409. {
  5410. if (mDogu[index].count == 1)
  5411. doguBObject[index].SetActive(false);
  5412. if (mDogu[index].count == 0)
  5413. {
  5414. doguBObject[index].SetActive(true);
  5415. switch (doguBObject[index].name)
  5416. {
  5417. case "Particle/pLineY":
  5418. mDogu[index].count = 180;
  5419. break;
  5420. case "Particle/pLineP02":
  5421. mDogu[index].count = 115;
  5422. break;
  5423. case "Particle/pLine_act2":
  5424. mDogu[index].count = 90;
  5425. break;
  5426. case "Particle/pHeart01":
  5427. mDogu[index].count = 77;
  5428. break;
  5429. }
  5430. }
  5431. }
  5432. }
  5433. }
  5434. }
  5435. ikMode2 = !Input.GetKey(KeyCode.Z) || !this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Shift) ? (!Input.GetKey(KeyCode.Z) || !this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Ctrl) ? (!Input.GetKey(KeyCode.X) || !this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Shift) ? (!Input.GetKey(KeyCode.X) ? (!Input.GetKey(KeyCode.Z) ? (!Input.GetKey(KeyCode.C) ? (!Input.GetKey(KeyCode.D) ? 0 : 15) : 13) : 10) : 9) : 14) : 12) : 11;
  5436. if ((UnityEngine.Object)gBg != (UnityEngine.Object)null)
  5437. {
  5438. if (!isCube3)
  5439. {
  5440. gBg.GetComponent<Renderer>().enabled = false;
  5441. gBg.SetActive(false);
  5442. }
  5443. else
  5444. {
  5445. if (ikMode2 > 0 && ikMode2 != 15)
  5446. {
  5447. gBg.GetComponent<Renderer>().enabled = true;
  5448. gBg.SetActive(true);
  5449. }
  5450. else
  5451. {
  5452. gBg.GetComponent<Renderer>().enabled = false;
  5453. gBg.SetActive(false);
  5454. }
  5455. if (ikMode2 == 10 || ikMode2 == 11 || ikMode2 == 12)
  5456. gBg.GetComponent<Renderer>().material.color = new Color(0.4f, 0.4f, 1f, 0.5f);
  5457. if (ikMode2 == 9 || ikMode2 == 14)
  5458. {
  5459. gBg.GetComponent<Renderer>().material.color = new Color(0.3f, 0.7f, 0.3f, 0.5f);
  5460. mBg.Update();
  5461. }
  5462. if (ikMode2 == 13)
  5463. {
  5464. gBg.GetComponent<Renderer>().material.color = new Color(0.7f, 0.7f, 0.3f, 0.5f);
  5465. mBg.Update();
  5466. }
  5467. if (ikMode2 == 13)
  5468. {
  5469. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 13 && (bool)((UnityEngine.Object)gBg))
  5470. {
  5471. mBg.ido = 5;
  5472. mBg.reset = true;
  5473. }
  5474. else
  5475. {
  5476. gBg.transform.position = bg.position;
  5477. gBg.transform.eulerAngles = bg.eulerAngles;
  5478. mBg.maid = bgObject;
  5479. mBg.ido = 5;
  5480. }
  5481. }
  5482. else if (ikMode2 == 11)
  5483. {
  5484. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 11 && (bool)((UnityEngine.Object)gBg))
  5485. {
  5486. mBg.ido = 3;
  5487. mBg.reset = true;
  5488. }
  5489. else
  5490. {
  5491. gBg.transform.position = bg.position;
  5492. gBg.transform.eulerAngles = bg.eulerAngles;
  5493. mBg.maid = bgObject;
  5494. mBg.ido = 3;
  5495. }
  5496. }
  5497. else if (ikMode2 == 12)
  5498. {
  5499. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 12 && (bool)((UnityEngine.Object)gBg))
  5500. {
  5501. mBg.ido = 2;
  5502. mBg.reset = true;
  5503. }
  5504. else
  5505. {
  5506. gBg.transform.position = bg.position;
  5507. gBg.transform.eulerAngles = bg.eulerAngles;
  5508. mBg.maid = bgObject;
  5509. mBg.ido = 2;
  5510. }
  5511. }
  5512. else if (ikMode2 == 10)
  5513. {
  5514. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 10 && (bool)((UnityEngine.Object)gBg))
  5515. {
  5516. mBg.ido = 1;
  5517. mBg.reset = true;
  5518. }
  5519. else
  5520. {
  5521. gBg.transform.position = bg.position;
  5522. gBg.transform.eulerAngles = bg.eulerAngles;
  5523. mBg.maid = bgObject;
  5524. mBg.ido = 1;
  5525. }
  5526. }
  5527. else if (ikMode2 == 9)
  5528. {
  5529. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 9 && (bool)((UnityEngine.Object)gBg))
  5530. {
  5531. mBg.ido = 4;
  5532. mBg.reset = true;
  5533. }
  5534. else
  5535. {
  5536. gBg.transform.position = bg.position;
  5537. gBg.transform.eulerAngles = bg.eulerAngles;
  5538. mBg.maid = bgObject;
  5539. mBg.ido = 4;
  5540. }
  5541. }
  5542. else if (ikMode2 == 14)
  5543. {
  5544. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 14 && (bool)((UnityEngine.Object)gBg))
  5545. {
  5546. mBg.ido = 6;
  5547. mBg.reset = true;
  5548. }
  5549. else
  5550. {
  5551. gBg.transform.position = bg.position;
  5552. gBg.transform.eulerAngles = bg.eulerAngles;
  5553. mBg.maid = bgObject;
  5554. mBg.ido = 6;
  5555. }
  5556. }
  5557. }
  5558. }
  5559. for (int index = 0; index < lightIndex.Count; ++index)
  5560. {
  5561. if ((UnityEngine.Object)gLight[0] == (UnityEngine.Object)null)
  5562. {
  5563. gLight[0] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  5564. gLight[0].GetComponent<Renderer>().material = new Material(Shader.Find("Transparent/Diffuse"))
  5565. {
  5566. color = new Color(0.5f, 0.5f, 1f, 0.8f)
  5567. };
  5568. gLight[0].layer = 8;
  5569. gLight[0].GetComponent<Renderer>().enabled = false;
  5570. gLight[0].SetActive(false);
  5571. gLight[0].transform.position = GameMain.Instance.MainLight.transform.position;
  5572. mLight[0] = gLight[0].AddComponent<MouseDrag6>();
  5573. mLight[0].obj = gLight[0];
  5574. mLight[0].maid = GameMain.Instance.MainLight.gameObject;
  5575. mLight[0].angles = GameMain.Instance.MainLight.gameObject.transform.eulerAngles;
  5576. gLight[0].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  5577. mLight[0].ido = 1;
  5578. mLight[0].isScale = false;
  5579. }
  5580. if ((UnityEngine.Object)gLight[index] != (UnityEngine.Object)null)
  5581. {
  5582. if (!isCube4)
  5583. {
  5584. gLight[index].GetComponent<Renderer>().enabled = false;
  5585. gLight[index].SetActive(false);
  5586. }
  5587. else if (lightList[index].GetComponent<UnityEngine.Light>().type == LightType.Spot || lightList[index].GetComponent<UnityEngine.Light>().type == LightType.Point)
  5588. {
  5589. if (ikMode2 > 0 && ikMode2 != 15)
  5590. {
  5591. gLight[index].GetComponent<Renderer>().enabled = true;
  5592. gLight[index].SetActive(true);
  5593. }
  5594. else
  5595. {
  5596. gLight[index].GetComponent<Renderer>().enabled = false;
  5597. gLight[index].SetActive(false);
  5598. mLight[index].isAlt = false;
  5599. }
  5600. if (ikMode2 == 10 || ikMode2 == 11 || ikMode2 == 12)
  5601. {
  5602. gLight[index].GetComponent<Renderer>().material.color = new Color(0.4f, 0.4f, 1f, 0.5f);
  5603. if (mLight[index].isAlt)
  5604. gLight[index].GetComponent<Renderer>().material.color = new Color(0.6f, 0.6f, 1f, 0.5f);
  5605. }
  5606. if (ikMode2 == 9 || ikMode2 == 14)
  5607. {
  5608. gLight[index].GetComponent<Renderer>().material.color = new Color(0.3f, 0.7f, 0.3f, 0.5f);
  5609. mLight[index].Update();
  5610. }
  5611. if (ikMode2 == 13)
  5612. {
  5613. gLight[index].GetComponent<Renderer>().material.color = new Color(0.7f, 0.7f, 0.3f, 0.5f);
  5614. mLight[index].Update();
  5615. }
  5616. if (ikMode2 == 13)
  5617. {
  5618. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 13 && (bool)((UnityEngine.Object)gLight[index]))
  5619. {
  5620. mLight[index].ido = 15;
  5621. mLight[index].reset = true;
  5622. }
  5623. else
  5624. {
  5625. if ((double)lightList[index].transform.localScale.x == 1.0)
  5626. lightList[index].transform.localScale = new Vector3(lightRange[index], lightRange[index], lightRange[index]);
  5627. lightRange[index] = lightList[index].transform.localScale.x;
  5628. gLight[index].transform.position = lightList[index].transform.position;
  5629. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  5630. mLight[index].maid = lightList[index];
  5631. mLight[index].ido = 15;
  5632. }
  5633. }
  5634. else if (ikMode2 == 11)
  5635. {
  5636. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 11 && (bool)((UnityEngine.Object)gLight[index]))
  5637. {
  5638. mLight[index].ido = 3;
  5639. mLight[index].reset = true;
  5640. }
  5641. else
  5642. {
  5643. gLight[index].transform.position = lightList[index].transform.position;
  5644. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  5645. lightX[index] = gLight[index].transform.eulerAngles.x;
  5646. lightY[index] = gLight[index].transform.eulerAngles.y;
  5647. mLight[index].maid = lightList[index];
  5648. mLight[index].ido = 3;
  5649. }
  5650. }
  5651. else if (ikMode2 == 12)
  5652. {
  5653. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 12 && (bool)((UnityEngine.Object)gLight[index]))
  5654. {
  5655. mLight[index].ido = 2;
  5656. mLight[index].reset = true;
  5657. }
  5658. else
  5659. {
  5660. gLight[index].transform.position = lightList[index].transform.position;
  5661. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  5662. mLight[index].maid = lightList[index];
  5663. mLight[index].ido = 2;
  5664. }
  5665. }
  5666. else if (ikMode2 == 10)
  5667. {
  5668. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 10 && (bool)((UnityEngine.Object)gLight[index]))
  5669. {
  5670. mLight[index].ido = 1;
  5671. mLight[index].reset = true;
  5672. }
  5673. else
  5674. {
  5675. gLight[index].transform.position = lightList[index].transform.position;
  5676. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  5677. mLight[index].maid = lightList[index];
  5678. mLight[index].ido = 1;
  5679. }
  5680. }
  5681. else if (ikMode2 == 9)
  5682. {
  5683. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 9 && (bool)((UnityEngine.Object)gLight[index]))
  5684. {
  5685. mLight[index].ido = 4;
  5686. mLight[index].reset = true;
  5687. }
  5688. else
  5689. {
  5690. gLight[index].transform.position = lightList[index].transform.position;
  5691. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  5692. lightX[index] = gLight[index].transform.eulerAngles.x;
  5693. lightY[index] = gLight[index].transform.eulerAngles.y;
  5694. mLight[index].maid = lightList[index];
  5695. mLight[index].ido = 4;
  5696. }
  5697. }
  5698. else if (ikMode2 == 14)
  5699. {
  5700. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 14 && (bool)((UnityEngine.Object)gLight[index]))
  5701. {
  5702. mLight[index].ido = 6;
  5703. mLight[index].reset = true;
  5704. }
  5705. else
  5706. {
  5707. gLight[index].transform.position = lightList[index].transform.position;
  5708. gLight[index].transform.eulerAngles = lightList[index].transform.eulerAngles;
  5709. lightX[index] = gLight[index].transform.eulerAngles.x;
  5710. lightY[index] = gLight[index].transform.eulerAngles.y;
  5711. mLight[index].maid = lightList[index];
  5712. mLight[index].ido = 6;
  5713. }
  5714. }
  5715. }
  5716. }
  5717. }
  5718. for (int index = 0; index < doguBObject.Count; ++index)
  5719. {
  5720. if (!isCube2)
  5721. {
  5722. gDogu[index].GetComponent<Renderer>().enabled = false;
  5723. gDogu[index].SetActive(false);
  5724. }
  5725. else
  5726. {
  5727. if (ikMode2 > 0)
  5728. {
  5729. gDogu[index].GetComponent<Renderer>().enabled = true;
  5730. gDogu[index].SetActive(true);
  5731. }
  5732. else
  5733. {
  5734. gDogu[index].GetComponent<Renderer>().enabled = false;
  5735. gDogu[index].SetActive(false);
  5736. mDogu[index].isAlt = false;
  5737. }
  5738. if (ikMode2 == 10 || ikMode2 == 11 || ikMode2 == 12)
  5739. {
  5740. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.4f, 0.4f, 1f, 0.5f);
  5741. if (mDogu[index].isAlt)
  5742. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.6f, 0.6f, 1f, 0.5f);
  5743. }
  5744. if (ikMode2 == 9 || ikMode2 == 14)
  5745. {
  5746. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.3f, 0.7f, 0.3f, 0.5f);
  5747. mDogu[index].Update();
  5748. }
  5749. if (ikMode2 == 15)
  5750. gDogu[index].GetComponent<Renderer>().material.color = new Color(1f, 0.3f, 0.3f, 0.5f);
  5751. if (ikMode2 == 13)
  5752. {
  5753. gDogu[index].GetComponent<Renderer>().material.color = new Color(0.7f, 0.7f, 0.3f, 0.5f);
  5754. mDogu[index].Update();
  5755. }
  5756. if (ikMode2 == 13)
  5757. {
  5758. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 13 && (bool)((UnityEngine.Object)gDogu[index]))
  5759. {
  5760. mDogu[index].ido = 5;
  5761. mDogu[index].reset = true;
  5762. }
  5763. else
  5764. {
  5765. gDogu[index].transform.position = doguBObject[index].transform.position;
  5766. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5767. mDogu[index].maid = doguBObject[index];
  5768. mDogu[index].ido = 5;
  5769. }
  5770. }
  5771. else if (ikMode2 == 11)
  5772. {
  5773. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 11 && (bool)((UnityEngine.Object)gDogu[index]))
  5774. {
  5775. mDogu[index].ido = 3;
  5776. mDogu[index].reset = true;
  5777. }
  5778. else
  5779. {
  5780. gDogu[index].transform.position = doguBObject[index].transform.position;
  5781. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5782. mDogu[index].maid = doguBObject[index];
  5783. mDogu[index].ido = 3;
  5784. }
  5785. }
  5786. else if (ikMode2 == 12)
  5787. {
  5788. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 12 && (bool)((UnityEngine.Object)gDogu[index]))
  5789. {
  5790. mDogu[index].ido = 2;
  5791. mDogu[index].reset = true;
  5792. }
  5793. else
  5794. {
  5795. gDogu[index].transform.position = doguBObject[index].transform.position;
  5796. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5797. mDogu[index].maid = doguBObject[index];
  5798. mDogu[index].ido = 2;
  5799. }
  5800. }
  5801. else if (ikMode2 == 10)
  5802. {
  5803. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 10 && (bool)((UnityEngine.Object)gDogu[index]))
  5804. {
  5805. mDogu[index].ido = 1;
  5806. mDogu[index].reset = true;
  5807. }
  5808. else
  5809. {
  5810. gDogu[index].transform.position = doguBObject[index].transform.position;
  5811. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5812. mDogu[index].maid = doguBObject[index];
  5813. mDogu[index].maidArray = doguBObject.ToArray();
  5814. mDogu[index].mArray = ((IEnumerable<MouseDrag6>)mDogu).ToArray<MouseDrag6>();
  5815. mDogu[index].ido = 1;
  5816. }
  5817. }
  5818. else if (ikMode2 == 9)
  5819. {
  5820. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 9 && (bool)((UnityEngine.Object)gDogu[index]))
  5821. {
  5822. mDogu[index].ido = 4;
  5823. mDogu[index].reset = true;
  5824. }
  5825. else
  5826. {
  5827. gDogu[index].transform.position = doguBObject[index].transform.position;
  5828. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5829. mDogu[index].maid = doguBObject[index];
  5830. mDogu[index].ido = 4;
  5831. }
  5832. }
  5833. else if (ikMode2 == 14)
  5834. {
  5835. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 14 && (bool)((UnityEngine.Object)gDogu[index]))
  5836. {
  5837. mDogu[index].ido = 6;
  5838. mDogu[index].reset = true;
  5839. }
  5840. else
  5841. {
  5842. gDogu[index].transform.position = doguBObject[index].transform.position;
  5843. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5844. mDogu[index].maid = doguBObject[index];
  5845. mDogu[index].ido = 6;
  5846. }
  5847. }
  5848. else if (ikMode2 == 15)
  5849. {
  5850. if ((ikModeOld2 == 0 || ikModeOld2 >= 9) && ikModeOld2 != 15 && (bool)((UnityEngine.Object)gDogu[index]))
  5851. {
  5852. mDogu[index].ido = 7;
  5853. mDogu[index].reset = true;
  5854. }
  5855. else
  5856. {
  5857. gDogu[index].transform.position = doguBObject[index].transform.position;
  5858. gDogu[index].transform.eulerAngles = doguBObject[index].transform.eulerAngles;
  5859. mDogu[index].maid = doguBObject[index];
  5860. mDogu[index].ido = 7;
  5861. }
  5862. }
  5863. }
  5864. }
  5865. ikModeOld2 = ikMode2;
  5866. Vector3 vector3_2 = mainCameraTransform.TransformDirection(Vector3.forward);
  5867. Vector3 vector3_3 = mainCameraTransform.TransformDirection(Vector3.right);
  5868. vector3_1 = mainCameraTransform.TransformDirection(Vector3.up);
  5869. if (Input.GetKeyDown(KeyCode.Y) && this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Shift))
  5870. {
  5871. keyFlg = true;
  5872. --bgIndex;
  5873. if (bgIndex <= -1)
  5874. bgIndex = bgArray.Length - 1;
  5875. if (!moveBg)
  5876. {
  5877. bg.localScale = new Vector3(1f, 1f, 1f);
  5878. if (bgArray[bgIndex].Length == 36)
  5879. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  5880. else
  5881. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  5882. bgCombo.selectedItemIndex = bgIndex;
  5883. }
  5884. }
  5885. else if (Input.GetKey(KeyCode.Y) && Input.GetKey(KeyCode.E))
  5886. {
  5887. keyFlg = true;
  5888. bg.localScale = new Vector3(bg.localScale.x * 1.005f, bg.localScale.y * 1.005f, bg.localScale.z * 1.005f);
  5889. }
  5890. else if (Input.GetKey(KeyCode.Y) && Input.GetKey(KeyCode.D))
  5891. {
  5892. keyFlg = true;
  5893. bg.localScale = new Vector3(bg.localScale.x * 0.995f, bg.localScale.y * 0.995f, bg.localScale.z * 0.995f);
  5894. }
  5895. else if (Input.GetKey(KeyCode.Y) && Input.GetKeyDown(KeyCode.C))
  5896. {
  5897. keyFlg = true;
  5898. bg.localScale = new Vector3(1f, 1f, 1f);
  5899. }
  5900. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.I) && Input.GetKey(KeyCode.J))
  5901. {
  5902. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * -0.025f * speed + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * 0.025f * speed;
  5903. if (Input.GetKey(KeyCode.Y))
  5904. keyFlg = true;
  5905. }
  5906. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.I) && Input.GetKey(KeyCode.L))
  5907. {
  5908. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * -0.025f * speed + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * -0.025f * speed;
  5909. if (Input.GetKey(KeyCode.Y))
  5910. keyFlg = true;
  5911. }
  5912. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.K) && Input.GetKey(KeyCode.J))
  5913. {
  5914. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * 0.025f * speed + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * 0.025f * speed;
  5915. if (Input.GetKey(KeyCode.Y))
  5916. keyFlg = true;
  5917. }
  5918. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.K) && Input.GetKey(KeyCode.L))
  5919. {
  5920. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * 0.025f * speed + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * -0.025f * speed;
  5921. if (Input.GetKey(KeyCode.Y))
  5922. keyFlg = true;
  5923. }
  5924. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.I))
  5925. {
  5926. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * -0.025f * speed;
  5927. if (Input.GetKey(KeyCode.Y))
  5928. keyFlg = true;
  5929. }
  5930. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.K))
  5931. {
  5932. bg.localPosition = bg.position + new Vector3(vector3_2.x, 0.0f, vector3_2.z) * 0.025f * speed;
  5933. if (Input.GetKey(KeyCode.Y))
  5934. keyFlg = true;
  5935. }
  5936. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.J))
  5937. {
  5938. bg.localPosition = bg.position + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * 0.025f * speed;
  5939. if (Input.GetKey(KeyCode.Y))
  5940. keyFlg = true;
  5941. }
  5942. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.L))
  5943. {
  5944. bg.localPosition = bg.position + new Vector3(vector3_3.x, 0.0f, vector3_3.z) * -0.025f * speed;
  5945. if (Input.GetKey(KeyCode.Y))
  5946. keyFlg = true;
  5947. }
  5948. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.Alpha0))
  5949. {
  5950. Vector3 position = bg.position;
  5951. position.y -= 0.015f * speed;
  5952. bg.localPosition = position;
  5953. if (Input.GetKey(KeyCode.Y))
  5954. keyFlg = true;
  5955. }
  5956. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.P))
  5957. {
  5958. Vector3 position = bg.position;
  5959. position.y += 0.015f * speed;
  5960. bg.localPosition = position;
  5961. if (Input.GetKey(KeyCode.Y))
  5962. keyFlg = true;
  5963. }
  5964. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.U))
  5965. {
  5966. bg.RotateAround(maidArray[0].transform.position, Vector3.up, 0.7f);
  5967. if (Input.GetKey(KeyCode.Y))
  5968. keyFlg = true;
  5969. }
  5970. else if ((Input.GetKey(KeyCode.Y) || Input.GetKey(KeyCode.V)) && Input.GetKey(KeyCode.O))
  5971. {
  5972. bg.RotateAround(maidArray[0].transform.position, Vector3.up, -0.7f);
  5973. if (Input.GetKey(KeyCode.Y))
  5974. keyFlg = true;
  5975. }
  5976. else if (Input.GetKeyUp(KeyCode.Y))
  5977. {
  5978. if (keyFlg)
  5979. {
  5980. keyFlg = false;
  5981. }
  5982. else
  5983. {
  5984. ++bgIndex;
  5985. if (bgIndex == bgArray.Length)
  5986. bgIndex = 0;
  5987. if (!moveBg)
  5988. {
  5989. bg.localScale = new Vector3(1f, 1f, 1f);
  5990. if (bgArray[bgIndex].Length == 36)
  5991. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  5992. else
  5993. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  5994. bgCombo.selectedItemIndex = bgIndex;
  5995. }
  5996. }
  5997. }
  5998. speed = !this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Shift) ? (float)(1.0 * (double)Time.deltaTime * 60.0) : (float)(5.0 * (double)Time.deltaTime * 60.0);
  5999. if (!isVR || isVR2)
  6000. {
  6001. if (!isVR)
  6002. {
  6003. if (isBloom)
  6004. {
  6005. Bloom fieldValue = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<CameraMain, Bloom>(mainCamera, "m_gcBloom");
  6006. fieldValue.enabled = true;
  6007. fieldValue.bloomIntensity = bloom1;
  6008. fieldValue.bloomBlurIterations = (int)bloom2;
  6009. fieldValue.bloomThreshholdColor = new Color(1f - bloom3, 1f - bloom4, 1f - bloom5);
  6010. fieldValue.hdr = !isBloomA ? Bloom.HDRBloomMode.Auto : Bloom.HDRBloomMode.On;
  6011. isBloom2 = true;
  6012. }
  6013. else if (isBloom2)
  6014. {
  6015. isBloom2 = false;
  6016. Bloom fieldValue = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<CameraMain, Bloom>(mainCamera, "m_gcBloom");
  6017. fieldValue.enabled = true;
  6018. fieldValue.bloomIntensity = 2.85f;
  6019. fieldValue.hdr = Bloom.HDRBloomMode.Auto;
  6020. fieldValue.bloomThreshholdColor = new Color(1f, 1f, 1f);
  6021. fieldValue.bloomBlurIterations = 3;
  6022. }
  6023. if (isDepth)
  6024. {
  6025. depth_field_.enabled = true;
  6026. depth_field_.focalLength = depth1;
  6027. depth_field_.focalSize = depth2;
  6028. depth_field_.aperture = depth3;
  6029. depth_field_.maxBlurSize = depth4;
  6030. depth_field_.visualizeFocus = isDepthA;
  6031. }
  6032. else
  6033. {
  6034. if ((UnityEngine.Object)depth_field_ == (UnityEngine.Object)null)
  6035. {
  6036. depth_field_ = GameMain.Instance.MainCamera.gameObject.AddComponent<DepthOfFieldScatter>();
  6037. if ((UnityEngine.Object)depth_field_.dofHdrShader == (UnityEngine.Object)null)
  6038. depth_field_.dofHdrShader = Shader.Find("Hidden/Dof/DepthOfFieldHdr");
  6039. if ((UnityEngine.Object)depth_field_.dx11BokehShader == (UnityEngine.Object)null)
  6040. depth_field_.dx11BokehShader = Shader.Find("Hidden/Dof/DX11Dof");
  6041. if ((UnityEngine.Object)depth_field_.dx11BokehTexture == (UnityEngine.Object)null)
  6042. depth_field_.dx11BokehTexture = Resources.Load("Textures/hexShape") as Texture2D;
  6043. }
  6044. depth_field_.enabled = false;
  6045. }
  6046. if (isFog)
  6047. {
  6048. if ((UnityEngine.Object)fog_.fogShader == (UnityEngine.Object)null)
  6049. fog_.fogShader = Shader.Find("Hidden/GlobalFog");
  6050. fog_.enabled = true;
  6051. fog_.startDistance = fog1;
  6052. fog_.globalDensity = fog2;
  6053. fog_.heightScale = fog3;
  6054. fog_.height = fog4;
  6055. fog_.globalFogColor.r = fog5;
  6056. fog_.globalFogColor.g = fog6;
  6057. fog_.globalFogColor.b = fog7;
  6058. }
  6059. else
  6060. {
  6061. if ((UnityEngine.Object)fog_ == (UnityEngine.Object)null)
  6062. fog_ = GameMain.Instance.MainCamera.gameObject.AddComponent<GlobalFog>();
  6063. fog_.enabled = false;
  6064. }
  6065. if (isSepia)
  6066. {
  6067. if ((UnityEngine.Object)sepia_tone_.shader == (UnityEngine.Object)null)
  6068. sepia_tone_.shader = Shader.Find("Hidden/Sepiatone Effect");
  6069. sepia_tone_.enabled = true;
  6070. }
  6071. else
  6072. {
  6073. if ((UnityEngine.Object)sepia_tone_ == (UnityEngine.Object)null)
  6074. sepia_tone_ = GameMain.Instance.MainCamera.gameObject.AddComponent<SepiaToneEffect>();
  6075. sepia_tone_.enabled = false;
  6076. }
  6077. if ((double)bokashi > 0.0)
  6078. {
  6079. Blur component = GameMain.Instance.MainCamera.gameObject.GetComponent<Blur>();
  6080. component.enabled = true;
  6081. component.blurSize = bokashi / 10f;
  6082. component.blurIterations = 0;
  6083. component.downsample = 0;
  6084. if ((double)bokashi > 3.0)
  6085. {
  6086. component.blurSize -= 0.3f;
  6087. component.blurIterations = 1;
  6088. component.downsample = 1;
  6089. }
  6090. }
  6091. else
  6092. GameMain.Instance.MainCamera.gameObject.GetComponent<Blur>().enabled = false;
  6093. if ((double)kamiyure > 0.0)
  6094. {
  6095. for (int index1 = 0; index1 < maidCnt; ++index1)
  6096. {
  6097. Maid maid = maidArray[index1];
  6098. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  6099. {
  6100. if ((UnityEngine.Object)maid.body0.goSlot[index2].obj != (UnityEngine.Object)null)
  6101. {
  6102. DynamicBone component = maid.body0.goSlot[index2].obj.GetComponent<DynamicBone>();
  6103. if ((UnityEngine.Object)component != (UnityEngine.Object)null && component.enabled)
  6104. component.m_Gravity = new Vector3(softG.x * 5f, softG.y * 5f + kamiyure, softG.z * 5f);
  6105. }
  6106. List<THair1> fieldValue = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TBoneHair_, List<THair1>>(maid.body0.goSlot[index2].bonehair, "hair1list");
  6107. for (int index3 = 0; index3 < fieldValue.Count; ++index3)
  6108. fieldValue[index3].SoftG = new Vector3(softG.x, softG.y + kamiyure, softG.z);
  6109. }
  6110. }
  6111. }
  6112. if (isBlur)
  6113. {
  6114. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  6115. component.mode = Vignetting.AberrationMode.Simple;
  6116. component.intensity = blur1;
  6117. component.chromaticAberration = blur4;
  6118. component.blur = blur2;
  6119. component.blurSpread = blur3;
  6120. component.enabled = true;
  6121. isBlur2 = true;
  6122. }
  6123. else if (isBlur2)
  6124. {
  6125. isBlur2 = false;
  6126. Vignetting component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
  6127. component.mode = Vignetting.AberrationMode.Simple;
  6128. component.intensity = -3.98f;
  6129. component.chromaticAberration = -0.75f;
  6130. component.axialAberration = 1.18f;
  6131. component.blurSpread = 4.19f;
  6132. component.luminanceDependency = 0.494f;
  6133. component.blurDistance = 1.71f;
  6134. component.enabled = false;
  6135. }
  6136. }
  6137. if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.I))
  6138. {
  6139. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.right / 2f;
  6140. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  6141. }
  6142. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.K))
  6143. {
  6144. if ((double)GameMain.Instance.MainLight.transform.eulerAngles.x < 85.0)
  6145. {
  6146. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right / 2f;
  6147. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  6148. }
  6149. }
  6150. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.J))
  6151. {
  6152. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.up / 1.5f;
  6153. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  6154. }
  6155. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.L))
  6156. {
  6157. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.up / 1.5f;
  6158. lightY[0] = GameMain.Instance.MainLight.transform.eulerAngles.y;
  6159. }
  6160. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.BackQuote))
  6161. {
  6162. GameMain.Instance.MainLight.Reset();
  6163. GameMain.Instance.MainLight.SetIntensity(0.95f);
  6164. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().type = LightType.Directional;
  6165. lightIndex[0] = 0;
  6166. lightColorR[0] = 1f;
  6167. lightColorG[0] = 1f;
  6168. lightColorB[0] = 1f;
  6169. lightX[0] = 40f;
  6170. lightY[0] = 180f;
  6171. lightAkarusa[0] = 0.95f;
  6172. lightKage[0] = 0.098f;
  6173. lightRange[0] = 50f;
  6174. bgObject.SetActive(true);
  6175. mainCamera.GetComponent<UnityEngine.Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  6176. isIdx1 = false;
  6177. isIdx2 = false;
  6178. isIdx3 = false;
  6179. isIdx4 = false;
  6180. }
  6181. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Minus) && this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Shift))
  6182. {
  6183. List<float> lightColorR;
  6184. (lightColorR = this.lightColorR)[0] = lightColorR[0] + 0.01f;
  6185. if ((double)this.lightColorR[0] > 1.0)
  6186. this.lightColorR[0] = 1f;
  6187. if (lightIndex[0] != 3)
  6188. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().color = new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  6189. else
  6190. mainCamera.GetComponent<UnityEngine.Camera>().backgroundColor = new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  6191. }
  6192. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Quote) && this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Shift))
  6193. {
  6194. List<float> lightColorG;
  6195. (lightColorG = this.lightColorG)[0] = lightColorG[0] + 0.01f;
  6196. if ((double)this.lightColorG[0] > 1.0)
  6197. this.lightColorG[0] = 1f;
  6198. if (lightIndex[0] != 3)
  6199. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().color = new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  6200. else
  6201. mainCamera.GetComponent<UnityEngine.Camera>().backgroundColor = new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  6202. }
  6203. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.LeftBracket) && this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Shift))
  6204. {
  6205. List<float> lightColorB;
  6206. (lightColorB = this.lightColorB)[0] = lightColorB[0] + 0.01f;
  6207. if ((double)this.lightColorB[0] > 1.0)
  6208. this.lightColorB[0] = 1f;
  6209. if (lightIndex[0] != 3)
  6210. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().color = new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  6211. else
  6212. mainCamera.GetComponent<UnityEngine.Camera>().backgroundColor = new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  6213. }
  6214. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Minus))
  6215. {
  6216. List<float> lightColorR;
  6217. (lightColorR = this.lightColorR)[0] = lightColorR[0] - 0.01f;
  6218. if ((double)this.lightColorR[0] < 0.0)
  6219. this.lightColorR[0] = 0.0f;
  6220. if (lightIndex[0] != 3)
  6221. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().color = new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  6222. else
  6223. mainCamera.GetComponent<UnityEngine.Camera>().backgroundColor = new Color(this.lightColorR[0], lightColorG[0], lightColorB[0]);
  6224. }
  6225. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Quote))
  6226. {
  6227. List<float> lightColorG;
  6228. (lightColorG = this.lightColorG)[0] = lightColorG[0] - 0.01f;
  6229. if ((double)this.lightColorG[0] < 0.0)
  6230. this.lightColorG[0] = 0.0f;
  6231. if (lightIndex[0] != 3)
  6232. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().color = new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  6233. else
  6234. mainCamera.GetComponent<UnityEngine.Camera>().backgroundColor = new Color(lightColorR[0], this.lightColorG[0], lightColorB[0]);
  6235. }
  6236. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.LeftBracket))
  6237. {
  6238. List<float> lightColorB;
  6239. (lightColorB = this.lightColorB)[0] = lightColorB[0] - 0.01f;
  6240. if ((double)this.lightColorB[0] < 0.0)
  6241. this.lightColorB[0] = 0.0f;
  6242. if (lightIndex[0] != 3)
  6243. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().color = new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  6244. else
  6245. mainCamera.GetComponent<UnityEngine.Camera>().backgroundColor = new Color(lightColorR[0], lightColorG[0], this.lightColorB[0]);
  6246. }
  6247. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Alpha0))
  6248. {
  6249. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().intensity += 0.12f * Time.deltaTime;
  6250. lightAkarusa[0] = GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().intensity;
  6251. }
  6252. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.P))
  6253. {
  6254. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().intensity -= 0.12f * Time.deltaTime;
  6255. lightAkarusa[0] = GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().intensity;
  6256. }
  6257. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Alpha9))
  6258. {
  6259. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().spotAngle += 0.2f;
  6260. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().range += 0.2f;
  6261. lightRange[0] = GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().spotAngle;
  6262. }
  6263. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.O))
  6264. {
  6265. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().spotAngle -= 0.2f;
  6266. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().range -= 0.2f;
  6267. lightRange[0] = GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().spotAngle;
  6268. }
  6269. else if (Input.GetKey(KeyCode.R) && Input.GetKeyDown(KeyCode.U))
  6270. {
  6271. List<int> lightIndex;
  6272. (lightIndex = this.lightIndex)[0] = lightIndex[0] + 1;
  6273. if (this.lightIndex[0] == 4)
  6274. this.lightIndex[0] = 0;
  6275. lightColorR[0] = 1f;
  6276. lightColorG[0] = 1f;
  6277. lightColorB[0] = 1f;
  6278. lightX[0] = 40f;
  6279. lightY[0] = 180f;
  6280. lightAkarusa[0] = 0.95f;
  6281. lightKage[0] = 0.098f;
  6282. lightRange[0] = 50f;
  6283. GameMain.Instance.MainLight.Reset();
  6284. GameMain.Instance.MainLight.SetIntensity(0.95f);
  6285. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().spotAngle = 50f;
  6286. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().range = 10f;
  6287. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  6288. if (this.lightIndex[0] == 0)
  6289. {
  6290. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().type = LightType.Directional;
  6291. bgObject.SetActive(true);
  6292. mainCamera.GetComponent<UnityEngine.Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
  6293. }
  6294. else if (this.lightIndex[0] == 1)
  6295. {
  6296. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right * 40f;
  6297. lightX[0] = GameMain.Instance.MainLight.transform.eulerAngles.x;
  6298. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().type = LightType.Spot;
  6299. if ((UnityEngine.Object)gLight[0] == (UnityEngine.Object)null)
  6300. {
  6301. gLight[0] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  6302. gLight[0].GetComponent<Renderer>().material = new Material(Shader.Find("Transparent/Diffuse"))
  6303. {
  6304. color = new Color(0.5f, 0.5f, 1f, 0.8f)
  6305. };
  6306. gLight[0].layer = 8;
  6307. gLight[0].GetComponent<Renderer>().enabled = false;
  6308. gLight[0].SetActive(false);
  6309. gLight[0].transform.position = GameMain.Instance.MainLight.transform.position;
  6310. mLight[0] = gLight[0].AddComponent<MouseDrag6>();
  6311. mLight[0].obj = gLight[0];
  6312. mLight[0].maid = GameMain.Instance.MainLight.gameObject;
  6313. mLight[0].angles = GameMain.Instance.MainLight.gameObject.transform.eulerAngles;
  6314. gLight[0].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  6315. mLight[0].ido = 1;
  6316. mLight[0].isScale = false;
  6317. }
  6318. }
  6319. else if (this.lightIndex[0] == 2)
  6320. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().type = LightType.Point;
  6321. else if (this.lightIndex[0] == 3)
  6322. {
  6323. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().type = LightType.Directional;
  6324. mainCamera.GetComponent<UnityEngine.Camera>().backgroundColor = new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  6325. bgObject.SetActive(false);
  6326. }
  6327. isIdx1 = false;
  6328. isIdx2 = false;
  6329. isIdx3 = false;
  6330. isIdx4 = false;
  6331. }
  6332. }
  6333. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Insert))
  6334. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.right / 2f;
  6335. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Delete))
  6336. {
  6337. if ((double)GameMain.Instance.MainLight.transform.eulerAngles.x < 85.0)
  6338. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right / 2f;
  6339. }
  6340. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Home))
  6341. GameMain.Instance.MainLight.transform.eulerAngles -= Vector3.up / 1.5f;
  6342. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.End))
  6343. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.up / 1.5f;
  6344. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.BackQuote))
  6345. {
  6346. GameMain.Instance.MainLight.Reset();
  6347. GameMain.Instance.MainLight.SetIntensity(0.95f);
  6348. }
  6349. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.PageUp))
  6350. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().intensity += 0.1f * Time.deltaTime;
  6351. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.PageDown))
  6352. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().intensity -= 0.1f * Time.deltaTime;
  6353. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.Quote))
  6354. {
  6355. if (lightIndex[0] == 1)
  6356. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().spotAngle += 0.2f;
  6357. else
  6358. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().range += 0.2f;
  6359. }
  6360. else if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.LeftBracket))
  6361. {
  6362. if (lightIndex[0] == 1)
  6363. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().spotAngle -= 0.2f;
  6364. else
  6365. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().range -= 0.2f;
  6366. }
  6367. else if (Input.GetKey(KeyCode.R) && Input.GetKeyDown(KeyCode.Minus))
  6368. {
  6369. List<int> lightIndex;
  6370. (lightIndex = this.lightIndex)[0] = lightIndex[0] + 1;
  6371. if (this.lightIndex[0] == 3)
  6372. this.lightIndex[0] = 0;
  6373. GameMain.Instance.MainLight.Reset();
  6374. GameMain.Instance.MainLight.SetIntensity(0.95f);
  6375. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().spotAngle = 50f;
  6376. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().range = 10f;
  6377. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
  6378. if (this.lightIndex[0] == 0)
  6379. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().type = LightType.Directional;
  6380. else if (this.lightIndex[0] == 1)
  6381. {
  6382. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right * 40f;
  6383. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().type = LightType.Spot;
  6384. }
  6385. else if (this.lightIndex[0] == 2)
  6386. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().type = LightType.Point;
  6387. }
  6388. for (int index = 0; index < lightList.Count; ++index)
  6389. {
  6390. if (index > 0)
  6391. {
  6392. lightList[index].GetComponent<UnityEngine.Light>().color = new Color(lightColorR[index], lightColorG[index], lightColorB[index]);
  6393. lightList[index].GetComponent<UnityEngine.Light>().intensity = lightAkarusa[index];
  6394. lightList[index].GetComponent<UnityEngine.Light>().spotAngle = lightRange[index];
  6395. lightList[index].GetComponent<UnityEngine.Light>().range = lightRange[index] / 5f;
  6396. if (!Input.GetKey(KeyCode.X) && (!Input.GetKey(KeyCode.Z) || !this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Shift)))
  6397. lightList[index].transform.eulerAngles = new Vector3(lightX[index], lightY[index], 18f);
  6398. }
  6399. else
  6400. {
  6401. GameMain.Instance.MainLight.SetIntensity(lightAkarusa[0]);
  6402. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().shadowStrength = lightKage[0];
  6403. if (!Input.GetKey(KeyCode.X) && (!Input.GetKey(KeyCode.Z) || !this.getModKeyPressing(CM3D2.MultipleMaids.Plugin.MultipleMaids.modKey.Shift)))
  6404. GameMain.Instance.MainLight.SetRotation(new Vector3(lightX[0], lightY[0], 18f));
  6405. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().spotAngle = lightRange[index];
  6406. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().range = lightRange[index] / 5f;
  6407. if (lightIndex[index] != 3)
  6408. GameMain.Instance.MainLight.GetComponent<UnityEngine.Light>().color = new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  6409. else
  6410. mainCamera.GetComponent<UnityEngine.Camera>().backgroundColor = new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  6411. }
  6412. }
  6413. }
  6414. if (isF6S)
  6415. {
  6416. if (maidCnt < 1)
  6417. ++F6cnt;
  6418. if (F6cnt > 10)
  6419. {
  6420. maidCnt = 1;
  6421. F6cnt = 0;
  6422. }
  6423. for (int index1 = 0; index1 < maidCnt; ++index1)
  6424. {
  6425. if ((bool)((Object)maidArray[index1]) && maidArray[index1].Visible && maidArray[index1].body0.isLoadedBody)
  6426. {
  6427. Maid maid = maidArray[index1];
  6428. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  6429. {
  6430. if (maid.body0.goSlot[index2].bonehair.bodyhit != null && maid.body0.goSlot[index2].bonehair.bodyhit.spherelist.Count == 17 && (index2 == 3 || index2 == 4))
  6431. {
  6432. Transform transform1 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine", true);
  6433. Transform transform2 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine0a", true);
  6434. Transform transform3 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine1", true);
  6435. Transform transform4 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Spine1a", true);
  6436. Transform transform5 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 Pelvis", true);
  6437. Transform transform6 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Hand", true);
  6438. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L UpperArm", true);
  6439. Transform transform7 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Forearm", true);
  6440. Transform transform8 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Hand", true);
  6441. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R UpperArm", true);
  6442. Transform transform9 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Forearm", true);
  6443. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Foot", true);
  6444. Transform transform10 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Thigh", true);
  6445. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 L Calf", true);
  6446. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Foot", true);
  6447. Transform transform11 = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Thigh", true);
  6448. CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01 R Calf", true);
  6449. List<THitSphere> spherelist = maid.body0.goSlot[index2].bonehair.bodyhit.spherelist;
  6450. THitSphere thitSphere1 = new THitSphere();
  6451. THitSphere thitSphere2 = spherelist[0];
  6452. THitSphere thitSphere3 = new THitSphere();
  6453. thitSphere3.wv = thitSphere2.wv;
  6454. thitSphere3.len = thitSphere2.len * 0.8f;
  6455. thitSphere3.t = thitSphere2.t;
  6456. thitSphere3.vs = thitSphere2.vs;
  6457. thitSphere3.vs.y -= 0.04f;
  6458. thitSphere3.vs.x += 0.05f;
  6459. spherelist.Add(thitSphere3);
  6460. THitSphere thitSphere4 = new THitSphere();
  6461. thitSphere4.len = 0.09f;
  6462. thitSphere4.t = transform4;
  6463. thitSphere4.vs.z += 0.04f;
  6464. thitSphere4.vs.x -= 0.04f;
  6465. thitSphere4.vs.y -= 0.01f;
  6466. spherelist.Add(thitSphere4);
  6467. THitSphere thitSphere5 = new THitSphere();
  6468. thitSphere5.len = 0.09f;
  6469. thitSphere5.t = transform4;
  6470. thitSphere5.vs.z -= 0.04f;
  6471. thitSphere5.vs.x -= 0.04f;
  6472. thitSphere5.vs.y -= 0.01f;
  6473. spherelist.Add(thitSphere5);
  6474. THitSphere thitSphere6 = new THitSphere();
  6475. thitSphere6.len = 0.09f;
  6476. thitSphere6.t = transform3;
  6477. thitSphere6.vs.z += 0.035f;
  6478. spherelist.Add(thitSphere6);
  6479. THitSphere thitSphere7 = new THitSphere();
  6480. thitSphere7.len = 0.09f;
  6481. thitSphere7.t = transform3;
  6482. thitSphere7.vs.z -= 0.035f;
  6483. spherelist.Add(thitSphere7);
  6484. THitSphere thitSphere8 = new THitSphere();
  6485. thitSphere8.len = 0.08f;
  6486. thitSphere8.t = transform2;
  6487. thitSphere8.vs.z += 0.035f;
  6488. spherelist.Add(thitSphere8);
  6489. THitSphere thitSphere9 = new THitSphere();
  6490. thitSphere9.len = 0.08f;
  6491. thitSphere9.t = transform2;
  6492. thitSphere9.vs.z -= 0.035f;
  6493. spherelist.Add(thitSphere9);
  6494. THitSphere thitSphere10 = new THitSphere();
  6495. thitSphere10.len = 0.09f;
  6496. thitSphere10.t = transform1;
  6497. thitSphere10.vs.z += 0.04f;
  6498. thitSphere10.vs.y -= 0.02f;
  6499. spherelist.Add(thitSphere10);
  6500. THitSphere thitSphere11 = new THitSphere();
  6501. thitSphere11.len = 0.09f;
  6502. thitSphere11.t = transform1;
  6503. thitSphere11.vs.z -= 0.04f;
  6504. thitSphere11.vs.y -= 0.02f;
  6505. spherelist.Add(thitSphere11);
  6506. THitSphere thitSphere12 = new THitSphere();
  6507. thitSphere12.len = 0.11f;
  6508. thitSphere12.t = transform5;
  6509. thitSphere12.vs.z += 0.05f;
  6510. thitSphere12.vs.y -= 0.03f;
  6511. spherelist.Add(thitSphere12);
  6512. THitSphere thitSphere13 = new THitSphere();
  6513. thitSphere13.len = 0.11f;
  6514. thitSphere13.t = transform5;
  6515. thitSphere13.vs.z -= 0.05f;
  6516. thitSphere13.vs.y -= 0.03f;
  6517. spherelist.Add(thitSphere13);
  6518. THitSphere thitSphere14 = new THitSphere();
  6519. thitSphere14.len = 0.11f;
  6520. thitSphere14.t = transform10;
  6521. thitSphere14.vs.x -= 0.03f;
  6522. spherelist.Add(thitSphere14);
  6523. THitSphere thitSphere15 = new THitSphere();
  6524. thitSphere15.len = 0.11f;
  6525. thitSphere15.t = transform11;
  6526. thitSphere15.vs.x -= 0.03f;
  6527. spherelist.Add(thitSphere15);
  6528. spherelist.Add(new THitSphere()
  6529. {
  6530. len = 0.05f,
  6531. t = transform6
  6532. });
  6533. spherelist.Add(new THitSphere()
  6534. {
  6535. len = 0.05f,
  6536. t = transform8
  6537. });
  6538. THitSphere thitSphere16 = new THitSphere();
  6539. thitSphere16.len = 0.05f;
  6540. thitSphere16.t = transform7;
  6541. thitSphere16.vs.x -= 0.04f;
  6542. spherelist.Add(thitSphere16);
  6543. THitSphere thitSphere17 = new THitSphere();
  6544. thitSphere17.len = 0.05f;
  6545. thitSphere17.t = transform9;
  6546. thitSphere17.vs.x -= 0.04f;
  6547. spherelist.Add(thitSphere17);
  6548. THitSphere thitSphere18 = new THitSphere();
  6549. thitSphere18.len = 0.05f;
  6550. thitSphere18.t = transform7;
  6551. thitSphere18.vs.x -= 0.08f;
  6552. spherelist.Add(thitSphere18);
  6553. THitSphere thitSphere19 = new THitSphere();
  6554. thitSphere19.len = 0.05f;
  6555. thitSphere19.t = transform9;
  6556. thitSphere19.vs.x -= 0.08f;
  6557. spherelist.Add(thitSphere19);
  6558. THitSphere thitSphere20 = new THitSphere();
  6559. thitSphere20.len = 0.05f;
  6560. thitSphere20.t = transform7;
  6561. thitSphere20.vs.x -= 0.12f;
  6562. spherelist.Add(thitSphere20);
  6563. THitSphere thitSphere21 = new THitSphere();
  6564. thitSphere21.len = 0.05f;
  6565. thitSphere21.t = transform9;
  6566. thitSphere21.vs.x -= 0.12f;
  6567. spherelist.Add(thitSphere21);
  6568. THitSphere thitSphere22 = new THitSphere();
  6569. thitSphere22.len = 0.05f;
  6570. thitSphere22.t = transform7;
  6571. thitSphere22.vs.x -= 0.16f;
  6572. spherelist.Add(thitSphere22);
  6573. THitSphere thitSphere23 = new THitSphere();
  6574. thitSphere23.len = 0.05f;
  6575. thitSphere23.t = transform9;
  6576. thitSphere23.vs.x -= 0.16f;
  6577. spherelist.Add(thitSphere23);
  6578. }
  6579. }
  6580. }
  6581. }
  6582. }
  6583. }
  6584. }
  6585. }
  6586. }