Settings
Settings for PolyUI.
This contains many values that concern the rendering and event handling of PolyUI internally.
Properties
Set the renderer aspect ratio, with the ratio being width:height, e.g. 16 to 9 = 16:9.
This property will explicitly clean up after the initialization of PolyUI, calling the garbage collector to free up temporary objects created during initialization.
This property will run the cleanup() method in a shutdown hook which will free memory used by PolyUI.
if true, the combo will be cleared when it reaches maxComboSize. Otherwise, it will just continue to dispatch the max event for future clicks if they are within the combo frame.
the time between clicks for them to be considered as a combo.
The threshold for a drag to be considered a 'drag', meaning the drag event will begin to be dispatched, in pixels.
enable the debug keybind in the window (Ctrl+Shift+I)
This property will mean that, if force is true in the resize method, the initial size will be set to the size given.
Enable or disable framebuffers. Please note that PolyUI is designed to work with framebuffers, so disabling them may cause performance issues.
If true, the renderer will render all layout and component to a 'master' framebuffer, then every frame, render that.
Set this to true to enable loading of translation keys upon startup, instead of the default behaviour of loading them when they are first used.
maximum amount of clicks that can be combo-ed in any interval
Set the maximum renderer size (width by height) that this instance can be resized to.
minimum number of drawables in a group before it will use a framebuffer.
Set the minimum renderer size (width by height) that this instance can be resized to.
Weather to invert the scroll direction
This optimization enables "render pausing", or allowing the renderer to pause rendering when there are no changes to the UI.
How to handle resource (image and font) loading errors.
Enable or disable rounded corners for all org.polyfrost.polyui.component.impl.Block.
Scroll multiplier factor, which will multiply the returned value of the callback by this value. First value is the X scroll multiplier, with the second being the Y scroll multiplier.
Enable a smooth animation when the colors are changed.
set this to something other than 0 to change the framerate from the current maxFPS to this value when it is unfocused.