MultipleMaids.Gui.cs 421 KB

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