Add Gen5 Musical Prop editor

Closes #4069
Chinese localizations copied from English (was not an available language until Gen7), contributions welcome!

Co-Authored-By: Jonathan Herbert <3344332+foohyfooh@users.noreply.github.com>
This commit is contained in:
sora10pls 2023-11-18 21:41:10 -05:00
parent 2e1e2b74f7
commit 9b8cda39e7
12 changed files with 1013 additions and 33 deletions

View file

@ -0,0 +1,100 @@
Pinkspange
Blauspange
Rotspange
Blaublume
Roter Schal
Rotblume
Großspange
Haarreif
Hornbrille
Streifenspange
Kleinspange
Deko-Schleifen
Handtasche
Halskette
Buntblume
Runder Knopf
Grünspange
Strohhut
Schneeflocke
Schneeglöckchen
Malpinsel
Barett
Schneebesen
Schöpfkelle
Plastiktorte
Kochmütze
Bratpfanne
Lätzchen
Roter Sonnenschirm
Atemschutzmaske
Hammer
Buntschirm
Schraubenschlüssel
Laterne
Aufziehschlüssel
Helm
Deko-Schürze
Deko-Fliege
Bortenhut
Roter Umhang
Spielzeugsäbel
Spielzeugschwert
Piratenhut
Cowboyhut
Stabiler Schild
Schwarze Flügel
Hexenhut
Weiße Flügel
Brauner Gürtel
Wikingerhelm
Dreizack
Zauberstab
Rote Nase
Narrenkappe
Glotzbrille
Krone
Schwarze Krawatte
Schwarzer Umhang
Schönbrille
Superhut
Weiße Maske
Weißer Umhang
Zylinder
Spazierstock
Schiefe Krawatte
Taschenuhr
Fliege
Diadem
Rose
Monokel
Streifenkrawatte
Retroperücke
Standmikrofon
Schellentrommel
Kleiner Hut
Mikrofon
Maracas
Trompete
Graskrone
Weißer Pompon
Fahne
Football
Meistergurt
Schläger
E-Gitarre
Spielzeugangelrute
Smiley
Bauchnabelschmuck
Gelehrtenhut
Blätterrock
Dicker Wälzer
Blumenstrauß
Knochennachbildung
Kugelrunder Pilz
Wurfstern
Rote Zipfelmütze
Großer Beutel
Süßigkeit
Rauschebart
Geschenkschachtel

View file

@ -0,0 +1,100 @@
Pink Barrette
Blue Barrette
Red Barrette
Blue Flower
Crimson Scarf
Red Flower
Big Barrette
Headband
Square Glasses
Striped Barrette
Small Barrette
Decorative Ribbon
Purse
Necklace
Gorgeous Flower
Round Button
Green Barrette
Straw Hat
Snow Crystal
Lonely Flower
Paintbrush
Beret
Whisk
Ladle
Toy Cake
Chef's Hat
Frying Pan
Bib
Red Parasol
Germ Mask
Mallet
Colorful Parasol
Wrench
Lantern
Windup Key
Helmet
Frilly Apron
Dressy Tie
Lace Cap
Scarlet Cape
Toy Cutlass
Toy Sword
Pirate Hat
Cowboy Hat
Rigid Shield
Black Wings
Witchy Hat
White Wings
Umber Belt
Horned Helm
Trident
Magic Wand
Red Nose
Jester's Cap
Googly Specs
Crown
Black Tie
Black Cape
Gorgeous Specs
Top Hat
White Domino Mask
White Cape
Gentleman's Hat
Cane
Striped Tie
Pocket Watch
Bow Tie
Tiara
Rose
Monocle
Tie
Wig
Standing Mike
Tambourine
Fedora
Microphone
Maraca
Trumpet
Laurel Wreath
White Pompom
Pennant
Football
Winner's Belt
Racket
Electric Guitar
Toy Fishing Rod
Smiley-Face Mask
Fake Bellybutton
Professor Hat
Hula Skirt
Thick Book
Bouquet
Fake Bone
Round Mushroom
Shuriken
Scarlet Hat
Big Bag
Candy
Fluffy Beard
Gift Box

