10 Sep 11, 07:43PM
Well I've ran into a wall with the menu. This is my first real script and my guess is that I will have to come back to this problem when I understand more. That said, I realized that I don't really understand the menuitemslider.
The code above worked just fine and I was excited to start using it. But, when I tried to customize it, I failed. I am not sure if CS is unable to what I want it to do, or it's my inexperience that is hindering me.
As the above code suggests I got down to a point in my trouble shooting where I was simply trying to pass the crosshair size argument as an int and not as a variable. It still would have no affect on the crosshair size.
[SELECT ALL] Code:
menuitemslider [Crosshair size: ] 0 50 $crosshairsize 5 [] [crosshairsize $arg1]
[SELECT ALL] Code:
...
newmenu "Knife"
menuitemslider [Crosshair size: ] 0 50 [] 1 [] [Setting_Knife_Size 5]
menuitem "close" [closemenu "Knife"]
Setting_Knife_Size = [ alias size $arg1]
Setting_Knife_Type = [ alias crosshairType x-dot.png]
alias setCrosshair [
//size
alias size = 15
alias crosshairType = 0
//knife 0
if (= 0 (curweapon)) [
Setting_Knife_Size
Setting_Knife_Type
] [
...