Page 1 of 1

Need help with CTRA_Bossmods

PostPosted: Mon Sep 28, 2015 9:19 am
by oneandonleeroy
Anyone know how to change anchor/positions of raidwarnings in ctra_bossmods or _raidassist?

Re: Need help with CTRA_Bossmods

PostPosted: Wed Sep 30, 2015 1:53 am
by zerf
You mean that that white text that appears in middle in screen containing various warnings? Doesn't look like it's movable.

Can manually move it by editing addon's code, it's defined on line 1005 in file CT_RaidAssist\CT_RaidAssist.xml:
Code: Select all
   <MessageFrame name="CT_RA_WarningFrame" insertMode="BOTTOM" parent="UIParent" frameStrata="HIGH" toplevel="true">
      <Size>
         <AbsDimension x="728" y="200"/>
      </Size>
      <Anchors>
         <Anchor point="CENTER"/>
      </Anchors>
      <FontString inherits="ErrorFont" justifyH="CENTER"/>
   </MessageFrame>


You can change position by setting offset like this:
Code: Select all
<MessageFrame name="CT_RA_WarningFrame" insertMode="BOTTOM" parent="UIParent" frameStrata="HIGH" toplevel="true">
      <Size>
         <AbsDimension x="728" y="200"/>
      </Size>
      <Anchors>
         <Anchor point="CENTER">
            <Offset>
               <AbsDimension x="0" y="200"/>
            </Offset>
         </Anchor>
      </Anchors>
      <FontString inherits="ErrorFont" justifyH="CENTER"/>
   </MessageFrame>

See I added offset to center anchor and set AbsDimension there (x=0 and y=200). By changing those values you can move frame where you want. y=200 is 200px upwards, y=-200 is 200px downwards.