MultipleMaids.Gui.cs 402 KB

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