Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:24 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.