Thread: GuiSliderCtrl
View Single Post
  #1  
Old 02-12-2006, 01:07 AM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
GuiSliderCtrl

Hi,

I made a Slider Ctrl
NPC Code:

//#CLIENTSIDE
function onWeaponfired(){
new GuiWindowCtrl(MainTestingHUD){
x=200;y=200;width=400;height=400;
text="Slider Test";
profile="GuiBlueWindowProfile";
canclose=true;
canresize=false;
destroyonhide=true;
new GuiTextCtrl(MainTestingHUD_Text01){
position="10 160";
text="Testing...";
profile="GuiBlueTextProfile";
}
new GuiSliderCtrl(MainTestingHUD_Slider01){
profile="GuiBlueSliderProfile";
position="10 180";
extent="200 40";
range="0 5";
ticks=1;
value=1;
}
}
}



but my slider goes about 0.847 and so on, whats wrong?
i thought ticks=1; would tell it to make 0,1,2,3,4,5?
Reply With Quote