Prepare GUI for additonal settings
This commit is contained in:
parent
7a2052575d
commit
5cd29460fb
|
@ -1,5 +1,5 @@
|
|||
import { VRAMArea } from "../vram-components.slint";
|
||||
import { Button, ComboBox, GroupBox, StandardListView, LineEdit, ScrollView, Slider } from "std-widgets.slint";
|
||||
import { Button, CheckBox, ComboBox, GroupBox, StandardListView, LineEdit, ScrollView, Slider } from "std-widgets.slint";
|
||||
|
||||
struct VRAMImgData {
|
||||
full_image: image,
|
||||
|
@ -310,12 +310,34 @@ export component MainTab inherits Rectangle {
|
|||
title: "File settings";
|
||||
enabled: false;
|
||||
|
||||
VerticalLayout {
|
||||
alignment: start;
|
||||
lz4_check_box := CheckBox {
|
||||
text: "Compress (lz4)";
|
||||
enabled: file_settings_box.enabled;
|
||||
}
|
||||
|
||||
GroupBox {
|
||||
title: "Transparency:";
|
||||
enabled: file_settings_box.enabled;
|
||||
VerticalLayout {
|
||||
alignment: start;
|
||||
trans_combo_box := ComboBox {
|
||||
model: ["No transparency", "First color transparent", "PSX semi-transparency", "Both"];
|
||||
enabled: file_settings_box.enabled;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function set_active(item: int) {
|
||||
self.enabled = true;
|
||||
}
|
||||
|
||||
public function set_inactive() {
|
||||
self.enabled = false;
|
||||
lz4_check_box.checked = false;
|
||||
trans_combo_box.current-index = 0;
|
||||
self.enabled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue