Creating Custom Save and Load Dialogs: Difference between revisions
Creating Custom Save and Load Dialogs (view source)
Revision as of 17:07, 23 June 2012
, 23 June 2012→Applying To a Load GUI
*>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. | 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. |