Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Kagama on Sun 20/12/2015 18:03:21

Title: How to restore my GUI gIconbar?
Post by: Kagama on Sun 20/12/2015 18:03:21
Dont ask me how it happened but I managed to delete my GUI gIconBar. ( Yeah I am a dunce. I tried Reading the knowledge database but I couldnt find my answer there. Or maybe I was not seeing it.

My question now is how can I restore it? Tried adding a new GUI with the same name but I get this error message. Thankful for anyone who can help me sort this thing out :cry:

GlobalScript.asc(367): Error (line 367): undefined symbol 'btnIconLoad'


Code (ags) Select

btnIconLoad_Click(btnIconLoad, eMouseLeft);


Title: Re: How to restore my GUI gIconbar?
Post by: Crimson Wizard on Sun 20/12/2015 18:07:35
Create a new dummy game using Default Template. Choose icon bar in the project tree, right click on it and choose "Export...". This saves GUI to a file.
Open your actual project, right click on GUI tree and choose "Import...". Navigate and choose the file you previously created. The GUI will be recreated from the saved file.
Title: Re: How to restore my GUI gIconbar?
Post by: Kagama on Sun 20/12/2015 18:16:04
Thank you very much! I didnt even think about that simple solution. Youve been very helpful :cheesy: