surfhaa.blogg.se

Pygame and python on mac
Pygame and python on mac






pygame and python on mac

Let elements send a message to their container that they have changed their blitting parameters in some way and then that would trigger a redraw/reblitting of the container and, crucially, any overlapped containers. Give each one an image and perhaps a layered sprite group.

  • Treat containers as a fundamental part of the drawing UI.
  • Draw everything in the UI to a large transparent surface and then blit that onto whatever surface is passed to draw_UI (effectively this would be the 'image' variable of the root container).
  • Thus we could, perhaps, consider a redesign for the drawing that looks something like: It occurs to me that a lot of the time UIs are fairly static, unless parts are being moved, animated or otherwise interacted with a lot of the time many UIs are just a static image atop a moving game world. Drawing is done by looping through each element in order of it's layer and then blitting it to whatever surface is passed to draw_ui().

    pygame and python on mac

    Right now the fundamental drawing unit of Pygame GUI is the element. Some alphabets cannot be rendered correctly by pygame yet.Ĭreated 05 Apr, 2020 Issue #95 User Myremylar Support at least EFIGS + Japanese, Russian & Chinese in initial release.solve handling 'allowed characters' for text entry on a per language basis.Load a new default font when switching to languages with different alphabets (e.g.Add a GUI wide event that elements with text can react to when the language changes (getting an appropriate translation mostly but perhaps also resorting any selection list type elements that are kept sorted (right now we don't actually have a thing to keep these sorted).Support loading translation files with i18n.This will let us test if everything else is working. Add a language selection box to the a test example that lets us switch between a couple of languages (German, Japanese, Russian).I'd like it to be as 'industry standard' as possible because I know many small developers work with outside translation services. In this way a language selector in a pygame app could change the language used in the GUI by switching between json files for different languages. json data that has English defaults but can also be overrode much like the default appearance theme can be overridden. I'd like to pull out all text strings like this into. Button text, Window Titles) is mainly hard coded, or the defaults are hard coded in English. Is your feature request related to a problem? Please describe.

    pygame and python on mac

    Created 20 Mar, 2020 Issue #79 User Myremylar








    Pygame and python on mac