MultipleMaids.Gui.cs 429 KB

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