I'm having a trouble trying to make a custom load/save GUI with thumbnails previews. When I try to load the thumbnail preview in a 'button', the code simply not work. The code is as follow:
Code: ags
I'm sure slot '30' have an image to load (because I can load it with other templates).
Also if I replace the 2nd line of code for the next one:
Code: ags
Then the code works perfectly, and the button shows de '10' sprite image. The game resolution setting is 640x480, 16bits.
I'm confused about what is happening. Maybe the 'savescreenshots in save games' option uses 320x200 resolution ? I really don't know what is wrong.
Thanks in advance for your help.
DynamicSprite *sprite = DynamicSprite.CreateFromSaveGame(30, 50, 50);
MyButton.NormalGraphic = sprite.Graphic;
I'm sure slot '30' have an image to load (because I can load it with other templates).
Also if I replace the 2nd line of code for the next one:
MyButton.NormalGraphic = 10; // LOAD CURSOR SPRITE
Then the code works perfectly, and the button shows de '10' sprite image. The game resolution setting is 640x480, 16bits.
I'm confused about what is happening. Maybe the 'savescreenshots in save games' option uses 320x200 resolution ? I really don't know what is wrong.

Thanks in advance for your help.