Scroll bar

All Helbreath Client Source Discussion here.
Post Reply
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

Hello every one, i have some problem, i dont know how to make ''Scroll bar in CH Officer'' some one can helm my? Please help my.


Scroll bar its it:

<a href='http://imageshack.us' target='_blank'>Image</a>



1+12
Member
Posts: 173
Joined: Sat Feb 04, 2006 5:05 pm

Post by 1+12 »

Im pretty sure the dialog for the shopkeeper has the code in it.. Why don't you check the code in the area where the dialog for shopkeeper is added.
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

1 wrote: Im pretty sure the dialog for the shopkeeper has the code in it.. Why don't you check the code in the area where the dialog for shopkeeper is added.
Im think i found it but maby its not full code or whatever but that doesnt work... So i asked about it here...
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

Code: Select all

  iTotalLines = 0;
  for (i = 0; i < DEF_MAXMENUITEMS; i++) 
  if (m_pItemForSaleList[i] != NULL) iTotalLines++; 

  // ½ºÅ©·Ñ ¹Ù Æ÷ÀÎÅÍ ±×¸°´Ù.
  if (iTotalLines > 13) {
  	d1 = (double)m_stDialogBoxInfo[11].sView;
  	d2 = (double)(iTotalLines-13);
  	d3 = (274.0f * d1)/d2;
  	iPointerLoc = (int)(d3);
  	DrawNewDialogBox(DEF_SPRID_INTERFACE_ND_GAME2, sX, sY, 3);
  	DrawNewDialogBox(DEF_SPRID_INTERFACE_ND_GAME2, sX+242, sY + iPointerLoc + 35, 7);
  }
  else iPointerLoc = 0;
  
  // ½ºÅ©·Ñ¹Ù Âï±â ó¸®
  if (cLB != 0 && iTotalLines > 13) {
  	if ((iGetTopDialogBoxIndex() == 11)) {
    if ((msX >= sX + 235) && (msX <= sX + 260) && (msY >= sY + 10) && (msY <= sY + 330)) { 
    	d1 = (double)(msY -(sY+35));
    	d2 = (double)(iTotalLines-13);
    	d3 = (d1 * d2)/274.0f;
    	m_stDialogBoxInfo[11].sView = (int)(d3+0.5);
    }
  	}
  }
  else m_stDialogBoxInfo[11].bIsScrollSelected = FALSE;
  if( iGetTopDialogBoxIndex() == 11 && msZ != 0 )
  {
  	m_stDialogBoxInfo[11].sView = m_stDialogBoxInfo[11].sView - msZ/60;
  	m_DInput.m_sZ = 0;
  }
  if( iTotalLines > 13 && m_stDialogBoxInfo[11].sView > iTotalLines-13 ) m_stDialogBoxInfo[11].sView = iTotalLines-13;
  if( m_stDialogBoxInfo[11].sView < 0 || iTotalLines < 13 ) m_stDialogBoxInfo[11].sView = 0;
That's the basics of it.
<img src='http://www.helbreathx.net/sig/sig.jpeg' border='0' alt='user posted image' /><br><a href='http://mafia.cheats4us.org/index.php?x=231030' target='_blank'>#1 on Mafia :D</a><br><!--QuoteBegin-Slipknight+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Slipknight)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->100mb Internet, burstable too 10GB oc192<br>his speed can go up too 10gbs<br>...<br>Yes my car can have a top speed of 1000mph<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>^^ I wonder where the retard went to.
Post Reply