다마고치 선택 후 다이얼로 색상 고르고 적용하도록 변경
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

BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+1 -2
View File
@@ -16,8 +16,7 @@
"CREAM": "CREME",
"WHITE": "WEISS",
"GRAY": "GRAU",
"WHEEL COLOR A TAMA": "RAD FARBE A TAMA",
"WHEEL TAMA A COLOR": "RAD TAMA A FARBE",
"WHEEL: COLOR": "RAD: FARBE",
"LAND": "LAND",
"WATER": "WASSER",
"SKY": "HIMMEL",
+3 -3
View File
@@ -1497,13 +1497,13 @@ static void chr_pick(void){
if(c==K_A){ si=(si+1u)%3u; chr_build(st_list[si]); sel=0; top=0; break; }
if(c==K_BACK) return;
if(c==K_OK){
u32 nw=0,st=0,old=t_id();int accepted=0,back=0,colorMode=0;
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?"RAD FARBE A TAMA":"RAD TAMA A FARBE",GREY,1);ctext(117,"B W\304HLEN C LISTE",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,"RAD: FARBE",GREY,1);ctext(117,"B W\304HLEN C LISTE",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;
u32 to=g_cfg.tama_off;
+3 -3
View File
@@ -1496,13 +1496,13 @@ static void chr_pick(void){
if(c==K_A){ si=(si+1u)%3u; chr_build(st_list[si]); sel=0; top=0; break; }
if(c==K_BACK) return;
if(c==K_OK){
u32 nw=0,st=0,old=t_id();int accepted=0,back=0,colorMode=0;
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?"WHEEL COLOR A TAMA":"WHEEL TAMA A COLOR",GREY,1);ctext(117,"B APPLY C LIST",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,"WHEEL: COLOR",GREY,1);ctext(117,"B APPLY C LIST",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;
u32 to=g_cfg.tama_off;
+3 -3
View File
@@ -1522,13 +1522,13 @@ static void chr_pick(void){
if(c==K_A){ si=(si+1u)%3u; chr_build(st_list[si]); sel=0; top=0; break; }
if(c==K_BACK) return;
if(c==K_OK){
u32 nw=0,st=0,old=t_id();int accepted=0,back=0,colorMode=0;
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?"\201\300 \200\324\200\322 A \200\377\200\245":"\201\300 \200\377\200\245 A \200\324\200\322",GREY,1);ctext(117,"B \200\306\200\212 C \200\300\200\266",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,"\201\300 \200\324\200\322 \201\220\201\215",GREY,1);ctext(117,"B \200\306\200\212 C \200\300\200\266",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;
u32 to=g_cfg.tama_off;
+7 -6
View File
@@ -47,15 +47,16 @@ int main(int argc,char **argv){
// list and reopening must keep the item selected in the picture screen.
char edge[300];edge[0]='b';memset(edge+1,'n',256);strcpy(edge+257,"cbc");
proof("character-edge",chr_pick,edge);assert(!memcmp(flash_snapshot,host_flash,0x1000000));
// Color mode changes the preview and writes the selected native palette.
proof("color-cancel",chr_pick,"banncc");assert(!memcmp(snapshot,g_set,PAGE));assert(!memcmp(flash_snapshot,host_flash,0x1000000));
proof("color-select",chr_pick,"bannnnnnnnb");assert((g_set[g_cfg.tama_off+0x19]&31)==7);
// Color selection starts immediately after B. A is not required.
proof("color-wrap",chr_pick,"bpcc");assert(g_chr_color==15);assert(!memcmp(snapshot,g_set,PAGE));assert(!memcmp(flash_snapshot,host_flash,0x1000000));
proof("color-cancel",chr_pick,"bnncc");assert(!memcmp(snapshot,g_set,PAGE));assert(!memcmp(flash_snapshot,host_flash,0x1000000));
proof("color-select",chr_pick,"bnnnnnnnnb");assert((g_set[g_cfg.tama_off+0x19]&31)==7);
memcpy(host_flash,flash_snapshot,0x1000000);memcpy(g_set,snapshot,PAGE);
// B applies the character currently pictured, not the originally opened row.
// Select the third character in the list, then change only its color.
chr_build(t_stage()>=3u&&t_stage()<=5u?t_stage():5u);u32 expected=rd16(g_cfg.cat_off+8u+28u*g_chr[1]);
proof("character-confirm",chr_pick,"bnnb");expected=rd16(g_cfg.cat_off+8u+28u*g_chr[2]);assert(t_id()==expected);
proof("character-confirm",chr_pick,"nnbnnnb");expected=rd16(g_cfg.cat_off+8u+28u*g_chr[2]);assert(t_id()==expected);assert((g_set[g_cfg.tama_off+0x19]&31)==2);
int checked=0;for(u32 a=g_cfg.user_start;a+PAGE<=g_cfg.user_end&&a<SET_A;a+=PAGE){if(rd16(a+0x10a)==expected && rd32(a)+rd32(a+4u)==0u){int ci=cat_find(expected);assert(ci>=0);u32 tab=ko_names()+30u*g_cfg.cat_n,src=g_cfg.cat_off+ghost_rd32(tab+8u+4u*(u32)ci);assert(!memcmp(fl(a+96u),fl(ko_names()+26u*(u32)ci),26));assert(!memcmp(fl(a+18u),fl(src+18u),9u*26u));checked++;}}assert(checked>0);
memcpy(host_flash,flash_snapshot,0x1000000);memcpy(g_set,snapshot,PAGE);free(flash_snapshot);
proof("persist",persist,"b");memset(g_set,0,PAGE);assert(set_load()==0);assert(list_id(0)==item);assert(count_get(0)==7);
printf("PASS: text lists, picture dial selection and bounds, unchanged flash on cancellation, B commits pictured character, quantity 1..15, additive batch inventory\n");free(host_flash);return 0;
printf("PASS: text lists, list selection followed by color dial and wraparound, unchanged flash on cancellation, B commits pictured character, quantity 1..15, additive batch inventory\n");free(host_flash);return 0;
}
+7 -6
View File
@@ -47,14 +47,15 @@ int main(int argc,char **argv){
// list and reopening must keep the item selected in the picture screen.
char edge[300];edge[0]='b';memset(edge+1,'n',256);strcpy(edge+257,"cbc");
proof("character-edge",chr_pick,edge);assert(!memcmp(flash_snapshot,host_flash,0x1000000));
// Color mode changes the preview and writes the selected native palette.
proof("color-cancel",chr_pick,"banncc");assert(!memcmp(snapshot,g_set,PAGE));assert(!memcmp(flash_snapshot,host_flash,0x1000000));
proof("color-select",chr_pick,"bannnnnnnnb");assert((g_set[g_cfg.tama_off+0x19]&31)==7);
// Color selection starts immediately after B. A is not required.
proof("color-wrap",chr_pick,"bpcc");assert(g_chr_color==15);assert(!memcmp(snapshot,g_set,PAGE));assert(!memcmp(flash_snapshot,host_flash,0x1000000));
proof("color-cancel",chr_pick,"bnncc");assert(!memcmp(snapshot,g_set,PAGE));assert(!memcmp(flash_snapshot,host_flash,0x1000000));
proof("color-select",chr_pick,"bnnnnnnnnb");assert((g_set[g_cfg.tama_off+0x19]&31)==7);
memcpy(host_flash,flash_snapshot,0x1000000);memcpy(g_set,snapshot,PAGE);
// B applies the character currently pictured, not the originally opened row.
// Select the third character in the list, then change only its color.
chr_build(t_stage()>=3u&&t_stage()<=5u?t_stage():5u);u32 expected=rd16(g_cfg.cat_off+8u+28u*g_chr[1]);
proof("character-confirm",chr_pick,"bnnb");expected=rd16(g_cfg.cat_off+8u+28u*g_chr[2]);assert(t_id()==expected);
proof("character-confirm",chr_pick,"nnbnnnb");expected=rd16(g_cfg.cat_off+8u+28u*g_chr[2]);assert(t_id()==expected);assert((g_set[g_cfg.tama_off+0x19]&31)==2);
memcpy(host_flash,flash_snapshot,0x1000000);memcpy(g_set,snapshot,PAGE);free(flash_snapshot);
proof("persist",persist,"b");memset(g_set,0,PAGE);assert(set_load()==0);assert(list_id(0)==item);assert(count_get(0)==7);
printf("PASS: text lists, picture dial selection and bounds, unchanged flash on cancellation, B commits pictured character, quantity 1..15, additive batch inventory\n");free(host_flash);return 0;
printf("PASS: text lists, list selection followed by color dial and wraparound, unchanged flash on cancellation, B commits pictured character, quantity 1..15, additive batch inventory\n");free(host_flash);return 0;
}
+7 -6
View File
@@ -47,14 +47,15 @@ int main(int argc,char **argv){
// list and reopening must keep the item selected in the picture screen.
char edge[300];edge[0]='b';memset(edge+1,'n',256);strcpy(edge+257,"cbc");
proof("character-edge",chr_pick,edge);assert(!memcmp(flash_snapshot,host_flash,0x1000000));
// Color mode changes the preview and writes the selected native palette.
proof("color-cancel",chr_pick,"banncc");assert(!memcmp(snapshot,g_set,PAGE));assert(!memcmp(flash_snapshot,host_flash,0x1000000));
proof("color-select",chr_pick,"bannnnnnnnb");assert((g_set[g_cfg.tama_off+0x19]&31)==7);
// Color selection starts immediately after B. A is not required.
proof("color-wrap",chr_pick,"bpcc");assert(g_chr_color==15);assert(!memcmp(snapshot,g_set,PAGE));assert(!memcmp(flash_snapshot,host_flash,0x1000000));
proof("color-cancel",chr_pick,"bnncc");assert(!memcmp(snapshot,g_set,PAGE));assert(!memcmp(flash_snapshot,host_flash,0x1000000));
proof("color-select",chr_pick,"bnnnnnnnnb");assert((g_set[g_cfg.tama_off+0x19]&31)==7);
memcpy(host_flash,flash_snapshot,0x1000000);memcpy(g_set,snapshot,PAGE);
// B applies the character currently pictured, not the originally opened row.
// Select the third character in the list, then change only its color.
chr_build(t_stage()>=3u&&t_stage()<=5u?t_stage():5u);u32 expected=rd16(g_cfg.cat_off+8u+28u*g_chr[1]);
proof("character-confirm",chr_pick,"bnnb");expected=rd16(g_cfg.cat_off+8u+28u*g_chr[2]);assert(t_id()==expected);
proof("character-confirm",chr_pick,"nnbnnnb");expected=rd16(g_cfg.cat_off+8u+28u*g_chr[2]);assert(t_id()==expected);assert((g_set[g_cfg.tama_off+0x19]&31)==2);
memcpy(host_flash,flash_snapshot,0x1000000);memcpy(g_set,snapshot,PAGE);free(flash_snapshot);
proof("persist",persist,"b");memset(g_set,0,PAGE);assert(set_load()==0);assert(list_id(0)==item);assert(count_get(0)==7);
printf("PASS: text lists, picture dial selection and bounds, unchanged flash on cancellation, B commits pictured character, quantity 1..15, additive batch inventory\n");free(host_flash);return 0;
printf("PASS: text lists, list selection followed by color dial and wraparound, unchanged flash on cancellation, B commits pictured character, quantity 1..15, additive batch inventory\n");free(host_flash);return 0;
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB