11
This commit is contained in:
@@ -354,7 +354,7 @@ function Lenheart_AradPass_Fun(obj) {
|
||||
if (!RootTab.rawin("AradPass_Obj")) {
|
||||
RootTab.rawset("AradPass_Obj", true);
|
||||
local Win = LenheartNewUI_CreateWindow(AradPassC, "阿拉德战令窗口", ((getroottable().Rindro_Scr_Width - 558) / 2).tointeger(), 46, 558, 484, 15);
|
||||
EventList_Obj.AddEvent("阿拉德战令", 928, Win,"interface2/hud/information_button/information_button_cn.img");
|
||||
EventList_Obj.AddEvent("阿拉德战令", 928, Win, "interface2/hud/information_button/information_button_cn.img");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -380,6 +380,23 @@ class AradPass_QuestC extends LenheartNewUI_Windows {
|
||||
DrawTop(obj);
|
||||
}
|
||||
|
||||
//override
|
||||
//鼠标滚轮事件回调
|
||||
function OnMouseWheel(Flag, MousePos_X, MousePos_Y) {
|
||||
|
||||
|
||||
if (Flag) {
|
||||
if (QuestWheelNow > 0) QuestWheelNow--;
|
||||
}
|
||||
if (!Flag) {
|
||||
if (QuestWheelNow< QuestWheelMax - 6) QuestWheelNow++;
|
||||
}
|
||||
|
||||
|
||||
//调用原生方法
|
||||
LenheartNewUI_Windows.OnMouseWheel(Flag, MousePos_X, MousePos_Y);
|
||||
}
|
||||
|
||||
//逻辑入口
|
||||
function Proc(obj) {
|
||||
LenheartNewUI_Windows.SyncPos(X, Y - 210);
|
||||
@@ -392,12 +409,6 @@ class AradPass_QuestC extends LenheartNewUI_Windows {
|
||||
Visible = false;
|
||||
}
|
||||
|
||||
if (IMouse.IsWheelUp()) {
|
||||
if (QuestWheelNow > 0) QuestWheelNow--;
|
||||
}
|
||||
if (IMouse.IsWheelDown()) {
|
||||
if (QuestWheelNow< QuestWheelMax - 6) QuestWheelNow++;
|
||||
}
|
||||
|
||||
foreach(Pos, winobj in QuestItemList[Page]) {
|
||||
if (Pos >= QuestWheelNow && Pos <= QuestWheelNow + 5) {
|
||||
|
||||
Reference in New Issue
Block a user