Flyff

源码添加可拖拽大小背包【3】

2018-5-6 09:07 | 发布者: admin

~ modify in WndField.cpp
Code:
    refreshItemRects();
= replacing
Code:
	LPWNDCTRL lpWndCtrl1 = GetWndCtrl( WIDC_CUSTOM1 );
	LPWNDCTRL lpWndCtrl2 = GetWndCtrl( WIDC_CUSTOM2 );
	LPWNDCTRL lpWndCtrl3 = GetWndCtrl(WIDC_CUSTOM3);
	LPWNDCTRL lpWndCtrl4 = GetWndCtrl(WIDC_CUSTOM4);
	LPWNDCTRL lpWndCtrl5 = GetWndCtrl(WIDC_CUSTOM5);
	LPWNDCTRL lpWndCtrl6 = GetWndCtrl(WIDC_CUSTOM6);
	LPWNDCTRL lpWndCtrl7 = GetWndCtrl(WIDC_CUSTOM7);
	LPWNDCTRL lpWndCtrl8 = GetWndCtrl(WIDC_CUSTOM8);
	LPWNDCTRL lpWndCtrl9 = GetWndCtrl(WIDC_CUSTOM9);
	LPWNDCTRL lpWndCtrl10 = GetWndCtrl(WIDC_CUSTOM10);

	m_InvenRect[6] = m_InvenRect[14] = lpWndCtrl1->rect;
	m_InvenRect[2] = m_InvenRect[15] = lpWndCtrl2->rect;
	m_InvenRect[4] = m_InvenRect[17] = lpWndCtrl3->rect;
	m_InvenRect[5] = m_InvenRect[18] = lpWndCtrl4->rect;

	m_InvenRect[10] = lpWndCtrl5->rect;
	m_InvenRect[9] = m_InvenRect[11] = lpWndCtrl6->rect;
	m_InvenRect[25] = lpWndCtrl7->rect;
	m_InvenRect[8] = lpWndCtrl8->rect;
	m_InvenRect[12] = lpWndCtrl9->rect;
	m_InvenRect[13] = lpWndCtrl10->rect;

	lpWndCtrl1 = GetWndCtrl(WIDC_CUSTOM11);
	lpWndCtrl2 = GetWndCtrl(WIDC_CUSTOM12);
	lpWndCtrl3 = GetWndCtrl(WIDC_CUSTOM13);
	lpWndCtrl4 = GetWndCtrl(WIDC_CUSTOM14);
	lpWndCtrl5 = GetWndCtrl(WIDC_CUSTOM15);
	lpWndCtrl6 = GetWndCtrl(WIDC_CUSTOM16);
	lpWndCtrl7 = GetWndCtrl(WIDC_CUSTOM17);
	lpWndCtrl8 = GetWndCtrl(WIDC_CUSTOM18);
	lpWndCtrl9 = GetWndCtrl(WIDC_CUSTOM19);

	m_InvenRect[20] = lpWndCtrl1->rect;
	m_InvenRect[22] = lpWndCtrl2->rect;
	m_InvenRect[19] = lpWndCtrl3->rect;
	m_InvenRect[23] = lpWndCtrl4->rect;
	m_InvenRect[21] = lpWndCtrl5->rect;

	m_InvenRect[26] = lpWndCtrl6->rect;
	m_InvenRect[27] = lpWndCtrl7->rect;
	m_InvenRect[28] = lpWndCtrl8->rect;
	m_InvenRect[29] = lpWndCtrl9->rect;
发布者: admin

老飞飞收集站  

GMT+8, 2019-9-23 08:58 , Processed in 1.093757 second(s), 7 queries , File On.

Copyright © 2018和平玩家

Powered by 作死联萌! ZSLM!

返回顶部