Author Topic: Locating tokens at a specific x/y coordinate  (Read 722 times)

Air2Fakie

  • Newbie
  • *
  • Posts: 6
    • View Profile
Locating tokens at a specific x/y coordinate
« on: August 22, 2009, 05:05:39 PM »
Hi All,

I'm a newbie to TD, and I have a question I hope someone can help me.

Let's say i'm working with a 1280x800 screen and I need to locate a token (e.g. the clock token or the rounds token) at a specific x/y position on the screen is that possible?

Thanks in advance

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5381
    • View Profile
Re: Locating tokens at a specific x/y coordinate
« Reply #1 on: August 24, 2009, 09:31:17 AM »
Note that the layout is intended to accommodate differing screen sizes, so setting specific coordinates for items was never an explicit option.  But it can be done using styles.

As an example, using the default layout edit the "Rounds" cell.  You'll note the HTML of the cell is:

Round<br><round>

Change it to:

<span style="position: absolute; top: 100; left: 100;">Round<br><round></span>

This will place it at position (100, 100), and it will remain there even if you change the screen size, or if you change the window size if you are running in window mode.  Change the values of "top" and "left" to position it.