46 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| /*
 | |
| 文件名:4_PersonalInfo.nut
 | |
| 路径:User/UI/Window/4_Personalinfo/4_PersonalInfo.nut
 | |
| 创建日期:2025-01-09	13:55
 | |
| 文件用途: 个人信息窗口
 | |
| */
 | |
| 
 | |
| // local infoWindow = Sq_CreateWindow(_PersonalInfo, "个人信息窗口", 250, 60, 286, 530, 20);
 | |
| class _PersonalInfo extends Yosin_Window {
 | |
| 
 | |
| 
 | |
|     constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH) {
 | |
|         base.constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH);
 | |
| 
 | |
|         local title = Yosin_TopTitle(gWidth, gHeight, "个人信息(M)");
 | |
|         AddUIChild(title);
 | |
| 
 | |
|         //注册控件
 | |
|         RegisterWidget();
 | |
|     }
 | |
| 
 | |
|     function RegisterWidget() {
 | |
| 
 | |
|         // 标题按钮
 | |
|         local titlesBtn = Yosin_RowMoreTitleBtn(10, 25, 266, ["角色", "装扮/宠物", "护石"], "sprite/interface/lenheartwindowcommon.img", 160);
 | |
|         AddUIChild(titlesBtn);
 | |
| 
 | |
|         titlesBtn.LBDownOnClick = function(btns, index) {
 | |
|         };
 | |
| 
 | |
|         // 角色信息
 | |
|         local roleInfo = roleInfoPage(10, titlesBtn.bottom() + 2 );
 | |
|         AddUIChild(roleInfo);
 | |
|     }
 | |
| 
 | |
| 
 | |
| 
 | |
|     //逻辑入口
 | |
|     function Proc(Dt) {
 | |
|         SyncPos(X, Y);
 | |
|         base.Proc(Dt);
 | |
|     }
 | |
| 
 | |
| }
 | |
| 
 |