Projects: Finalize tool #24

Merged
cody merged 6 commits from topic/jb/finalize_tim into main 2025-04-05 20:00:24 +00:00
1 changed files with 18 additions and 2 deletions
Showing only changes of commit a33aa6bb4e - Show all commits

View File

@ -90,6 +90,8 @@ export component MainTab inherits Rectangle {
if event.kind == PointerEventKind.down {
cur_sel_x.text = parent.img_x;
cur_sel_y.text = parent.img_y;
cur_sel_width.text = "Width: " + vram_data.images.image.width;
cur_sel_height.text = "Height: " + vram_data.images.image.height;
cur_sel_img.source = vram_data.images.full_image;
encoding_text.encoding_str = vram_data.info.encoding_str;
cur_sel_img.visible = true;
@ -164,6 +166,8 @@ export component MainTab inherits Rectangle {
current-item-changed(current-item) => {
cur_sel_x.text = root.vram_data[current-item].info.x;
cur_sel_y.text = root.vram_data[current-item].info.y;
cur_sel_width.text = "Width: " + root.vram_data[current-item].images.image.width;
cur_sel_height.text = "Height: " + root.vram_data[current-item].images.image.height;
cur_sel_img.source = root.vram_data[current-item].images.full_image;
encoding_text.encoding_str = root.vram_data[current-item].info.encoding_str;
cur_sel_img.visible = true;
@ -211,7 +215,7 @@ export component MainTab inherits Rectangle {
cur_sel_x := LineEdit {
input-type: number;
text: 0;
width: 64pt;
width: 48pt;
accepted(text) => {
if(vram_files_list.current-item != -1) {
@ -220,6 +224,12 @@ export component MainTab inherits Rectangle {
}
}
}
VerticalLayout {
alignment: center;
cur_sel_width := Text {
text: "Width: 0";
}
}
}
HorizontalLayout {
alignment: start;
@ -232,7 +242,7 @@ export component MainTab inherits Rectangle {
cur_sel_y := LineEdit {
input-type: number;
text: 0;
width: 64pt;
width: 48pt;
accepted(text) => {
if(vram_files_list.current-item != -1) {
@ -241,6 +251,12 @@ export component MainTab inherits Rectangle {
}
}
}
VerticalLayout {
alignment: center;
cur_sel_height := Text {
text: "Height: 0";
}
}
}
encoding_text := Text {
in-out property <string> encoding_str;