SilderEx Control Help?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
BlackRose Offline
Senior Member
Posts: 109
Joined: Sep 2008
Reputation: 0
Post: #1
Having a slight problem with the SliderEx control. I have been creating a settings menu system, and every default control including Buttons, Radio Buttons and SpinControls have done what I have expected on them. In the case of SliderEx, I'm not so lucky.

With my controls, I'm using <colordiffuse> as a global skin color changer e.g. <colordiffuse>$INFO[Skin.String(global_color)]</colordiffuse>. This generally, in the case of the menu I'm making, changes the color of the button graphics, but in the case of SliderEx control, it diffuses the color of of the slider and leaves the button graphics the original color. This obviously does not go with the theme of the menus I am creating, so when I move between settings options, i'll go through some buttons and Radios with the diffused color and then suddenly, a button with the default color. Check out the code below:

<control type="sliderex" id="8">
<posx>0</posx>
<posy>0</posy>
<width>936</width>
<height>49</height>
<textcolor>grey</textcolor>
<colordiffuse>ConfusedConfused?</colordiffuse>
<focusedcolor>white</focusedcolor>
<align>left</align>
<font>Font_Condensed18_Caps</font>
<textoffsetx>20</textoffsetx>
<texturefocus>system/settings_buttonfocus.png</texturefocus>
<texturenofocus>system/settings_buttonnofocus.png</texturenofocus>
<texturesliderbar>contols/slider_settings.png</texturesliderbar>
<textureslidernib>contols/slider_settings_nibnf.png</textureslidernib>
<textureslidernibfocus>contols/slider_settings_nib.png</textureslidernibfocus>
<pulseonselect>no</pulseonselect>
</control>

Any way to diffuse the color of <texturefocus> and <texturenofocus> with the line <colordiffuse>ConfusedConfused?</colordiffuse> instead of the sliders stuff, OR, is there a workaround, which I'm too new to see just yetConfused

Help help help superstars!!!
find quote
ronie Offline
Team-XBMC Member
Posts: 8,254
Joined: Jan 2009
Reputation: 108
Post: #2
related to this?: http://forum.xbmc.org/showthread.php?tid=132068

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
BlackRose Offline
Senior Member
Posts: 109
Joined: Sep 2008
Reputation: 0
Post: #3
(2012-05-29 00:36)ronie Wrote:  related to this?: http://forum.xbmc.org/showthread.php?tid=132068

Oh wow, great find. How do I update my XBMC to the latest build including this change. Never used github for much thus far. I've looked at it, felt foolish, looked some more, felt retarded, looked some more, and then their was an electricity shortage across half of civilization. Help. I'm blonde!

I'm using windows by the way!
find quote
Martijn Online
Team-XBMC
Posts: 7,708
Joined: Jul 2011
Reputation: 114
Location: Dawn of time
Post: #4
(2012-05-29 01:51)BlackRose Wrote:  
(2012-05-29 00:36)ronie Wrote:  related to this?: http://forum.xbmc.org/showthread.php?tid=132068

Oh wow, great find. How do I update my XBMC to the latest build including this change. Never used github for much thus far. I've looked at it, felt foolish, looked some more, felt retarded, looked some more, and then their was an electricity shortage across half of civilization. Help. I'm blonde!

I'm using windows by the way!

Look at SmartGit for Windows. It's point and click and relative simple to use.

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
(This post was last modified: 2012-05-29 07:29 by Martijn.)
find quote
BlackRose Offline
Senior Member
Posts: 109
Joined: Sep 2008
Reputation: 0
Post: #5
(2012-05-29 07:28)Martijn Wrote:  
(2012-05-29 01:51)BlackRose Wrote:  
(2012-05-29 00:36)ronie Wrote:  related to this?: http://forum.xbmc.org/showthread.php?tid=132068

Oh wow, great find. How do I update my XBMC to the latest build including this change. Never used github for much thus far. I've looked at it, felt foolish, looked some more, felt retarded, looked some more, and then their was an electricity shortage across half of civilization. Help. I'm blonde!

I'm using windows by the way!

Look at SmartGit for Windows. It's point and click and relative simple to use.

