View Issue Details

IDProjectCategoryView StatusLast Update
0003831The Dark ModScript/Defpublic24.08.2014 20:24
Reportertels Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionno change required 
Product VersionTDM 2.02 
Summary0003831: script events to query screen resolution
DescriptionThe spyglass now can use different overlays depending on aspect ration, but scripts are not able to query the resolution, so script-defined overlays and GUIs cannot be switched depending on resolution.

It would be nice to have script events for querying the screen size, so scripts can also do different things depending on aspect ratio.

Returning the resolution as float like "sys.getScreenWidth()" and "sys.getScreenHeight()" would be fine.
TagsNo tags attached.

Relationships

related to 0003807 resolvedgrayman Use different overlay guis depending on resolution aspect ratio 

Activities

grayman

grayman

24.08.2014 19:56

viewer   ~0006893

These are available now via:

float screenWidth = sys.strToFloat(sys.getcvar("r_customWidth"));
float screenHeight = sys.strToFloat(sys.getcvar("r_customHeight"));
tels

tels

24.08.2014 20:24

reporter   ~0006894

Okay, thank you, I'll close this report then.

Issue History

Date Modified Username Field Change
24.08.2014 19:10 tels New Issue
24.08.2014 19:11 tels Relationship added related to 0003807
24.08.2014 19:11 tels Product Version => TDM 2.02
24.08.2014 19:15 tels Summary Scripts cannot query screen resolution => script events to query screen resolution
24.08.2014 19:56 grayman Note Added: 0006893
24.08.2014 20:24 tels Note Added: 0006894
24.08.2014 20:24 tels Status new => closed
24.08.2014 20:24 tels Resolution open => no change required