Software:Universal Client
Version Number:
________________________________________________________________________
Location
________________________________________________________________________
Description:
I don't exactly know what is going wrong here:
I have OSDs for changing the prices of items in a building. They seem to work fine, but the top 2 lines of var changing buttons do not work correctly. The buttons seem to double activate their OSDs and despite this, not show the correct value of the var. Reloading the OSD window will display a number 1 higher then what you left it at.
For example:
Number is 0. Click it once, it shows 1, but if you exit the OSD and go back in, it is really a 2.
Number is 0. Click once, it shows 1, click a 2nd time, it changes to 3. 3rd time, it changes to 5. But if you exit the OSD and go back in, the value will show as 6.
Happens regardless of what the starting number is.
If it starts at 5 and you click once, it will change to 6, but be 7 after reloading the OSD.
The rest of the buttons work fine, it's only the top 2 var changers that don't work. Script seems all in order as well. Doing a search, there is nothing else changing the var's that the button changes, the var is not used anywhere else in the script. The only places it is used is the OSD showing it's value, and 3 lines to change the value. +1, -1, and set to 0.
The script is also cloned for use in a different building, which works fine and has the exact same var changing mechanics.
________________________________________________________________________
Steps to Replicate: