2023-03-21 11:56 PM
2023-03-22 02:52 PM
Hello MBrau.7,
I'm not sure what do you mean by "change a selected simulator skin image". Can you elaborate a bit more please :)
/Osman
2023-03-24 12:30 AM
Hey Osman!
Sorry for my imprecise question :grinning_face_with_sweat:
In the TouchGFX Designer you can select a skin which is used
as a static background image for a running simulation. I wanted to
change this image while running the simulation if e.g. a button is
clicked. Found the solution for myself:
I have extended the HALSDL2 class with a custom loadSkin()-function,
where i pass the name of a skin image. I just have to specify the desired
images i want to use in the Makefile. When setting the first skin, it is necessary
to call the recreateWindow()-function. When changing the skin a second, third, ... time
you can just call the SDL_SetWindowShape()-function.