Search found 1 match

by chexx
Wed Dec 18, 2024 12:23 pm
Forum: Modding help
Topic: Usage of 'display_density_scale'
Replies: 0
Views: 152

Usage of 'display_density_scale'

Hi,
in 1.1, I'm used to adjust (GUI) coordinates like this:

local scale = player.display_scale
-- get/calculate some x/y
local pos = {x * scale, y * scale}


I'm a little bit confused with the new (2.0) attribute 'display_density_scale' and its documentation . Is it meant to be used like this ...

Go to advanced search