Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

ui

Description

Apply the "ui" scaler to the provided value. The exact formula is: value * (screenHeight / 720) * math.min((screenWidth / screenHeight) / (1920 / 1080), 1)

This is the most common scaler in UI elements.

Arguments

1 number value

the value to scale.

Returns

1 number

the scaled value.