MultipleMaids.Gui.cs 424 KB

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