View file

@ -0,0 +1,100 @@
Lazo Rosa
Lazo Azul
Lazo Rojo
Flor Azul
Pañoleta Roja
Flor Roja
Lazo Grande
Diadema
Gafas Cuadradas
Lazo de Rayas
Lacito
Cintas de Adorno
Bolso de Mano
Collar
Flor Vistosa
Botón Redondo
Pasador de Hojas
Sombrero de Paja
Cristal Nieve
Flor Campanilla
Pincel
Boina
Batidor
Cazo
Tarta de Plástico
Gorro de Chef
Sartén
Babero
Sombrilla Roja
Mascarilla
Martillo
Parasol
Llave Inglesa
Quinqué
Llave de Cuerda
Casco de Obra
Delantal
Pajarita de Rayas
Cofia
Capa Roja
Sable de Juguete
Espada de Juguete
Sombrero de Pirata
Sombrero de Vaquero
Escudo Robusto
Alas Negras
Sombrero de Bruja
Alas Blancas
Cinturón Marrón
Casco Vikingo
Tridente
Bastón de Mago
Nariz de Payaso
Gorro de Bufón
Gafas Redondas
Corona
Corbata Negra
Capa Negra
Gafas Elegantes
Sombrero
Máscara Blanca
Capa Blanca
Sombrero Caballero
Bastón
Corbata Oblicua
Reloj de Bolsillo
Pajarita Negra
Tiara
Rosa
Monóculo
Corbata de Rayas
Pelucón
Micrófono de Pie
Pandereta
Sombrerito
Micrófono de Mano
Maraca
Trompeta
Corona de Laurel
Pompón Blanco
Bandera
Pelota de Rugby
Cinturón Campeón
Raqueta
Guitarra Eléctrica
Caña de Juguete
Cara Sonriente
Ombligo Postizo
Bonete Profesor
Falda de Hojas
Libro Voluminoso
Ramo
Hueso Falso
Seta Redonda
Shuriken
Gorro Rojo
Saco Grande
Caramelito
Barba Tupida
Caja de Regalo

View file

@ -0,0 +1,100 @@
Nœud Rose
Nœud Bleu
Nœud Rouge
Fleur Bleue
Écharpe Rouge
Fleur Rouge
Gros Nœud
Serre-tête
Lunettes Carrées
Nœud Rayé
Petit Nœud
Rubans
Sac de Toile
Collier de Perles
Fleur Voyante
Bouton Rond
Nœud Vert
Chapeau de Paille
Cristal Neige
Perce-Neige
Pinceau
Béret
Fouet de Cuisine
Louche
Gâteau Jouet
Toque de Chef
Poêle à Frire
Bavoir
Parasol Rose
Masque Antibactérien
Marteau
Parasol Coloré
Clé à Molette
Lanterne
Clé Mécanique
Casque
Tablier de Soubrette
Nœud Papillon Bleu
Coiffe
Cape Rouge
Sabre Jouet
Épée Jouet
Chapeau de Pirate
Chapeau de Cowboy
Bouclier Solide
Ailes Noires
Chapeau de Sorcière
Ailes Blanches
Ceinture Marron
Casque Viking
Trident
Bâton de Magicien
Nez Rouge
Bonnet à Grelots
Lunettes Bizarres
Couronne
Cravate Noire
Cape Noire
Lunettes Star
Haut de Forme
Loup Blanc
Cape Blanche
Chapeau Claque
Canne de Marche
Cravate Striée
Montre Gousset
Nœud Papillon Noir
Tiare
Rose
Monocle
Cravate Rayée
Perruque
Micro sur Pied
Tambourin Blanc
Petit Chapeau
Micro
Maracas
Clairon
Couronne de Lauriers
Pompon Blanc
Drapeau
Ballon de Rugby
Ceinture de Champion
Raquette
Guitare Électrique
Canne à Pêche Jouet
Masque Souriant
Bijou de Nombril
Chapeau Lauréat
Pagne en Feuilles
Bottin
Bouquet
Faux Os
Champignon Rond
Shuriken
Bonnet Rouge
Gros Sac
Sucrerie
Barbe Postiche
Paquet Cadeau

