Character select coding - scale and position of char.

04/22/2016 10:17 _BubbleGum#1
I designed interface for character select but I have problem with coding. Maybe this is impossible?

The main problem is scale and position, because different resolutions have different settings. I know about this

Code:
screenWidth = wndMgr.GetScreenWidth()

screenHeight = wndMgr.GetScreenHeight()

newScreenWidth = float(screenWidth - 270)

newScreenHeight = float(screenHeight)
in introselect.py, but try everything - (maybe something blocked in binary?) - nothing works..

I dont know how to exert the same scale and position of char on select window in different resolutions.

Is it any way for make that? Any ideas? Maybe anyone released something like that?

BTW. I coded this on res. 800x600 - is fine, but in other resolutions it is a piece of shit.

[Only registered and activated users can see links. Click Here To Register...]
04/22/2016 13:57 mrapc#2
You could try to set the camera at a different location (closer to the char)

app.SetCenterPosition(0.0, 0.0, 0.0)
app.SetCamera(1550.0, 15.0, 180.0, 95.0)
04/22/2016 20:46 _BubbleGum#3
mrapc! You are my mentor now :)

That was very easy, just calculated the position of the camera relative to resolution and put result on first argument in app.SetCamera().

Thank u a lot!

#solved