From: <bi...@us...> - 2006-07-26 21:51:52
|
Revision: 7088 Author: billiob Date: 2006-07-26 12:36:04 -0700 (Wed, 26 Jul 2006) ViewCVS: http://svn.sourceforge.net/amsn/?rev=7088&view=rev Log Message: ----------- small update on the plugin : fix a bug about saving config and fill the plugininfo.xml for autoupdate. Modified Paths: -------------- trunk/amsn-extras/plugins/FPSstats/FPSstats.tcl trunk/amsn-extras/plugins/FPSstats/lang/langfr trunk/amsn-extras/plugins/FPSstats/plugininfo.xml Modified: trunk/amsn-extras/plugins/FPSstats/FPSstats.tcl =================================================================== --- trunk/amsn-extras/plugins/FPSstats/FPSstats.tcl 2006-07-26 19:26:37 UTC (rev 7087) +++ trunk/amsn-extras/plugins/FPSstats/FPSstats.tcl 2006-07-26 19:36:04 UTC (rev 7088) @@ -38,27 +38,32 @@ ::skin::setPixmap not_playing_pic_FPSstats not_playing.gif pixmaps [file join $dir pixmaps] ::skin::setPixmap playing_pic_FPSstats playing.gif pixmaps [file join $dir pixmaps] - #array of variables which can be configured using the "plugin center" - array set ::FPSstats::config { - num -1 - max_num -1 - previous_status NLN - } set ::FPSstats::config(dir) $dir - ::FPSstats::AddConfig 0 - global tcl_platform - if {[string tolower $tcl_platform(os)] == "unix"} { - #linux - set ::FPSstats::config(qstat) "/usr/bin/qstat" - } elseif {![catch {tk windowingsystem} wsystem] && $wsystem == "aqua"} { - #MacOSX - set ::FPSstats::config(qstat) "/usr/local/bin/qstat" - } else { - #Windows - set ::FPSstats::config(qstat) "C:/Program Files/qstat/qstat.exe" + #create new vars only if needed + if {![info exists ::FPSstats::config(qstat)]} { + #array of variables which can be configured using the "plugin center" + array set ::FPSstats::config { + num -1 + max_num -1 + previous_status NLN + latest_num 0 + } + + ::FPSstats::AddConfig 0 + + global tcl_platform + if {[string tolower $tcl_platform(os)] == "linux"} { + #linux + set ::FPSstats::config(qstat) "/usr/bin/qstat" + } elseif {![catch {tk windowingsystem} wsystem] && $wsystem == "aqua"} { + #MacOSX + set ::FPSstats::config(qstat) "/usr/local/bin/qstat" + } else { + #Windows + set ::FPSstats::config(qstat) "C:/Program Files/qstat/qstat.exe" + } } - set ::FPSstats::configlist [list [list frame ::FPSstats::populateFrame ""] ] #needed for the checkstate Modified: trunk/amsn-extras/plugins/FPSstats/lang/langfr =================================================================== --- trunk/amsn-extras/plugins/FPSstats/lang/langfr 2006-07-26 19:26:37 UTC (rev 7087) +++ trunk/amsn-extras/plugins/FPSstats/lang/langfr 2006-07-26 19:36:04 UTC (rev 7088) @@ -15,7 +15,7 @@ friendlyfire Remplac\xE9 par Activ\xE9 si FriendlyFire est activ\xE9, par D\xE9sactiv\xE9 sinon game Le jeu auquel vous jouez gamenick Votre pseudonyme dans le jeu -ip_address adresse IP du serveur +ip_address Adresse IP du serveur map Nom de la carte jou\xE9e maxplayers Nombre de joueur maximal du serveur numplayers Nombre de joueurs sur le serveur Modified: trunk/amsn-extras/plugins/FPSstats/plugininfo.xml =================================================================== --- trunk/amsn-extras/plugins/FPSstats/plugininfo.xml 2006-07-26 19:26:37 UTC (rev 7087) +++ trunk/amsn-extras/plugins/FPSstats/plugininfo.xml 2006-07-26 19:36:04 UTC (rev 7088) @@ -9,4 +9,35 @@ <plugin_namespace>FPSstats</plugin_namespace> <init_procedure>Init</init_procedure> <deinit_procedure>Deinit</deinit_procedure> + <cvs_version>7088</cvs_version> + + <lang> + <langcode>en</langcode> + <version>7062</version> + </lang> + <lang> + <langcode>fr</langcode> + <version>7088</version> + </lang> + + <file> + <path>README</path> + <version>7074</version> + </file> + <file> + <path>pixmaps/not_playing.gif</path> + <version>7062</version> + </file> + <file> + <path>pixmaps/playing.gif</path> + <version>7062</version> + </file> + + <URL> + <main>http://amsn.sourceforge.net/autoupdater/plugins/FPSstats/FPSstats.tcl</main> + <plugininfo>http://amsn.sourceforge.net/autoupdater/plugins/FPSstats/plugininfo.xml</plugininfo> + <lang>http://amsn.sourceforge.net/autoupdater/plugins/FPSstats/lang/lang$langcode</lang> + <file>http://amsn.sourceforge.net/autoupdater/plugins/FPSstats/$file</file> + </URL> + </plugin> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |