Jump to content


Photo

adjust pointwatch position


    6 replies to this topic

    #1 Porthos

    Porthos

      Member

    • Members
    • PipPip
    • 10 posts
    • LocationZanesville, Ohio, USA

    Posted 16 January 2015 - 03:39 AM

    how do I safely move pointwatch below the chat log
    I am used to it being down there
    I have noted that this version does not show remainder

      but just current and target amount

    was - 13000/15000(2000)  now - 13000/15000



    #2 kantdoit4u

    kantdoit4u

      Advanced Member

    • Members
    • PipPipPip
    • 53 posts

      Posted 16 January 2015 - 04:01 AM

      don't feel alone, I am use to it being down there also, and asked how to change it and was told in the xml file but I do not know where that is



      #3 kantdoit4u

      kantdoit4u

        Advanced Member

      • Members
      • PipPipPip
      • 53 posts

        Posted 16 January 2015 - 05:48 AM

        click on it and drag it under the chat...


        • Porthos likes this

        #4 Arcon

        Arcon

          Advanced Member

        • Windower Staff
        • 1189 posts
        • LocationMunich, Germany

        Posted 16 January 2015 - 07:59 AM

        Either drag/drop, or adjust it in the XML file. Somewhere in the file should be an entry for <x> and <y>, those are the coordinates (in pixels) that you need to adjust. You can also use negative coordinates to position them from the bottom/right side of your screen.



        #5 kaivalya

        kaivalya

          Newbie

        • Members
        • Pip
        • 6 posts

          Posted 17 January 2015 - 01:30 PM

          There's a flag in the settings.xml file that might be needed for the -x and -y to work.

          <text_box_settings>
            <flags>
              <bottom>true/false</bottom>
              <right>true/false</right>
            </flags>
          </text_box_settings>  
          

          Set to true for negative values to start the position count from the bottom or the right respectively.  If those fields aren't listed, just add them in.  They can be listed under <global> or <character_name> as with most windower addon settings files.
           
          You can add the remainder values yourself to the <strings> field.

          <strings>
            <default>xp.current..&apos;/&apos;..xp.tnl..&apos;(&apos;..xp.tnl-xp.current..&apos;)&apos;</default>
          </strings>
          

          That would look like 55999/56000(1) when pointswatch is loaded.

           

          As a general note to anyone interested. The .. is the lua concatenate operator (basically connects the left item and the right item together) and the &apos; is XML for ' (single quote aka apostrophe). Any literal strings have to be enclosed in single quotes (double quotes might work with this version of pointswatch.) All of the xp.foo and cp.bar are values supplied by pointwatch as listed in the Readme. Since they're all numeric values you can use math operators on them to display the results (xp.tnl - xp.current = remaining).
          That translates to lua code something like this:

          value .. 'string' .. value .. 'string' .. value operator value .. 'string'
          xp.current .. '/' .. xp.tnl .. '(' .. xp.tnl - xp.current .. ')'

          If you're interested in doing more I recommend doing a search for "lua for beginners" or such. A quick primer would go a long ways in using windower addons more effectively.



          #6 Iryoku

          Iryoku

            Advanced Member

          • Windower Staff
          • 488 posts

            Posted 18 January 2015 - 08:37 AM

            There's no need to actually use the &apos; entity in XML unless you need an apostrophe inside of a single quoted attribute value. This is perfectly legal XML:

            <strings>
                <default>xp.current..'/'..xp.tnl..'('..xp.tnl-xp.current..')'</default>
            </strings>

            The settings exporter may replace all apostrophes with the entity, because it's simply easier to always do that than it is to write a special case for the few places where it's needed.



            #7 winterlight

            winterlight

              Newbie

            • Members
            • Pip
            • 8 posts

              Posted 10 February 2017 - 08:47 AM

              click on it and drag it under the chat...

              O M G!






              1 user(s) are reading this topic

              0 members, 1 guests, 0 anonymous users