View Single Post
  #5  
Unread 05-21-2005, 03:34 AM
dc_roenfanz's Avatar
dc_roenfanz dc_roenfanz is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Unkown
Posts: 588
Default

Quote:
Originally Posted by Findarato
the odd thing is, I actually just copied the code from the default close button code.
Hirebrand is right.

the "Center" needs to reference to the corresponding ImageStyle
Since you changed the names of the ImageStyle, you hafta go in and change the names of the reference in the corresponding RectangleStyles. Basically just replace the minimize_* with p_*
(I believe) it should look like this

Code:
<?xml version="1.0" encoding="utf-8"?>
<Page Name="vert_styles" ScrollExtent="320,240" Size="320,240" Visible="false">
<Namespace Name="kbookprev">
<ImageStyle Filter="true" Name="p_button_normal">
<ImageFrame Name="image" Source="images/solspellbook02.tga" SourceRect="3,4,83,21"/>
</ImageStyle>
<ImageStyle Filter="true" Name="p_button_pressed">
<ImageFrame Name="image" Source="images/solspellbook02.tga" SourceRect="3,43,83,60"/>
</ImageStyle>
<ImageStyle Filter="true" Name="p_button_rollover">
<ImageFrame Name="image" Source="images/solspellbook02.tga" SourceRect="3,23,83,40"/>
</ImageStyle>
<RectangleStyle Center="p_button_normal" CenterShrinkH="true" CenterShrinkV="true" Name="p_but_normal"/>
<RectangleStyle Center="p_button_pressed" CenterShrinkH="true" CenterShrinkV="true" Name="p_but_pressed"/>
<RectangleStyle Center="p_button_rollover" CenterShrinkH="true" CenterShrinkV="true" Name="p_but_rollover"/>
<RectangleStyle Center="p_button_normal" CenterShrinkH="true" CenterShrinkV="true" Color="#808080" Name="p_but_disabled"/>
</Namespace>
<ButtonStyle Name="KB_prev" RStyleDefault="kbookprev.p_but_normal" RStyleMouseOver="kbookprev.p_but_rollover" RStyleMouseOverActivated="kbookprev.p_but_pressed" RStyleMouseOverSelected="kbookprev.p_but_rollover"/>
</Page>
And thats not odd at all. You changed the names of everything, but because you changed the names, the references were no longer valid.

fixed typo in code tag
__________________

Last edited by Deathbane27 : 05-21-2005 at 04:24 AM.
Reply With Quote