This commit is contained in:
parent
920015e323
commit
d9e85adbda
|
|
@ -20,7 +20,7 @@ class AchievementC extends LenheartNewUI_Windows {
|
||||||
// NoWindow = true;
|
// NoWindow = true;
|
||||||
|
|
||||||
//是否可见
|
//是否可见
|
||||||
// Visible = false;
|
Visible = false;
|
||||||
|
|
||||||
EtcInfo = null;
|
EtcInfo = null;
|
||||||
|
|
||||||
|
|
@ -313,7 +313,7 @@ class AchievementC extends LenheartNewUI_Windows {
|
||||||
BasePosY = Config.Pos.y,
|
BasePosY = Config.Pos.y,
|
||||||
};
|
};
|
||||||
TypeButton.OnClickEx = function(Button) {
|
TypeButton.OnClickEx = function(Button) {
|
||||||
if (Button.Localtion_Y <= EtcInfo.clicp_pos[1]) return;
|
if (Button.Localtion_Y <= EtcInfo.clicp_pos[1] || Button.Localtion_Y >= EtcInfo.clicp_pos[3]) return;
|
||||||
Page = Button.Data.id;
|
Page = Button.Data.id;
|
||||||
InitAchievement();
|
InitAchievement();
|
||||||
QueryAchievement();
|
QueryAchievement();
|
||||||
|
|
@ -348,6 +348,7 @@ class AchievementC extends LenheartNewUI_Windows {
|
||||||
if (Info.len() > Page) {
|
if (Info.len() > Page) {
|
||||||
//绘制成就
|
//绘制成就
|
||||||
foreach(InfoObj in Info[Page]) {
|
foreach(InfoObj in Info[Page]) {
|
||||||
|
if(Y + InfoObj.Pos.y - ScrollValue < EtcInfo.clicp_pos2[1])continue;
|
||||||
if (sq_IsIntersectRect(IMouse.GetXPos(), IMouse.GetYPos(), 1, 1, X + InfoObj.Pos.x, Y + InfoObj.Pos.y - ScrollValue, InfoObj.Size.x, InfoObj.Size.y)) {
|
if (sq_IsIntersectRect(IMouse.GetXPos(), IMouse.GetYPos(), 1, 1, X + InfoObj.Pos.x, Y + InfoObj.Pos.y - ScrollValue, InfoObj.Size.x, InfoObj.Size.y)) {
|
||||||
|
|
||||||
for (local i = 0; i< InfoObj.Str.len(); i += 2) {
|
for (local i = 0; i< InfoObj.Str.len(); i += 2) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue