How to restore my GUI gIconbar?

Started by Kagama, Sun 20/12/2015 18:03:21

Previous topic - Next topic

Kagama

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
 
btnIconLoad_Click(btnIconLoad, eMouseLeft);



Crimson Wizard

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.

Kagama

Thank you very much! I didnt even think about that simple solution. Youve been very helpful :cheesy:

SMF spam blocked by CleanTalk