X, Y positions

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
s3ood Offline
Junior Member
Posts: 6
Joined: Sep 2008
Reputation: 0
Post: #1
Hey guys, I am creating a new skin, everything is going great except one part is driving me INSANE.

Is there an easier way to show the positions (X,Y) of XBMC on screen? so I dont have to guess where every element should be, restart the skin and try again.

There has to be a better way of positioning items then what I am doing, right?
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,520
Joined: Oct 2003
Reputation: 138
Post: #2
Most people tend to mock something up in a graphics package, then just read the coordinates off there.

I guess we could add a "debugging" method where we allow the coordinates of the mouse to be output to the screen - would that be useful?

Cheers,
Jonathan

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Jezz_X Online
Team-XBMC Skinner
Posts: 5,263
Joined: Jun 2006
Reputation: 55
Location: Earth
Post: #3
I use a calculator to figure out 80% of mine and the rest is trial and error

Skins I have done....
[Image: skinsq.png]
And others in the past...

Want to know what I'm working on currently? Check me out on Google+
find quote
Freddo Offline
Skilled Skinner
Posts: 489
Joined: Apr 2004
Reputation: 13
Post: #4
Same, although I was thinking of making a grid overlay that I could add to windows while i work on them to help me align things, I just haven't really needed one badly enough yet. Might work for you though.
find quote
s3ood Offline
Junior Member
Posts: 6
Joined: Sep 2008
Reputation: 0
Post: #5
jmarshel: thats exactly what I did, but it sometimes becomes pretty tricky, even more tricky when you use items that are in a group. I am not sure how the debug feature would work but anything will be useful.

Jezz: Which calculator? can you recommend one that has X, Y positions

Freddo: first of all I just wanted to say SUI friggin rocks! I kinda feel stupid for asking but umm .. if i created overlays .. how would that help me calculate the coordinates .. what tool do I use?

Off topic question: is there a way to disable image scaling? I noticed this happens when changing resolutions .. would be helpful for some items as well.
find quote
Freddo Offline
Skilled Skinner
Posts: 489
Joined: Apr 2004
Reputation: 13
Post: #6
Well you could make a grid that had a line say every 10 pixels, then add it to the window while your working on it at the very bottom of the xml (so appearing ontop of everything else) then you could count the lines to work out positions roughly.

btw: i think jezzx just meant a calculator like.. any old calculator, personally I use good old trusty windows calc.
find quote
xboxbox451 Offline
Junior Member
Posts: 36
Joined: Aug 2005
Reputation: 0
Post: #7
Not sure if this will help, but I posted an image below that I put together back in '05 (a time when I was addicted to customizing PM3 Laugh ). I used it to give me an idea of how to position whatever I was adding, then I basically calculated the exact position from my estimated point.

You'll notice an X at various positions on the PM3 screenshot, which I added to the home.xml to get the real coordinates of each position, then I just took a screenshot in XBMC and photoshopped in some lines and the coordinates to give me a grid like view. Not quite sure of the accuracy, so you may just want to test it out and see if it helps.

[Image: pycordn.jpg]
find quote
CHI3f Offline
Team-XBMC Skinner
Posts: 216
Joined: Jan 2007
Reputation: 0
Location: New Jersey, USA
Post: #8
I have made a file that may help with your predicament. When you follow the included instructions it will place a grid that maps out every 10 pixels in the window. I even made it very simple to control the color of the lines, instructions for that are also included in the ReadMe.txt.

[Image: skingrid.jpg]

Here are the files
find quote
Freddo Offline
Skilled Skinner
Posts: 489
Joined: Apr 2004
Reputation: 13
Post: #9
if that grid was rolled into the "empty" skin the combination would be amazingly useful for novice skinners. http://forum.xbmc.org/showthread.php?tid=29743
find quote
timdog82001 Offline
Posting Freak
Posts: 1,132
Joined: Mar 2006
Reputation: 0
Post: #10
Great idea, chi3f. I just modified that grid for 720p for anyone who wants it. Right click download, and follow the instructions from chief's post 2 posts above, except put it in the 720p folder, and change the includes entry to link to 720pGrid.xml instead of Grid.xml

http://www.fileden.com/files/2007/3/20/9...0pGrid.xml
find quote
Post Reply