EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > General Discussion > UI User Discussion

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Unread 07-28-2010, 05:35 AM
oOTopsyOo oOTopsyOo is offline
A Young Mystail Rat
 
Join Date: Oct 2009
Server: Unkown
Posts: 5
Default Create a Target buttom by pressing it

Hi

I like to make a Target button with onpress funktion, if i press the button i like to target the grp-member. 1-5.
this liitle ui must have 5 buttons for each grp-member.. wich of the command down i have to use..

another question is wich of the command down i can use in a cmd line. for example Cmd="target grp-member 1-5 can i use a command like the examples down ??


Code:
OnPress="target Parent.Name.Text"

OnPress="target Parent.Parent.MemberInfo.Name.localtext"

OnPress="target Parent.Parent.T.Value"

OnPress="target Parent.Parent.MemberInfo.Name.Text"
a little example .. based of Drumstixs Code

Quote:
<?xml version="1.0" encoding="utf-8"?>
<Page eq2usescomwndcontrols="true" Location="762,211" MaximumSize="1024,130" MinimumSize="170,30" Name="Target" PackLocation="left,top" ScrollExtent="170,130" Size="170,130" UserMovable="true" UserResizable="true" version="1.1" Visible="false">
<Page BackgroundColor="#00FF00" Location="1,2" Name="GroupMember1" PackLocation="left,top" ScrollExtent="172,25" Size="172,25">
<Page BackgroundColor="#00FF00" Location="3,2" Name="MemberInfoPage" PackLocation="left,top" ScrollExtent="164,23" Size="164,23">
<Page AbsorbsInput="false" ClickThrough="False" Location="8,11" Name="CureButtons" ScrollExtent="154,10" Size="154,10">
<Button BackgroundOpacity="0.000" Location="122,0" Name="Testbutton" OnHoverIn="Parent.Parent.Parent.absorbsinput=false" OnHoverOut="Parent.Parent.Parent.absorbsinput=true" OnPress="CancelSpellcast;&#xD;&#xA; clearallqueuedabilities;&#xD;&#xA; target Parent.Name.Text;&#xD;&#xA" ScrollExtent="16,16" Size="16,16" Style="/ButtonStyles.invisible" Tooltip="Testbutton" />
</Page>
<Page AbsorbsInput="false" Location="8,11" Name="Effects" PackLocation="cfc,top" ScrollExtent="154,10" Size="154,10">
<Icon BackgroundTint="#000000" DynamicData="/GameData.Group.Group_0.Effect1" IconStyle="/IconStyles.effect" Location="122,0" MouseOverColor="#FFFF00" Name="Effect3" PackLocation="left,top" ScrollExtent="16,16" Size="16,16" TreatAsButton="true" />
</Page>
<Page Name="MemberInfo" ScrollExtent="164,35" Size="164,35">
<Text AbsorbsInput="false" Color="#F0D090" DynamicData="/GameData.Group.Group_0.Name" Font="/Fonts.FontZapf15" Location="40,7" Name="Name" PackLocation="top,left" ScrollExtent="122,16" ShadowStyle="/ShadowStylesNew.Outline.style1" Size="122,16" TextAlignmentVertical="Center">GroupMember</Text>
<Image Location="-1,10" Name="Bar1" ScrollExtent="161,10" Size="161,10" Style="ArcaneBars" />
</Page>
</Page>
</Page>
<ImageStyle Name="ArcaneFill">
<ImageFrame Name="Fill" Source="DrumsUI/images/Bars.dds" SourceRect="0,10,100,18" />
</ImageStyle>
<ImageStyle Name="ArcaneBars">
<ImageFrame Name="Bars" Source="DrumsUI/images/Bars.dds" SourceRect="0,80,161,90" />
</ImageStyle>
<ProgressbarStyle Bar.Background="ArcaneFill" Name="ArcaneProgress" />
<Page AbsorbsInput="false" Name="WindowFrame" PackSize="absolute,absolute" ScrollExtent="170,130" Size="170,130">
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Name="Frame" PackLocation="left,top" PackSize="absolute,absolute" RStyleDefault="/FrameStyles.single_pixel" ScrollExtent="170,130" Size="170,130" />
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Name="Bkg" PackLocation="left,top" PackSize="absolute,absolute" RStyleDefault="/WindowElements.DesktopWindo" ScrollExtent="170,130" Size="170,130" />
</Page>
</Page>
Problem on this code, i cant see the effect.. it shows only a gray buttom another problem is if i click i do not target the grp member or in this example myself

( i know it shows my name and effekt because GameData.Group.Group_0 .. its for test i dont have 2 accounts )

Thx for helping

Last edited by oOTopsyOo : 07-28-2010 at 06:55 AM.
Reply With Quote
 



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
Forum Jump


All times are GMT -5. The time now is 02:31 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI