Grila Posted November 13, 2017 Author Share Posted November 13, 2017 On 11/9/2017 at 8:50 PM, y2guru said: 1. you are awesome if you could make that change, otherwise I can just clone my view and remove the battery.. either way is cool, I wouldn't go out of the way for me :-) Here you go. Don't forget to unblock it. GrilaBBControlsPlugin.dll Quote Link to comment Share on other sites More sharing options...
y2guru Posted November 13, 2017 Share Posted November 13, 2017 (edited) You are da man!! Can’t thank you enough ? I have another idea if you want to hear about it ? and it’s not related to this. Edited November 13, 2017 by y2guru Quote Link to comment Share on other sites More sharing options...
shinra358 Posted November 13, 2017 Share Posted November 13, 2017 Any progress on the divided battery? Quote Link to comment Share on other sites More sharing options...
y2guru Posted November 13, 2017 Share Posted November 13, 2017 4 hours ago, Grila said: Here you go. Don't forget to unblock it. GrilaBBControlsPlugin.dll @grila I just got home, so as the .dll is named differently do I just go into VS and reference this one and make the necessary changes to my XAML ? Quote Link to comment Share on other sites More sharing options...
Grila Posted November 13, 2017 Author Share Posted November 13, 2017 It shouldn't be named different, it was built from the existing solution. What's the other one called? Quote Link to comment Share on other sites More sharing options...
y2guru Posted November 13, 2017 Share Posted November 13, 2017 GrilaControlLibrary.dll dated 4/18/2017 9:58am Quote Link to comment Share on other sites More sharing options...
Grila Posted November 13, 2017 Author Share Posted November 13, 2017 I just downloaded the file from the downloads section and it is indeed named GrilaBBControlsPlugin.dll, the same as the new one I posted. Quote Link to comment Share on other sites More sharing options...
y2guru Posted November 13, 2017 Share Posted November 13, 2017 what the hell was I drinking on Friday??!! I downloaded the Switch theme I believe and borrowed the .dll, would that have made a difference? anyway... ill add the reference via VS etc .. Quote Link to comment Share on other sites More sharing options...
Grila Posted November 13, 2017 Author Share Posted November 13, 2017 Just now, y2guru said: what the hell was I drinking on Friday??!! I downloaded the Switch theme I believe and borrowed the .dll, would that have made a difference? anyway... ill add the reference via VS etc .. Ahh yes, I made a few minor changes to suit that theme in particular. You should be using the one from the Downloads section. Quote Link to comment Share on other sites More sharing options...
y2guru Posted November 13, 2017 Share Posted November 13, 2017 ah, my bad :-( but hey.. it worked nonetheless!! Quote Link to comment Share on other sites More sharing options...
Grila Posted November 14, 2017 Author Share Posted November 14, 2017 15 hours ago, shinra358 said: Any progress on the divided battery? Sorry @shinra358 I just noticed this comment. I honestly forgot all about that but now that you've reminded me I will start working on it for you. 1 Quote Link to comment Share on other sites More sharing options...
Grila Posted November 15, 2017 Author Share Posted November 15, 2017 @shinra358 Here you go, complete with the charging animation. It's a separate dll so you'll have to add a new reference. There is a handful of exposed properties to control the color and a bool for showing the battery percent. The battery percent styling is done through through the normal control properties (FontFamily, FontSize, Foreground, etc.). The charging animation will obviously only play when PowerLineStatus is Online and BatteryLifePercent < 0. Once the battery reaches 100%, the animation will stop regardless of PowerLineStatus. There are 2 controls in the dll: PSPBatRounded and PSPBatSquare. Should be pretty self-explanatory on what they are... Here's the file: GrilaPSPBattery.dll And here's a few shots showing it in BB: PSPBatSquare (ShowBatteryPercent=True) PSPBatSquare (ShowBatteryPercent=False) PSPBatRounded (ShowBatteryPercent=True) PSPBatRounded (ShowBatteryPercent=False) Quote Link to comment Share on other sites More sharing options...
shinra358 Posted November 15, 2017 Share Posted November 15, 2017 (edited) Excellent! Thanks Edit: Does the battery juice still have the glass look? I wanted separated battery juice but with the same glass look as default plugin. Edited November 15, 2017 by shinra358 Quote Link to comment Share on other sites More sharing options...
y2guru Posted November 15, 2017 Share Posted November 15, 2017 That’s awesome @grila !! You do great work! Can’t wait to check this out later Quote Link to comment Share on other sites More sharing options...
y2guru Posted November 15, 2017 Share Posted November 15, 2017 6 minutes ago, shinra358 said: I added the reference the I placed this at the top: xmlns:p="clr-namespace:GrilaPSPBattery;assembly=GrilaPSPBattery" Then I placed this in the proper section: <pb:PSPBatSquare ShowBatteryPercent="true" /> But it says pb:PSPBatSquare doesn't exist in xmlns:p="clr-namespace:GrilaPSPBattery;assembly=GrilaPSPBattery". What am I doing wrong? Did you open visual studio and add the reference to the new .dll ? Quote Link to comment Share on other sites More sharing options...
y2guru Posted November 15, 2017 Share Posted November 15, 2017 Just now, shinra358 said: Yes. Right clicked on references. Pressed add reference. Chose the dll. Ok'd. And proceeded. And proceeded to save... right? Quote Link to comment Share on other sites More sharing options...
y2guru Posted November 15, 2017 Share Posted November 15, 2017 And the .dll is housed in one of the reference paths defined in VS? Quote Link to comment Share on other sites More sharing options...
shinra358 Posted November 15, 2017 Share Posted November 15, 2017 Got it. Had to close vs and then restart it for some reason. Now it works. Seems like adding references doesnt take effect until vs restart Quote Link to comment Share on other sites More sharing options...
y2guru Posted November 15, 2017 Share Posted November 15, 2017 Very odd but I had issues with it the other night, it just didn’t want to add the .Dll’s. Glad you got it working though Quote Link to comment Share on other sites More sharing options...
Grila Posted November 15, 2017 Author Share Posted November 15, 2017 1 hour ago, shinra358 said: Excellent! Thanks Edit: Does the battery juice still have the glass look? I wanted separated battery juice but with the same glass look as default plugin. I'm not sure what you mean by glass look. The original one is just a standard Windows progress bar inside a battery shaped outline. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.