다마고치 선택 후 다이얼로 색상 고르고 적용하도록 변경
Paramix Studio / build (push) Canceled after 0s
Paramix Studio / pages (push) Canceled after 0s

This commit is contained in:
syskiller committed 2026-11-12 13:17:15 +09:00
1 parent 63fe0c8d41
commit 14db4fc70d
21 files changed
+39 -37

No files matched your search

+3 -3
View File
@@ -65,13 +65,13 @@ static void ko_row(int y,int selected){rect(5,y+2,123,y+14,RGB(18,96,136));rect(
s=s.replace('fn=fname(f-1u); *col=fcol(f-1u);','fn=fname(f-1u); *col=WHITE;');
const previewStart=s.indexOf(' u32 kk=g_chr[sel]'),previewEnd=s.indexOf(' u32 to=g_cfg.tama_off;',previewStart);
if(previewStart<0||previewEnd<0)throw Error('Character preview not found');
s=s.slice(0,previewStart)+` u32 nw=0,st=0,old=t_id();int accepted=0,back=0,colorMode=0;
s=s.slice(0,previewStart)+` u32 nw=0,st=0,old=t_id();int accepted=0,back=0;
g_chr_color=g_set[g_cfg.tama_off+0x19u]&31u;if(g_chr_color>15)g_chr_color=-1;
while(!accepted&&!back){
u32 kk=g_chr[sel],o=g_cfg.cat_off+8u+28u*kk;nw=rd16(o);st=fl(o+6)[0];
char nm[64];chr_name(kk,nm);rect(0,0,128,128,BG);ko_title(nm,2);ko_portrait(kk);
ctext(93,ko_color_name(),GREY,1);ctext(105,colorMode?"${enc('휠 색상 A 이동')}":"${enc('휠 이동 A 색상')}",GREY,1);ctext(117,"${enc('B 변경 C 목록')}",GREY,1);show();wait_release();
for(;;){int key=input();if(key==K_A){colorMode=!colorMode;break;}if(key==1){if(colorMode){g_chr_color+=g_step;if(g_chr_color>15)g_chr_color=-1;if(g_chr_color< -1)g_chr_color=15;break;}int next=(int)sel+g_step;if(next<0)next=0;if(next>=(int)g_chrn)next=(int)g_chrn-1;sel=(u32)next;break;}if(key==K_OK){accepted=1;break;}if(key==K_BACK){back=1;break;}}
ctext(93,ko_color_name(),GREY,1);ctext(105,"${enc('휠 색상 조절')}",GREY,1);ctext(117,"${enc('B 변경 C 목록')}",GREY,1);show();wait_release();
for(;;){int key=input();if(key==1){g_chr_color+=g_step;if(g_chr_color>15)g_chr_color=-1;if(g_chr_color< -1)g_chr_color=15;break;}if(key==K_OK){accepted=1;break;}if(key==K_BACK){back=1;break;}}
}
if(!accepted)break;
`+s.slice(previewEnd);