Skip to content
General IRCX

Nicklist for chatusa

A TG007 community discussion started by SnowX™.

Discussion 3 posts
Page 1 of 1
Open
Topic #3999 · 3 published posts · 1,407 views

hello Guys

 

 

for a wile now i have been trying to make my self a nicklist with icons for use in chat use i have been getting help from Haggis and this is what we have come up with so far

dialog nicklist {
 title "New Project"
 size -1 -1 208 576
 option pixels
 list 1, 96 24 100 532, size
 scroll "", 2, 192 24 17 532
}
alias listnicks {
 did -r nicklist 1
 set %x 1
 while ($nick($active,%x)) {
 did -a nicklist 1 $nick($active,%x)
inc %x
}
}
dll $mdx SetMircVersion $version
 dll $mdx MarkDialog $dname
 dll $mdx SetDialog $dname style
 dll $mdx SetControlMDX $dname 2 ListView noheader report single > $views
 did -i $dname 1 1 headerdims 100
 did -i $dname 1 1 headertext $remove($active,$left($active,5))
 did -i $dname 1 1 seticon list $icon(gold.ico)
 did -i $dname 1 1 seticon list $icon(brown.ico)
 did -i $dname 1 1 seticon list $icon(cusa.ico)
 did -i $dname 1 1 seticon list $icon(man.ico)
 did -i $dname 1 1 seticon list $icon(fem.ico)
 did -i $dname 1 1 seticon list $icon(no.ico)
 did -i $dname 1 1 seticon list $icon(away.ico)
 did -i $dname 1 1 seticon list $icon(mirc.ico)

 

i am really as this is my first atemp so i need help i am a NOOB at this

 

i have got this far and do not no where to go nest lol and help whould be awsome

 

 

ThanX snow

You missed out the aliases for the dll's

 

alias views { return dll\views.mdx }

alias mdx { return dll\mdx.dll }

alias icon { return icons\ $+ $1- }

 

dialog nicklist {

title "New Project"

size -1 -1 208 576

option pixels

list 1, 96 24 100 532, size

scroll "", 2, 192 24 17 532

}

alias listnicks {

did -r nicklist 1

set %x 1

while ($nick($active,%x)) {

did -a nicklist 1 $nick($active,%x)

inc %x

}

}

 

u missed the init code

 

on *:DIALOG:nicklist:init:0: {

dll $mdx SetMircVersion $version

dll $mdx MarkDialog $dname

dll $mdx SetDialog $dname style

dll $mdx SetControlMDX $dname 2 ListView noheader report single > $views

did -i $dname 1 1 headerdims 100

did -i $dname 1 1 headertext $remove($active,$left($active,5))

did -i $dname 1 1 seticon list $icon(gold.ico)

did -i $dname 1 1 seticon list $icon(brown.ico)

did -i $dname 1 1 seticon list $icon(cusa.ico)

did -i $dname 1 1 seticon list $icon(man.ico)

did -i $dname 1 1 seticon list $icon(fem.ico)

did -i $dname 1 1 seticon list $icon(no.ico)

did -i $dname 1 1 seticon list $icon(away.ico)

did -i $dname 1 1 seticon list $icon(mirc.ico)

}

 

 

 

then just in ur loop (listnicks) get it to work out whos a owner, host, away, female, male, admin, away, ignore etc etc

Edited Jul 3, 2005 9:35 PM by Haggis

Spam Honeypot - http://www.haggistech.co.uk/honey(humans do not register)

Thanks i will add it and keep going