11
This commit is contained in:
58
Project/HorseGuessing/HorseGuessing_Guide.nut
Normal file
58
Project/HorseGuessing/HorseGuessing_Guide.nut
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
文件名:HorseGuessing_Guide.nut
|
||||
路径:Project/HorseGuessing/HorseGuessing_Guide.nut
|
||||
创建日期:2024-09-25 20:50
|
||||
文件用途:骑士马战指引窗口
|
||||
*/
|
||||
class HorseGuessing_GuideC extends LenheartNewUI_Windows {
|
||||
//调试模式
|
||||
// DeBugMode = true;
|
||||
|
||||
//不是窗口
|
||||
// NoWindow = true;
|
||||
|
||||
//是否可见
|
||||
// Visible = false;
|
||||
constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH) {
|
||||
Childrens = [];
|
||||
//注册控件
|
||||
RegisterWidget();
|
||||
|
||||
LenheartNewUI_Windows.constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH);
|
||||
}
|
||||
|
||||
function RegisterWidget() {}
|
||||
|
||||
//绘制主界面
|
||||
function DrawMain(obj) {
|
||||
L_sq_DrawImg("interface2/event/chn_event_2016/160927_joustmatches/joustmatches_info_window.img", 0, X, Y);
|
||||
}
|
||||
|
||||
function Show(obj) {
|
||||
DrawMain(obj);
|
||||
LenheartNewUI_Windows.Show(obj);
|
||||
|
||||
}
|
||||
|
||||
//逻辑入口
|
||||
function Proc(obj) {
|
||||
LenheartNewUI_Windows.SyncPos(X - 7, Y - 50);
|
||||
|
||||
if (Parent && Parent.Visible && Parent.PageSelectM == 0) {
|
||||
Visible = true;
|
||||
X = Parent.X + 7;
|
||||
Y = Parent.Y + 50;
|
||||
} else {
|
||||
Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//因为要重载LenheartNewUI_Windows的构造函数
|
||||
function ResetFocus() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
getroottable().rawdelete("HorseGuessing_Obj");
|
||||
Reference in New Issue
Block a user