Index | Collapse All Expand All

Display Class
Members Examples See Also

Beta Documentation - Subject to change.
Provides display information.

# 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 | Copy Code
--- | ---
          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 );

# See Also

- Turbine.UI