ReviewPlotViewImpl.ts
1.17 KB
import { DummyNode, DummyRichText, DummyScrollView } from "../../../../common/CCDummyObjects";
import { CCPureView } from "../../../../common/classbase/CCViewBase";
import { RegView } from "../../PresenterCCViewFactory";
import { ReviewPlotView, ReviewPlotViewProps, ReviewPlotViewType } from "../type/ReviewPlotView";
const { ccclass, property } = cc._decorator;
@ccclass
@RegView(ReviewPlotViewType, "prefab/ui/ReviewPlotView")
export class ReviewPlotViewImpl extends CCPureView<ReviewPlotViewProps> implements ReviewPlotView {
@property({ type: cc.ScrollView, displayName: "Plot scrollView" })
plotScrollView: cc.ScrollView = DummyScrollView;
@property({ type: cc.RichText, displayName: "Plot richText" })
plotRichText: cc.RichText = DummyRichText;
@property({ type: cc.Node, displayName: "Loading node" })
loadingNode: cc.Node = DummyNode;
getPlotScrollView(): cc.ScrollView {
return this.plotScrollView;
}
getLoadingNode(): cc.Node {
return this.loadingNode;
}
getPlotRichText(): cc.RichText {
return this.plotRichText;
}
onCloseButtonClick() {
this._props.onCloseButtonClickCallback();
}
}