Will do.
Additionally, you can include this into your skin its an item box. However their is a problem pertaining to when you drag an item/ability into the box it defaults to the setnormaltexture width and height (64, 64) instead of the size of the box.
Basically you drag in a texture and it gets enlarged to (64, 64) rather then the size of your control.
Edit: Yah going to need this fixed for dynamic texture changing mods.
<Button name="ItemButton" inherits="ItemButtonTemplate" render="ComponentRender" onToolbox="true" frameid="{BE5D72CF-B815-43ef-BE3F-AFB463DB0014}" icon="Button">
<!--
<FrameSkin>
<Setup>
<Property name="Backdrop" type="wowuides.Backdrop" value="null" visible="true" category="Appearance" defaultCopy="true" />
<Property name="enableKeyboard" displayName="Enable Keyboard" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" value="false" category="Behaviour" visible="true" defaultCopy="true" />
<Property name="enableMouse" displayName="Enable Mouse" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" value="false" category="Behaviour" visible="true" defaultCopy="true" />
<Property name="frameLevel" displayName="Frame Level" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" value="0" category="Behaviour" visible="true" defaultCopy="true" />
<Property name="frameStrata" displayName="Frame Strata" type="wowuides.FRAMESTRATA" value="wowuides.FRAMESTRATA.PARENT" category="Layout" visible="true" defaultCopy="true" />
<Property name="HighlightTexture" displayName="Highlight Texture" type="wowuides.Texture" value="@skin@" visible="true" category="Appearance" defaultCopy="true" />
<Property name="id" displayName="Id" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" value="0" category="Behaviour" visible="true" defaultCopy="true" />
<Property name="Location" visible="true" />
<Property name="MaximumSize" visible="true" />
<Property name="MinimumSize" visible="true" />
<Property name="movable" displayName="Moveable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" value="false" category="Behaviour" visible="true" defaultCopy="true" />
<Property name="NormalTexture" displayName="Normal Texture" type="wowuides.Texture" value="@skin@" visible="true" category="Appearance" defaultCopy="true" />
<Property name="PushedTexture" displayName="Pushed Texture" type="wowuides.Texture" value="@skin@" visible="true" category="Appearance" defaultCopy="true" />
<Property name="resizable" displayName="Resizeable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" value="false" category="Behaviour" visible="true" defaultCopy="true" />
<Property name="Size" value="new System.Drawing.Size(100,22)" visible="true" />
<Property name="toplevel" displayName="Top Level" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" value="false" category="Behaviour" visible="true" defaultCopy="true" />
</Setup>
<Script>
<OnSetupFrame>
frame.Size = Dimension.FromSize(control.Size);
frame.Anchors.Clear();
frame.Anchors.Add(new LayoutFrame.Anchor());
frame.Anchors[0].point = FRAMEPOINT.TOPLEFT;
frame.Anchors[0].Offset = Dimension.FromPoint(control.Location);
if(control.MaximumSize.Width > 0 && control.MaximumSize.Height > 0) {
if(frame.ResizeBounds == null)
frame.ResizeBounds = new Frame.__ResizeBounds();
frame.ResizeBounds.maxResize = Dimension.FromSize(control.MaximumSize);
}
else if(frame.ResizeBounds != null) {
frame.ResizeBounds.maxResize = null;
}
if(control.MinimumSize.Width > 0 && control.MinimumSize.Height > 0) {
if(frame.ResizeBounds == null)
frame.ResizeBounds = new Frame.__ResizeBounds();
frame.ResizeBounds.minResize = Dimension.FromSize(control.MinimumSize);
}
else if(frame.ResizeBounds != null) {
frame.ResizeBounds.minResize = null;
}
frame.text = control.Text;
</OnSetupFrame>
<OnSetupForm>
control.Size = frame.Size.ToSize();
control.Location = frame.Anchors[0].Offset.ToPoint();
if(frame.ResizeBounds != null) {
if(frame.ResizeBounds.maxResize != null)
control.MaximumSize = frame.ResizeBounds.maxResize.ToSize();
else
control.MaximumSize = Size.Empty;
if(frame.ResizeBounds.minResize != null)
control.MinimumSize = frame.ResizeBounds.minResize.ToSize();
else
control.MinimumSize = Size.Empty;
}
else {
control.MaximumSize = Size.Empty;
control.MinimumSize = Size.Empty;
}
control.Text = frame.text;
</OnSetupForm>
</Script>
</FrameSkin>
-->
</Button>
|