Home Reference Source

vgui/20-radio-button-checked-event.js

/**
 * Usually emitted by radio buttons
 */
export class RadioButtonCheckedEvent extends SourceEvent {
	constructor(tabposition) {
		super("RadioButtonChecked", {tabposition: tabposition});
	}

	/**
	 * Creates this type based on a source engine KeyValues entry
	 */
	static __fromSource(type, data)
	{
		const result = new RadioButtonCheckedEvent();
		result.data = data;
		return result;
	}
}

SourceEvent.__eventTypes["RadioButtonRadioed"] = RadioButtonCheckedEvent;