Hello, I have tried using the examples on urho on my android phone. It uses 1080p resolution. Now the problem is that the samples have relatively small buttons when trying the samples on my phone, meaning they are almost practically unpressable. So I was trying to modify the 02 sample to use some sort of screenheight/value to make the components act as normalized size.
I ran into a problem with line edits. I just couldn’t figure out how you could change font size for line-edit on the fly. How can I change the line-edits font after declaring the ui-components?
Another question is: If I pass -s to the engine, it can become resizable, and I feel like that is basically how I would really want my application to work. I was wondering if there is a way to pass this resizable parameter to engine codewise without having to modify the engine.cpp or launching the exe-file with -s parameter? Like if I could just pass a parameter from the sample that is inheritated from application to lets say for example make resizable etc? I guess open source is good for being able to modify, but maybe there is a way already in there, which I just happened to miss.
Edit: Found my answer, when I was looking how to disable the mouse lock into the screen (which I haven’t yet found an answer), but from urhoplayer, if I inherit the Setup-function from sample, I can overwrite the engineParameters_[“WindowResizable”] -variable to true.
Edit2: GetSubsystem()->SetMouseVisible(true); seems to do the trick to not lock the mouse cursor onto the screen.
Third thing:
I noticed that the sample 10 has some issues with the view on my android. I think this is same as spamming decals on top of each other, they might start to compete against each other which one to draw on top.
Picture of sample10 on my android phone:
http://i.imgur.com/WBDOyOX.png
Those lines change direction/width depending from where I am watching the screen.