UIMarquee

From Mod Wiki

Class Tree

Overview

Marquee window type is used for scrolling text vertically or horizontally. It is used for showing the message of the day in the main menu and the spectator list in the scoreboard and limbo menu.

This class may be used in the GUIs. It will inherit all properties, flags, functions and events from UIWindow.

Window type:

type marquee;

Example:

	windowDef spectatorList {
	type marquee;
	properties {
		rect rect = PADDING, _to_bottom_of( lblSpectating ) + 2, _fill_to_right_of( specInfoSurround ), 14;
		float fontSize = 12;
		color forecolor = 1,1,1,0.7;
		vec2 textAlignment = TA_LEFT, TA_VCENTER;
		float speed = 9;
	}

	timeline {
		onTime 500 {
		text = toWStr( gui.getSpectatorList() );
		resetTime( 0 );
		}
	}
}


Properties

UIMarquee Properties

Flags

UIMarquee Flags

Functions

General Functions

resetScroll                        Reset scroll amount.

Events