View file

@ -0,0 +1,100 @@
Rosafermaglio
Blufermaglio
Rossofermaglio
Blufior
Rossosciarpa
Rossofior
Granfermaglio
Fermacapelli
Quadrocchiali
Righefermaglio
Minifermaglio
Decorfiocchi
Borsetta
Collana
Gaiofior
Bottondo
Verdefermaglio
Cappellopaglia
Nevecristallo
Campanula
Pennello
Baschetto
Sbattiuova
Mestolo
Similtorta
Cappellochef
Padella
Grembiule
Rossombrello
Mascherina
Martello
Colorombrello
Chiavinglese
Lanterna
Chiavetta
Casco
Grembiumerletto
Fioccomerletto
Coronmerletto
Rossomantello
Sciabolafinta
Spadinafinta
Cappellopirata
Cappellocowboy
Scudorobusto
Alinere
Cappellostrega
Alibianche
Marronfibbia
Vichinghelmo
Tridente
Magibastone
Nasorosso
Buffocappello
Stralunocchiali
Corona
Cravattanera
Neromantello
Fantaocchiali
Cilindro
Biancamaschera
Biancomantello
Tuba
Bastone
Cravattasbieco
Orologino
Farfallino
Diadema
Rosa
Monocolo
Cravattarighe
Parruccona
Microfonofisso
Tamburello
Cappellino
Microfono
Maraca
Trombetta
Sertoerboso
Biancopompon
Bandierina
Pallonerugby
Cinturacampione
Racchetta
Chitarrelettrica
Cannapesca
Mascherabriosa
Bottonombelico
Cappelloprof
Gonnabucolica
Librone
Bouquet
Ossofinto
Fungotondo
Shuriken
Cappellorosso
Gransacco
Bonbon
Barbafolta
Paccoregalo

View file

@ -0,0 +1,100 @@
ピンクのかみどめ
ブルーのかみどめ
まっかなかみどめ
あおいはな
あかいスカーフ
あかいはな
おおきなかみどめ
カチューシャ
しかくいメガネ
しましまかみどめ
ちいさなかみどめ
リボンのかざり
トートバッグ
ネックレス
はでなはな
まるいボタン
みどりのかみどめ
むぎわらぼうし
ゆきのけっしょう
いちりんのはな
えふで
ベレーぼうし
あわだてき
おたま
ケーキのもけい
コックぼうし
フライパン
まえかけ
あかいパラソル
かぜマスク
かなづち
カラフルパラソル
スパナ
てもちランプ
ネジ
ヘルメット
ドレスエプロン
ドレスタイ
ヘッドドレス
あかいマント
おもちゃのカタナ
おもちゃのつるぎ
かいぞくぼうし
カウボーイハット
かたいたて
くろいつばさ
ウィッチハット
しろいつばさ
ちゃいろバックル
つのかぶと
ほそいやり
まほうのつえ
あかはな
カラフルぼうし
ぐるぐるメガネ
クラウン
くろいネクタイ
くろいマント
ゴージャスメガネ
シルクハット
しろいかめん
しろいマント
しんしのぼうし
ステッキ
ナナメネクタイ
ちいさなとけい
ちょうネクタイ
ティアラ
バラのはな
モノクル
よこじまネクタイ
アフロ
スタンドマイク
タンバリン
ちいさなぼうし
ハンドマイク
マラカス
ラッパ
くさかんむり
しろいぼんぼん
フラッグ
ボール
ゆうしょうベルト
ラケット
エレキギター
おもちゃつりざお
にこにこおめん
おへそボタン
はかせのぼうし
はっぱのスカート
ぶあついほん
ブーケ
ほねのレプリカ
まんまるきのこ
しゅりけん
あかいぼうし
おおきなふくろ
キャンディ
ふさふさのひげ
プレゼントばこ

View file

