Commit 14caa921 by 张树文

去除图片与部分逻辑

1 parent 5c8d15ba
Showing with 0 additions and 844 deletions
{
"ver": "2.3.5",
"uuid": "d0ab5015-ed3e-4df0-a34a-acac1993ef95",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 80,
"height": 46,
"platformSettings": {},
"subMetas": {
"ea": {
"ver": "1.0.4",
"uuid": "da8f44f4-e92c-4d5f-a1bf-ba59b0082f81",
"rawTextureUuid": "d0ab5015-ed3e-4df0-a34a-acac1993ef95",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 80,
"height": 46,
"rawWidth": 80,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "fc0949c4-7c29-461f-a8cd-f6c6c949b201",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 281,
"height": 613,
"platformSettings": {},
"subMetas": {
"portalBg": {
"ver": "1.0.4",
"uuid": "8a28ef11-f91d-4b1f-978d-136b44068f85",
"rawTextureUuid": "fc0949c4-7c29-461f-a8cd-f6c6c949b201",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0.5,
"offsetY": 0,
"trimX": 1,
"trimY": 0,
"width": 280,
"height": 613,
"rawWidth": 281,
"rawHeight": 613,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "8963c578-4281-4e6d-81b2-05ff9171dba7",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 76,
"height": 99,
"platformSettings": {},
"subMetas": {
"portalBtn": {
"ver": "1.0.4",
"uuid": "e46fb0ce-9d6a-4b98-98cc-3983e39c7bc7",
"rawTextureUuid": "8963c578-4281-4e6d-81b2-05ff9171dba7",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 76,
"height": 99,
"rawWidth": 76,
"rawHeight": 99,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "cf6c6be3-47cb-44d5-8719-3b5470833e69",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
// import {ListCcComponent, ListPrefabNode, ListItem} from "./ListView";
// const { ccclass, property } = cc._decorator;
// export interface ChatListPrefabNode extends ListPrefabNode{
// }
// export const Node_NA = new cc.Node()
// /**
// * 一个ChatList有什么?
// * * 导航条
// * * 返回按钮 => BackEvent
// * * title
// * * 列表项是Plot类型,有多种子类Text, Audio, Image, Video
// * * addItem(item: Item)
// * * Item Type
// *
// */
// export class ChatListCcComponent extends ListCcComponent implements ChatListPrefabNode{
// @property({ type: cc.Prefab })
// private historySeparator?: cc.Prefab = undefined;
// @property({ type: cc.Prefab })
// private endSeparator?: cc.Prefab = undefined;
// // @property({ type: cc.ScrollView })
// // private scrollView?: cc.ScrollView = undefined;
// addItem(item: ListItem){
// super.addItem(item)
// }
// }
// // interface NominalTypeSupported{
// // nominalName: string
// // }
// /**
// // * decorate the item
// // */
// // export interface PreDisplay {
// // __typeId: string;
// // displayTyping: true;
// // inputtingNode: cc.Node;
// // /*
// // @property({ type: cc.Node })
// // private inputtingNode: cc.Node = Node_NA;
// // displayTyping: true
// // */
// // }
// // export let PreDisplay = createTypeId<PreDisplay>("PreDisplay")
// /**
// * 这个Plot有选项需要选择,
// * Item <>--- NeedSelect
// */
// export interface NeedSelect{
// needSelect: true
// plotId: number
// }
// export interface DisplayTyping {
// }
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "90bf72d6-da6b-4fb8-954c-9793d6aa35c2",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
// import ViewBase from "../../../common/classbase/ViewBase";
// import { UIManager } from "../../../common/gameplay/managers/UIManager";
// const { ccclass, property } = cc._decorator;
// export abstract class BaseCcComponent extends ViewBase implements BasePrefabNode {
// getNode = () => super.node
// registerEvent(action: "onOpen" | "onClose" | "onShow" | "onHide", handler: (target?: any) => void) {
// throw new Error("Method not implemented.");
// }
// abstract load()
// }
// export interface BasePrefabNode {
// onLoad()
// onOpen(param?: any)
// onClose()
// onShow()
// onHide()
// load()
// getNode: () => cc.Node
// registerEvent(action: "onOpen" | "onClose" | "onShow" | "onHide", handler: (target?: any) => void): void
// }
// //////////////////////////////////////////
// export interface ListPrefabNode extends BasePrefabNode {
// addItem(item: ListItem)
// }
// /**
// * 一个List里有什么?
// * * title
// */
// export class ListCcComponent extends BaseCcComponent implements ListPrefabNode {
// static prefabPath = "prefab/ui/list/ListView";
// @property({ type: cc.Layout })
// private contentLayout?: cc.Layout = undefined;
// private _loading = false;
// load(){
// let a: any = "jjk"
// let b: string = a as string
// }
// addItem(item: ListItem){
// }
// onOpen(sceneId: number) {
// super.onOpen();
// this._loading = true;
// // this.disposable.add(this._viewModel.LoadPlotList.on(this.loadChatBubbleList));
// }
// // loadChatBubbleList = async (plots: ((ReadonlyPlot & { selection?: number }) | "history")[]) => {
// // this.scrollView!.scrollToBottom();
// // this._loading = false;
// // }
// close() {
// UIManager.popView();
// }
// }
// /**
// * ListItem <| --- ChatBubble, MessageEntry
// * * 展示第一页: function initLoad(..)
// * * 获取下一页并展示: function loadMore(..)
// * * 操作某一个item(点击,拖放,点击特定区域): actions
// * * initLoading: bool
// * * loading: bool
// * * data: []
// * * items: ListItem[]
// * * itemType: string
// */
// export default class List {
// constructor(
// data: any[],
// itemType: string,
// prefab: ListPrefabNode,
// initLoading = true,
// loading = false,
// ) {
// this._data = data;
// this._itemType = itemType;
// this._initLoading = initLoading;
// this._loading = loading;
// this._prefab = prefab
// this.refresh()
// }
// private _loading: boolean;
// private _initLoading: boolean;
// private _itemType: string;
// private _data: any[];
// private _prefab: ListPrefabNode;
// refresh() {
// this._prefab.load()
// }
// onOpen(sceneId: number) {
// this._loading = true;
// // this.disposable.add(this._viewModel.LoadPlotList.on(this.loadChatBubbleList));
// }
// // loadChatBubbleList = async (plots: ((ReadonlyPlot & { selection?: number }) | "history")[]) => {
// // this.scrollView!.scrollToBottom();
// // this._loading = false;
// // }
// close() {
// UIManager.popView();
// }
// }
// export class ListItem {
// }
// class TestScript {
// test1() {
// //假设这里是某个入口点击后的command function(in xxxmanager)
// //先去取数据
// let data = [
// ]
// //取到数据后,创建view并灌入初始数据列表
// //创建ListCcComponent
// UIManager.pushView(ListCcComponent)
// .then((component) => {
// //新建List,绑定ListCcComponent,并初始化
// new List(data, "itemType", component)
// })
// }
// }
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "03357ae2-014b-4fbc-9e33-732660b4a4e7",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
"use strict";
cc._RF.push(module, '03357riAUtPvJ4zcyZgtKTn', 'ListView1');
// script/game/ui/list/ListView1.ts
// import ViewBase from "../../../common/classbase/ViewBase";
// import { UIManager } from "../../../common/gameplay/managers/UIManager";
// const { ccclass, property } = cc._decorator;
// export abstract class BaseCcComponent extends ViewBase implements BasePrefabNode {
// getNode = () => super.node
// registerEvent(action: "onOpen" | "onClose" | "onShow" | "onHide", handler: (target?: any) => void) {
// throw new Error("Method not implemented.");
// }
// abstract load()
// }
// export interface BasePrefabNode {
// onLoad()
// onOpen(param?: any)
// onClose()
// onShow()
// onHide()
// load()
// getNode: () => cc.Node
// registerEvent(action: "onOpen" | "onClose" | "onShow" | "onHide", handler: (target?: any) => void): void
// }
// //////////////////////////////////////////
// export interface ListPrefabNode extends BasePrefabNode {
// addItem(item: ListItem)
// }
// /**
// * 一个List里有什么?
// * * title
// */
// export class ListCcComponent extends BaseCcComponent implements ListPrefabNode {
// static prefabPath = "prefab/ui/list/ListView";
// @property({ type: cc.Layout })
// private contentLayout?: cc.Layout = undefined;
// private _loading = false;
// load(){
// let a: any = "jjk"
// let b: string = a as string
// }
// addItem(item: ListItem){
// }
// onOpen(sceneId: number) {
// super.onOpen();
// this._loading = true;
// // this.disposable.add(this._viewModel.LoadPlotList.on(this.loadChatBubbleList));
// }
// // loadChatBubbleList = async (plots: ((ReadonlyPlot & { selection?: number }) | "history")[]) => {
// // this.scrollView!.scrollToBottom();
// // this._loading = false;
// // }
// close() {
// UIManager.popView();
// }
// }
// /**
// * ListItem <| --- ChatBubble, MessageEntry
// * * 展示第一页: function initLoad(..)
// * * 获取下一页并展示: function loadMore(..)
// * * 操作某一个item(点击,拖放,点击特定区域): actions
// * * initLoading: bool
// * * loading: bool
// * * data: []
// * * items: ListItem[]
// * * itemType: string
// */
// export default class List {
// constructor(
// data: any[],
// itemType: string,
// prefab: ListPrefabNode,
// initLoading = true,
// loading = false,
// ) {
// this._data = data;
// this._itemType = itemType;
// this._initLoading = initLoading;
// this._loading = loading;
// this._prefab = prefab
// this.refresh()
// }
// private _loading: boolean;
// private _initLoading: boolean;
// private _itemType: string;
// private _data: any[];
// private _prefab: ListPrefabNode;
// refresh() {
// this._prefab.load()
// }
// onOpen(sceneId: number) {
// this._loading = true;
// // this.disposable.add(this._viewModel.LoadPlotList.on(this.loadChatBubbleList));
// }
// // loadChatBubbleList = async (plots: ((ReadonlyPlot & { selection?: number }) | "history")[]) => {
// // this.scrollView!.scrollToBottom();
// // this._loading = false;
// // }
// close() {
// UIManager.popView();
// }
// }
// export class ListItem {
// }
// class TestScript {
// test1() {
// //假设这里是某个入口点击后的command function(in xxxmanager)
// //先去取数据
// let data = [
// ]
// //取到数据后,创建view并灌入初始数据列表
// //创建ListCcComponent
// UIManager.pushView(ListCcComponent)
// .then((component) => {
// //新建List,绑定ListCcComponent,并初始化
// new List(data, "itemType", component)
// })
// }
// }
cc._RF.pop();
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/list/ListView1.ts"],"names":[],"mappings":";;;;AACA,6DAA6D;AAC7D,2EAA2E;AAE3E,+CAA+C;AAE/C,qFAAqF;AACrF,+BAA+B;AAE/B,yGAAyG;AACzG,kDAAkD;AAClD,MAAM;AAEN,oBAAoB;AAEpB,IAAI;AAEJ,oCAAoC;AAEpC,aAAa;AACb,wBAAwB;AACxB,cAAc;AACd,aAAa;AACb,aAAa;AAEb,WAAW;AACX,2BAA2B;AAC3B,6GAA6G;AAE7G,IAAI;AAGJ,6CAA6C;AAE7C,2DAA2D;AAE3D,4BAA4B;AAC5B,IAAI;AAGJ,MAAM;AACN,iBAAiB;AACjB,aAAa;AACb,MAAM;AACN,mFAAmF;AAEnF,mDAAmD;AAEnD,mCAAmC;AACnC,mDAAmD;AAEnD,8BAA8B;AAG9B,YAAY;AACZ,wBAAwB;AACxB,iCAAiC;AAEjC,MAAM;AACN,6BAA6B;AAE7B,MAAM;AAEN,8BAA8B;AAC9B,sBAAsB;AACtB,4BAA4B;AAC5B,wFAAwF;AACxF,MAAM;AAEN,wGAAwG;AACxG,4CAA4C;AAC5C,gCAAgC;AAChC,SAAS;AAET,cAAc;AACd,2BAA2B;AAC3B,MAAM;AAEN,IAAI;AAEJ,MAAM;AACN,gDAAgD;AAChD,mCAAmC;AACnC,sCAAsC;AACtC,uCAAuC;AACvC,wBAAwB;AACxB,oBAAoB;AACpB,eAAe;AACf,wBAAwB;AACxB,uBAAuB;AACvB,KAAK;AACL,8BAA8B;AAE9B,iBAAiB;AACjB,mBAAmB;AACnB,wBAAwB;AACxB,8BAA8B;AAC9B,0BAA0B;AAC1B,uBAAuB;AACvB,QAAQ;AACR,yBAAyB;AACzB,iCAAiC;AACjC,uCAAuC;AACvC,+BAA+B;AAC/B,4BAA4B;AAC5B,qBAAqB;AACrB,MAAM;AAEN,+BAA+B;AAC/B,mCAAmC;AACnC,+BAA+B;AAC/B,0BAA0B;AAC1B,qCAAqC;AAGrC,gBAAgB;AAChB,0BAA0B;AAE1B,MAAM;AAEN,8BAA8B;AAC9B,4BAA4B;AAC5B,wFAAwF;AACxF,MAAM;AAEN,wGAAwG;AACxG,4CAA4C;AAC5C,gCAAgC;AAChC,SAAS;AAET,cAAc;AACd,2BAA2B;AAC3B,MAAM;AACN,IAAI;AAEJ,0BAA0B;AAE1B,IAAI;AAEJ,qBAAqB;AAErB,cAAc;AACd,qDAAqD;AAErD,cAAc;AACd,mBAAmB;AAEnB,QAAQ;AAER,8BAA8B;AAE9B,0BAA0B;AAC1B,0CAA0C;AAC1C,+BAA+B;AAC/B,0CAA0C;AAC1C,gDAAgD;AAChD,WAAW;AACX,MAAM;AAEN,IAAI","file":"","sourceRoot":"/","sourcesContent":["\n// import ViewBase from \"../../../common/classbase/ViewBase\";\n// import { UIManager } from \"../../../common/gameplay/managers/UIManager\";\n\n// const { ccclass, property } = cc._decorator;\n\n// export abstract class BaseCcComponent extends ViewBase implements BasePrefabNode {\n// getNode = () => super.node\n\n// registerEvent(action: \"onOpen\" | \"onClose\" | \"onShow\" | \"onHide\", handler: (target?: any) => void) {\n// throw new Error(\"Method not implemented.\");\n// }\n\n// abstract load()\n\n// }\n\n// export interface BasePrefabNode {\n\n// onLoad()\n// onOpen(param?: any)\n// onClose()\n// onShow()\n// onHide()\n\n// load()\n// getNode: () => cc.Node\n// registerEvent(action: \"onOpen\" | \"onClose\" | \"onShow\" | \"onHide\", handler: (target?: any) => void): void\n\n// }\n\n\n// //////////////////////////////////////////\n\n// export interface ListPrefabNode extends BasePrefabNode {\n\n// addItem(item: ListItem)\n// }\n\n\n// /**\n// * 一个List里有什么?\n// * * title\n// */\n// export class ListCcComponent extends BaseCcComponent implements ListPrefabNode {\n\n// static prefabPath = \"prefab/ui/list/ListView\";\n\n// @property({ type: cc.Layout })\n// private contentLayout?: cc.Layout = undefined;\n\n// private _loading = false;\n\n\n// load(){\n// let a: any = \"jjk\"\n// let b: string = a as string\n\n// }\n// addItem(item: ListItem){\n \n// }\n\n// onOpen(sceneId: number) {\n// super.onOpen();\n// this._loading = true;\n// // this.disposable.add(this._viewModel.LoadPlotList.on(this.loadChatBubbleList));\n// }\n\n// // loadChatBubbleList = async (plots: ((ReadonlyPlot & { selection?: number }) | \"history\")[]) => {\n// // this.scrollView!.scrollToBottom();\n// // this._loading = false;\n// // }\n\n// close() {\n// UIManager.popView();\n// }\n\n// }\n\n// /**\n// * ListItem <| --- ChatBubble, MessageEntry\n// * * 展示第一页: function initLoad(..)\n// * * 获取下一页并展示: function loadMore(..)\n// * * 操作某一个item(点击,拖放,点击特定区域): actions\n// * * initLoading: bool\n// * * loading: bool\n// * * data: []\n// * * items: ListItem[]\n// * * itemType: string\n// */\n// export default class List {\n\n// constructor(\n// data: any[],\n// itemType: string,\n// prefab: ListPrefabNode,\n// initLoading = true,\n// loading = false,\n// ) {\n// this._data = data;\n// this._itemType = itemType;\n// this._initLoading = initLoading;\n// this._loading = loading;\n// this._prefab = prefab\n// this.refresh()\n// }\n\n// private _loading: boolean;\n// private _initLoading: boolean;\n// private _itemType: string;\n// private _data: any[];\n// private _prefab: ListPrefabNode;\n\n\n// refresh() {\n// this._prefab.load()\n\n// }\n\n// onOpen(sceneId: number) {\n// this._loading = true;\n// // this.disposable.add(this._viewModel.LoadPlotList.on(this.loadChatBubbleList));\n// }\n\n// // loadChatBubbleList = async (plots: ((ReadonlyPlot & { selection?: number }) | \"history\")[]) => {\n// // this.scrollView!.scrollToBottom();\n// // this._loading = false;\n// // }\n\n// close() {\n// UIManager.popView();\n// }\n// }\n\n// export class ListItem {\n\n// }\n\n// class TestScript {\n\n// test1() {\n// //假设这里是某个入口点击后的command function(in xxxmanager)\n\n// //先去取数据\n// let data = [\n\n// ]\n\n// //取到数据后,创建view并灌入初始数据列表\n\n// //创建ListCcComponent\n// UIManager.pushView(ListCcComponent)\n// .then((component) => {\n// //新建List,绑定ListCcComponent,并初始化\n// new List(data, \"itemType\", component)\n// })\n// }\n\n// }"]}
\ No newline at end of file
"use strict";
cc._RF.push(module, '90bf7LW2mtPuJVMl5PWqjXC', 'ChatListView1');
// script/game/ui/list/ChatListView1.ts
// import {ListCcComponent, ListPrefabNode, ListItem} from "./ListView";
// const { ccclass, property } = cc._decorator;
// export interface ChatListPrefabNode extends ListPrefabNode{
// }
// export const Node_NA = new cc.Node()
// /**
// * 一个ChatList有什么?
// * * 导航条
// * * 返回按钮 => BackEvent
// * * title
// * * 列表项是Plot类型,有多种子类Text, Audio, Image, Video
// * * addItem(item: Item)
// * * Item Type
// *
// */
// export class ChatListCcComponent extends ListCcComponent implements ChatListPrefabNode{
// @property({ type: cc.Prefab })
// private historySeparator?: cc.Prefab = undefined;
// @property({ type: cc.Prefab })
// private endSeparator?: cc.Prefab = undefined;
// // @property({ type: cc.ScrollView })
// // private scrollView?: cc.ScrollView = undefined;
// addItem(item: ListItem){
// super.addItem(item)
// }
// }
// // interface NominalTypeSupported{
// // nominalName: string
// // }
// /**
// // * decorate the item
// // */
// // export interface PreDisplay {
// // __typeId: string;
// // displayTyping: true;
// // inputtingNode: cc.Node;
// // /*
// // @property({ type: cc.Node })
// // private inputtingNode: cc.Node = Node_NA;
// // displayTyping: true
// // */
// // }
// // export let PreDisplay = createTypeId<PreDisplay>("PreDisplay")
// /**
// * 这个Plot有选项需要选择,
// * Item <>--- NeedSelect
// */
// export interface NeedSelect{
// needSelect: true
// plotId: number
// }
// export interface DisplayTyping {
// }
cc._RF.pop();
\ No newline at end of file
{"version":3,"sources":["assets/script/game/ui/list/ChatListView1.ts"],"names":[],"mappings":";;;;AAAA,wEAAwE;AAExE,+CAA+C;AAE/C,8DAA8D;AAE9D,IAAI;AAEJ,uCAAuC;AAEvC,MAAM;AACN,oBAAoB;AACpB,WAAW;AACX,2BAA2B;AAC3B,eAAe;AACf,iDAAiD;AACjD,6BAA6B;AAC7B,sBAAsB;AACtB,MAAM;AACN,MAAM;AACN,0FAA0F;AAE1F,mCAAmC;AACnC,sDAAsD;AACtD,mCAAmC;AACnC,kDAAkD;AAElD,0CAA0C;AAC1C,uDAAuD;AAEvD,6BAA6B;AAC7B,0BAA0B;AAE1B,MAAM;AAEN,IAAI;AAEJ,qCAAqC;AACrC,2BAA2B;AAC3B,OAAO;AAEP,MAAM;AACN,0BAA0B;AAC1B,SAAS;AACT,mCAAmC;AACnC,yBAAyB;AACzB,4BAA4B;AAC5B,+BAA+B;AAC/B,UAAU;AACV,sCAAsC;AACtC,iDAAiD;AACjD,2BAA2B;AAC3B,QAAQ;AACR,OAAO;AACP,oEAAoE;AAGpE,MAAM;AACN,oBAAoB;AACpB,2BAA2B;AAC3B,MAAM;AACN,+BAA+B;AAC/B,qBAAqB;AACrB,mBAAmB;AACnB,IAAI;AAEJ,mCAAmC;AAEnC,IAAI","file":"","sourceRoot":"/","sourcesContent":["// import {ListCcComponent, ListPrefabNode, ListItem} from \"./ListView\";\n\n// const { ccclass, property } = cc._decorator;\n\n// export interface ChatListPrefabNode extends ListPrefabNode{\n\n// }\n\n// export const Node_NA = new cc.Node()\n\n// /**\n// * 一个ChatList有什么?\n// * * 导航条\n// * * 返回按钮 => BackEvent\n// * * title\n// * * 列表项是Plot类型,有多种子类Text, Audio, Image, Video\n// * * addItem(item: Item)\n// * * Item Type \n// * \n// */\n// export class ChatListCcComponent extends ListCcComponent implements ChatListPrefabNode{\n\n// @property({ type: cc.Prefab })\n// private historySeparator?: cc.Prefab = undefined;\n// @property({ type: cc.Prefab })\n// private endSeparator?: cc.Prefab = undefined;\n\n// // @property({ type: cc.ScrollView })\n// // private scrollView?: cc.ScrollView = undefined;\n\n// addItem(item: ListItem){\n// super.addItem(item)\n \n// }\n\n// }\n\n// // interface NominalTypeSupported{\n// // nominalName: string\n// // }\n\n// /**\n// // * decorate the item\n// // */\n// // export interface PreDisplay {\n// // __typeId: string;\n// // displayTyping: true;\n// // inputtingNode: cc.Node;\n// // /*\n// // @property({ type: cc.Node })\n// // private inputtingNode: cc.Node = Node_NA;\n// // displayTyping: true\n// // */\n// // }\n// // export let PreDisplay = createTypeId<PreDisplay>(\"PreDisplay\")\n\n\n// /**\n// * 这个Plot有选项需要选择,\n// * Item <>--- NeedSelect\n// */\n// export interface NeedSelect{\n// needSelect: true\n// plotId: number\n// }\n\n// export interface DisplayTyping {\n\n// }"]}
\ No newline at end of file
......@@ -5794,21 +5794,6 @@
"meta": 1643274500219,
"relativePath": "script/game/ui/ItemFix.ts"
},
"cf6c6be3-47cb-44d5-8719-3b5470833e69": {
"asset": 1643274457919,
"meta": 1643274500220,
"relativePath": "script/game/ui/list"
},
"90bf72d6-da6b-4fb8-954c-9793d6aa35c2": {
"asset": 1643274457918,
"meta": 1643274500224,
"relativePath": "script/game/ui/list/ChatListView1.ts"
},
"03357ae2-014b-4fbc-9e33-732660b4a4e7": {
"asset": 1643274457919,
"meta": 1643274500231,
"relativePath": "script/game/ui/list/ListView1.ts"
},
"d59833e1-96c9-405b-94f4-1350b685cca0": {
"asset": 1643274457906,
"meta": 1643274500240,
......
......@@ -118,8 +118,6 @@ require('./assets/script/game/ui/baseview/ListView');
require('./assets/script/game/ui/baseview/impl/ListItemImpl');
require('./assets/script/game/ui/baseview/impl/ListSubviewImpl');
require('./assets/script/game/ui/baseview/impl/ListViewImpl');
require('./assets/script/game/ui/list/ChatListView1');
require('./assets/script/game/ui/list/ListView1');
require('./assets/script/game/ui/presenter/AlertDialogViewPresenter');
require('./assets/script/game/ui/presenter/ChatListViewPresenter');
require('./assets/script/game/ui/presenter/DatingEventViewPresenter');
......
This diff could not be displayed because it is too large.
(function() {
var nodeEnv = typeof require !== 'undefined' && typeof process !== 'undefined';
var __module = nodeEnv ? module : {exports:{}};
var __filename = 'preview-scripts/assets/script/game/ui/list/ChatListView1.js';
var __require = nodeEnv ? function (request) {
return cc.require(request);
} : function (request) {
return __quick_compile_project__.require(request, __filename);
};
function __define (exports, require, module) {
if (!nodeEnv) {__quick_compile_project__.registerModule(__filename, module);}"use strict";
cc._RF.push(module, '90bf7LW2mtPuJVMl5PWqjXC', 'ChatListView1');
// script/game/ui/list/ChatListView1.ts
// import {ListCcComponent, ListPrefabNode, ListItem} from "./ListView";
// const { ccclass, property } = cc._decorator;
// export interface ChatListPrefabNode extends ListPrefabNode{
// }
// export const Node_NA = new cc.Node()
// /**
// * 一个ChatList有什么?
// * * 导航条
// * * 返回按钮 => BackEvent
// * * title
// * * 列表项是Plot类型,有多种子类Text, Audio, Image, Video
// * * addItem(item: Item)
// * * Item Type
// *
// */
// export class ChatListCcComponent extends ListCcComponent implements ChatListPrefabNode{
// @property({ type: cc.Prefab })
// private historySeparator?: cc.Prefab = undefined;
// @property({ type: cc.Prefab })
// private endSeparator?: cc.Prefab = undefined;
// // @property({ type: cc.ScrollView })
// // private scrollView?: cc.ScrollView = undefined;
// addItem(item: ListItem){
// super.addItem(item)
// }
// }
// // interface NominalTypeSupported{
// // nominalName: string
// // }
// /**
// // * decorate the item
// // */
// // export interface PreDisplay {
// // __typeId: string;
// // displayTyping: true;
// // inputtingNode: cc.Node;
// // /*
// // @property({ type: cc.Node })
// // private inputtingNode: cc.Node = Node_NA;
// // displayTyping: true
// // */
// // }
// // export let PreDisplay = createTypeId<PreDisplay>("PreDisplay")
// /**
// * 这个Plot有选项需要选择,
// * Item <>--- NeedSelect
// */
// export interface NeedSelect{
// needSelect: true
// plotId: number
// }
// export interface DisplayTyping {
// }
cc._RF.pop();
}
if (nodeEnv) {
__define(__module.exports, __require, __module);
}
else {
__quick_compile_project__.registerModuleFunc(__filename, function () {
__define(__module.exports, __require, __module);
});
}
})();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzc2V0cy9zY3JpcHQvZ2FtZS91aS9saXN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Bpbmcge1xuXG4vLyB9Il19
\ No newline at end of file
......@@ -107,8 +107,6 @@ require('./assets/script/game/ui/baseview/ListView');
require('./assets/script/game/ui/baseview/impl/ListItemImpl');
require('./assets/script/game/ui/baseview/impl/ListSubviewImpl');
require('./assets/script/game/ui/baseview/impl/ListViewImpl');
require('./assets/script/game/ui/list/ChatListView1');
require('./assets/script/game/ui/list/ListView1');
require('./assets/script/game/ui/presenter/AlertDialogViewPresenter');
require('./assets/script/game/ui/presenter/ChatListViewPresenter');
require('./assets/script/game/ui/presenter/DatingEventViewPresenter');
......
"use strict";
cc._RF.push(module, '90bf7LW2mtPuJVMl5PWqjXC', 'ChatListView1');
// script/game/ui/list/ChatListView1.ts
// import {ListCcComponent, ListPrefabNode, ListItem} from "./ListView";
// const { ccclass, property } = cc._decorator;
// export interface ChatListPrefabNode extends ListPrefabNode{
// }
// export const Node_NA = new cc.Node()
// /**
// * 一个ChatList有什么?
// * * 导航条
// * * 返回按钮 => BackEvent
// * * title
// * * 列表项是Plot类型,有多种子类Text, Audio, Image, Video
// * * addItem(item: Item)
// * * Item Type
// *
// */
// export class ChatListCcComponent extends ListCcComponent implements ChatListPrefabNode{
// @property({ type: cc.Prefab })
// private historySeparator?: cc.Prefab = undefined;
// @property({ type: cc.Prefab })
// private endSeparator?: cc.Prefab = undefined;
// // @property({ type: cc.ScrollView })
// // private scrollView?: cc.ScrollView = undefined;
// addItem(item: ListItem){
// super.addItem(item)
// }
// }
// // interface NominalTypeSupported{
// // nominalName: string
// // }
// /**
// // * decorate the item
// // */
// // export interface PreDisplay {
// // __typeId: string;
// // displayTyping: true;
// // inputtingNode: cc.Node;
// // /*
// // @property({ type: cc.Node })
// // private inputtingNode: cc.Node = Node_NA;
// // displayTyping: true
// // */
// // }
// // export let PreDisplay = createTypeId<PreDisplay>("PreDisplay")
// /**
// * 这个Plot有选项需要选择,
// * Item <>--- NeedSelect
// */
// export interface NeedSelect{
// needSelect: true
// plotId: number
// }
// export interface DisplayTyping {
// }
cc._RF.pop();
\ No newline at end of file
"use strict";
cc._RF.push(module, '03357riAUtPvJ4zcyZgtKTn', 'ListView1');
// script/game/ui/list/ListView1.ts
// import ViewBase from "../../../common/classbase/ViewBase";
// import { UIManager } from "../../../common/gameplay/managers/UIManager";
// const { ccclass, property } = cc._decorator;
// export abstract class BaseCcComponent extends ViewBase implements BasePrefabNode {
// getNode = () => super.node
// registerEvent(action: "onOpen" | "onClose" | "onShow" | "onHide", handler: (target?: any) => void) {
// throw new Error("Method not implemented.");
// }
// abstract load()
// }
// export interface BasePrefabNode {
// onLoad()
// onOpen(param?: any)
// onClose()
// onShow()
// onHide()
// load()
// getNode: () => cc.Node
// registerEvent(action: "onOpen" | "onClose" | "onShow" | "onHide", handler: (target?: any) => void): void
// }
// //////////////////////////////////////////
// export interface ListPrefabNode extends BasePrefabNode {
// addItem(item: ListItem)
// }
// /**
// * 一个List里有什么?
// * * title
// */
// export class ListCcComponent extends BaseCcComponent implements ListPrefabNode {
// static prefabPath = "prefab/ui/list/ListView";
// @property({ type: cc.Layout })
// private contentLayout?: cc.Layout = undefined;
// private _loading = false;
// load(){
// let a: any = "jjk"
// let b: string = a as string
// }
// addItem(item: ListItem){
// }
// onOpen(sceneId: number) {
// super.onOpen();
// this._loading = true;
// // this.disposable.add(this._viewModel.LoadPlotList.on(this.loadChatBubbleList));
// }
// // loadChatBubbleList = async (plots: ((ReadonlyPlot & { selection?: number }) | "history")[]) => {
// // this.scrollView!.scrollToBottom();
// // this._loading = false;
// // }
// close() {
// UIManager.popView();
// }
// }
// /**
// * ListItem <| --- ChatBubble, MessageEntry
// * * 展示第一页: function initLoad(..)
// * * 获取下一页并展示: function loadMore(..)
// * * 操作某一个item(点击,拖放,点击特定区域): actions
// * * initLoading: bool
// * * loading: bool
// * * data: []
// * * items: ListItem[]
// * * itemType: string
// */
// export default class List {
// constructor(
// data: any[],
// itemType: string,
// prefab: ListPrefabNode,
// initLoading = true,
// loading = false,
// ) {
// this._data = data;
// this._itemType = itemType;
// this._initLoading = initLoading;
// this._loading = loading;
// this._prefab = prefab
// this.refresh()
// }
// private _loading: boolean;
// private _initLoading: boolean;
// private _itemType: string;
// private _data: any[];
// private _prefab: ListPrefabNode;
// refresh() {
// this._prefab.load()
// }
// onOpen(sceneId: number) {
// this._loading = true;
// // this.disposable.add(this._viewModel.LoadPlotList.on(this.loadChatBubbleList));
// }
// // loadChatBubbleList = async (plots: ((ReadonlyPlot & { selection?: number }) | "history")[]) => {
// // this.scrollView!.scrollToBottom();
// // this._loading = false;
// // }
// close() {
// UIManager.popView();
// }
// }
// export class ListItem {
// }
// class TestScript {
// test1() {
// //假设这里是某个入口点击后的command function(in xxxmanager)
// //先去取数据
// let data = [
// ]
// //取到数据后,创建view并灌入初始数据列表
// //创建ListCcComponent
// UIManager.pushView(ListCcComponent)
// .then((component) => {
// //新建List,绑定ListCcComponent,并初始化
// new List(data, "itemType", component)
// })
// }
// }
cc._RF.pop();
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!