Hi, people of community.
I'd like to ask you help to create a custom edit game function.
I created a button on gui menu called "edit game".
To save/load/delete a slot push the button "edit game".
If there's no saved slot and game has not began yet, display the message: "You can't edit any game now!"
Else 3 rectangles appear(available slots).
Each rectangle, when clicked, let show max 3 buttons: save, load, delete
These 3 buttons appear only when needed, under the selected slot rectangle;
if game has not began and there are saved slot, you can only load or delete them for example,
as you can't load or delete an empty slot. If you started playing you can only save on empty rectangles.
I thought to build a function for which the position of 3 buttons depends from selected slot position,as it should appear right down the rectangle once it's clicked.
Each action depends from selected rectangle, for this I thought to insert some booleans to determine which rectangle was selected before any action is triggered; once button is pressed, action is triggered and let you save/load/delete game on selected slot.
When done, reset booleans.
Thank you,
Giacomo
I'd like to ask you help to create a custom edit game function.
I created a button on gui menu called "edit game".
To save/load/delete a slot push the button "edit game".
If there's no saved slot and game has not began yet, display the message: "You can't edit any game now!"
Else 3 rectangles appear(available slots).
Each rectangle, when clicked, let show max 3 buttons: save, load, delete
These 3 buttons appear only when needed, under the selected slot rectangle;
if game has not began and there are saved slot, you can only load or delete them for example,
as you can't load or delete an empty slot. If you started playing you can only save on empty rectangles.
I thought to build a function for which the position of 3 buttons depends from selected slot position,as it should appear right down the rectangle once it's clicked.
Each action depends from selected rectangle, for this I thought to insert some booleans to determine which rectangle was selected before any action is triggered; once button is pressed, action is triggered and let you save/load/delete game on selected slot.
When done, reset booleans.
Thank you,
Giacomo