Created
February 19, 2010 21:14
-
-
Save Mon-Ouie/309219 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'scripts/alias' | |
require 'scripts/last_nicks' | |
# Changez cette ligne par le numero de votre point d'acces. Utilisez 1 | |
# pour le premier, deux pour le second, trois pour le troisieme, etc. | |
access_id 2 | |
# Inserez dans la ligne suivante la liste de vos nicks (pseudonymes) | |
# separes par des espaces. | |
usual_nicks = %w(Frist_Nick Second_Nick Third_Nick) | |
# Vous pouvez supprimer les channels que vous ne voulez pas rejoindre. | |
channels = %w(iPhoneGen.fr psp-generation.com themesgen.com devsgen | |
PS3Gen.fr pcgen.fr wiigen.fr xboxgen.fr retrogen.fr) | |
user "Oreille", "Utilisateur d'oreille" | |
add_server "dark-alex", "irc.dark-alex.org" do | |
nicks *usual_nicks | |
auto_join *channels.map { |i| "#" + i } | |
end | |
# Clavier avec les accents en Francais | |
IRC::Input.keyboard.pages = | |
[ | |
[ | |
[ 'a', 'b', 'c', 'd' ], | |
[ 'e', 'f', 'g', 'h' ], | |
[ 'i', 'j', 'k', 'l' ], | |
[ 'm', 'n', 'o', 'p' ], | |
[ 'q', 'r', 's', 't' ], | |
[ 'u', 'v', 'w', 'x' ], | |
[ 'y', 'z', '0', '1' ], | |
[ '2', '3', '4', '5' ], | |
[ '6', '7', -1, ' ' ] | |
], | |
[ | |
[ 'A', 'B', 'C', 'D' ], | |
[ 'E', 'F', 'G', 'H' ], | |
[ 'I', 'J', 'K', 'L' ], | |
[ 'M', 'N', 'O', 'P' ], | |
[ 'Q', 'R', 'S', 'T' ], | |
[ 'U', 'V', 'W', 'X' ], | |
[ 'Y', 'Z', ' ', -1 ], | |
[ '2', '3', '4', '5' ], | |
[ '6', '7', '8', '9' ] | |
], | |
[ | |
[ ' ', -1, '(', ')' ], | |
[ '[', ']', '{', '}' ], | |
[ '@', '$', '+', '-' ], | |
[ '*', '/', '%', '#' ], | |
[ '"', '\'', '&', '|' ], | |
[ '^', '~', '=', '>' ], | |
[ '<', '!', '?', ',' ], | |
[ '.', ';', ':', '_' ], | |
[ '\\', '...', ' ', ' ' ] | |
], | |
[ | |
[ ' ', -1, "\350", "\351" ], | |
[ "\340", "\371", "\346", "\347" ], | |
[ "\253", "\273", "\352", "\364" ], | |
[ "\342", '/kick', '/mode', '/me' ], | |
[ '/join', '/part', '/list', '/topic' ], | |
[ '/who', '/whois', '/nick', '/away' ], | |
[ '/ctcp', '/msg', '/notice', ',' ], | |
[ '_', '/invite', "\357", "\364" ], | |
[ "\324", "\312", "\356", "\316" ] | |
], | |
[ | |
[ ' ', -1, "\307", "\311" ], | |
[ "\300", "C'est", "suis", "c'est" ], | |
[ "ll\351gal", "CF", "revoir", ":P" ], | |
[ "uby", '\'alut', "\317", 'bien' ], | |
[ 'donner', 'faire', 'deux', 'difficile' ], | |
[ '/ban', '/kban', 'evoir', "\351sol\351" ], | |
[ 'onjour', 'ela', "gagn\351", ',' ], | |
[ 'jamais', 'beaucoup', 'toujours', 'tout' ], | |
[ "m\352me", 'demander', 'poser', 'ujourd\'hui'] | |
] | |
] | |
# Ceci permet au script de se souvenir des nicks des dernieres personnes | |
# ayant parlees. | |
LastNicks.is_at_page IRC::Input.keyboard.pages.size | |
LastNicks.ignore *usual_nicks | |
LastNicks.ignore "NickServ", "ChanServ", "OperServ", "BotServ", "HostServ" | |
LastNicks.ignore "Dark-AleX.org" | |
LastNicks.construct | |
# Le reste du fichier concerne simplemment l'apparence du | |
# programme, pas besoin de trop la changer :) | |
font :command, Joyau::Font.new("flash0:/font/ltn14.pgf", 0) | |
font :keyboard, Joyau::Font.new("flash0:/font/ltn8.pgf", 0) | |
font :buffer, Joyau::Font.new("flash0:/font/ltn14.pgf", 0) | |
color 0, Joyau::Color.new(171, 171, 171), Joyau::Color::NONE | |
color 1, Joyau::Color.new(27, 27, 27), Joyau::Color::WHITE | |
color 2, Joyau::Color.new(67, 94, 135), Joyau::Color::NONE | |
color 3, Joyau::Color.new(163, 212, 110), Joyau::Color::NONE | |
color 4, Joyau::Color.new(255, 141, 141), Joyau::Color::NONE | |
color 5, Joyau::Color.new(255, 107, 107), Joyau::Color::NONE | |
color 6, Joyau::Color.new(207, 130, 67), Joyau::Color::NONE | |
color 7, Joyau::Color.new(234, 202, 117), Joyau::Color::NONE | |
color 8, Joyau::Color.new(255, 209, 85), Joyau::Color::NONE | |
color 9, Joyau::Color.new(200, 231, 168), Joyau::Color::NONE | |
color 10, Joyau::Color.new(120, 158, 198), Joyau::Color::NONE | |
color 11, Joyau::Color.new(70, 164, 255), Joyau::Color::NONE | |
color 12, Joyau::Color.new(88, 122, 164), Joyau::Color::NONE | |
color 13, Joyau::Color.new(246, 162, 79), Joyau::Color::NONE | |
color 14, Joyau::Color.new(171, 171, 171), Joyau::Color::NONE | |
color 15, Joyau::Color.new(85, 87, 83), Joyau::Color::NONE | |
color 16, Joyau::Color.new(171, 171, 171), Joyau::Color::RED | |
force_color "~", 3 | |
force_color "&", 3 | |
force_color "@", 3 | |
force_color "%", 11 | |
force_color "+", 8 | |
force_color "<--", 4 | |
force_color "-->", 3 | |
force_color "--", 0 | |
background = Joyau::Sprite.new("background.png") | |
draw_background do | |
background.draw | |
end | |
IRC::Input.keyboard.bg_colors[:normal] = Joyau::Sprite.new("keyboard.png") | |
IRC::Input.keyboard.bg_colors[:focus] = Joyau::Sprite.new("keyboard2.png") | |
Joyau::OslMusic.init | |
pop = Joyau::OslMusic.new("pop.wav") | |
on_highlight do | |
pop.play(0) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment