#Panorama troubles

1 messages · Page 1 of 1 (latest)

pearl grove
#

I have JS function for tooltips. It works completely differently on my screen and on other players' screens, and the position changes depending on which element I'm calling the tooltip on.

frosty stirrup
#

for tooltips better to use custom layout tooltip
https://github.com/search?q=path%3Apanorama UIShowCustomLayoutParametersTooltip&type=code
for position you must recalculate panel to fullhd screen like this

    let pos = target_panel.GetPositionWithinWindow()
    let w = Game.GetScreenWidth()
    let h = Game.GetScreenHeight()
    let offset_x = -20
    let offset_y = -480
    panel.SetPositionInPixels( (pos.x + offset_x * w / 1080) * 1920 / w, (pos.y + offset_y * h / 1080) * 1080 / h, 0 )