Replies: 4 comments 1 reply
-
There isn't default support for it because it would drag in a whole chain
of other video processing libraries and it's probably drifting a bit too
far away from the core purpose of GUI stuff for games - however there is a
library recently making the rounds on Reddit to play videos on a pygame
surface and I expect it would be reasonably easy to make that surface the
background of a UIWindow.
There is a fairly old example script in pygame_gui_examples that plays two
instances of pong in separate UIWindows operating on similar principles.
I expect there would be more work to do if you wanted the windows + video
to be dynamically resizable but it would be a decent starting point.
…On Wed, 26 Jan 2022, 05:10 fregapple, ***@***.***> wrote:
Hey,
been playing around to see if it was possible to run video output into a
UIWindow. I can't see any information on it, so not sure where I'd look /
if it were to be possible!
—
Reply to this email directly, view it on GitHub
<#251>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADGDGGU2BE24IIQM4D47B2LUX563HANCNFSM5M2CZNSA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hey! After souring through the wiki I found this - https://pygame-gui.readthedocs.io/en/latest/theme_reference/theme_scrolling_container.html. Which is what I am looking for, however I can't workout how I implement it. There is no example of a scrolling container so I can't copy any code. I did come across more documentation with: Which I have implemented a window with a scrollbar and a button. But how would I go about moving the contents of the window down with the scroll bar. |
Beta Was this translation helpful? Give feedback.
-
There is an example of using a scrolling container in my pygame paint demo
here:
https://github.com/MyreMylar/pygame_paint/blob/master/ui/ui_canvas_window.py
…On Fri, 4 Feb 2022, 02:03 fregapple, ***@***.***> wrote:
Hey!
After souring through the wiki I found this -
https://pygame-gui.readthedocs.io/en/latest/theme_reference/theme_scrolling_container.html
.
Which is what I am looking for, however I can't workout how I implement
it. There is no example of a scrolling container so I can't copy any code.
I did come across more documentation with:
[image: image]
<https://user-images.githubusercontent.com/82219216/152460183-9c97bc4d-c132-448e-8356-d4b166461707.png>
Which I have implemented a window with a scrollbar and a button. But how
would I go about moving the contents of the window down with the scroll bar.
[image: image]
<https://user-images.githubusercontent.com/82219216/152460257-77bc2afa-8d56-41a3-8264-c328fa5beca2.png>
—
Reply to this email directly, view it on GitHub
<#251 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADGDGGT2C3TUGVFFI3D54OTUZMXVZANCNFSM5M2CZNSA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
That is exactly what I am looking for thankyou! |
Beta Was this translation helpful? Give feedback.
-
Hey,
been playing around to see if it was possible to run video output into a UIWindow. I can't see any information on it, so not sure where I'd look / if it were to be possible!
Beta Was this translation helpful? Give feedback.
All reactions