Thread Tools Display Modes
05-28-17, 08:56 AM   #1
sirpucna
An Aku'mai Servant
Join Date: Nov 2016
Posts: 34
PlayerFrameGroupIndicator

Newb here:

My search came up empty as people tend to just hide this texture.

I'm looking to put the texture "PlayerFrameGroupIndicator" on the TargetFrame so I can put information in it(i.e target name)

The texture location is "Interface\\CharacterFrame\\UI-CharacterFrame-GroupIndicator", i think theres Left/Right/Middle/Text layers, but i don't know how to work it.
Blizzard can adjust the length of it according to the text length, but its a bit beyond my expertise.

Any help would be apprecaited.
  Reply With Quote
05-28-17, 01:09 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,879
Basically the left panel is anchored to the TopLeft of the PlayerFrameGroupIndicator, the right panel to the TopRight and then the middle section is anchored between the two of them ("Interface\\CharacterFrame\\UI-CharacterFrame-GroupIndicator" is a single image virtually sliced into 3 by using TexCoords)

Code:
<Anchor point="LEFT" relativeTo="PlayerFrameGroupIndicatorLeft" relativePoint="RIGHT"/>
<Anchor point="RIGHT" relativeTo="PlayerFrameGroupIndicatorRight" relativePoint="LEFT"/>
During play when then names change ("PARTY_LEADER_CHANGED" or "GROUP_ROSTER_UPDATE" events), the PlayerFrameGroupIndicator is resized to the width of the automatically adjusting text (FontString), PlayerFrameGroupIndicatorText:

Code:
PlayerFrameGroupIndicator:SetWidth(PlayerFrameGroupIndicatorText:GetWidth()+40)
Code:
<Frame name="PlayerFrameGroupIndicator" hidden="true">
	<Size x="10" y="16"/>
	<Anchors>
		<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="97" y="-20"/>
	</Anchors>
	<Layers>
		<Layer level="BACKGROUND">
			<Texture name="PlayerFrameGroupIndicatorLeft" file="Interface\CharacterFrame\UI-CharacterFrame-GroupIndicator">
				<Size x="24" y="16"/>
				<Anchors>
					<Anchor point="TOPLEFT"/>
				</Anchors>
				<TexCoords left="0" right="0.1875" top="0" bottom="1"/>
			</Texture>
			<Texture name="PlayerFrameGroupIndicatorRight" file="Interface\CharacterFrame\UI-CharacterFrame-GroupIndicator">
				<Size x="24" y="16"/>
				<Anchors>
					<Anchor point="TOPRIGHT"/>
				</Anchors>
				<TexCoords left="0.53125" right="0.71875" top="0" bottom="1"/>
			</Texture>
			<Texture name="PlayerFrameGroupIndicatorMiddle" file="Interface\CharacterFrame\UI-CharacterFrame-GroupIndicator">
				<Size x="0" y="16"/>
				<Anchors>
					<Anchor point="LEFT" relativeTo="PlayerFrameGroupIndicatorLeft" relativePoint="RIGHT"/>
					<Anchor point="RIGHT" relativeTo="PlayerFrameGroupIndicatorRight" relativePoint="LEFT"/>
				</Anchors>
				<TexCoords left="0.1875" right="0.53125" top="0" bottom="1"/>
			</Texture>
			<FontString name="PlayerFrameGroupIndicatorText" inherits="GameFontHighlightSmall">
				<Anchors>
					<Anchor point="LEFT" x="20" y="-2"/>
				</Anchors>
			</FontString>
		</Layer>
	</Layers>
...
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 05-29-17 at 12:39 AM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » PlayerFrameGroupIndicator


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off