Jump to content
RealModScene
Sign in to follow this  
saywaking

[Bugfix] XuiSlider swapped functions

Recommended Posts

XuiSlider

the Functions GetStep() and GetValue() are swapped.

GetValue() returns me the value of Step, not the actual value.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...