Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4649
rect.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
524 B
Referenced Files
None
Subscribers
None
rect.py
View Options
from
k.ui
import
*
from
.
import
Draws
from
..obj
import
Null
class
Tool
(
Draws
):
def
__init__
(
self
,
ack
):
super
()
.
__init__
(
ack
)
self
.
rounded
=
False
def
pick
(
self
,
prev
):
pygame
.
mouse
.
set_cursor
(
pygame
.
SYSTEM_CURSOR_CROSSHAIR
)
def
toggle
(
self
):
self
.
rounded
=
not
self
.
rounded
def
start
(
self
,
pos
):
self
.
ack
.
add_obj
(
Null
())
def
use
(
self
,
pos
,
middle
=
False
):
return
self
.
draw_select
(
pos
,
middle
)
.
rect
(
self
.
size
,
self
.
rounded
)
File Metadata
Details
Attached
Mime Type
text/x-script.python
Expires
Mon, Sep 21, 12:26 AM (15 h, 25 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3700
Default Alt Text
rect.py (524 B)
Attached To
Mode
rK Media System
Attached
Detach File
Event Timeline
Log In to Comment