
10-25-2011, 09:32 AM
|
|
A Young Mystail Rat
|
|
Join Date: Sep 2008
Server: Antonia Bayle
Posts: 6
|
|
Spell Effects and Detrimental shows the icons of spells.
You may find IconRect and IconSource of each spell, and... )
In the eq2ui_mainhud_effects.xml we have:
Quote:
|
<Icon BackgroundTint="#000000" IconStyle="/IconStyles.effect" MouseOverColor="#FFFF00" Name="Effect1" Size="24,24" TreatAsButton="true"/>
|
But it means:
Quote:
|
<Icon BackgroundTint="#000000" IconStyle="/IconStyles.effect" IconResource="/images/icons/xxx.dds" IconRect="x,x,x,x" MouseOverColor="#FFFF00" Name="Effect1" Size="24,24" TreatAsButton="true"/>
|
For example:
Quote:
<?xml version="1.0" encoding="utf-8"?>
<Page ... Name="Effects" ... >
<DataSource Name="EffectsDS">
<Data Name="1" IconResource="/images/icons/icon_ss10.dds126,42,168,84" Text="Spell 1"/>
<Data Name="2" IconResource="/images/icons/icon_ss6.dds210,0,252,42" Text="Spell 2"/>
</DataSource>
<Dropdownbox BackdropControl="true" DataSource="EffectsDS" Name="EffectsDropdown" RowTemplate="/Templates.dropdowntemplate" Location="22,3" PackLocation="left,top" PackSize="a,f" Size="108,15" ScrollExtent="108,15" Style="/dropdownlist.dropdown_default" UserScrollable="true"/>
<Text Location="5,5" Name="Trigger" TextColor="#FF0000" Font="/TextStyles.Normal.NormalStyle" Size="100,28" ShadowStyle="/ShadowStylesNew.Outline.style" Visible="false">Bingo!</Text>
<Text Name="Check" DynamicData="/GameData.General.BytesPerSecond" OnTextChanged="
COND1=Parent.EffectsDropdown.SelectedItem.IconResource == Parent.Volume.Effect1.IconResource ## Parent.Volume.Effect1.IconRect
COND2=Parent.EffectsDropdown.SelectedItem.IconResource == Parent.Volume.Effect2.IconResource ## Parent.Volume.Effect2.IconRect
......
COND45=Parent.EffectsDropdown.SelectedItem.IconResource == Parent.Volume.Effect45.IconResource ## Parent.Volume.Effect45.IconRect
TCOND1=COND1 && Parent.Volume.Effect1.Visible
TCOND2=COND2 && Parent.Volume.Effect2.Visible
......
TCOND45=COND45 && Parent.Volume.Effect45.Visible
Parent.Trigger.Visible=TCOND1 || TCOND2 || TCOND3 || TCOND4 || TCOND5 || TCOND6 || TCOND7 || TCOND8 || TCOND9 || TCOND10 || TCOND11 || TCOND12 || TCOND13 || TCOND14 || TCOND15 || TCOND16 || TCOND17 || TCOND18 || TCOND19 || TCOND20 || TCOND21 || TCOND22 || TCOND23 || TCOND24 || TCOND25 || TCOND26 || TCOND27 || TCOND28 || TCOND29 || TCOND30 || TCOND31 || TCOND32 || TCOND33 || TCOND34 || TCOND35 || TCOND36 || TCOND37 || TCOND38 || TCOND39 || TCOND40 || TCOND41 || TCOND42 || TCOND43 || TCOND44 || TCOND45" Visible="false"/>
<VolumePage AbsorbsInput="false" CellCount="1,5" CellPadding="0,0" CellSelectable="false" CellSize="24,24" Location="3,3" MinimumScrollExtent="24,120" Name="Volume" PackSize="a,a" Size="144,120" VolumeFill="left2right_down">
<Icon BackgroundTint="#000000" IconStyle="/IconStyles.effect" MouseOverColor="#FFFF00" Name="Effect1" Size="24,24" TreatAsButton="true"/>
......
<Icon BackgroundTint="#000000" IconStyle="/IconStyles.effect" MouseOverColor="#FFFF00" Name="Effect45" Size="24,24" TreatAsButton="true"/>
</VolumePage>
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Enabled="false" GetsInput="false" Name="WC_Frame" PackSize="a,a" RStyleDefault="/FrameStyles.single_pixel" Size="150,126"/>
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Enabled="false" GetsInput="false" Name="WC_Backdrop" PackSize="a,a" Size="150,126"/>
</Page>
|
So we may trigger specific detrimental effects when they shows up in Detrimental window... )
Last edited by Jupel : 10-25-2011 at 09:44 AM.
|