Creating Custom Save and Load Dialogs: Difference between revisions

*>CMK2901
(→‎Applying To a Load GUI: - Added note about txtLoadName)
 
Line 129: Line 129:
Applying this to a "load" GUI would be fairly easy.  Simply create a nearly identical GUI to the "Save" one and, in the element script names, replace all instances of the word "Save" with "Load".  Do the same with the "Cancel", "Delete", and "List Box" code, and those will be ready.  For the text box element, it's pretty handy to call this when the load GUI is loaded:
Applying this to a "load" GUI would be fairly easy.  Simply create a nearly identical GUI to the "Save" one and, in the element script names, replace all instances of the word "Save" with "Load".  Do the same with the "Cancel", "Delete", and "List Box" code, and those will be ready.  For the text box element, it's pretty handy to call this when the load GUI is loaded:
<code>
<code>
   txtLoadName.clickable = false;
   txtLoadName.Clickable = false;
</code>
</code>
This causes the text box to be uneditable, which ends up feeling a bit more polished.
This causes the text box to be uneditable, which ends up feeling a bit more polished.
4

edits