]> jfr.im git - irc/kvirc/kvirc-scripts.git/commitdiff
Tweaked a bit more to match the new addon system
authorSzymon Tomasz Stefanek <redacted>
Sat, 26 Jun 2010 03:29:59 +0000 (03:29 +0000)
committerSzymon Tomasz Stefanek <redacted>
Sat, 26 Jun 2010 03:29:59 +0000 (03:29 +0000)
newsticker4/install.kvs

index a9ebc1886bffe6720a646a159269cca6a3b98a01..100e48cc9d516cd6d31cc9dc01bab633f962dbf1 100644 (file)
@@ -16,33 +16,20 @@ addon.register( \
                newsticker_32.png \
        )
 {
-       # This is our uninstall callback: it will be called by KVIrc when addon.uninstall is invoked
-       newsticker::core::uninstall
 }
 
-addon.setconfigurecallback(newsticker)
-{
-       newsticker::configure
-}
-
-
 # Get the path that this script was launched from
 %mypath = $file.extractPath($0)
 
-# The installer will copy our files and generate automatically an uninstallation alias for them
-%installer = $new(installer,0,myinstaller)
+addon.installfiles "newsticker" "pics" %mypath/pics/*.png
+addon.installfiles "newsticker" "locale" %mypath/locale/*.mo
 
-# copy files in each subdirectory
 
-# the pics
-%installer->$copyFiles("%mypath/pics/","*.png",$file.localdir("pics"))
-%installer->$copyFiles("%mypath/locale/","*.mo",$file.localdir("locale"))
-
-# then generate the uninstall alias
-%installer->$generateUninstallAlias("newsticker::core::uninstall")
+addon.setconfigurecallback(newsticker)
+{
+       newsticker::configure
+}
 
-# finally kill the installer helper
-delete %installer
 
 # Fetch the script now