MultipleMaids.Gui.cs 404 KB

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