72 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			72 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
|  | /* | ||
|  | 文件名:FiendwarHallCreateParty.nut | ||
|  | 路径:Plugins/Fiendwar/FiendwarHallCreateParty.nut | ||
|  | 创建日期:2024-03-18	13:20 | ||
|  | 文件用途: | ||
|  | */ | ||
|  | 
 | ||
|  | 
 | ||
|  | class FiendwarHallCreatePartyC extends LenheartNewUI_Windows { | ||
|  |     //调试模式 | ||
|  |     DeBugMode = false; | ||
|  | 
 | ||
|  |     X = 290; | ||
|  |     Y = 220; | ||
|  |     //输入框 | ||
|  |     InputObject = null; | ||
|  | 
 | ||
|  |     constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH) { | ||
|  |         Childrens = []; | ||
|  |         local OkButton = LenheartNewUI_ButtonText(78, 124, 5, "确定"); | ||
|  |         OkButton.SetTextOffset(0, 1); | ||
|  |         OkButton.OnClick = function() { | ||
|  |             if (InputObject.str.len() > 0) { | ||
|  |                 local T = { | ||
|  |                     op = 20063001, | ||
|  |                     teamsName = InputObject.str, | ||
|  |                     items = [L_sq_GetCharacterAttribute(0x1c, 21), L_sq_GetCharacterAttribute(0x1c, 15), L_sq_GetCharacterAttribute(0x1c, 14), L_sq_GetCharacterAttribute(0x1c, 13)], | ||
|  |                 } | ||
|  |                 BasicsDrawTool.SendPackEx(T); | ||
|  |                 this.Visible = false; | ||
|  |             } | ||
|  |         }.bindenv(this); | ||
|  |         Childrens.append(OkButton); | ||
|  | 
 | ||
|  |         local CloseButton = LenheartNewUI_ButtonText(144, 124, 5, "取消"); | ||
|  |         CloseButton.SetTextOffset(0, 1); | ||
|  |         CloseButton.OnClick = function() { | ||
|  |             this.Visible = false; | ||
|  |         }.bindenv(this); | ||
|  |         Childrens.append(CloseButton); | ||
|  | 
 | ||
|  |         InputObject = LenheartNewUI_BaseInput(62, 68, 152, 20); | ||
|  |         Childrens.append(InputObject); | ||
|  | 
 | ||
|  |         LenheartNewUI_Windows.constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH); | ||
|  |     } | ||
|  | 
 | ||
|  |     //绘制主界面 | ||
|  |     function DrawMain(obj) { | ||
|  |         L_sq_DrawWindow(X, Y + 10, 260, 120, "interface/lenheartwindowcommon.img", 213, 12, 2, 13, 2); | ||
|  |         L_sq_DrawWindow(X, Y + 10, 260, 120, "interface/lenheartwindowcommon.img", 213, 12, 2, 13, 2); | ||
|  |         L_sq_DrawImg("interface2/gcontents/180621_fiendwar/raid/raid_areaimg_fiend.img", 0, X + 11, Y + 21); | ||
|  | 
 | ||
|  |         L_sq_DrawImg("hud/fiendwarl.img", 9, X - 2, Y + 2); | ||
|  |         L_sq_DrawCode("创建攻坚队", X + 112, Y + 3, sq_RGBA(179, 169, 135, 255), 0, 1); | ||
|  | 
 | ||
|  |         L_sq_DrawImg("hud/fiendwarl.img", 10, X + 72, Y + 44); | ||
|  | 
 | ||
|  |     } | ||
|  | 
 | ||
|  | 
 | ||
|  |     function Show(obj) { | ||
|  |         DrawMain(obj); | ||
|  |         LenheartNewUI_Windows.Show(obj); | ||
|  |     } | ||
|  | 
 | ||
|  |     //逻辑入口 | ||
|  |     function Proc(obj) { | ||
|  |         LenheartNewUI_Windows.SyncPos(X, Y); | ||
|  |     } | ||
|  | 
 | ||
|  | } |