begin process at 2010 09 06 10:38:28
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

AddOns

 > PTITS DIALOG DE CONFIGURATION DE JEUX

PTITS DIALOG DE CONFIGURATION DE JEUX


 Information sur la source

 Description

Ca sert juste a mettre 5 jeux en favoris bon je l'ai pas fais en version add *list mais ca devrait etre assez 5 jeux :p

Source

  • alias Games {
  • dialog -m Games Games
  • }
  • dialog Games {
  • title "Set Games"
  • size -1 -1 142 95
  • option dbu
  • icon Skins\icone\mIRC.ico
  • box "Configure", 3, 1 0 94 69
  • edit %games1, 1, 35 7 56 10, autohs
  • text "Games -»", 2, 6 8 28 8
  • text "Games -»", 4, 6 20 28 8
  • edit %games2, 5, 35 19 56 10, autohs
  • text "Games -»", 7, 6 32 28 8
  • edit %games3, 8, 35 31 56 10, autohs
  • text "Games -»", 10, 6 44 28 8
  • edit %games4, 11, 35 43 56 10, autohs
  • text "Games -»", 13, 6 56 28 8
  • edit %games5, 14, 35 55 56 10, autohs
  • box "Action", 16, 1 70 94 23
  • button "Fermer", 17, 6 78 40 10, cancel
  • button "Ok", 18, 50 78 40 10, ok
  • box "", 19, 100 0 40 69
  • box "Info", 20, 100 70 40 23
  • button "MatrixX", 21, 105 78 30 10,
  • button "Games 1", 22, 105 7 30 10,
  • button "Games 2", 23, 105 19 30 10,
  • button "Games 3", 24, 105 31 30 10,
  • button "Games 4", 25, 105 43 30 10,
  • button "Games 5", 26, 105 55 30 10,
  • }
  • On *:dialog:Games:edit:1:{
  • set %games1 $did(Games,1)
  • }
  • On *:dialog:Games:edit:5:{
  • set %games2 $did(Games,5)
  • }
  • On *:dialog:Games:edit:8:{
  • set %games3 $did(Games,8)
  • }
  • On *:dialog:Games:edit:11:{
  • set %games4 $did(Games,11)
  • }
  • On *:dialog:Games:edit:14:{
  • set %games5 $did(Games,14)
  • }
  • on 1:dialog:Games:sclick:22:{
  • set %findg1 $sfile(*.exe,Open the file of your Game,Ok)
  • }
  • on 1:dialog:Games:sclick:23:{
  • set %findg2 $sfile(*.exe,Open the file of your Game,Ok)
  • }
  • on 1:dialog:Games:sclick:24:{
  • set %findg3 $sfile(*.exe,Open the file of your Game,Ok)
  • }
  • on 1:dialog:Games:sclick:25:{
  • set %findg4 $sfile(*.exe,Open the file of your Game,Ok)
  • }
  • on 1:dialog:Games:sclick:26:{
  • set %findg5 $sfile(*.exe,Open the file of your Game,Ok)
  • }
alias Games {
  dialog -m Games Games
}
dialog Games {
  title "Set Games"
  size -1 -1 142 95
  option dbu
  icon Skins\icone\mIRC.ico
  box "Configure", 3, 1 0 94 69
  edit %games1, 1, 35 7 56 10, autohs 
  text "Games -»", 2, 6 8 28 8
  text "Games -»", 4, 6 20 28 8
  edit %games2, 5, 35 19 56 10, autohs 
  text "Games -»", 7, 6 32 28 8
  edit %games3, 8, 35 31 56 10, autohs 
  text "Games -»", 10, 6 44 28 8
  edit %games4, 11, 35 43 56 10, autohs 
  text "Games -»", 13, 6 56 28 8
  edit %games5, 14, 35 55 56 10, autohs 
  box "Action", 16, 1 70 94 23
  button "Fermer", 17, 6 78 40 10, cancel
  button "Ok", 18, 50 78 40 10, ok
  box "", 19, 100 0 40 69
  box "Info", 20, 100 70 40 23
  button "MatrixX", 21, 105 78 30 10,
  button "Games 1", 22, 105 7 30 10,
  button "Games 2", 23, 105 19 30 10,
  button "Games 3", 24, 105 31 30 10,
  button "Games 4", 25, 105 43 30 10,
  button "Games 5", 26, 105 55 30 10,
}
On *:dialog:Games:edit:1:{ 
  set %games1 $did(Games,1)    
}
On *:dialog:Games:edit:5:{ 
  set %games2 $did(Games,5)    
}
On *:dialog:Games:edit:8:{ 
  set %games3 $did(Games,8)    
}
On *:dialog:Games:edit:11:{ 
  set %games4 $did(Games,11)   
}
On *:dialog:Games:edit:14:{ 
  set %games5 $did(Games,14)   
}
on 1:dialog:Games:sclick:22:{
  set %findg1 $sfile(*.exe,Open the file of your Game,Ok)
}
on 1:dialog:Games:sclick:23:{
  set %findg2 $sfile(*.exe,Open the file of your Game,Ok)
}
on 1:dialog:Games:sclick:24:{
  set %findg3 $sfile(*.exe,Open the file of your Game,Ok)
}
on 1:dialog:Games:sclick:25:{
  set %findg4 $sfile(*.exe,Open the file of your Game,Ok)
}
on 1:dialog:Games:sclick:26:{
  set %findg5 $sfile(*.exe,Open the file of your Game,Ok)
}

 Conclusion

