View Single Post
  #45  
Unread 03-18-2010, 07:20 PM
Mistal Mistal is offline
Premium Member
Premium Member
Interface Author - Click to view interfaces
 
Join Date: Sep 2007
Server: Everfrost
Posts: 59
Default Button Problems...

I have been playing with background images and frames etc and have a really good handle on that now I went to apply the same principle to my buttons and it didn't work. I have had a look at the commonelements dds, and nearly fell out my chair.

Is there a button tutorial or something that I can read how to do this, as it seems to be different than the background stuff, what with the mouse over effects etc .. currently the buttons in my mod point to

Code:
<Button Location="111,24" Name="BtnPort1" OnPress="equipsomething"
                parent.Visible=Parent.Checked" ScrollExtent="108,32" Size="108,32" Style="/CommonElements.PushButton.data.style">BLANK</Button>
This is what I tried to do...

Code:
<ButtonStyle Name="ButtonFrame" Center="BW5" CenterStretchH="true" CenterStretchV="true" CenterShrinkH="true" CenterShrinkV="true"/>
    <ImageStyle Name="BW5"> 
        <ImageFrame Source="images/testbuttons.dds" SourceRect="30,23,165,64" />
    </ImageStyle>
with this as my button

Code:
<Button Location="3,24" Name="BtnPort1" OnPress="equipsomething"
                parent.Visible=Parent.Checked" ScrollExtent="108,32" Size="108,32" Style="ButtonFrame.PushButton.data.style">BLANK</Button>
Reply With Quote