Remarks
This class provides information about the current game display. This includes information like the current game resolution.
Examples
This example will display a window that has been centered within the screen.
Centering a Window | ![]() |
---|---|
import "Turbine.UI.Lotro"; window = Turbine.UI.Lotro.Window(); window:SetSize( 200, 200 ); window:SetText( "Hello!" ); window:SetVisible( true ); local displayWidth, displayHeight = Turbine.UI.Display.GetSize(); local windowWidth, windowHeight = window:GetSize(); window:SetPosition( ( displayWidth - windowWidth ) / 2, ( displayHeight - windowHeight ) / 2 ); |