When activating the Action on Above for a tank from the Fluid Library, I am unable to change the units to anything other than cubic meters, irrespective of the settings for Capacity and Initial amount. Is this a bug or am I missing a setting?
To reproduce simply drag a tank, check the Action on above checkbox and try to change the units
i just noticed that if you don't put any value on the amount field, you can't change the units, but if you put a value in there, it let you put the units...
So even though it's a bug, you don't need to care about the bug
Related
I want to create a slider without an outline.
Like this one:
Note rounded edges.
I assume I need to create a sprite for that. Unfortunately, I can't find any good tutorials on sprites for sliders. I think the easiest way would be to edit the built-in one but I don't know how to get it for editing.
This is how the original slider from my Unity looks like:
Note the outline.
So, surprising solution that should be available to all of us.
Put the default slider in and go to the Source Image for both the Background and Handle. Instead of using what is there, change it to another Unity Standard sprite called TouchpadSprite. This should do the trick. Not sure if the fact that this is called 'touchpad'sprite will cause a problem when make a PC game, but I doubt it. FYI the TouchpadSprite is from the "Standard Assets (for Unity 2017.3)" that is available for free in the Unity Asset Store. Feel free to only import the sprite itself. The Asset Pack itself is pretty large, but there is a lot of good/useful stuff in there.
Also, you will have to increase the Pixels Per Unit Multiplier value. My picture shows what I had to increase it to. This will allow you to choose the rounding of your edges as well. Play with it and let me know if it works.
Hope this helps!
My Netlogo 6.0.4 model generates custom output using csv commands I coded myself. I have 192 experiments to run (see image below). They proceed using partial ticks equal to the user-supplied "timestep" size. In order to speed up execution, I de-selected "Update View" and "Update plots and monitors". The BehaviorSpace window also includes a slider currently set to "Normal Speed." Question: Since updates are off, does the speed slider have any effect on computation speed? Based on the user manual, I would think not, but despite de-selecting "Update View" I can still move the slider, which suggests to me that it may still be possible.
The speed slider speeds up models by skipping some view updates. So if you uncheck the "Update view" checkbox, you've already done the maximum, the speed slider will not help further.
It would make sense for the speed slider to be grayed out when "Update view" is checked. Not sure why we never did that. (Never thought of it? Or just never got around to it?)
I have a graph, constructed in Chart.js, which displays a certain performance metric that it dynamically receives. One of the things I was asked to do was to draw three bands on the background - red, yellow and green, that give a user a visual clue as to whether the metrics value is good, bad or average. I did it by extending a line version of chart.js and in the draw function of it painting my bands of colors in canvas.
It works well, if I know what the largest possible value is. Then I can define the max tick as that value and use that same value as a top point to draw my red band. However, if I don't know what the largest value would be, as soon as something larger arrives, the chart automatically scales to accommodate it, and I end up getting a white band above the red one.
Is there some way to dynamically redraw parts of the background after it was instantiated? The only thing I was able to think of was to add an "animation.onComplete" handler to repaint the background then. The problem, however, is that on the next value received, my newly painted background vanishes, so I assume I go about it the wrong way.
I am not sure if this may help, but the approach i have used that worked for me based on my experience with Chat.js is that, i create my Chat.js options once and only once, and then the chat data object is recreated every time i have new records. This actually works for me tho, i hope it works for you.
The title says it all. I'm building an application with switches, sliders, and plots but no 2-dimensional display. Is there a way to delete the World display? Of course I can shrink it down, and I can set all the turtles to hidden?, but I can't find a way to get rid of it entirely. Thanks.
As Nicolas says, there is no official way to do this.
The workaround I would suggest is to set max-pxcor to 0, reducing the view's height to a minimum, then covering it with an opaque "note".
Click "Add", then select "Note", click in the Interface tab to create the note, then uncheck the "Transparent background" checkbox. Then drag and resize the note as needed.
There is officially no way to make the view disappear in NetLogo.
But (and I probably shouldn't be telling you this) there is a bug in NetLogo that you could take advantage of. If you run:
set-patch-size -1
...the view disappears!
If you save and re-load your model, however, it reappears. (This is because NetLogo makes sure that the view is some minimum size when loading a model.) You can get around that by using a startup procedure:
to startup
set-patch-size -1
end
But, be warned: you probably shouldn't do that. This is very much a hack. The bug will probably be fixed eventually, so you can't expect this to keep working. And it may very well cause other, unforeseeable problems.
The wisest thing to do is probably be to just move the view far out of the way, so that the user has to scroll a long way to see it. That would make the view "hidden" for most intents and purposes and wouldn't cause any trouble.
How can I integrate a Scrollwheel into my application?
I'm currently using Sliders but have found them to be sometimes difficult to control exactly (for example with a linear scale from 0% to 100%). I guess they weren't designed for that purpose and are meant to be used for cases where not pitch perfect control is ok (Volume Control and the likes). However, I really need an exact way of inputting data (other than TextFields, they won't work in my case).
I figured that a Scrollwheel kind of UI Element would be perfect for me. Are there any opensourced Scrollwheels available that would fit my needs?
Horizontal, just like Sliders
Variable Start and End Values
Variable Scale
Small in height
Pretty :)
I tried using the Picker but that didn't work for me since it shows it's values inside of it, which makes it both big and not pretty to look at when used multiple times inside of one View.
If there's nothing available that fulfills my needs (described above) could someone please give me a hint on how to start effectively with creating such a UI element? Thanks!
I've finally found something which fits my needs :)
OBSlider, a subclass of UISlider which allows variable scrubbing speeds – it imitates the behavior seen while scrubbing in iPod.app.
Fulfills all my needs:
Horizontal
Variable Start and End Values
Variable Scale
Small in height
Pretty :)