lskovlun and 7 Guests are viewing this topic.
(method (handleEvent pEvent &tmp temp0 pEventType temp2 temp3 theGCursorNumber theCurIcon theCurInvIcon) (pEvent localize:) (= pEventType (pEvent type?)) (cond ((& state $0004)) ( (or (and (not pEventType) (& state $0400) ;(<= -10 (pEvent y?)) (<= 168 (pEvent y?) ) (<= 0 (pEvent x?)) (<= (pEvent x?) 320) (not (= temp0 0)) ) (and (== pEventType evKEYBOARD) (or (== (pEvent message?) KEY_ESCAPE) (== (pEvent message?) KEY_DELETE) ) (= temp0 1) ) ) (pEvent globalize:) (= oldMouseX (pEvent x?)) (= oldMouseY (pEvent y?)) (= theGCursorNumber gCursorNumber) (= theCurIcon curIcon) (= theCurInvIcon curInvIcon) ;(self show:) ;(gGame setCursor: 999) (if temp0 (gGame setCursor: gCursorNumber 1 (+ (curIcon nsLeft?) (/ (- (curIcon nsRight?) (curIcon nsLeft?)) 2) ) (- (curIcon nsBottom?) 3) ) ) (self doit:) (= temp3 (if (or (gUser canControl:) (gUser canInput:)) (curIcon cursor?) else gWaitCursor ) ) (if temp0 (gGame setCursor: temp3 1 oldMouseX oldMouseY) else (gGame setCursor: temp3 1 ((pEvent new:) x?) (Max (pEvent y?) (+ 1 height)) ) ) ;(self hide:) ) ((& pEventType evKEYBOARD) (switch (pEvent message?) (KEY_RETURN (cond ((not (IsObject curIcon))) ((or (!= curIcon useIconItem) curInvIcon) (pEvent type: (curIcon type?) message: (if (== curIcon useIconItem) (curInvIcon message?) else (curIcon message?) ) ) ) (else (pEvent type: 0)) ) ) (KEY_NUMPAD0 (if (gUser canControl:) (self swapCurIcon:)) (pEvent claimed: TRUE) ) (JOY_NULL (if (& (pEvent type?) evJOYSTICK) (self advanceCurIcon:) (pEvent claimed: TRUE) ) ) ) ) ((& pEventType evMOUSEBUTTON) (cond ((& (pEvent modifiers?) emSHIFT) (self advanceCurIcon:) (pEvent claimed: TRUE)) ((& (pEvent modifiers?) emCTRL) (if (gUser canControl:) (self swapCurIcon:)) (pEvent claimed: TRUE) ) ((IsObject curIcon) (pEvent type: (curIcon type?) message: (if (== curIcon useIconItem) (curInvIcon message?) else (curIcon message?) ) ) ) ) ) ) )
SMF 2.0.19 | SMF © 2021, Simple MachinesSimple Audio Video Embedder Page created in 0.24 seconds with 21 queries.