wotpt.tk Posted July 26, 2013 Share Posted July 26, 2013 (edited) I used some calculations to position some elements. "elements": [{ "leftPanel": { "_y": 5 }, "rightPanel": { "_y": 5 }, "debugPanel": { "_x": "leftPanel._x + 325", "_y": 10 }, "battleTimer": { "_x": "rightPanel._x - 150", "_y": 4 } }], I have tried to do this on the Hitlog as: "y": "rightPanel._y + 150" or "y": "HEIGHT - 10" But nothing seems to work The only thing that works is "y": 740 The idea is to make my xvm "compatible" with multiple screen resolutions, so people dont have to edit it to match their resolution. Is this kind of calculation possible on hitlog? and if it is... what am i doing wrong? Edited July 26, 2013 by ucramos @ Quote Link to comment Short link Share on other sites More sharing options...
seriych Posted July 26, 2013 Share Posted July 26, 2013 Is this kind of calculation possible on hitlog? no @ Quote Link to comment Short link Share on other sites More sharing options...
wotpt.tk Posted July 26, 2013 Author Share Posted July 26, 2013 And why don´t the negative numbers work as they should? "x": -50 "y": -50 Using this should return a position of 1870x1150 on a 1920x1200 resolution. @ Quote Link to comment Short link Share on other sites More sharing options...
sech_92 Posted July 26, 2013 Share Posted July 26, 2013 And why don´t the negative numbers work as they should? they work in appropriate way only when launching with xvm-stat @ Quote Link to comment Short link Share on other sites More sharing options...
seriych Posted July 26, 2013 Share Posted July 26, 2013 why don´t the negative numbers work work. @ Quote Link to comment Short link Share on other sites More sharing options...
wotpt.tk Posted July 26, 2013 Author Share Posted July 26, 2013 I use xvm-stats and if i define a X or Y as -50 for example, it disappears from the screen. It goes to -50 instead of going to maximum X or Y - 50 Using this should return a position of 1870x1150 on a 1920x1200 resolution. @ Quote Link to comment Short link Share on other sites More sharing options...
seriych Posted July 26, 2013 Share Posted July 26, 2013 Using this should return a position of 1870x1150 on a 1920x1200 resolution And it really return this position. @ Quote Link to comment Short link Share on other sites More sharing options...
wotpt.tk Posted July 26, 2013 Author Share Posted July 26, 2013 I tried "y": -10, "y": "-10", nothing works.. the hitlog just disappears. @ Quote Link to comment Short link Share on other sites More sharing options...
sirmax Posted July 26, 2013 Share Posted July 26, 2013 (edited) I used some calculations to position some elements. I have tried to do this on the Hitlog as: "y": "rightPanel._y + 150" or "y": "HEIGHT - 10" But nothing seems to work The only thing that works is "y": 740 try to use @delay command: { "@delay": 100, "hitlog": { "_y" : "rightPanel._y + 150" } } smth like this if @delay will not work, you can also try to use "@interval" Edited July 26, 2013 by sirmax @ Quote Link to comment Short link Share on other sites More sharing options...
wotpt.tk Posted July 26, 2013 Author Share Posted July 26, 2013 Im sorry .... i have the log "upsidedown" The header is on the bottom and the new lines are added to the top of the header. So i had to put "y": -270, because i have "h": 270, Is the top of the square that counts and not the header... sorry for my noob mistake :) And thank you all for the help @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.