MultipleMaids.Gui.cs 423 KB

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