bright-gpu-74537
06/24/2022, 11:48 AMicy-zebra-52882
06/24/2022, 11:48 AMicy-zebra-52882
06/24/2022, 11:49 AMbright-gpu-74537
06/24/2022, 11:49 AMicy-zebra-52882
06/24/2022, 11:49 AMicy-zebra-52882
06/24/2022, 11:51 AMbright-gpu-74537
06/24/2022, 11:51 AMicy-zebra-52882
06/24/2022, 11:55 AMicy-zebra-52882
06/24/2022, 11:55 AMicy-zebra-52882
06/24/2022, 11:56 AMicy-zebra-52882
06/24/2022, 11:57 AMbright-gpu-74537
06/24/2022, 11:58 AMicy-zebra-52882
06/24/2022, 3:16 PMFlxG.stage) is resized, UI elements don't refresh their size, which works sort of badly for percentage-based width and heighticy-zebra-52882
06/24/2022, 3:17 PMFlxG.width and FlxG.height stay the same constantly throughout the gameicy-zebra-52882
06/24/2022, 3:19 PMicy-zebra-52882
06/24/2022, 3:24 PMxml
<?xml version="1.0" encoding="UTF-8"?>
<hbox width="100%" height="100%">
<style>
.label, * > .label {
font-size: 24;
}
</style>
<scrollview width="400px" height="100%">
<vbox id="scrollVbox" width="100%">
<!-- Buttons generated by code here -->
</vbox>
</scrollview>
<vbox style="background-color: blue" width="50%" height="100%">
<label id="eventDimensionsLabel" text="" style="color: white"/>
<label id="stageDimensionsLabel" text="" style="color: white"/>
<label id="flxDimensionsLabel" text="" style="color: white"/>
<button text="Test button" />
<slider min="0" max="100" />
<button text="Test button" />
<button text="Test button" />
</vbox>
</hbox>icy-zebra-52882
06/24/2022, 3:24 PMicy-zebra-52882
06/24/2022, 3:24 PMicy-zebra-52882
06/24/2022, 3:26 PMStageSizeScaleMode making FlxG.width and FlxG.height the same as OpenFL stage:
https://plzlookat.mystupid.pictures/Code_4PZwjVRZQs.mp4icy-zebra-52882
06/24/2022, 3:33 PMsilly-alligator-51979
06/24/2022, 3:38 PMbright-gpu-74537
06/24/2022, 3:50 PMbright-gpu-74537
06/24/2022, 3:51 PMbright-gpu-74537
06/24/2022, 3:53 PMicy-zebra-52882
06/24/2022, 4:02 PMFlxG.scaleMode = new StageSizeScaleMode();icy-zebra-52882
06/24/2022, 4:03 PMFlxG.signals.gameResized.add(myListenerFunc);bright-gpu-74537
06/24/2022, 4:08 PMfull-journalist-82607
06/24/2022, 4:54 PMfull-journalist-82607
06/24/2022, 5:00 PM