Need help with CTRA_Bossmods

Need help with CTRA_Bossmods

by oneandonleeroy » Mon Sep 28, 2015 9:19 am

Anyone know how to change anchor/positions of raidwarnings in ctra_bossmods or _raidassist?
oneandonleeroy
Grunt
Grunt
 

Re: Need help with CTRA_Bossmods

by zerf » Wed Sep 30, 2015 1:53 am

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.
vanilla wow addon collection - http://addons.us.to
User avatar
zerf
Senior Sergeant
Senior Sergeant
 


Return to Addons & macros