Thanks Martijn, will give it a go. Any idea how to update only one cpp file from the git into my stable version of XBMC Eden. Don't trust nightly builds. Last time I used one, It was ultra chaos. Can SmartGit do thatConfused
find quote
pieh Offline
Team-XBMC Member
Posts: 656
Joined: Aug 2010
Reputation: 13
Location: Poland
Post: #6
You can download just that change in .patch format ( https://github.com/xbmc/xbmc/commit/38ba...e560.patch ) and then use "git am <filename>.patch" in command line or use smartgit GUI tools to apply patch (if smartgit provides such functionality). You can also fetch xbmc repository and then just cherry-pick that commit.

Or if You don't want to fight with git ( Wink ) You can just manually paste that 1 line I added (it should be pretty self-explanatory what and where to add with https://github.com/xbmc/xbmc/commit/38ba...14af5be560 )

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

My previous forum/trac nickname: grajen3
find quote
BlackRose Offline
Senior Member
Posts: 109
Joined: Sep 2008
Reputation: 0
Post: #7
(2012-05-29 13:47)pieh Wrote:  You can download just that change in .patch format ( https://github.com/xbmc/xbmc/commit/38ba...e560.patch ) and then use "git am <filename>.patch" in command line or use smartgit GUI tools to apply patch (if smartgit provides such functionality). You can also fetch xbmc repository and then just cherry-pick that commit.

Or if You don't want to fight with git ( Wink ) You can just manually paste that 1 line I added (it should be pretty self-explanatory what and where to add with https://github.com/xbmc/xbmc/commit/38ba...14af5be560 )

I like the third option Pieh. Fighting with git sounds good. Just can't for the life of me find the "GUISettingsSliderControl.cpp" anywhere on my system and in the XBMC instalation. Any cluesConfused I'm no computer buff. XML is already a massive complication for me.
find quote
Martijn Online
Team-XBMC
Posts: 7,708
Joined: Jul 2011
Reputation: 114
Location: Dawn of time
Post: #8
(2012-05-29 14:24)BlackRose Wrote:  
(2012-05-29 13:47)pieh Wrote:  You can download just that change in .patch format ( https://github.com/xbmc/xbmc/commit/38ba...e560.patch ) and then use "git am <filename>.patch" in command line or use smartgit GUI tools to apply patch (if smartgit provides such functionality). You can also fetch xbmc repository and then just cherry-pick that commit.

Or if You don't want to fight with git ( Wink ) You can just manually paste that 1 line I added (it should be pretty self-explanatory what and where to add with https://github.com/xbmc/xbmc/commit/38ba...14af5be560 )

I like the third option Pieh. Fighting with git sounds good. Just can't for the life of me find the "GUISettingsSliderControl.cpp" anywhere on my system and in the XBMC instalation. Any cluesConfused I'm no computer buff. XML is already a massive complication for me.

You can't just apply the patch. You need to patch the source code and compile XBMC yourself.
http://wiki.xbmc.org/index.php?title=HOW...or_Windows

This needs some experience and extra software

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
BlackRose Offline
Senior Member
Posts: 109
Joined: Sep 2008
Reputation: 0
Post: #9
(2012-05-29 14:55)Martijn Wrote:  
(2012-05-29 14:24)BlackRose Wrote:  
(2012-05-29 13:47)pieh Wrote:  You can download just that change in .patch format ( https://github.com/xbmc/xbmc/commit/38ba...e560.patch ) and then use "git am <filename>.patch" in command line or use smartgit GUI tools to apply patch (if smartgit provides such functionality). You can also fetch xbmc repository and then just cherry-pick that commit.

Or if You don't want to fight with git ( Wink ) You can just manually paste that 1 line I added (it should be pretty self-explanatory what and where to add with https://github.com/xbmc/xbmc/commit/38ba...14af5be560 )

I like the third option Pieh. Fighting with git sounds good. Just can't for the life of me find the "GUISettingsSliderControl.cpp" anywhere on my system and in the XBMC instalation. Any cluesConfused I'm no computer buff. XML is already a massive complication for me.

You can't just apply the patch. You need to patch the source code and compile XBMC yourself.
http://wiki.xbmc.org/index.php?title=HOW...or_Windows

This needs some experience and extra software

Ouch. Well I do some experience at breaking things, so I guess I'll give it a go or think real hard about it. Wish the cpp files were just in a directory, so they could simply be overwritten... all these files are like Donald Trump suddenly been dropped into Middle Earth. Oh so confusing. Open source really requires brain cells open to expansion... I'm no rocket scientist!
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,930
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #10
Install a nightly build in a differently named folder (eg XBMC_nightly) during the install process and then run it in portable mode if you're worried about losing anything.

[Image: sig_zps3af3b48e.jpg]
find quote
Post Reply