Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changing colors #658

Closed
spookyv3030 opened this issue Nov 16, 2024 · 5 comments
Closed

changing colors #658

spookyv3030 opened this issue Nov 16, 2024 · 5 comments

Comments

@spookyv3030
Copy link

hi! so i've trying to change colors in midi playground game square bounce and nothing is working I change code .py doesn't work so how do I change color and background and glowing effect etc - i saw videos on tiktok image

pls help thank you

@joereynolds
Copy link
Contributor

joereynolds commented Nov 29, 2024

I've done this in the past by using update_theming.

Here's an example of updating some colours on the fly

self.text_box.update_theming(
    {
        "colours": {"normal_border": portrait_map[self.portrait]['colour']}
    }
)

@spookyv3030
Copy link
Author

I've done this in the past by using update_theming.

Here's an example of updating some colours on the fly


self.text_box.update_theming(

    {

        "colours": {"normal_border": portrait_map[self.portrait]['colour']}

    }

)

heyy! Can u tell me which files to edit this ? And chat gpt well do the rest

@joereynolds
Copy link
Contributor

It's whatever element you want to change. So if you have a variable called button that is referencing some element from pygame_gui, you'd call button.update_theming

@spookyv3030
Copy link
Author

It's whatever element you want to change. So if you have a variable called button that is referencing some element from pygame_gui, you'd call button.update_theming

I don't have pygame_gui zip files or something this is my account on tiktok @isaac24yt pls text me there i just need to change colors and square

@MyreMylar
Copy link
Owner

Having investigated this I think this isn't really a question about pygame_gui. The repository for the Square Bounce app that went viral on TikTok is over here:

https://github.com/quasar098/midi-playground

It uses Pygame GUI to make it's settings menu but the whole application is a lot more complicated, and pretty cool!

I also noticed two popular videos on using the app here: https://www.youtube.com/watch?v=6XYPlVyLWfQ and here: https://www.youtube.com/watch?v=ALfkcAvf7t4 which may help you out @spookyv3030

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants