Addd scale slider
This commit is contained in:
@@ -3,17 +3,18 @@ component VRAMSegment inherits Rectangle {
|
||||
in property <image> img;
|
||||
in property <int> clip_x;
|
||||
in property <int> clip_y;
|
||||
in property <int> scale: 1;
|
||||
in property <float> scale: 1.0;
|
||||
|
||||
width: 64px*scale;
|
||||
height: 256px*scale;
|
||||
clip: true;
|
||||
Image {
|
||||
source: img;
|
||||
x: -root.clip_x*1px*scale;
|
||||
y: -root.clip_y*1px*scale;
|
||||
width: img.width*1px*scale;
|
||||
height: img.height*1px*scale;
|
||||
source: img;
|
||||
x: -root.clip_x*1px*scale;
|
||||
y: -root.clip_y*1px*scale;
|
||||
width: img.width*1px*scale;
|
||||
height: img.height*1px*scale;
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +22,7 @@ export component VRAMArea inherits Rectangle {
|
||||
in property <image> img;
|
||||
in property <int> img_x;
|
||||
in property <int> img_y;
|
||||
in property <int> scale: 1;
|
||||
in property <float> scale: 1.0;
|
||||
|
||||
width: ((64*16+15)*1px)*scale;
|
||||
height: ((256*2+1)*1px)*scale;
|
||||
|
Reference in New Issue
Block a user