STAR TREK 2d20
  1. #1
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    253

    Anchor to doubts

    Here again. I have a frame and inside it I would like to insert a details button to open a new window.
    I want it to be placed in the upper right corner. So I use an anchor for the button but ...
    But if I use insidetopright, with any positive or negative offset, I don't see the button.
    What am I doing wrong?

    Frame
    <frame_char name="MyFrame">
    <bounds>240,20,-25,317</bounds>
    </frame_char>


    Option #1 - both positives
    <button_details name="MyButton">
    <anchored to="MyFrame" position="insidetopright" offset="30, 30" width="20"/>
    ...
    </button_details>


    Option #2 - negative - positive
    <button_details name="MyButton">
    <anchored to="MyFrame" position="insidetopright" offset="-30, 30" width="20"/>
    ...
    </button_details>


    Option #3 - positive - negative
    <button_details name="MyButton">
    <anchored to="MyFrame" position="insidetopright" offset="30, -30" width="20"/>
    ...
    </button_details>


    Option #4 - both negatives
    <button_details name="MyButton">
    <anchored to="MyFrame" position="insidetopright" offset="-30, -30" width="20"/>
    ...
    </button_details>


    Option #5 - both zeroes
    <button_details name="MyButton">
    <anchored to="MyFrame" position="insidetopright" offset="0, 0" width="20"/>
    ...
    </button_details>
    Last edited by Xarxus; December 19th, 2020 at 14:04.

  2. #2
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,685
    Blog Entries
    1
    The first value will be the x value and it will be how far inwards from the right
    The second value will be the y value and it will be how far down from the top
    Both should be positive
    Maybe you have other conflicting in the "button_details" template?

  3. #3
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    253
    Nope, or better, I don't think. This is the code

    <template name="button_details">
    <buttoncontrol>
    <state icon="button_details" pressed="button_details_down" />
    <script>
    ...
    </script>
    </buttoncontrol>
    </template>

  4. #4
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    253
    Ok, found out, it was more trivial... there was a problem with images.

    I'm going to be ashamed in a corner...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
5E Character Create Playlist

Log in

Log in