alexei.garbuzenko Posted October 22, 2011 Share Posted October 22, 2011 I spend a lot of time programming Android applications and found automatic GUI scaling very useful - there are lots of different screen resolutions and DPIs, so you'll never have to use fixed-size widgets. I was very surprised that in Unigine there is no way to automatically re-scale GUI. Even more, most widgets fail to correctly respond to setWidth/setHeight methods - sometimes those are just ignore and sometimes (i.e. for icons) only widget frame is changed while inner picture remains fixed. Is there a way of scaling GUI and/or widgets depending on screen resolution without inventing the wheel with custom controls based on WidgetSprite? Link to comment
manguste Posted October 25, 2011 Share Posted October 25, 2011 The Unigine approach to GUI is as follows: no matter what the the screen resolution is, the interface remains the same. That is why widgets are designed to always fit the texture in. It cannot be made smaller than it, only bigger in size. Again, increasing the widget size (let's say, WidgetIcon) does not affect its texture. If you want GUI that looks good no matter how resized, use WidgetFlash. Another variant is to use WidgetSprite, you are absolutely right here. These widgets are used for interface in OilRush, you can check it, if interested. Link to comment
frustum Posted October 26, 2011 Share Posted October 26, 2011 I will think about high level scalable GUI system based on WidgetCanvas. Link to comment
vadim.sergeev Posted December 16, 2013 Share Posted December 16, 2013 Two years have passed. Any ideas? Would not want to learn AS 2.0 Link to comment
binstream Posted April 21, 2014 Share Posted April 21, 2014 We can recommend to use Coherent UI as an alternative: https://developer.unigine.com/forum/topic/2535-coherent-ui-plugin-html5-renderer/ Link to comment
Recommended Posts