mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
41 lines
708 B
JavaScript
41 lines
708 B
JavaScript
/**
|
|
* This class stores the handlers for the individual sliders available in the developer overlay.
|
|
* Such a class must have onSelectionChange function.
|
|
* If the class has a selected property, then that will be called every simulation update to
|
|
* synchronize the state of the slider (only if the developer overaly is opened).
|
|
*/
|
|
class DeveloperOverlayControlSliders
|
|
{
|
|
}
|
|
|
|
DeveloperOverlayControlSliders.prototype.PBRBrightness = class
|
|
{
|
|
constructor()
|
|
{
|
|
}
|
|
|
|
min()
|
|
{
|
|
return 0.0;
|
|
}
|
|
|
|
max()
|
|
{
|
|
return 1.0;
|
|
}
|
|
|
|
value()
|
|
{
|
|
return Engine.Renderer_GetPBRBrightness();
|
|
}
|
|
|
|
label()
|
|
{
|
|
return translate("PBR brightness");
|
|
}
|
|
|
|
onValueChange(value)
|
|
{
|
|
Engine.Renderer_SetPBRBrightness(value);
|
|
}
|
|
};
|