Results 1 to 2 of 2

Thread: Custom XML UI Tooltips on Text Do Not Rotate When Text Rotates

  1. #1

    Custom XML UI Tooltips on Text Do Not Rotate When Text Rotates

    Given an object XML file containing:

    Code:
    <Panel
        id="message_panel"
        height="50"
        width="220"
        color="rgba(0.0, 0.0, 0.0, 0.6)"
        rectAlignment="UpperCenter"
        position="-2.0 361 -4"
        rotation="0 0 0"
        padding="2"
        >
        <Text
            id="message_area"
            text="This is test text..."
            color="green"
            alignment="UpperLeft"
            fontSize="14"
            tooltip="Messages for the User..."
            tooltipBorderColor="blue"
            tooltipBackgroundColor="black"
            tooltipTextColor="yellow"
            tooltipPosition="Above"
            rotation="0 0 180"
            >
        </Text>
    </Panel>
    Then in the onLoad of the Object's .ttslua file do:
    self.UI.show("message_panel")

    What I see is this:

    ToolTipInverted.jpg

    I looked in the API docs for a toolTipRotation attribute in the XML, but did not see one; I even tried it to no avail.

    I hope I am doing something incorrect here. Thanks.

  2. #2
    The tooltips are rendered on root of UI elements. So tooltips are only depends on object's position/rotation/scales even if elements has 'tooltip' with rotation/scale/Z coordinate changes.

    I want tooltips to be changeable its scale, rotation and Z coordinates too.

Similar Threads

  1. Replies: 8
    Last Post: 04-09-2017, 05:29 PM
  2. Custom Bags & Improved Text tool
    By Elemental in forum Suggestions
    Replies: 2
    Last Post: 10-11-2016, 03:43 AM
  3. Attach Text Tool Object to Custom Model
    By Nim.Rodelle in forum Scripting
    Replies: 6
    Last Post: 10-07-2016, 09:31 PM
  4. Replies: 7
    Last Post: 08-08-2016, 06:14 PM
  5. [SOLVED] Text tool bug
    By Sagitor in forum Technical Support
    Replies: 1
    Last Post: 12-31-2015, 11:24 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •