⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cscriptmanager.cpp

📁 墨香完整原代码 C++ 值得研究 可以编译
💻 CPP
📖 第 1 页 / 共 5 页
字号:
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_DIALOG)
		cDialog * win = (cDialog *)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		//dlg->Init(point.x, point.y, point.w, point.h, &BasicImage, MT_IDSEARCH(IDName));
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_TABDIALOG)
		cTabDialog * win = (cTabDialog *)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_CHATDIALOG)
		CChatDialog * win = (CChatDialog *)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);		
	BREAK
	CASE(WT_ICONDIALOG)
		cIconDialog * win = (cIconDialog *)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		//win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		win->SetIconCellBGImage(&selectedBGImage);
		win->SetDragOverBGImage(&dragoverBGImage);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_WEAREDDIALOG)
		CWearedExDialog * win = (CWearedExDialog *)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		//win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		win->SetIconCellBGImage(&selectedBGImage);
		win->SetDragOverBGImage(&dragoverBGImage);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_ICONGRIDDIALOG)
		cIconGridDialog * win = (cIconGridDialog *)wnd;
		win->SetValidXY(validXY.x,validXY.y);	
		//dlg->Init(point.x, point.y, point.w, point.h, &BasicImage, MT_IDSEARCH(IDName));
		win->InitDialog(point.x, point.y, point.w, point.h, &BasicImage, cols, rows, IDSEARCH(IDName));
		//win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->InitGrid(gridPos.x,gridPos.y,gridPos.w,gridPos.h,gridBorderX,gridBorderY);
		win->SetAlpha(alphaDepth);
		win->SetIconCellBGImage(&selectedBGImage);
		win->SetDragOverBGImage(&dragoverBGImage);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_MONSTERGUAGEDLG)
		cDialog * win = (cDialog *)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		//dlg->Init(point.x, point.y, point.w, point.h, &BasicImage, MT_IDSEARCH(IDName));
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_MUNPAWAREICONGRIDDIALOG)
		CMunpaWareIconGridDialog * win = (CMunpaWareIconGridDialog *)wnd;
		win->SetValidXY(validXY.x,validXY.y);	
		//dlg->Init(point.x, point.y, point.w, point.h, &BasicImage, MT_IDSEARCH(IDName));
		win->InitDialog(point.x, point.y, point.w, point.h, &BasicImage, cols, rows, IDSEARCH(IDName));
		win->InitGrid(gridPos.x,gridPos.y,gridPos.w,gridPos.h,gridBorderX,gridBorderY);
		win->SetAlpha(alphaDepth);
		win->SetIconCellBGImage(&selectedBGImage);
		win->SetDragOverBGImage(&dragoverBGImage);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK

	CASE(WT_QUICKDIALOG)
		CQuickDialog * win = (CQuickDialog *)wnd;
		win->SetValidXY(validXY.x,validXY.y);		
		//dlg->Init(point.x, point.y, point.w, point.h, &BasicImage, MT_IDSEARCH(IDName));
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		//win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_CHARINFODIALOG)
		CCharacterDialog * win = (CCharacterDialog *)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_MUGONGSURYUNDIALOG)
		CMugongSuryunDialog * win = (CMugongSuryunDialog *)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		win->SetActive(fActive);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_MUGONGDIALOG)
		CMugongDialog * win = (CMugongDialog *)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		win->SetIconCellBGImage(&selectedBGImage);
		win->SetDragOverBGImage(&dragoverBGImage);
		win->SetActive(fActive);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_SURYUNDIALOG)
		CSuryunDialog * win = (CSuryunDialog *)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		win->SetActive(fActive);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_MAINDIALOG)
		CMugongDialog * win = (CMugongDialog *)wnd;	
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_INVENTORYDIALOG)
		CInventoryExDialog * win = (CInventoryExDialog *)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		//win->InitDialog(point.x, point.y, point.w, point.h, &BasicImage, cols, rows, IDSEARCH(IDName));
		//win->InitItemGrid(eItemGrid_Inventory,MAX_INVENTORY_NUM);
		win->SetMovable(fMovable);
		//win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName))
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_HELPERSPEECHDIALOG)
		cHelperSpeechDlg* win = (cHelperSpeechDlg*)wnd;
		win->SetValidXY(validXY.x, validXY.y);
		win->Init(point.x, point.y, point.w, point.h, listMaxHeight, IDSEARCH(IDName) );
		win->Linking();
		win->InitBalloon( &BalloonImage[0], &BalloonImage[2], &BalloonImage[6], &BalloonImage[8], &BalloonImage[3],
			   &BalloonImage[5], &BalloonImage[1], &BalloonImage[7], &BalloonImage[4], &BalloonImage[9], BalloonBorder);
		win->SetTextRect(&textRect);
		win->SetCaptionRect(&captionRect);
		win->SetMovable(fMovable);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_STREETSTALLDIALOG)
		CStreetStall * win = (CStreetStall *)wnd;	
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		//win->InitDialog(point.x, point.y, point.w, point.h, &BasicImage, cols, rows, IDSEARCH(IDName));
		//win->InitItemGrid(eItemGrid_Inventory,MAX_INVENTORY_NUM);
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_NPCSCRIPDIALOG)
		cNpcScriptDialog * win = (cNpcScriptDialog *)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		//win->InitDialog(point.x, point.y, point.w, point.h, pBasicImage, cols, rows, IDSEARCH(IDName));
		//win->InitItemGrid(eItemGrid_Inventory,MAX_INVENTORY_NUM);
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_HELPDIALOG)
		cHelpDialog * win = (cHelpDialog *)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		//win->InitDialog(point.x, point.y, point.w, point.h, pBasicImage, cols, rows, IDSEARCH(IDName));
		//win->InitItemGrid(eItemGrid_Inventory,MAX_INVENTORY_NUM);
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_MONEYDIALOG)
		CMoneyDlg * win = (CMoneyDlg *)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_DEALDIALOG)
		CDealDialog * win = (CDealDialog *)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		//win->InitDialog(point.x, point.y, point.w, point.h, &BasicImage, cols, rows, IDSEARCH(IDName));
		//win->InitItemGrid(eItemGrid_Inventory,MAX_INVENTORY_NUM);
		win->SetMovable(fMovable);
		//win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName))
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_MUNPALISTDLG)
		CMunpaListDialog * win = (CMunpaListDialog*)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);

	BREAK
	CASE(WT_MUNPADLG)
		CMunpaDialog * win = (CMunpaDialog *)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_MUNPACREATEDLG)
		CMunpaCreateDialog * win = (CMunpaCreateDialog *)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_MUNPAMARKDLG)
		CMunpaMarkDialog * win = (CMunpaMarkDialog*)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_MUNPAWAREHOUSEDLG)
		CMunpaWarehouseDialog * win = (CMunpaWarehouseDialog*)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_PYOGUKDLG)
		CPyogukDialog * win = (CPyogukDialog*)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK		
	CASE(WT_NOTEDLG)
		CNoteDialog * win = (CNoteDialog*)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK		
	CASE(WT_MININOTEDLG)
		CMiniNoteDialog * win = (CMiniNoteDialog*)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_FRIENDDLG)
		CFriendDialog * win = (CFriendDialog*)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK		
	CASE(WT_MINIFRIENDDLG)
		CMiniFriendDialog * win = (CMiniFriendDialog*)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK		
	CASE(WT_WANTNPCDIALOG)
		CWantNpcDialog * win = (CWantNpcDialog*)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		win->SetActive(fActive);		
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);

	BREAK
	CASE(WT_WANTREGISTDIALOG)
		CWantRegistDialog * win = (CWantRegistDialog*)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		win->SetActive(fActive);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);

	BREAK
	CASE(WT_QUESTTOTALDIALOG)
		CQuestTotalDialog * win = (CQuestTotalDialog*)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(point.x, point.y, point.w, point.h, &BasicImage, IDSEARCH(IDName));
		win->SetMovable(fMovable);
		win->SetCaptionRect(&captionRect);
		win->SetAlpha(alphaDepth);
		win->SetActive(fActive);
		if(-1 != FUNCSEARCH(funcName))
			win->SetcbFunc(g_mt_func[FUNCSEARCH(funcName)]._func);
	BREAK
	CASE(WT_QUESTDIALOG)
		CQuestDialog * win = (CQuestDialog*)wnd;
		win->SetValidXY(validXY.x,validXY.y);
		win->Init(poi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -