Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4420
adjust.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
653 B
Referenced Files
None
Subscribers
None
adjust.py
View Options
from
k.ui
import
*
from
.
import
Tool
as
Base
class
Tool
(
Base
):
def
__init__
(
self
,
ack
):
super
()
.
__init__
(
ack
)
def
pick
(
self
,
prev
):
pygame
.
mouse
.
set_cursor
(
pygame
.
SYSTEM_CURSOR_HAND
)
def
start
(
self
,
pos
):
obj
=
self
.
ack
.
obj
()
if
not
obj
:
return
self
.
pos
=
obj
.
pos
def
use
(
self
,
pos
,
middle
):
obj
=
self
.
ack
.
obj
()
if
not
obj
:
return
start
=
self
.
ack
.
start
obj
.
pos
=
(
pos
[
0
]
-
start
[
0
]
+
self
.
pos
[
0
],
pos
[
1
]
-
start
[
1
]
+
self
.
pos
[
1
]
)
#return pygame.Rect((0, 0), (WIDTH, HEIGHT-STATUS-1)) #FIXME
return
obj
File Metadata
Details
Attached
Mime Type
text/x-script.python
Expires
Mon, Sep 14, 6:41 PM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3646
Default Alt Text
adjust.py (653 B)
Attached To
Mode
rK Media System
Attached
Detach File
Event Timeline
Log In to Comment