MultipleMaids.Gui.cs 433 KB

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