Mandle: Going by your last game you should easily be able to run up a game before this lunchtime

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: Mandle on Sat 17/06/2017 15:20:06Quote from: Slasher on Sat 17/06/2017 11:22:26
Two nice entries this month, both completely different.
Well done guys
I think I beat the Slasher time record as well...
function btnSaveGame_OnClick(GUIControl *control, MouseButton button)
{
int gameSlotToSaveInto = find_save_slot(txtNewSaveName.Text);
if (gameSlotToSaveInto < 0)
{
Display("No more free save slots!");
return;
}
SaveGameSlot(gameSlotToSaveInto, txtNewSaveName.Text);
close_save_game_dialog();
}
function txtNewSaveName_OnActivate(GUIControl *control)
{
// Pressing return in the text box simulates clicking the Save button
btnSaveGame_OnClick(control, eMouseLeft); // CAUSED SLOW TEXT ENTRY.. Why, I don't know. I Commented out and now works fine.
}
function btnIconExit_Click(GUIControl *control, MouseButton button) {
QuitGame(1); // Will bring up the Quit Yes/No.
QuitGame(0); // Will quit immediately.
}
LWEIGHT.Text=(String.Format("%.2f",WeightAdded)); //seems to work ok
WeightAdded +=1.2 // for exmple.
TotalWeight.Text=(String.Format("%d",WeightAdded));
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.177 seconds with 20 queries.