Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Easy Way to clear F2 logs (https://forums.graalonline.com/forums/showthread.php?t=134258129)

DustyPorViva 02-22-2010 08:46 PM

Easy Way to clear F2 logs
 
There should be a button or something to easily clear the F2 window logs. Why? Because they're often used for debugging, and if they fill up too much they can cause horrible slowdown... and not exactly an obvious problem at that. After a long time scripting and a lot of debugging, it's sometimes nice to be able to clear all the junk of the logs.

fowlplay4 02-22-2010 09:04 PM

Here's a GUI hack version:

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
with (F2LogWindow_Tab) {
    
removerowbyid(10);
    
addrow(10"Clear Logs");
  }
}

function 
F2LogWindow_Tab.onSelect(entryid) {
  if (
entryid == 10) {
    for (
temp.0temp.6temp.i++) {
      (
"F2LogWindow_Text" temp.i).text "Text Cleared!";
    }
    
F2LogWindow_Tab.setselectedbyid(0);
  }



DrakilorP2P 02-23-2010 01:44 PM

A simple chat command works fine too.


All times are GMT +2. The time now is 05:07 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.