bright-gpu-74537
08/17/2022, 6:27 AMbright-gpu-74537
08/17/2022, 6:27 AMpurple-businessperson-14467
08/17/2022, 6:35 PMbright-gpu-74537
08/17/2022, 6:38 PMbright-gpu-74537
08/17/2022, 6:39 PMbright-gpu-74537
08/17/2022, 6:40 PMbright-gpu-74537
08/17/2022, 9:18 PMbright-gpu-74537
08/17/2022, 9:37 PMfull-journalist-82607
08/18/2022, 12:41 AMpurple-businessperson-14467
08/18/2022, 1:51 AMpurple-businessperson-14467
08/18/2022, 1:53 AMthousands-state-46635
08/18/2022, 2:49 AMhx
private function onResize(width:Int, height:Int) {
scaleX = width / prevWidth;
scaleY = height / prevHeight;
prevWidth = width;
prevHeight = height;
trace(scaleX, scaleY);
for (ci in 0...UI.numComponents) {
var component = UI.getComponentAt(ci);
trace(component.x, component.y, component.width, component.height);
component.x = component.x * scaleX;
component.y = component.y * scaleY;
component.resizeComponent(component.width * scaleX, component.height * scaleY);
trace(component.x, component.y, component.width, component.height);
}
}
thousands-state-46635
08/18/2022, 2:49 AMhx
Source/Main.hx:69: 1.92,1.335 // Scale
Source/Main.hx:73: 0,0,264,53 // Position & size before repos/resize attempt
Source/Main.hx:77: 0,0,506.88,70.755 // Position & size after repos/resize attempt
thousands-state-46635
08/18/2022, 2:54 AMthousands-state-46635
08/18/2022, 4:38 AMbright-gpu-74537
08/18/2022, 5:16 AMbright-gpu-74537
08/18/2022, 5:17 AMbright-gpu-74537
08/18/2022, 5:18 AMbright-gpu-74537
08/18/2022, 5:38 AMSource/Main.hx:73: 0,0,264,53 // Position & size before repos/resize attempt
So it stands to reaon they are 0 after also (0 * 100000 = 0)bright-gpu-74537
08/18/2022, 7:34 AMbright-gpu-74537
08/18/2022, 7:36 AMmodule.openfl.xml
, but before making these types of changes, id like to know what the use case isbright-gpu-74537
08/18/2022, 7:40 AMnutritious-australia-67366
08/18/2022, 7:44 AMbright-gpu-74537
08/18/2022, 7:45 AMbright-gpu-74537
08/18/2022, 7:45 AMnutritious-australia-67366
08/18/2022, 7:46 AMfull-journalist-82607
08/18/2022, 7:48 AMbright-gpu-74537
08/18/2022, 7:49 AMbright-gpu-74537
08/18/2022, 7:52 AM