Getting screen resolution from script

Post » Thu Oct 15, 2015 4:20 pm

Hello everyone!

I need to know screen resolution on every game load

I tried:

GetNumericIniSetting "iSize W:Display"

But it didn't work.

I also tried extracting it from XML menu,

I created menu object (in HUDMainMenu) in which I story screen width and height

 &false;          
        let MGSMain.fResolutionXOriginal := GetUIFloat "HudMainMenu/MGSM_HUD/MGSM_Sheesh/MGSMScreenRes/x"        let MGSMain.fResolutionYOriginal := GetUIFloat "HudMainMenu/MGSM_HUD/MGSM_Sheesh/MGSMScreenRes/y"

But on game load I receive different values - My resolution * 1.06 ==(1526x954) (mine is 1440x900). I have no idea how this is going to work in different monitors..

Please help?

User avatar
Skrapp Stephens
 
Posts: 3350
Joined: Mon Aug 06, 2007 5:04 am

Return to Fallout: New Vegas