@ -0,0 +1,100 @@
분홍머리핀
블루머리핀
새빨강머리핀
파랑꽃
빨강스카프
빨강꽃
큰머리핀
헤어밴드
네모안경
줄무늬머리핀
작은머리핀
리본장식
토트백
네크리스
화려한꽃
둥근단추
초록머리핀
밀짚모자
눈의 결정
한송이꽃
그림붓
베레모
거품기
국자
케이크모형
요리사모자
프라이팬
앞치마
빨강파라솔
감기마스크
쇠망치
컬러풀파라솔
스패너
휴대용램프
태엽
헬멧
에이프런장식
타이장식
머리장식
빨강망토
장난감칼
장난감검
해적모자
카우보이해트
딱딱한방패
검정날개
윗치해트
흰날개
갈색버클
뿔투구
가느다란창
마법지팡이
빨강코
컬러풀모자
빙글빙글안경
크라운
검정넥타이
검정망토
고저스안경
실크해트
하양가면
하양망토
신사모자
스틱
사선넥타이
작은시계
나비넥타이
티아러
장미꽃
모노클
가로무늬넥타이
아프로
스탠드마이크
탬버린
작은모자
핸드마이크
마라카스
나팔
풀관
하양수술
플래그
우승벨트
라켓
일렉트릭기타
장난감낚싯대
생글생글가면
배꼽단추
박사모자
나뭇잎스커트
두꺼운책
부케
뼈레플리카
동글동글버섯
수리검
빨강모자
큰주머니
캔디
치렁치렁수염
선물상자

View file

@ -0,0 +1,100 @@
Pink Barrette
Blue Barrette
Red Barrette
Blue Flower
Crimson Scarf
Red Flower
Big Barrette
Headband
Square Glasses
Striped Barrette
Small Barrette
Decorative Ribbon
Purse
Necklace
Gorgeous Flower
Round Button
Green Barrette
Straw Hat
Snow Crystal
Lonely Flower
Paintbrush
Beret
Whisk
Ladle
Toy Cake
Chef's Hat
Frying Pan
Bib
Red Parasol
Germ Mask
Mallet
Colorful Parasol
Wrench
Lantern
Windup Key
Helmet
Frilly Apron
Dressy Tie
Lace Cap
Scarlet Cape
Toy Cutlass
Toy Sword
Pirate Hat
Cowboy Hat
Rigid Shield
Black Wings
Witchy Hat
White Wings
Umber Belt
Horned Helm
Trident
Magic Wand
Red Nose
Jester's Cap
Googly Specs
Crown
Black Tie
Black Cape
Gorgeous Specs
Top Hat
White Domino Mask
White Cape
Gentleman's Hat
Cane
Striped Tie
Pocket Watch
Bow Tie
Tiara
Rose
Monocle
Tie
Wig
Standing Mike
Tambourine
Fedora
Microphone
Maraca
Trumpet
Laurel Wreath
White Pompom
Pennant
Football
Winner's Belt
Racket
Electric Guitar
Toy Fishing Rod
Smiley-Face Mask
Fake Bellybutton
Professor Hat
Hula Skirt
Thick Book
Bouquet
Fake Bone
Round Mushroom
Shuriken
Scarlet Hat
Big Bag
Candy
Fluffy Beard
Gift Box

View file

