Jump to content
LaunchBox Community Forums
Sign in to follow this  
Zaazu

[API Question] System Event for Paused?

Recommended Posts

Posted (edited)

Hi,

Is there any way to tell when the pause menu is loaded? I can't see any System Events for the pause menu.

Thanks

Edited by Zaazu

Share this post


Link to post
Share on other sites

Hey @Zaazu

Currently there isnt any plugin support for pause.

Its not ideal but could you add a user control to the pause xaml and use the controls loaded event.

Share this post


Link to post
Share on other sites

Again its not ideal... 

If your not to familiar with xaml/wpf im not sure this will be much help. Anyway if you wanna give it a go.

Download this New folder (3).zip

Unblock it.

Move the folder "Default - Copy" to Launchbox/Pause Themes

In "Default - Copy"... If you open Default.xaml in notepad your notice this line:

xmlns:tst="clr-namespace:Test;assembly=Test"

Near the top. And near the bottom just above </Canvas>, this line:

<tst:TestControl Height="{Binding Source={x:Static SystemParameters.PrimaryScreenHeight}}" Width="{Binding Source={x:Static SystemParameters.PrimaryScreenWidth}}" HorizontalAlignment="Center" VerticalAlignment="Center"/>

(you cant change BB's default pause theme to include a user control, you have to use a different pause theme or like me just make a copy of the default theme)

Move Test.dll into Launchbox/Plugins.

Open BB and select "default - Copy" from the manage pause themes section.

Load a game, open pause and your get a message box.

The source is included in the zip.

Share this post


Link to post
Share on other sites

This is great, thanks, I'll take a look!

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...