MultipleMaids.Gui.cs 424 KB

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