saywaking 289 Posted June 11, 2017 XuiSlider the Functions GetStep() and GetValue() are swapped. GetValue() returns me the value of Step, not the actual value. Quote Share this post Link to post Share on other sites
MaesterRowen 14 Posted June 11, 2017 Thanks, I look into this and fix for 0.7 release. Quote Share this post Link to post Share on other sites
MaesterRowen 14 Posted June 11, 2017 Our code doesn't have any values swapped and looks like everything should be working correctly. Can you post a sample script I can use to reproduce the issue and see whats going on? Quote Share this post Link to post Share on other sites
saywaking 289 Posted June 11, 2017 I use it in the Gizmo Scene for Utility Scripts Example: initData.uploadTest.count = 4; print(Xui_Option.uploadCountSlider:GetValue()) -> 1 (initial Value) print(Xui_Option.uploadCountSlider:GetStep()) -> 1 (initial Value) Xui_Option.uploadCountSlider:SetValue(initData.uploadTest.count or 4) print(Xui_Option.uploadCountSlider:GetValue()) -> 1 (still initial Value) print(Xui_Option.uploadCountSlider:GetStep()) -> 4 (changed Value, which is definitly wrong) i can reproduce Quote Share this post Link to post Share on other sites
MaesterRowen 14 Posted June 11, 2017 Perfect, that's what I needed. It was actually SetValue and SetStep that were swapped. Got it fixed for 0.7b. Quote Share this post Link to post Share on other sites
saywaking 289 Posted June 11, 2017 My fault, yeah i meant SetValue :S Quote Share this post Link to post Share on other sites