MultipleMaids.Gui.cs 424 KB

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