Projects: Finalize tool #24
|
@ -90,6 +90,8 @@ export component MainTab inherits Rectangle {
|
||||||
if event.kind == PointerEventKind.down {
|
if event.kind == PointerEventKind.down {
|
||||||
cur_sel_x.text = parent.img_x;
|
cur_sel_x.text = parent.img_x;
|
||||||
cur_sel_y.text = parent.img_y;
|
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;
|
cur_sel_img.source = vram_data.images.full_image;
|
||||||
encoding_text.encoding_str = vram_data.info.encoding_str;
|
encoding_text.encoding_str = vram_data.info.encoding_str;
|
||||||
cur_sel_img.visible = true;
|
cur_sel_img.visible = true;
|
||||||
|
@ -164,6 +166,8 @@ export component MainTab inherits Rectangle {
|
||||||
current-item-changed(current-item) => {
|
current-item-changed(current-item) => {
|
||||||
cur_sel_x.text = root.vram_data[current-item].info.x;
|
cur_sel_x.text = root.vram_data[current-item].info.x;
|
||||||
cur_sel_y.text = root.vram_data[current-item].info.y;
|
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;
|
cur_sel_img.source = root.vram_data[current-item].images.full_image;
|
||||||
encoding_text.encoding_str = root.vram_data[current-item].info.encoding_str;
|
encoding_text.encoding_str = root.vram_data[current-item].info.encoding_str;
|
||||||
cur_sel_img.visible = true;
|
cur_sel_img.visible = true;
|
||||||
|
@ -211,7 +215,7 @@ export component MainTab inherits Rectangle {
|
||||||
cur_sel_x := LineEdit {
|
cur_sel_x := LineEdit {
|
||||||
input-type: number;
|
input-type: number;
|
||||||
text: 0;
|
text: 0;
|
||||||
width: 64pt;
|
width: 48pt;
|
||||||
|
|
||||||
accepted(text) => {
|
accepted(text) => {
|
||||||
if(vram_files_list.current-item != -1) {
|
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 {
|
HorizontalLayout {
|
||||||
alignment: start;
|
alignment: start;
|
||||||
|
@ -232,7 +242,7 @@ export component MainTab inherits Rectangle {
|
||||||
cur_sel_y := LineEdit {
|
cur_sel_y := LineEdit {
|
||||||
input-type: number;
|
input-type: number;
|
||||||
text: 0;
|
text: 0;
|
||||||
width: 64pt;
|
width: 48pt;
|
||||||
|
|
||||||
accepted(text) => {
|
accepted(text) => {
|
||||||
if(vram_files_list.current-item != -1) {
|
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 {
|
encoding_text := Text {
|
||||||
in-out property <string> encoding_str;
|
in-out property <string> encoding_str;
|
||||||
|
|
Loading…
Reference in New Issue