all i want is to set a value by a slider..... but it doesn't work,it can show as the scripts but click with no effect, seems it's disabled
Code:
<Slider name="MySlider1" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="160" y="16"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="WispCast_OptionsFrame_CheckButton_SMARTHEAL" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-20" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName()).tooltipText=MyTooltipText1;
getglobal(this:GetName().."Text"):SetText(TEXT_MySlider1);
getglobal(this:GetName().."High"):SetText("MAX-1");
getglobal(this:GetName().."Low"):SetText("MIN-0");
SliderMiniMapButtonPos:SetMinMaxValues(0,1);
SliderMiniMapButtonPos:SetValueStep(0.01);
</OnLoad>
<OnValueChanged>
MyConfig.value1 = MySlider1:GetValue();
</OnValueChanged>
</Scripts>
</Slider>
some tips:
first i assume that the value has changed but the slider does not showed the click effect
so i run "/script DEFAULT_CHAT_FRAME:AddMessage("MyConfig.value1")"
and it always shows 0.99.............but i set the default value of the MyConfig.value1 to 1....
hmm..........................i was confused................
2 Qs
(1) How to get it to work?
(2) Are there any other useful offical function for the slider?