MultipleMaids.Gui.cs 432 KB

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