SilderEx Control Help?
#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>HuhHuh?</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>HuhHuh?</colordiffuse> instead of the sliders stuff, OR, is there a workaround, which I'm too new to see just yetHuh

Help help help superstars!!!
Reply
#2
related to this?: http://forum.xbmc.org/showthread.php?tid=132068
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#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!
Reply
#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.
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#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 thatHuh

Reply
#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
Reply
#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 cluesHuh I'm no computer buff. XML is already a massive complication for me.
Reply
#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 cluesHuh 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
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#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 cluesHuh 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!
Reply
#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.
Reply
#11
I just did. It seems fine, but when I try to re-install using this build, it starts rebuilding the thumb cache for some reason. I'm probably doing something wrong as usual.
Reply
#12
When fetching a git .patch file. How do you apply it to XBMC? To what directory and with what program. I know u use a command line execute op, but this doesn't make any sense. What files in XBMC's directory actually coincides with the GIT repository? Its crazy confusing to someone who has never done it before. Pieh's patch file makes sense, as does his command line entry "git am <filename>.patch", but obviously, git is an executable I get somewhere, and this needs to be applied to a specific library file which contains the "GUISettingsSliderControl.cpp". Where are these files hiding?
Reply
#13
You get them from GitHub - https://github.com/xbmc/xbmc - and then compile them.

http://wiki.xbmc.org/index.php?title=Category:Compiling
Reply
#14
Wink 
(2012-05-29, 22:29)Hitcher Wrote: You get them from GitHub - https://github.com/xbmc/xbmc - and then compile them.

http://wiki.xbmc.org/index.php?title=Category:Compiling

Hmmm... I guess if this was sewing, I'd refer you to a book or something too. Rofl

I don't think this is ever going to make sense to me.
Reply
#15
(2012-05-29, 16:36)Hitcher Wrote: 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.

Did that but no luck. For some reason, when using the nightly, all my thumbs become obscure and try to retrieve themselves. The problem is solved though, but sadly can't benefit. Tried some of the other things, or at least started to research the idea, but after my head exploded, I just had to return to living my life with a big grin on my face. Question, is there one file somewhere on the in my XBMC directory on my PC I can overwrite on the stable build of Eden with a copy from Git Repo, which contains the "GUISettingsSliderControl.cpp"? A post-compiled file on the latest nightly perhaps...
Reply

Logout Mark Read Team Forum Stats Members Help
SilderEx Control Help?0