MultipleMaids.Update.cs 450 KB

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