@ -0,0 +1,100 @@
Pink Barrette
Blue Barrette
Red Barrette
Blue Flower
Crimson Scarf
Red Flower
Big Barrette
Headband
Square Glasses
Striped Barrette
Small Barrette
Decorative Ribbon
Purse
Necklace
Gorgeous Flower
Round Button
Green Barrette
Straw Hat
Snow Crystal
Lonely Flower
Paintbrush
Beret
Whisk
Ladle
Toy Cake
Chef's Hat
Frying Pan
Bib
Red Parasol
Germ Mask
Mallet
Colorful Parasol
Wrench
Lantern
Windup Key
Helmet
Frilly Apron
Dressy Tie
Lace Cap
Scarlet Cape
Toy Cutlass
Toy Sword
Pirate Hat
Cowboy Hat
Rigid Shield
Black Wings
Witchy Hat
White Wings
Umber Belt
Horned Helm
Trident
Magic Wand
Red Nose
Jester's Cap
Googly Specs
Crown
Black Tie
Black Cape
Gorgeous Specs
Top Hat
White Domino Mask
White Cape
Gentleman's Hat
Cane
Striped Tie
Pocket Watch
Bow Tie
Tiara
Rose
Monocle
Tie
Wig
Standing Mike
Tambourine
Fedora
Microphone
Maraca
Trumpet
Laurel Wreath
White Pompom
Pennant
Football
Winner's Belt
Racket
Electric Guitar
Toy Fishing Rod
Smiley-Face Mask
Fake Bellybutton
Professor Hat
Hula Skirt
Thick Book
Bouquet
Fake Bone
Round Mushroom
Shuriken
Scarlet Hat
Big Bag
Candy
Fluffy Beard
Gift Box

View file

