MultipleMaids.Gui.cs 428 KB

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