Highlights manager !! en dialog

Contenu du snippet

C est un dialog de Création de HighLights ( tres simple ) que je viens de faire =) !! Idéale pour creer ses " HL " perso !! que dire de plus ?? A part
de laisser vos commentaires !! et surtout de noter le petit addon !!

Merci =)

Source / Exemple :


dialog hl {
  title "HighLighT Manager"
  size -1 -1 300 360
  box "HighLight Edit" ,2, 10 75 285 230
  button "Enregistrer && Ok" ,1, 10 315 100 20, ok flat
  button "Cancel" ,3, 210 315 80 20,cancel flat
  text "Les HighLights Vous avertisse quand une personne dit quelque chose de spécial, Si Par exemple vous voulez que le script vous avertisse quand une personne dit Moto , cest ici que cela ce passe !" ,4, 15 15 275 60, 
  text "HighLight Manager (c) bY KFlighT", 5, 70 340 180 15, disable nowrap
  check "Activer" ,6, 20 100 60 15
  edit "" ,7, 80 97 200 20, autohs 
  check "Activer" ,8, 20 125 60 15
  edit "" ,9, 80 122 200 20, autohs 
  check "Activer" ,10, 20 150 60 15
  edit "" ,11, 80 147 200 20, autohs 
  check "Activer" ,12, 20 175 60 15
  edit "" ,13, 80 172 200 20, autohs 
  check "Activer" ,14, 20 200 60 15
  edit "" ,15, 80 197 200 20, autohs 
  check "Activer" ,16, 20 225 60 15
  edit "" ,17, 80 222 200 20, autohs 
  check "Activer" ,18, 20 250 60 15
  edit "" ,19, 80 247 200 20, autohs 
  check "Activer" ,20, 20 275 60 15
  edit "" ,21, 80 272 200 20, autohs 
}
on *:dialog:hl:sclick:1: {
  .set %hl1 $did(7)
  .set %hl2 $did(9)
  .set %hl3 $did(11)
  .set %hl4 $did(13)
  .set %hl5 $did(15)
  .set %hl6 $did(17)
  .set %hl7 $did(19)
  .set %hl8 $did(21)
}
on *:dialog:hl:init:00: {
  if %hll1 == on { did -c hl 6 }
  if %hll2 == on { did -c hl 8 }
  if %hll3 == on { did -c hl 10 }
  if %hll4 == on { did -c hl 12 }
  if %hll5 == on { did -c hl 14 }
  if %hll6 == on { did -c hl 16 }
  if %hll7 == on { did -c hl 18 }
  if %hll8 == on { did -c hl 20 }
  did -a $dname 7 %hl1
  did -a $dname 9 %hl2
  did -a $dname 11 %hl3
  did -a $dname 13 %hl4
  did -a $dname 15 %hl5
  did -a $dname 17 %hl6
  did -a $dname 19 %hl7
  did -a $dname 21 %hl8
}
on *:dialog:hl:sclick:6: { If ( $did(6).state == 1 ) .set %hll1 on |  If ( $did(6).state == 0 ) .set %hll1 off }
on *:dialog:hl:sclick:8: { If ( $did(8).state == 1 ) .set %hll2 on |  If ( $did(8).state == 0 ) .set %hll2 off }
on *:dialog:hl:sclick:10: { If ( $did(10).state == 1 ) .set %hll3 on |  If ( $did(10).state == 0 ) .set %hll3 off }
on *:dialog:hl:sclick:12: { If ( $did(12).state == 1 ) .set %hll4 on |  If ( $did(12).state == 0 ) .set %hll4 off }
on *:dialog:hl:sclick:14: { If ( $did(14).state == 1 ) .set %hll5 on |  If ( $did(14).state == 0 ) .set %hll5 off }
on *:dialog:hl:sclick:16: { If ( $did(16).state == 1 ) .set %hll6 on |  If ( $did(16).state == 0 ) .set %hll6 off }
on *:dialog:hl:sclick:18: { If ( $did(18).state == 1 ) .set %hll7 on |  If ( $did(18).state == 0 ) .set %hll7 off }
on *:dialog:hl:sclick:20: { If ( $did(20).state == 1 ) .set %hll8 on |  If ( $did(20).state == 0 ) .set %hll8 off }
on ^*:text:*:#:{
  if (%hll1 == on) && (%hl1 isin $1-) { echo -a 4(1 $time 4) ( 7HighLight Perso 4) $nick Dit Sur10 $chan 1: $1- }
  if (%hll2 == on) && (%hl2 isin $1-) { echo -a 4(1 $time 4) ( 7HighLight Perso 4) $nick Dit Sur10 $chan 1: $1- }
  if (%hll3 == on) && (%hl3 isin $1-) { echo -a 4(1 $time 4) ( 7HighLight Perso 4) $nick Dit Sur10 $chan 1: $1- }
  if (%hll4 == on) && (%hl4 isin $1-) { echo -a 4(1 $time 4) ( 7HighLight Perso 4) $nick Dit Sur10 $chan 1: $1- }
  if (%hll5 == on) && (%hl5 isin $1-) { echo -a 4(1 $time 4) ( 7HighLight Perso 4) $nick Dit Sur10 $chan 1: $1- }
  if (%hll6 == on) && (%hl6 isin $1-) { echo -a 4(1 $time 4) ( 7HighLight Perso 4) $nick Dit Sur10 $chan 1: $1- }
  if (%hll7 == on) && (%hl7 isin $1-) { echo -a 4(1 $time 4) ( 7HighLight Perso 4) $nick Dit Sur10 $chan 1: $1- }
  if (%hll8 == on) && (%hl8 isin $1-) { echo -a 4(1 $time 4) ( 7HighLight Perso 4) $nick Dit Sur10 $chan 1: $1- }
}
alias hl-dialog { /dialog -m hl hl }

Conclusion :


Donc voila !! J attends vos critiques !! et vos notes !!

A voir également

Vous n'êtes pas encore membre ?

inscrivez-vous, c'est gratuit et ça prend moins d'une minute !

Les membres obtiennent plus de réponses que les utilisateurs anonymes.

Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.

Le fait d'être membre vous permet d'avoir des options supplémentaires.