- Jul 16, 2018
- 101
- 49
Hi everyone, I have a problem with coding. I am using imagemap for the GUI. And now I don’t know how to label pages in Save and Load. I mean auto, quick, 1, 2, 3 etc pages. Like If I need to open preferences then I write hotspot(something) action ShowMenu('preferences'), what do I need to write for pages?
The second problem is that when I save then the frame from the game is not displayed on save or load slot. It just shows the background that I set. Just a white square. I tried a transparent background then there’s just nothing but saving works.
Here is a sample code:
This is not the final code, but it basically shows all the aspects that are needed. And to be honest, I have no idea what "hotspot(-1, -1, -1, -1) action FilePage('auto')" does.
The second problem is that when I save then the frame from the game is not displayed on save or load slot. It just shows the background that I set. Just a white square. I tried a transparent background then there’s just nothing but saving works.
Here is a sample code:
Code:
screen save:
tag menu
imagemap:
ground 'something'
idle 'something'
hover 'something'
hotspot(-1, -1, -1, -1) action FilePage('auto')
hotspot(something) action Start('start')
hotspot(something) action ShowMenu('preferences')
hotspot(something) action ShowMenu('load')
hotspot(something) action FileAction(0):
use load_save_slot(number=0)
screen load:
tag menu
imagemap:
ground 'something'
idle 'something'
hover 'something'
hotspot(-1, -1, -1, -1) action FilePage('auto')
hotspot(something) action Start('start')
hotspot(something) action ShowMenu('preferences')
hotspot(something) action ShowMenu('load')
hotspot(something) action FileAction(0):
use load_save_slot(number=0)
screen load_save_slot