MultipleMaids.Gui.cs 431 KB

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