Other than the arms being different lengths, it looks really good. I like the style you're going for.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: lo_res_man on Tue 22/02/2005 22:03:45
that sprite is very unsutabul for the resoluton your talking about.
at that high the caractorwould be hard to see,
if (button==2){ // If listbox is clicked on
ListBoxGetItemText (7,2,ListBoxGetSelected(7,2),text); // Get what player highlighted
SetTextBoxText(7,3,text); // Put highlighted text in textbox
index=ListBoxGetSelected(7,2); // Get highlighted save slot
}
// ##### SAVEWINDOW #####
if (interface==7) {
SetMouseCursor (6); // Change cursor to Arrow
if (button==0) { // If SAVE button is pressed
index = ListBoxGetNumItems(8,2); // Get number of saves
if (index<20) { // If there are 19 saves or less
GUIOff (7); // Hide SAVEWINDOW
GUIOn(1); // Show ICONBAR
GetTextBoxText(7,3,text); // Get what player entered in
SaveGameSlot(index,text); // Save name as what player entered in
SetDefaultCursor(); // Change cursor back to default
}
else { // Otherwise
index=ListBoxGetSelected(7,2); // Get highlighted text
GetTextBoxText(7,3,text); // Get what player entered in
GUIOff (7); // Hide SAVEWINDOW
GUIOn(1); // Show ICONBAR
SaveGameSlot(savegameindex[index],text); // Save name as what was highlighted
SetDefaultCursor(); // Change cursor back to default
}
ListBoxSaveGameList(7,2); // Refresh list for SAVEWINDOW
ListBoxSaveGameList(8,2); // Refresh list for RESTOREWINDOW
ListBoxSaveGameList(9,2); // Refresh list for DELETEWINDOW
}
else if (button == 5){ // If Delete button is pressed
index = ListBoxGetSelected(7,2); // Check if something is highlighted
if (index==-1){ // If nothing is highlighted
Display("Please select a saved game to delete."); // Display this message
}
else{ // Otherwise
DeleteSaveSlot (savegameindex[index]); // Delete what player highlighted
index = ListBoxGetNumItems(7,2); // Get number of saves
ListBoxSaveGameList(7,2); // Refresh list
ListBoxGetSelected(7, 2) == -1; // Lose the highlight
}
ListBoxSaveGameList(7,2); // Refresh list for SAVEWINDOW
ListBoxSaveGameList(8,2); // Refresh list for RESTOREWINDOW
ListBoxSaveGameList(9,2); // Refresh list for DELETEWINDOW
}
if (button == 1) { // If Cancel button is pressed
GUIOff(7); // Hide SAVEWINDOW
GUIOn(1); // Show ICONBAR
SetDefaultCursor(); // Change cursor back to default
}
}
Quote
3. Is there a way to hide/show GUI buttons during runtime?
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.088 seconds with 14 queries.