lua--창에서 하위 인터페이스 닫기 클릭

1760 단어 lua
function UIBagController:initBoxView(  )
    self.panelBox = tolua.cast(UIHelper:seekWidgetByName(self.owner, "Panel_Box"), "Layout");
    self.imgBoxList = tolua.cast(UIHelper:seekWidgetByName(self.panelBox, "ImageView_BoxList1"), "ImageView");
    --
    self.panelBox:addTouchEventListener(function ( uiwidget, eventType )
        if eventType == TOUCH_EVENT_ENDED then
            self:hideBox()    
            self:ClearGoods();
            self:initItemView();
            self:showData()    
            self:ShowEffect();    
        end;
    end);

    self:hideBox();
end

좋은 웹페이지 즐겨찾기