@ -1,4 +1,4 @@
namespace PKHeX.Core;
namespace PKHeX.Core;
public sealed class Musical5 : SaveBlock<SAV5>
{
@ -9,11 +9,11 @@ public sealed class Musical5 : SaveBlock<SAV5>
public void UnlockAllMusicalProps()
{
// 101 props, which is 12.X bytes of bitflags.
// 100 props, which is 12.5 bytes of bitflags.
var bitFieldOffset = Offset + PropOffset;
for (int i = 0; i < 0xC; i++)
Data[bitFieldOffset + i] = 0xFF;
Data[bitFieldOffset + 0xC] = 0x1F; // top 3 bits unset, to complete multiple of 8 (101=>104 bits).
Data[bitFieldOffset + 0xC] = 0x0F; // top 4 bits unset, to complete multiple of 8 (100=>104 bits).
}
public bool GetHasProp(int prop)

View file

@ -158,13 +158,17 @@ namespace PKHeX.WinForms
B_ImportFC = new System.Windows.Forms.Button();
B_DumpFC = new System.Windows.Forms.Button();
TAB_Medals = new System.Windows.Forms.TabPage();
CB_CurrentMedal = new System.Windows.Forms.ComboBox();
CB_MedalState = new System.Windows.Forms.ComboBox();
B_ObtainAllMedals = new System.Windows.Forms.Button();
CAL_MedalDate = new System.Windows.Forms.DateTimePicker();
CHK_MedalUnread = new System.Windows.Forms.CheckBox();
B_ObtainAllMedals = new System.Windows.Forms.Button();
CB_MedalState = new System.Windows.Forms.ComboBox();
CB_CurrentMedal = new System.Windows.Forms.ComboBox();
TAB_Muscial = new System.Windows.Forms.TabPage();
CHK_PropObtained = new System.Windows.Forms.CheckBox();
CB_Prop = new System.Windows.Forms.ComboBox();
TipExpB = new System.Windows.Forms.ToolTip(components);
TipExpW = new System.Windows.Forms.ToolTip(components);
B_UnlockAllProps = new System.Windows.Forms.Button();
TC_Misc.SuspendLayout();
TAB_Main.SuspendLayout();
GB_KeySystem.SuspendLayout();
@ -216,6 +220,7 @@ namespace PKHeX.WinForms
((System.ComponentModel.ISupportInitialize)NUD_SinglePast).BeginInit();
TAB_BWCityForest.SuspendLayout();
TAB_Medals.SuspendLayout();
TAB_Muscial.SuspendLayout();
SuspendLayout();
//
// B_Cancel
@ -251,6 +256,7 @@ namespace PKHeX.WinForms
TC_Misc.Controls.Add(TAB_Subway);
TC_Misc.Controls.Add(TAB_BWCityForest);
TC_Misc.Controls.Add(TAB_Medals);
TC_Misc.Controls.Add(TAB_Muscial);
TC_Misc.Location = new System.Drawing.Point(14, 17);
TC_Misc.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
TC_Misc.Name = "TC_Misc";
@ -1744,7 +1750,7 @@ namespace PKHeX.WinForms
//
// TAB_Medals
//
TAB_Medals.Controls.Add(this.B_ObtainAllMedals);
TAB_Medals.Controls.Add(B_ObtainAllMedals);
TAB_Medals.Controls.Add(CAL_MedalDate);
TAB_Medals.Controls.Add(CHK_MedalUnread);
TAB_Medals.Controls.Add(CB_MedalState);
@ -1756,23 +1762,15 @@ namespace PKHeX.WinForms
TAB_Medals.Text = "Medals";
TAB_Medals.UseVisualStyleBackColor = true;
//
// CB_CurrentMedal
// B_ObtainAllMedals
//
CB_CurrentMedal.FormattingEnabled = true;
CB_CurrentMedal.Location = new System.Drawing.Point(3, 16);
CB_CurrentMedal.Name = "CB_CurrentMedal";
CB_CurrentMedal.Size = new System.Drawing.Size(384, 23);
CB_CurrentMedal.TabIndex = 0;
CB_CurrentMedal.SelectedIndexChanged += CB_CurrentMedal_SelectedIndexChanged;
//
// CB_MedalState
//
CB_MedalState.FormattingEnabled = true;
CB_MedalState.Location = new System.Drawing.Point(3, 45);
CB_MedalState.Name = "CB_MedalState";
CB_MedalState.Size = new System.Drawing.Size(384, 23);
CB_MedalState.TabIndex = 1;
CB_MedalState.SelectedIndexChanged += CB_MedalState_SelectedIndexChanged;
B_ObtainAllMedals.Location = new System.Drawing.Point(3, 264);
B_ObtainAllMedals.Name = "B_ObtainAllMedals";
B_ObtainAllMedals.Size = new System.Drawing.Size(117, 71);
B_ObtainAllMedals.TabIndex = 4;
B_ObtainAllMedals.Text = "Obtain All Medals";
B_ObtainAllMedals.UseVisualStyleBackColor = true;
B_ObtainAllMedals.Click += B_ObtainAllMedals_Click;
//
// CAL_MedalDate
//
@ -1793,15 +1791,66 @@ namespace PKHeX.WinForms
CHK_MedalUnread.UseVisualStyleBackColor = true;
CHK_MedalUnread.CheckedChanged += CHK_MedalUnread_CheckedChanged;
//
// B_UnlockAllMedals
// CB_MedalState
//
B_ObtainAllMedals.Location = new System.Drawing.Point(3, 264);
B_ObtainAllMedals.Name = "B_UnlockAllMedals";
B_ObtainAllMedals.Size = new System.Drawing.Size(117, 71);
B_ObtainAllMedals.TabIndex = 4;
B_ObtainAllMedals.Text = "Obtain All Medals";
B_ObtainAllMedals.UseVisualStyleBackColor = true;
B_ObtainAllMedals.Click += this.B_ObtainAllMedals_Click;
CB_MedalState.FormattingEnabled = true;
CB_MedalState.Location = new System.Drawing.Point(3, 45);
CB_MedalState.Name = "CB_MedalState";
CB_MedalState.Size = new System.Drawing.Size(384, 23);
CB_MedalState.TabIndex = 1;
CB_MedalState.SelectedIndexChanged += CB_MedalState_SelectedIndexChanged;
//
// CB_CurrentMedal
//
CB_CurrentMedal.FormattingEnabled = true;
CB_CurrentMedal.Location = new System.Drawing.Point(3, 16);
CB_CurrentMedal.Name = "CB_CurrentMedal";
CB_CurrentMedal.Size = new System.Drawing.Size(384, 23);
CB_CurrentMedal.TabIndex = 0;
CB_CurrentMedal.SelectedIndexChanged += CB_CurrentMedal_SelectedIndexChanged;
//
// TAB_Muscial
//
TAB_Muscial.Controls.Add(B_UnlockAllProps);
TAB_Muscial.Controls.Add(CHK_PropObtained);
TAB_Muscial.Controls.Add(CB_Prop);
TAB_Muscial.Location = new System.Drawing.Point(4, 24);
TAB_Muscial.Name = "TAB_Muscial";
TAB_Muscial.Padding = new System.Windows.Forms.Padding(3);
TAB_Muscial.Size = new System.Drawing.Size(390, 338);
TAB_Muscial.TabIndex = 6;
TAB_Muscial.Text = "Musical";
TAB_Muscial.UseVisualStyleBackColor = true;
//
// CHK_PropObtained
//
CHK_PropObtained.AutoSize = true;
CHK_PropObtained.Location = new System.Drawing.Point(6, 35);
CHK_PropObtained.Name = "CHK_PropObtained";
CHK_PropObtained.Size = new System.Drawing.Size(75, 19);
CHK_PropObtained.TabIndex = 1;
CHK_PropObtained.Text = "Obtained";
CHK_PropObtained.UseVisualStyleBackColor = true;
CHK_PropObtained.CheckedChanged += CHK_PropObtained_CheckedChanged;
//
// CB_Prop
//
CB_Prop.FormattingEnabled = true;
CB_Prop.Location = new System.Drawing.Point(6, 6);
CB_Prop.Name = "CB_Prop";
CB_Prop.Size = new System.Drawing.Size(378, 23);
CB_Prop.TabIndex = 0;
CB_Prop.SelectedIndexChanged += CB_Prop_SelectedIndexChanged;
//
// B_UnlockAllProps
//
B_UnlockAllProps.Location = new System.Drawing.Point(6, 261);
B_UnlockAllProps.Name = "B_UnlockAllProps";
B_UnlockAllProps.Size = new System.Drawing.Size(117, 71);
B_UnlockAllProps.TabIndex = 2;
B_UnlockAllProps.Text = "Unlock All Props";
B_UnlockAllProps.UseVisualStyleBackColor = true;
B_UnlockAllProps.Click += B_UnlockAllProps_Click;
//
// SAV_Misc5
//
@ -1871,6 +1920,8 @@ namespace PKHeX.WinForms
TAB_BWCityForest.ResumeLayout(false);
TAB_Medals.ResumeLayout(false);
TAB_Medals.PerformLayout();
TAB_Muscial.ResumeLayout(false);
TAB_Muscial.PerformLayout();
ResumeLayout(false);
}
@ -2012,5 +2063,9 @@ namespace PKHeX.WinForms
private System.Windows.Forms.DateTimePicker CAL_MedalDate;
private System.Windows.Forms.CheckBox CHK_MedalUnread;
private System.Windows.Forms.Button B_ObtainAllMedals;
private System.Windows.Forms.TabPage TAB_Muscial;
private System.Windows.Forms.ComboBox CB_Prop;
private System.Windows.Forms.CheckBox CHK_PropObtained;
private System.Windows.Forms.Button B_UnlockAllProps;
}
}
}

View file

@ -42,6 +42,7 @@ public partial class SAV_Misc5 : Form
ReadSubway();
ReadEntralink();
ReadMedals();
ReadMusical();
}
private void B_Cancel_Click(object sender, EventArgs e) => Close();
@ -880,4 +881,28 @@ public partial class SAV_Misc5 : Form
System.Media.SystemSounds.Asterisk.Play();
}
}
}
private readonly string[] PropNames = Util.GetStringList("props", Main.CurrentLanguage);
private void ReadMusical()
{
CB_Prop.Items.AddRange(PropNames);
CB_Prop.SelectedIndex = 0;
}
private void CB_Prop_SelectedIndexChanged(object sender, EventArgs e)
{
CHK_PropObtained.Checked = SAV.Musical.GetHasProp(CB_Prop.SelectedIndex);
}
private void CHK_PropObtained_CheckedChanged(object sender, EventArgs e)
{
SAV.Musical.SetHasProp(CB_Prop.SelectedIndex, CHK_PropObtained.Checked);
}
private void B_UnlockAllProps_Click(object sender, EventArgs e)
{
SAV.Musical.UnlockAllMusicalProps();
System.Media.SystemSounds.Asterisk.Play();
}
}