Hey folks
Having a hard time finding a clear answer on the wiki. If I’m using the new anchor features for panel layouts, how can i get the true pixel size so i can keep my background TOPs in sync?
parent().panel.???
Thanks
p
Hey folks
Having a hard time finding a clear answer on the wiki. If I’m using the new anchor features for panel layouts, how can i get the true pixel size so i can keep my background TOPs in sync?
parent().panel.???
Thanks
p
This should do it:
parent().par.panelw
parent().par.panelh
–Rob
Accessing the parameters directly assumes they are set to fixed width, and not stretchy or anchored for example.
We’re working on providing direct access to these values.
In the meantime, you may want to try parent().panel.screenw and .screenh
which should provide the values.
-Rob.