Permalink
Browse files

Implemented alternate syntax for SelectButton textures width/height

  • Loading branch information...
1 parent 951590d commit 7488b6d1b4dffe9cd61fd099cf77a348b3f87091 @arion-p arion-p committed Aug 26, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 mediaportal/Core/guilib/GUISelectButtonControl.cs
@@ -38,16 +38,24 @@ public class GUISelectButtonControl : GUIControl
[XMLSkinElement("textureNoFocus")] protected string _textureNoFocusName = "";
[XMLSkinElement("texturebg")] protected string _backgroundTextureName = "";
[XMLSkinElement("textureLeft")] protected string _leftTextureName = "";
+ [XMLSkinAttribute("textureLeft","height")]
[XMLSkinElement("textureLeftHeight")] private int _leftTextureHeight = 16;
+ [XMLSkinAttribute("textureLeft", "width")]
[XMLSkinElement("textureLeftWidth")] private int _leftTextureWidth = 16;
[XMLSkinElement("textureRight")] protected string _rightTextureName = "";
+ [XMLSkinAttribute("textureRight", "height")]
[XMLSkinElement("textureRightHeight")] private int _rightTextureHeight = 16;
+ [XMLSkinAttribute("textureRight", "width")]
[XMLSkinElement("textureRightWidth")] private int _rightTextureWidth = 16;
[XMLSkinElement("textureLeftFocus")] protected string _leftFocusName = "";
+ [XMLSkinAttribute("textureLeftFocus", "height")]
[XMLSkinElement("textureLeftFocusHeight")] private int _leftTextureFocusHeight = 16;
+ [XMLSkinAttribute("textureLeftFocus", "width")]
[XMLSkinElement("textureLeftFocusWidth")] private int _leftTextureFocusWidth = 16;
[XMLSkinElement("textureRightFocus")] protected string _rightFocusName = "";
+ [XMLSkinAttribute("textureRightFocus", "height")]
[XMLSkinElement("textureRightFocusHeight")] private int _rightTextureFocusHeight = 16;
+ [XMLSkinAttribute("textureRightFocus", "width")]
[XMLSkinElement("textureRightFocusWidth")] private int _rightTextureFocusWidth = 16;
[XMLSkinElement("textXOff")] protected int _textOffsetX = 0;
[XMLSkinElement("textYOff")] protected int _textOffsetY = 0;

0 comments on commit 7488b6d

Please sign in to comment.