mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 18:42:40 +08:00
188 lines
5.3 KiB
TypeScript
188 lines
5.3 KiB
TypeScript
/**
|
|
* @packageDocumentation
|
|
* @module ui
|
|
*/
|
|
|
|
import { warnID } from '../core/platform/debug';
|
|
import { ccclass } from '../core/data/class-decorator';
|
|
import { BlockInputEvents, Button, EditBox, Layout, Mask, Label, LabelOutline, ProgressBar, RichText, ScrollView, ScrollBar, Slider, Sprite, Toggle, ToggleContainer, UIMeshRenderer, Widget, Graphics, PageView, PageViewIndicator, UIStaticBatch, UIOpacity, SafeArea, UICoordinateTracker } from './components';
|
|
import { js } from '../core/utils/js';
|
|
import { legacyCC } from '../core/global-exports';
|
|
|
|
/**
|
|
* @deprecated Since v1.2
|
|
*/
|
|
@ccclass('cc.UIReorderComponent')
|
|
export class UIReorderComponent {
|
|
constructor () {
|
|
warnID(1408, 'UIReorderComponent');
|
|
}
|
|
}
|
|
legacyCC.UIReorderComponent = UIReorderComponent;
|
|
|
|
/**
|
|
* Alias of [[Button]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { Button as ButtonComponent };
|
|
legacyCC.ButtonComponent = Button;
|
|
js.setClassAlias(Button, 'cc.ButtonComponent');
|
|
/**
|
|
* Alias of [[EditBox]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { EditBox as EditBoxComponent };
|
|
legacyCC.EditBoxComponent = EditBox;
|
|
js.setClassAlias(EditBox, 'cc.EditBoxComponent');
|
|
/**
|
|
* Alias of [[Layout]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { Layout as LayoutComponent };
|
|
legacyCC.LayoutComponent = Layout;
|
|
js.setClassAlias(Layout, 'cc.LayoutComponent');
|
|
/**
|
|
* Alias of [[Mask]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { Mask as MaskComponent };
|
|
legacyCC.MaskComponent = Mask;
|
|
js.setClassAlias(Mask, 'cc.MaskComponent');
|
|
/**
|
|
* Alias of [[Label]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { Label as LabelComponent };
|
|
legacyCC.LabelComponent = Label;
|
|
js.setClassAlias(Label, 'cc.LabelComponent');
|
|
/**
|
|
* Alias of [[LabelOutline]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { LabelOutline as LabelOutlineComponent };
|
|
legacyCC.LabelOutlineComponent = LabelOutline;
|
|
js.setClassAlias(LabelOutline, 'cc.LabelOutlineComponent');
|
|
/**
|
|
* Alias of [[ProgressBar]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { ProgressBar as ProgressBarComponent };
|
|
legacyCC.ProgressBarComponent = ProgressBar;
|
|
js.setClassAlias(ProgressBar, 'cc.ProgressBarComponent');
|
|
/**
|
|
* Alias of [[RichText]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { RichText as RichTextComponent };
|
|
legacyCC.RichTextComponent = RichText;
|
|
js.setClassAlias(RichText, 'cc.RichTextComponent');
|
|
/**
|
|
* Alias of [[ScrollView]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { ScrollView as ScrollViewComponent };
|
|
legacyCC.ScrollViewComponent = ScrollView;
|
|
js.setClassAlias(ScrollView, 'cc.ScrollViewComponent');
|
|
/**
|
|
* Alias of [[ScrollBar]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { ScrollBar as ScrollBarComponent };
|
|
legacyCC.ScrollBarComponent = ScrollBar;
|
|
js.setClassAlias(ScrollBar, 'cc.ScrollBarComponent');
|
|
/**
|
|
* Alias of [[Slider]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { Slider as SliderComponent };
|
|
legacyCC.SliderComponent = Slider;
|
|
js.setClassAlias(Slider, 'cc.SliderComponent');
|
|
/**
|
|
* Alias of [[Sprite]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { Sprite as SpriteComponent };
|
|
legacyCC.SpriteComponent = Sprite;
|
|
js.setClassAlias(Sprite, 'cc.SpriteComponent');
|
|
/**
|
|
* Alias of [[Toggle]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { Toggle as ToggleComponent };
|
|
legacyCC.ToggleComponent = Toggle;
|
|
js.setClassAlias(Toggle, 'cc.ToggleComponent');
|
|
/**
|
|
* Alias of [[ToggleContainer]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { ToggleContainer as ToggleContainerComponent };
|
|
legacyCC.ToggleContainerComponent = ToggleContainer;
|
|
js.setClassAlias(ToggleContainer, 'cc.ToggleContainerComponent');
|
|
/**
|
|
* Alias of [[UIMeshRenderer]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { UIMeshRenderer as UIModelComponent };
|
|
legacyCC.UIModelComponent = UIMeshRenderer;
|
|
js.setClassAlias(UIMeshRenderer, 'cc.UIModelComponent');
|
|
/**
|
|
* Alias of [[Widget]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { Widget as WidgetComponent };
|
|
legacyCC.WidgetComponent = Widget;
|
|
js.setClassAlias(Widget, 'cc.WidgetComponent');
|
|
/**
|
|
* Alias of [[Graphics]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { Graphics as GraphicsComponent };
|
|
legacyCC.GraphicsComponent = Graphics;
|
|
js.setClassAlias(Graphics, 'cc.GraphicsComponent');
|
|
/**
|
|
* Alias of [[PageView]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { PageView as PageViewComponent };
|
|
legacyCC.PageViewComponent = PageView;
|
|
js.setClassAlias(PageView, 'cc.PageViewComponent');
|
|
/**
|
|
* Alias of [[PageViewIndicator]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { PageViewIndicator as PageViewIndicatorComponent };
|
|
legacyCC.PageViewIndicatorComponent = PageViewIndicator;
|
|
js.setClassAlias(PageViewIndicator, 'cc.PageViewIndicatorComponent');
|
|
/**
|
|
* Alias of [[UIStaticBatch]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { UIStaticBatch as UIStaticBatchComponent };
|
|
js.setClassAlias(UIStaticBatch, 'cc.UIStaticBatchComponent');
|
|
/**
|
|
* Alias of [[UIOpacity]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { UIOpacity as UIOpacityComponent };
|
|
js.setClassAlias(UIOpacity, 'cc.UIOpacityComponent');
|
|
/**
|
|
* Alias of [[SafeArea]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { SafeArea as SafeAreaComponent };
|
|
legacyCC.SafeAreaComponent = SafeArea;
|
|
js.setClassAlias(SafeArea, 'cc.SafeAreaComponent');
|
|
/**
|
|
* Alias of [[UICoordinateTracker]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { UICoordinateTracker as UICoordinateTrackerComponent };
|
|
js.setClassAlias(UICoordinateTracker, 'cc.UICoordinateTrackerComponent');
|
|
/**
|
|
* Alias of [[BlockInputEvents]]
|
|
* @deprecated Since v1.2
|
|
*/
|
|
export { BlockInputEvents as BlockInputEventsComponent };
|
|
legacyCC.BlockInputEventsComponent = BlockInputEvents;
|
|
js.setClassAlias(BlockInputEvents, 'cc.BlockInputEventsComponent');
|