et apres y'a plus qu'a le mettre dans vos menus popups la ou vous voulez,
ex : le %games* signifie le nom choisie pour votre jeux :)

Menu
Games
.Favoris
..%games1:/run %findg1
..%games2:/run %findg2
..%games3:/run %findg3
..%games4:/run %findg4
..%games5:/run %findg5

le bouton -info- MatrixX y'a rien dedans normalement ca devait etre l'aide mais j'ai la flemme de mettre des aides lol :p

bon been c un tout mini script tout con :p


 Sources du même auteur

ANTI PV

 Sources de la même categorie

TCL - AJOUT SUPPRESSION DE LOGS par Atok
BLACKLIST PSEUDOS/MASKS par usurpateur
Source avec une capture [XCHAT] ANTI KICK / AWAY C++ par GeroXXXX
JEU DU CODE par alanpersonproject
SERVEUR FTP par hisoka2501

Commentaires et avis

Commentaire de Fayen$ le 09/11/2003 06:44:51

euh la commande c'est
/Games

^^

Commentaire de coca95 le 09/11/2003 19:12:00

bah c /dialog -m Games Games
je pense !

Commentaire de Fayen$ le 09/11/2003 21:14:39

ouais mais g crée l'alias pour pas taper tout ca ...

Commentaire de Kolibot le 11/11/2003 00:06:12

Bon là, il y a du travail sur l'optimisation, je vais te montrer ce que tu pourrais faire :
menu * {
  Game:dialog -m Games Games
}
dialog Games {
  title "Set Games"
  size -1 -1 142 95
  option dbu
  icon SkinsiconemIRC.ico
  box "Configure", 3, 1 0 94 69
  edit %games1, 2, 35 7 56 10, autohs
  text "Games -»", 1, 6 8 28 8
  text "Games -»", 4, 6 20 28 8
  edit %games2, 5, 35 19 56 10, autohs
  text "Games -»", 7, 6 32 28 8
  edit %games3, 8, 35 31 56 10, autohs
  text "Games -»", 10, 6 44 28 8
  edit %games4, 11, 35 43 56 10, autohs
  text "Games -»", 13, 6 56 28 8
  edit %games5, 14, 35 55 56 10, autohs
  box "Action", 16, 1 70 94 23
  button "Fermer", 17, 6 78 40 10, cancel
  button "Ok", 18, 50 78 40 10, ok
  box "", 19, 100 0 40 69
  box "Info", 20, 100 70 40 23
  button "MatrixX", 21, 105 78 30 10,
  button "Games 1", 22, 105 7 30 10,
  button "Games 2", 23, 105 19 30 10,
  button "Games 3", 24, 105 31 30 10,
  button "Games 4", 25, 105 43 30 10,
  button "Games 5", 26, 105 55 30 10,
}
On *:dialog:Games:*:*:{
  if $devent == edit { if $did == 2 || $did == 5 || $did == 8 || $did == 11 || $did == 14 { set %games $+ $round($calc($did / 3),0) $did($did) } }
  if $devent == sclick { if $did > 21 && $did < 27 { set %findg $+ $calc($did - 21) $sfile(*.exe,Open the file of your Game,Ok) } }
}

Commentaire de Kolibot le 11/11/2003 00:10:39

Analyse bien ton dialog car j'ai modifié deux paramêtres qui m'on permis de faire une lourde simplification...

Commentaire de Fayen$ le 11/11/2003 18:13:42

yep thx pour ca :) mais je connais pas tres bien les optimisation encore :p sinon thx pour ca :D

 Ajouter un commentaire




Nos sponsors


Sondage...

CalendriCode

Septembre 2010
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
27282930   

Consulter la suite du CalendriCode

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,406 sec (4)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales