pymew 0.1.0__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pymew-0.1.0.dist-info/METADATA +88 -0
- pymew-0.1.0.dist-info/RECORD +5 -0
- pymew-0.1.0.dist-info/WHEEL +4 -0
- pymew.pyd +0 -0
- pymew.pyi +871 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pymew
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: External game memory, scanning and overlays for Python
|
|
5
|
+
Author: qb-0
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Requires-Python: >=3.7,<3.15
|
|
8
|
+
Project-URL: Homepage, https://github.com/qb-0/pymew
|
|
9
|
+
Project-URL: Repository, https://github.com/qb-0/pymew
|
|
10
|
+
Project-URL: Cheatsheet, https://github.com/qb-0/pymew/blob/main/CHEATSHEET.md
|
|
11
|
+
Project-URL: Discord, https://discord.gg/B34S4aMYqY
|
|
12
|
+
Keywords: game,cheat,memory,overlay,esp,reverse-engineering
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
17
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
+
Classifier: Topic :: Games/Entertainment
|
|
21
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
|
|
24
|
+
<p align="center"><img src="https://github.com/qb-0/pymew/raw/main/assets/logo.png" alt="pymew" width="220"></p>
|
|
25
|
+
<h3 align="center">A Python memory manipulation and overlay library designed to simplify the development of external game cheats</h3>
|
|
26
|
+
|
|
27
|
+
<p align="center">
|
|
28
|
+
<a href="https://discord.gg/B34S4aMYqY"><img alt="Discord" src="https://img.shields.io/discord/949027922436575312?label=discord&logo=discord&logoColor=white&style=flat-square&color=5865F2"></a>
|
|
29
|
+
<a href="https://github.com/qb-0/pymew/blob/main/CHEATSHEET.md"><img alt="Cheatsheet" src="https://img.shields.io/badge/docs-cheatsheet-FF6B35?style=flat-square"></a>
|
|
30
|
+
<img alt="Python 3.7 to 3.14" src="https://img.shields.io/badge/python-3.7%20%E2%80%93%203.14-3776AB?style=flat-square&logo=python&logoColor=white">
|
|
31
|
+
<img alt="Windows and Linux" src="https://img.shields.io/badge/platform-Windows%20%7C%20Linux-4B5563?style=flat-square">
|
|
32
|
+
</p>
|
|
33
|
+
|
|
34
|
+
<p align="center">
|
|
35
|
+
<img alt="MIT license" src="https://img.shields.io/badge/license-MIT-22C55E?style=flat-square">
|
|
36
|
+
<img alt="AI assisted" src="https://img.shields.io/badge/AI--assisted-8B5CF6?style=flat-square">
|
|
37
|
+
<a href="https://www.buymeabeer.com/quebee"><img alt="Buy me a beer" src="https://img.shields.io/badge/buy%20me%20a%20beer-0D0C22?style=flat-square&logo=buymeacoffee&logoColor=FFDD00"></a>
|
|
38
|
+
</p>
|
|
39
|
+
|
|
40
|
+
## Cheatsheet / Features
|
|
41
|
+
|
|
42
|
+
An overview of the full API can be found in the **[cheatsheet](https://github.com/qb-0/pymew/blob/main/CHEATSHEET.md)** — memory, overlay, drawing, input, hotkeys and more...
|
|
43
|
+
|
|
44
|
+
A type stub `pymew.pyi` ships with the package, so autocompletion and `mypy` work out of the box.
|
|
45
|
+
|
|
46
|
+
## Installation
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pip install pymew
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Requires 64-bit Python 3.7 or newer.
|
|
53
|
+
|
|
54
|
+
## Quick start
|
|
55
|
+
|
|
56
|
+
```python
|
|
57
|
+
import pymew as pm
|
|
58
|
+
|
|
59
|
+
with pm.mem.open("game.exe") as process:
|
|
60
|
+
with pm.overlay.open(target="game.exe", exit_key="end") as overlay:
|
|
61
|
+
address = process.base() + 0x2A0
|
|
62
|
+
|
|
63
|
+
while overlay.loop():
|
|
64
|
+
health = process.read(address, pm.mem.i32)
|
|
65
|
+
pm.draw.text(text=f"health: {health}", x=20, y=20, size=20)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Compiling from source
|
|
69
|
+
|
|
70
|
+
Install [Nim](https://nim-lang.org/install.html) and Git, then:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
git clone https://github.com/qb-0/pymew
|
|
74
|
+
cd pymew
|
|
75
|
+
nimble install --depsOnly -y
|
|
76
|
+
nim c pymew
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Projects
|
|
80
|
+
<div align="center"><sub>Want your project listed here? Open a pull request or post it on pymew's discord server.</sub></div><br>
|
|
81
|
+
|
|
82
|
+
<div align="center"><a href="https://github.com/qb-0/pymew-DS3-ESP"><strong>pymew-DS3-ESP</strong></a><br><sub>Nov 24, 2026 · <a href="https://github.com/qb-0">qb-0</a></sub><br><a href="https://github.com/qb-0/pymew-DS3-ESP"><img src="https://raw.githubusercontent.com/qb-0/pymew-DS3-ESP/master/assets/ds3.png" width="340" alt="Darksiders III ESP"></a><br>A configurable, cross-platform Darksiders III ESP.</div><br>
|
|
83
|
+
|
|
84
|
+
<!--
|
|
85
|
+
Copy this block to add a project:
|
|
86
|
+
|
|
87
|
+
<div align="center"><a href="LINK"><strong>NAME</strong></a><br><sub>Mon DD, YYYY · <a href="https://github.com/AUTHOR">AUTHOR</a></sub><br><a href="LINK"><img src="SCREENSHOT" width="340" alt="NAME"></a><br>ONE LINE DESCRIPTION</div><br>
|
|
88
|
+
-->
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
pymew.pyd,sha256=9iVDkOBkcSPLSI3XTc6uwdaYfUu_v8LUyvSnctKSxXw,3863360
|
|
2
|
+
pymew.pyi,sha256=lY9YcttPgV3d_v2srxVmTlUxfC7ZMw_fD_-UDeTYxps,23493
|
|
3
|
+
pymew-0.1.0.dist-info/METADATA,sha256=3Ai18EytTFWc8zcMAkJwBwwUB_s8c2RKnU9aX_MTZQY,4093
|
|
4
|
+
pymew-0.1.0.dist-info/WHEEL,sha256=GHSfN78cbaC_kyJqS0Aqcnxm9f44iXmM8heF31ML830,89
|
|
5
|
+
pymew-0.1.0.dist-info/RECORD,,
|
pymew.pyd
ADDED
|
Binary file
|
pymew.pyi
ADDED
|
@@ -0,0 +1,871 @@
|
|
|
1
|
+
# pymew.pyi - generated by tools/gen_stub.py from CHEATSHEET.md, do not edit
|
|
2
|
+
import builtins
|
|
3
|
+
from typing import Any, TypeVar, overload
|
|
4
|
+
|
|
5
|
+
_S = TypeVar("_S", bound="_Mem.Struct")
|
|
6
|
+
|
|
7
|
+
class _Type:
|
|
8
|
+
def __call__(self, value: Any = ...) -> Any: ...
|
|
9
|
+
def at(self, offset: int) -> _Type: ...
|
|
10
|
+
def __get__(self, instance: Any, owner: Any) -> Any: ...
|
|
11
|
+
def __set__(self, instance: Any, value: Any) -> None: ...
|
|
12
|
+
|
|
13
|
+
class _Error(Exception): ...
|
|
14
|
+
class _ProcessNotFound(_Error): ...
|
|
15
|
+
class _ModuleNotFound(_Error): ...
|
|
16
|
+
class _AccessError(_Error): ...
|
|
17
|
+
class _PermissionDenied(_Error): ...
|
|
18
|
+
class _UnsupportedError(_Error): ...
|
|
19
|
+
class _HotkeyError(_Error): ...
|
|
20
|
+
class _OverlayError(_Error): ...
|
|
21
|
+
class _WindowNotFound(_Error): ...
|
|
22
|
+
|
|
23
|
+
class NimPyException(Exception): ...
|
|
24
|
+
|
|
25
|
+
class vec2:
|
|
26
|
+
x: float
|
|
27
|
+
y: float
|
|
28
|
+
def __init__(self, x: float = 0.0, y: float = 0.0) -> None: ...
|
|
29
|
+
def __add__(self, other: vec2) -> vec2: ...
|
|
30
|
+
def __sub__(self, other: vec2) -> vec2: ...
|
|
31
|
+
def __mul__(self, other: float) -> vec2: ...
|
|
32
|
+
def __truediv__(self, other: float) -> vec2: ...
|
|
33
|
+
def length(self) -> float: ...
|
|
34
|
+
def length_sq(self) -> float: ...
|
|
35
|
+
def distance(self, other: vec2) -> float: ...
|
|
36
|
+
def normalized(self) -> vec2: ...
|
|
37
|
+
def closest(self, others: list[vec2]) -> vec2: ...
|
|
38
|
+
def to_tuple(self) -> tuple[float, float]: ...
|
|
39
|
+
|
|
40
|
+
class vec3:
|
|
41
|
+
x: float
|
|
42
|
+
y: float
|
|
43
|
+
z: float
|
|
44
|
+
def __init__(self, x: float = 0.0, y: float = 0.0, z: float = 0.0) -> None: ...
|
|
45
|
+
def __add__(self, other: vec3) -> vec3: ...
|
|
46
|
+
def __sub__(self, other: vec3) -> vec3: ...
|
|
47
|
+
def __mul__(self, other: float) -> vec3: ...
|
|
48
|
+
def __truediv__(self, other: float) -> vec3: ...
|
|
49
|
+
def length(self) -> float: ...
|
|
50
|
+
def length_sq(self) -> float: ...
|
|
51
|
+
def distance(self, other: vec3) -> float: ...
|
|
52
|
+
def normalized(self) -> vec3: ...
|
|
53
|
+
def closest(self, others: list[vec3]) -> vec3: ...
|
|
54
|
+
def to_tuple(self) -> tuple[float, float, float]: ...
|
|
55
|
+
|
|
56
|
+
class Process:
|
|
57
|
+
@overload
|
|
58
|
+
def read(self, address: int, typeDesc: type[_S], count: int = 0) -> _S: ...
|
|
59
|
+
@overload
|
|
60
|
+
def read(self, address: int, typeDesc: _Type, count: int = 0) -> Any: ...
|
|
61
|
+
@overload
|
|
62
|
+
def read_chain(self, base: int, offsets: Any, typeDesc: type[_S]) -> _S: ...
|
|
63
|
+
@overload
|
|
64
|
+
def read_chain(self, base: int, offsets: Any, typeDesc: _Type) -> Any: ...
|
|
65
|
+
def pid(self) -> int: ...
|
|
66
|
+
def name(self) -> str: ...
|
|
67
|
+
def path(self) -> str: ...
|
|
68
|
+
def alive(self) -> bool: ...
|
|
69
|
+
def is_64bit(self) -> bool: ...
|
|
70
|
+
def base(self, module: str = "") -> int: ...
|
|
71
|
+
def modules(self) -> list[_Module]: ...
|
|
72
|
+
def module(self, name: str) -> _Module: ...
|
|
73
|
+
def regions(self) -> list[_Region]: ...
|
|
74
|
+
def refresh(self) -> None: ...
|
|
75
|
+
def close(self) -> None: ...
|
|
76
|
+
def write(self, address: int, value: Any) -> int: ...
|
|
77
|
+
def chain(self, base: int, offsets: Any) -> int: ...
|
|
78
|
+
def resolve_rip(self, address: int, offset: int = 3, size: int = 7) -> int: ...
|
|
79
|
+
def scan(
|
|
80
|
+
self,
|
|
81
|
+
pattern: str,
|
|
82
|
+
module: str = "",
|
|
83
|
+
first: bool = False,
|
|
84
|
+
) -> list[int] | int | None: ...
|
|
85
|
+
def scan_range(self, pattern: str, start: int, stop: int) -> list[int]: ...
|
|
86
|
+
def set_debug(self, enabled: bool) -> None: ...
|
|
87
|
+
def __enter__(self) -> Process: ...
|
|
88
|
+
def __exit__(self, exc_type: Any, exc: Any, tb: Any) -> None: ...
|
|
89
|
+
|
|
90
|
+
class Overlay:
|
|
91
|
+
def loop(self) -> bool: ...
|
|
92
|
+
def width(self) -> int: ...
|
|
93
|
+
def height(self) -> int: ...
|
|
94
|
+
def pos(self) -> vec2: ...
|
|
95
|
+
def set_pos(self, x: float, y: float) -> None: ...
|
|
96
|
+
def set_size(self, width: int, height: int) -> None: ...
|
|
97
|
+
def set_title(self, title: str) -> None: ...
|
|
98
|
+
def monitor(self, index: int) -> None: ...
|
|
99
|
+
def fps(self) -> int: ...
|
|
100
|
+
def set_fps(self, fps: int) -> None: ...
|
|
101
|
+
def screenshot(self, path: str) -> None: ...
|
|
102
|
+
def imgui_active(self) -> bool: ...
|
|
103
|
+
def begin(self) -> None: ...
|
|
104
|
+
def end(self) -> None: ...
|
|
105
|
+
def close(self) -> None: ...
|
|
106
|
+
def clickthrough(self, enabled: bool) -> None: ...
|
|
107
|
+
def topmost(self, enabled: bool) -> None: ...
|
|
108
|
+
def interact(self, enabled: bool) -> None: ...
|
|
109
|
+
def __enter__(self) -> Overlay: ...
|
|
110
|
+
def __exit__(self, exc_type: Any, exc: Any, tb: Any) -> None: ...
|
|
111
|
+
|
|
112
|
+
class _EntityBox:
|
|
113
|
+
x: float
|
|
114
|
+
y: float
|
|
115
|
+
w: float
|
|
116
|
+
h: float
|
|
117
|
+
color: int
|
|
118
|
+
style: str
|
|
119
|
+
fill: float
|
|
120
|
+
thick: float
|
|
121
|
+
outline: bool
|
|
122
|
+
outline_color: int | None
|
|
123
|
+
outline_thick: float
|
|
124
|
+
def set_box(self, x: float, y: float, w: float, h: float) -> None: ...
|
|
125
|
+
def add_bar(
|
|
126
|
+
self,
|
|
127
|
+
side: str,
|
|
128
|
+
color: int,
|
|
129
|
+
value: float = 1.0,
|
|
130
|
+
thick: float = 4.0,
|
|
131
|
+
gap: float = 6.0,
|
|
132
|
+
segments: list[tuple[float, int]] | None = None,
|
|
133
|
+
length: float = 1.0,
|
|
134
|
+
align: str = "center",
|
|
135
|
+
reverse: bool = False,
|
|
136
|
+
outline: bool = True,
|
|
137
|
+
outline_color: int | None = None,
|
|
138
|
+
outline_thick: float = 1.0,
|
|
139
|
+
max: float = 1.0,
|
|
140
|
+
) -> None: ...
|
|
141
|
+
def add_text(
|
|
142
|
+
self,
|
|
143
|
+
anchor: str,
|
|
144
|
+
text: str | list[str],
|
|
145
|
+
color: int,
|
|
146
|
+
size: float = 12.0,
|
|
147
|
+
font: _Font | None = None,
|
|
148
|
+
gap: float = 0.0,
|
|
149
|
+
nudge: Any = None,
|
|
150
|
+
outline: bool = True,
|
|
151
|
+
outline_color: int | None = None,
|
|
152
|
+
outline_thick: float = 1.0,
|
|
153
|
+
) -> None: ...
|
|
154
|
+
def add_snapline(
|
|
155
|
+
self,
|
|
156
|
+
to: Any,
|
|
157
|
+
color: int,
|
|
158
|
+
source: str = "bottom",
|
|
159
|
+
style: str = "solid",
|
|
160
|
+
thick: float = 1.0,
|
|
161
|
+
spacing: float = 0.0,
|
|
162
|
+
outline: bool = True,
|
|
163
|
+
outline_color: int | None = None,
|
|
164
|
+
outline_thick: float = 1.0,
|
|
165
|
+
) -> None: ...
|
|
166
|
+
def draw(self) -> None: ...
|
|
167
|
+
def clear(self) -> None: ...
|
|
168
|
+
|
|
169
|
+
class _Mem:
|
|
170
|
+
class Struct:
|
|
171
|
+
@classmethod
|
|
172
|
+
def at(cls, offset: int) -> _Type: ...
|
|
173
|
+
@classmethod
|
|
174
|
+
def offset(cls, field: str) -> int: ...
|
|
175
|
+
@classmethod
|
|
176
|
+
def size(cls) -> int: ...
|
|
177
|
+
def address(self, field: str = "") -> int: ...
|
|
178
|
+
def __init__(self, **fields: Any) -> None: ...
|
|
179
|
+
i8: _Type
|
|
180
|
+
i16: _Type
|
|
181
|
+
i32: _Type
|
|
182
|
+
i64: _Type
|
|
183
|
+
u8: _Type
|
|
184
|
+
u16: _Type
|
|
185
|
+
u32: _Type
|
|
186
|
+
u64: _Type
|
|
187
|
+
f32: _Type
|
|
188
|
+
f64: _Type
|
|
189
|
+
bool: _Type
|
|
190
|
+
ptr: _Type
|
|
191
|
+
vec2: _Type
|
|
192
|
+
vec3: _Type
|
|
193
|
+
@staticmethod
|
|
194
|
+
def open(target: Any, debug: builtins.bool = False) -> Process: ...
|
|
195
|
+
@staticmethod
|
|
196
|
+
def processes() -> list[_ProcessEntry]: ...
|
|
197
|
+
@staticmethod
|
|
198
|
+
def exists(target: Any) -> builtins.bool: ...
|
|
199
|
+
@staticmethod
|
|
200
|
+
def pid(target: Any) -> int: ...
|
|
201
|
+
@staticmethod
|
|
202
|
+
def name(target: Any) -> str: ...
|
|
203
|
+
@staticmethod
|
|
204
|
+
def path(target: Any) -> str: ...
|
|
205
|
+
@staticmethod
|
|
206
|
+
def is_64bit(target: Any) -> builtins.bool: ...
|
|
207
|
+
@staticmethod
|
|
208
|
+
def string(size: int) -> _Type: ...
|
|
209
|
+
@staticmethod
|
|
210
|
+
def wstring(size: int) -> _Type: ...
|
|
211
|
+
@staticmethod
|
|
212
|
+
def fstring(char_size: int = 2) -> _Type: ...
|
|
213
|
+
@staticmethod
|
|
214
|
+
def bytes(size: int) -> _Type: ...
|
|
215
|
+
@staticmethod
|
|
216
|
+
def array(elem: Any, count: int, stride: int = 0) -> _Type: ...
|
|
217
|
+
@staticmethod
|
|
218
|
+
def scan_bytes(pattern: str, data: Any) -> list[int]: ...
|
|
219
|
+
|
|
220
|
+
class _OverlayModule:
|
|
221
|
+
@staticmethod
|
|
222
|
+
def open(
|
|
223
|
+
target: Any = None,
|
|
224
|
+
fps: int = 0,
|
|
225
|
+
title: str = "pymew",
|
|
226
|
+
exit_key: Any = None,
|
|
227
|
+
track: bool = False,
|
|
228
|
+
log_level: Any = None,
|
|
229
|
+
imgui_bundle: bool = False,
|
|
230
|
+
imgui_key: Any = None,
|
|
231
|
+
msaa: bool = True,
|
|
232
|
+
) -> Overlay: ...
|
|
233
|
+
|
|
234
|
+
class _Draw:
|
|
235
|
+
EntityBox: type[_EntityBox]
|
|
236
|
+
Font: type[_Font]
|
|
237
|
+
Texture: type[_Texture]
|
|
238
|
+
@staticmethod
|
|
239
|
+
def point(x: float, y: float, color: int = 0xFFFFFFFF) -> None: ...
|
|
240
|
+
@staticmethod
|
|
241
|
+
def line(
|
|
242
|
+
x1: float,
|
|
243
|
+
y1: float,
|
|
244
|
+
x2: float,
|
|
245
|
+
y2: float,
|
|
246
|
+
color: int = 0xFFFFFFFF,
|
|
247
|
+
thick: float = 1.0,
|
|
248
|
+
outline: bool = False,
|
|
249
|
+
outline_color: int | None = None,
|
|
250
|
+
outline_thick: float = 1.0,
|
|
251
|
+
) -> None: ...
|
|
252
|
+
@staticmethod
|
|
253
|
+
def polyline(
|
|
254
|
+
points: Any,
|
|
255
|
+
color: int = 0xFFFFFFFF,
|
|
256
|
+
thick: float = 1.0,
|
|
257
|
+
outline: bool = False,
|
|
258
|
+
outline_color: int | None = None,
|
|
259
|
+
outline_thick: float = 1.0,
|
|
260
|
+
) -> None: ...
|
|
261
|
+
@staticmethod
|
|
262
|
+
def rect(
|
|
263
|
+
x: float,
|
|
264
|
+
y: float,
|
|
265
|
+
w: float,
|
|
266
|
+
h: float,
|
|
267
|
+
color: int = 0xFFFFFFFF,
|
|
268
|
+
fill: bool = True,
|
|
269
|
+
thick: float = 1.0,
|
|
270
|
+
round: float = 0.0,
|
|
271
|
+
segments: int = 0,
|
|
272
|
+
rotation: float = 0.0,
|
|
273
|
+
outline: bool = False,
|
|
274
|
+
outline_color: int | None = None,
|
|
275
|
+
outline_thick: float = 1.0,
|
|
276
|
+
) -> None: ...
|
|
277
|
+
@staticmethod
|
|
278
|
+
def rect_gradient(
|
|
279
|
+
x: float,
|
|
280
|
+
y: float,
|
|
281
|
+
w: float,
|
|
282
|
+
h: float,
|
|
283
|
+
top: int,
|
|
284
|
+
bottom: int,
|
|
285
|
+
horizontal: bool = False,
|
|
286
|
+
outline: bool = False,
|
|
287
|
+
outline_color: int | None = None,
|
|
288
|
+
outline_thick: float = 1.0,
|
|
289
|
+
) -> None: ...
|
|
290
|
+
@staticmethod
|
|
291
|
+
def circle(
|
|
292
|
+
cx: float,
|
|
293
|
+
cy: float,
|
|
294
|
+
r: float,
|
|
295
|
+
color: int = 0xFFFFFFFF,
|
|
296
|
+
fill: bool = True,
|
|
297
|
+
thick: float = 1.0,
|
|
298
|
+
outline: bool = False,
|
|
299
|
+
outline_color: int | None = None,
|
|
300
|
+
outline_thick: float = 1.0,
|
|
301
|
+
) -> None: ...
|
|
302
|
+
@staticmethod
|
|
303
|
+
def sector(
|
|
304
|
+
cx: float,
|
|
305
|
+
cy: float,
|
|
306
|
+
r: float,
|
|
307
|
+
start: float,
|
|
308
|
+
end: float,
|
|
309
|
+
color: int = 0xFFFFFFFF,
|
|
310
|
+
fill: bool = True,
|
|
311
|
+
segments: int = 36,
|
|
312
|
+
outline: bool = False,
|
|
313
|
+
outline_color: int | None = None,
|
|
314
|
+
outline_thick: float = 1.0,
|
|
315
|
+
) -> None: ...
|
|
316
|
+
@staticmethod
|
|
317
|
+
def ring(
|
|
318
|
+
cx: float,
|
|
319
|
+
cy: float,
|
|
320
|
+
r_inner: float,
|
|
321
|
+
r_outer: float,
|
|
322
|
+
color: int = 0xFFFFFFFF,
|
|
323
|
+
start: float = 0.0,
|
|
324
|
+
end: float = 360.0,
|
|
325
|
+
fill: bool = True,
|
|
326
|
+
segments: int = 36,
|
|
327
|
+
outline: bool = False,
|
|
328
|
+
outline_color: int | None = None,
|
|
329
|
+
outline_thick: float = 1.0,
|
|
330
|
+
) -> None: ...
|
|
331
|
+
@staticmethod
|
|
332
|
+
def ellipse(
|
|
333
|
+
cx: float,
|
|
334
|
+
cy: float,
|
|
335
|
+
rx: float,
|
|
336
|
+
ry: float,
|
|
337
|
+
color: int = 0xFFFFFFFF,
|
|
338
|
+
fill: bool = True,
|
|
339
|
+
thick: float = 1.0,
|
|
340
|
+
outline: bool = False,
|
|
341
|
+
outline_color: int | None = None,
|
|
342
|
+
outline_thick: float = 1.0,
|
|
343
|
+
) -> None: ...
|
|
344
|
+
@staticmethod
|
|
345
|
+
def triangle(
|
|
346
|
+
x1: float,
|
|
347
|
+
y1: float,
|
|
348
|
+
x2: float,
|
|
349
|
+
y2: float,
|
|
350
|
+
x3: float,
|
|
351
|
+
y3: float,
|
|
352
|
+
color: int = 0xFFFFFFFF,
|
|
353
|
+
fill: bool = True,
|
|
354
|
+
thick: float = 1.0,
|
|
355
|
+
outline: bool = False,
|
|
356
|
+
outline_color: int | None = None,
|
|
357
|
+
outline_thick: float = 1.0,
|
|
358
|
+
) -> None: ...
|
|
359
|
+
@staticmethod
|
|
360
|
+
def poly(
|
|
361
|
+
cx: float,
|
|
362
|
+
cy: float,
|
|
363
|
+
sides: int,
|
|
364
|
+
radius: float,
|
|
365
|
+
color: int = 0xFFFFFFFF,
|
|
366
|
+
rotation: float = 0.0,
|
|
367
|
+
fill: bool = True,
|
|
368
|
+
thick: float = 1.0,
|
|
369
|
+
outline: bool = False,
|
|
370
|
+
outline_color: int | None = None,
|
|
371
|
+
outline_thick: float = 1.0,
|
|
372
|
+
) -> None: ...
|
|
373
|
+
@staticmethod
|
|
374
|
+
def text(
|
|
375
|
+
text: str | list[str],
|
|
376
|
+
x: float,
|
|
377
|
+
y: float,
|
|
378
|
+
size: float,
|
|
379
|
+
color: int = 0xFFFFFFFF,
|
|
380
|
+
align: str = "left",
|
|
381
|
+
outline: bool = False,
|
|
382
|
+
outline_color: int | None = None,
|
|
383
|
+
outline_thick: float = 1.0,
|
|
384
|
+
) -> None: ...
|
|
385
|
+
@staticmethod
|
|
386
|
+
def text_ex(
|
|
387
|
+
font: _Font,
|
|
388
|
+
text: str | list[str],
|
|
389
|
+
x: float,
|
|
390
|
+
y: float,
|
|
391
|
+
size: float,
|
|
392
|
+
color: int = 0xFFFFFFFF,
|
|
393
|
+
spacing: float = 1.0,
|
|
394
|
+
align: str = "left",
|
|
395
|
+
outline: bool = False,
|
|
396
|
+
outline_color: int | None = None,
|
|
397
|
+
outline_thick: float = 1.0,
|
|
398
|
+
) -> None: ...
|
|
399
|
+
@staticmethod
|
|
400
|
+
def measure_text(text: str | list[str], size: float, spacing: float = 1.0) -> vec2: ...
|
|
401
|
+
@staticmethod
|
|
402
|
+
def measure_text_ex(
|
|
403
|
+
font: _Font,
|
|
404
|
+
text: str | list[str],
|
|
405
|
+
size: float,
|
|
406
|
+
spacing: float = 1.0,
|
|
407
|
+
) -> vec2: ...
|
|
408
|
+
@staticmethod
|
|
409
|
+
def load_font(path: str, size: float, chars: str = "latin") -> _Font: ...
|
|
410
|
+
@staticmethod
|
|
411
|
+
def load_font_bytes(
|
|
412
|
+
data: Any,
|
|
413
|
+
size: float,
|
|
414
|
+
chars: str = "latin",
|
|
415
|
+
kind: str = "ttf",
|
|
416
|
+
) -> _Font: ...
|
|
417
|
+
@staticmethod
|
|
418
|
+
def fonts() -> list[str]: ...
|
|
419
|
+
@staticmethod
|
|
420
|
+
def set_font(font: _Font | None = None) -> None: ...
|
|
421
|
+
@staticmethod
|
|
422
|
+
def font() -> _Font | None: ...
|
|
423
|
+
@staticmethod
|
|
424
|
+
def fps(
|
|
425
|
+
x: float,
|
|
426
|
+
y: float,
|
|
427
|
+
color: int = 0xFFFFFFFF,
|
|
428
|
+
font: _Font | None = None,
|
|
429
|
+
outline: bool = False,
|
|
430
|
+
outline_color: int | None = None,
|
|
431
|
+
outline_thick: float = 1.0,
|
|
432
|
+
) -> None: ...
|
|
433
|
+
@staticmethod
|
|
434
|
+
def load_texture(path: str) -> _Texture: ...
|
|
435
|
+
@staticmethod
|
|
436
|
+
def load_texture_bytes(kind: str, data: Any) -> _Texture: ...
|
|
437
|
+
@staticmethod
|
|
438
|
+
def texture(
|
|
439
|
+
texture: _Texture,
|
|
440
|
+
x: float,
|
|
441
|
+
y: float,
|
|
442
|
+
scale: float = 1.0,
|
|
443
|
+
rotation: float = 0.0,
|
|
444
|
+
tint: int = 0xFFFFFFFF,
|
|
445
|
+
opacity: float = 1.0,
|
|
446
|
+
outline: bool = False,
|
|
447
|
+
outline_color: int | None = None,
|
|
448
|
+
outline_thick: float = 1.0,
|
|
449
|
+
) -> None: ...
|
|
450
|
+
@staticmethod
|
|
451
|
+
def texture_rect(
|
|
452
|
+
texture: _Texture,
|
|
453
|
+
source: Any,
|
|
454
|
+
dest: Any,
|
|
455
|
+
tint: int = 0xFFFFFFFF,
|
|
456
|
+
opacity: float = 1.0,
|
|
457
|
+
outline: bool = False,
|
|
458
|
+
outline_color: int | None = None,
|
|
459
|
+
outline_thick: float = 1.0,
|
|
460
|
+
) -> None: ...
|
|
461
|
+
@staticmethod
|
|
462
|
+
def screenshot(path: str) -> None: ...
|
|
463
|
+
@staticmethod
|
|
464
|
+
def entity_box(
|
|
465
|
+
x: float,
|
|
466
|
+
y: float,
|
|
467
|
+
w: float,
|
|
468
|
+
h: float,
|
|
469
|
+
color: int = 0xFFFFFFFF,
|
|
470
|
+
style: str = "line",
|
|
471
|
+
fill: float = 0.0,
|
|
472
|
+
thick: float = 1.5,
|
|
473
|
+
outline: bool = True,
|
|
474
|
+
outline_color: int | None = None,
|
|
475
|
+
outline_thick: float = 1.0,
|
|
476
|
+
) -> _EntityBox: ...
|
|
477
|
+
@staticmethod
|
|
478
|
+
def entity_box_from_points(
|
|
479
|
+
top: vec2,
|
|
480
|
+
bottom: vec2,
|
|
481
|
+
color: int = 0xFFFFFFFF,
|
|
482
|
+
ratio: float = 0.85,
|
|
483
|
+
style: str = "line",
|
|
484
|
+
fill: float = 0.0,
|
|
485
|
+
thick: float = 1.5,
|
|
486
|
+
outline: bool = True,
|
|
487
|
+
outline_color: int | None = None,
|
|
488
|
+
outline_thick: float = 1.0,
|
|
489
|
+
) -> _EntityBox: ...
|
|
490
|
+
|
|
491
|
+
class _Input:
|
|
492
|
+
@staticmethod
|
|
493
|
+
def key_down(value: Any) -> bool: ...
|
|
494
|
+
@staticmethod
|
|
495
|
+
def key_pressed(value: Any) -> bool: ...
|
|
496
|
+
@staticmethod
|
|
497
|
+
def key_up(value: Any) -> bool: ...
|
|
498
|
+
@staticmethod
|
|
499
|
+
def mouse_pos() -> vec2: ...
|
|
500
|
+
@staticmethod
|
|
501
|
+
def mouse_down(value: Any) -> bool: ...
|
|
502
|
+
@staticmethod
|
|
503
|
+
def mouse_pressed(value: Any) -> bool: ...
|
|
504
|
+
@staticmethod
|
|
505
|
+
def mouse_up(value: Any) -> bool: ...
|
|
506
|
+
@staticmethod
|
|
507
|
+
def mouse_buttons() -> list[int]: ...
|
|
508
|
+
@staticmethod
|
|
509
|
+
def key_press(value: Any) -> None: ...
|
|
510
|
+
@staticmethod
|
|
511
|
+
def mouse_move(x: float, y: float, relative: bool = False) -> None: ...
|
|
512
|
+
@staticmethod
|
|
513
|
+
def mouse_click(value: Any) -> None: ...
|
|
514
|
+
@staticmethod
|
|
515
|
+
def mouse_scroll(amount: int) -> None: ...
|
|
516
|
+
@staticmethod
|
|
517
|
+
def set_pos(x: float, y: float) -> None: ...
|
|
518
|
+
|
|
519
|
+
class _Hotkey:
|
|
520
|
+
@staticmethod
|
|
521
|
+
def bind(value: Any, callback: Any = None) -> None: ...
|
|
522
|
+
@staticmethod
|
|
523
|
+
def list() -> list[str]: ...
|
|
524
|
+
@staticmethod
|
|
525
|
+
def unbind(value: Any) -> None: ...
|
|
526
|
+
@staticmethod
|
|
527
|
+
def poll() -> None: ...
|
|
528
|
+
|
|
529
|
+
class _Color:
|
|
530
|
+
@staticmethod
|
|
531
|
+
def get(value: Any) -> int: ...
|
|
532
|
+
@staticmethod
|
|
533
|
+
def fade(color: int, factor: float) -> int: ...
|
|
534
|
+
@staticmethod
|
|
535
|
+
def mix(a: Any, b: Any, factor: float) -> int: ...
|
|
536
|
+
@staticmethod
|
|
537
|
+
def names() -> list[str]: ...
|
|
538
|
+
@staticmethod
|
|
539
|
+
def table() -> dict[str, int]: ...
|
|
540
|
+
|
|
541
|
+
class _Keys:
|
|
542
|
+
@staticmethod
|
|
543
|
+
def code(value: Any) -> int: ...
|
|
544
|
+
@staticmethod
|
|
545
|
+
def name(value: Any) -> str: ...
|
|
546
|
+
@staticmethod
|
|
547
|
+
def names() -> list[str]: ...
|
|
548
|
+
|
|
549
|
+
class _Utils:
|
|
550
|
+
Monitor: type[_Monitor]
|
|
551
|
+
Window: type[_Window]
|
|
552
|
+
@staticmethod
|
|
553
|
+
def os_name() -> str: ...
|
|
554
|
+
@staticmethod
|
|
555
|
+
def screen_size() -> tuple[int, int]: ...
|
|
556
|
+
@staticmethod
|
|
557
|
+
def monitors() -> list[_Monitor]: ...
|
|
558
|
+
@staticmethod
|
|
559
|
+
def window_info(target: Any) -> _Window: ...
|
|
560
|
+
@staticmethod
|
|
561
|
+
def windows() -> list[_Window]: ...
|
|
562
|
+
@staticmethod
|
|
563
|
+
def time() -> float: ...
|
|
564
|
+
@staticmethod
|
|
565
|
+
def set_log_level(level: Any) -> None: ...
|
|
566
|
+
|
|
567
|
+
class _Errors:
|
|
568
|
+
Error: type[_Error]
|
|
569
|
+
ProcessNotFound: type[_ProcessNotFound]
|
|
570
|
+
ModuleNotFound: type[_ModuleNotFound]
|
|
571
|
+
AccessError: type[_AccessError]
|
|
572
|
+
PermissionDenied: type[_PermissionDenied]
|
|
573
|
+
UnsupportedError: type[_UnsupportedError]
|
|
574
|
+
HotkeyError: type[_HotkeyError]
|
|
575
|
+
OverlayError: type[_OverlayError]
|
|
576
|
+
WindowNotFound: type[_WindowNotFound]
|
|
577
|
+
|
|
578
|
+
class _Module:
|
|
579
|
+
name: str
|
|
580
|
+
base: int
|
|
581
|
+
end: int
|
|
582
|
+
size: int
|
|
583
|
+
|
|
584
|
+
class _Region:
|
|
585
|
+
start: int
|
|
586
|
+
end: int
|
|
587
|
+
size: int
|
|
588
|
+
protection: str
|
|
589
|
+
|
|
590
|
+
class _ProcessEntry:
|
|
591
|
+
pid: int
|
|
592
|
+
name: str
|
|
593
|
+
|
|
594
|
+
class _Monitor:
|
|
595
|
+
name: str
|
|
596
|
+
x: int
|
|
597
|
+
y: int
|
|
598
|
+
width: int
|
|
599
|
+
height: int
|
|
600
|
+
refresh: int
|
|
601
|
+
|
|
602
|
+
class _Window:
|
|
603
|
+
id: int
|
|
604
|
+
pid: int
|
|
605
|
+
name: str
|
|
606
|
+
title: str
|
|
607
|
+
x: int
|
|
608
|
+
y: int
|
|
609
|
+
width: int
|
|
610
|
+
height: int
|
|
611
|
+
|
|
612
|
+
class _Font:
|
|
613
|
+
def text(
|
|
614
|
+
self,
|
|
615
|
+
text: str | list[str],
|
|
616
|
+
x: float,
|
|
617
|
+
y: float,
|
|
618
|
+
size: float = 20.0,
|
|
619
|
+
color: int = 0xFFFFFFFF,
|
|
620
|
+
align: str = "left",
|
|
621
|
+
) -> None: ...
|
|
622
|
+
def measure(self, text: str | list[str], size: float = 20.0, spacing: float = 1.0) -> vec2: ...
|
|
623
|
+
def filter(self, filter: str = "bilinear") -> None: ...
|
|
624
|
+
def size(self) -> int: ...
|
|
625
|
+
def close(self) -> None: ...
|
|
626
|
+
|
|
627
|
+
class _Texture:
|
|
628
|
+
def width(self) -> int: ...
|
|
629
|
+
def height(self) -> int: ...
|
|
630
|
+
def close(self) -> None: ...
|
|
631
|
+
|
|
632
|
+
def color_get(value: Any) -> int: ...
|
|
633
|
+
def color_fade(color: int, factor: float) -> int: ...
|
|
634
|
+
def color_mix(a: Any, b: Any, factor: float) -> int: ...
|
|
635
|
+
def color_names() -> list[str]: ...
|
|
636
|
+
def color_table() -> dict[str, int]: ...
|
|
637
|
+
def draw_point(x: float, y: float, color: int = 0xFFFFFFFF) -> None: ...
|
|
638
|
+
def draw_line(
|
|
639
|
+
x1: float,
|
|
640
|
+
y1: float,
|
|
641
|
+
x2: float,
|
|
642
|
+
y2: float,
|
|
643
|
+
color: int = 0xFFFFFFFF,
|
|
644
|
+
thick: float = 1.0,
|
|
645
|
+
outline: bool = False,
|
|
646
|
+
outline_color: int | None = None,
|
|
647
|
+
outline_thick: float = 1.0,
|
|
648
|
+
) -> None: ...
|
|
649
|
+
def draw_polyline(
|
|
650
|
+
points: Any,
|
|
651
|
+
color: int = 0xFFFFFFFF,
|
|
652
|
+
thick: float = 1.0,
|
|
653
|
+
outline: bool = False,
|
|
654
|
+
outline_color: int | None = None,
|
|
655
|
+
outline_thick: float = 1.0,
|
|
656
|
+
) -> None: ...
|
|
657
|
+
def draw_rect(
|
|
658
|
+
x: float,
|
|
659
|
+
y: float,
|
|
660
|
+
w: float,
|
|
661
|
+
h: float,
|
|
662
|
+
color: int = 0xFFFFFFFF,
|
|
663
|
+
fill: bool = True,
|
|
664
|
+
thick: float = 1.0,
|
|
665
|
+
round: float = 0.0,
|
|
666
|
+
segments: int = 0,
|
|
667
|
+
rotation: float = 0.0,
|
|
668
|
+
outline: bool = False,
|
|
669
|
+
outline_color: int | None = None,
|
|
670
|
+
outline_thick: float = 1.0,
|
|
671
|
+
) -> None: ...
|
|
672
|
+
def draw_rect_gradient(
|
|
673
|
+
x: float,
|
|
674
|
+
y: float,
|
|
675
|
+
w: float,
|
|
676
|
+
h: float,
|
|
677
|
+
top: int,
|
|
678
|
+
bottom: int,
|
|
679
|
+
horizontal: bool = False,
|
|
680
|
+
outline: bool = False,
|
|
681
|
+
outline_color: int | None = None,
|
|
682
|
+
outline_thick: float = 1.0,
|
|
683
|
+
) -> None: ...
|
|
684
|
+
def draw_circle(
|
|
685
|
+
cx: float,
|
|
686
|
+
cy: float,
|
|
687
|
+
r: float,
|
|
688
|
+
color: int = 0xFFFFFFFF,
|
|
689
|
+
fill: bool = True,
|
|
690
|
+
thick: float = 1.0,
|
|
691
|
+
outline: bool = False,
|
|
692
|
+
outline_color: int | None = None,
|
|
693
|
+
outline_thick: float = 1.0,
|
|
694
|
+
) -> None: ...
|
|
695
|
+
def draw_sector(
|
|
696
|
+
cx: float,
|
|
697
|
+
cy: float,
|
|
698
|
+
r: float,
|
|
699
|
+
start: float,
|
|
700
|
+
end: float,
|
|
701
|
+
color: int = 0xFFFFFFFF,
|
|
702
|
+
fill: bool = True,
|
|
703
|
+
segments: int = 36,
|
|
704
|
+
outline: bool = False,
|
|
705
|
+
outline_color: int | None = None,
|
|
706
|
+
outline_thick: float = 1.0,
|
|
707
|
+
) -> None: ...
|
|
708
|
+
def draw_ring(
|
|
709
|
+
cx: float,
|
|
710
|
+
cy: float,
|
|
711
|
+
r_inner: float,
|
|
712
|
+
r_outer: float,
|
|
713
|
+
color: int = 0xFFFFFFFF,
|
|
714
|
+
start: float = 0.0,
|
|
715
|
+
end: float = 360.0,
|
|
716
|
+
fill: bool = True,
|
|
717
|
+
segments: int = 36,
|
|
718
|
+
outline: bool = False,
|
|
719
|
+
outline_color: int | None = None,
|
|
720
|
+
outline_thick: float = 1.0,
|
|
721
|
+
) -> None: ...
|
|
722
|
+
def draw_ellipse(
|
|
723
|
+
cx: float,
|
|
724
|
+
cy: float,
|
|
725
|
+
rx: float,
|
|
726
|
+
ry: float,
|
|
727
|
+
color: int = 0xFFFFFFFF,
|
|
728
|
+
fill: bool = True,
|
|
729
|
+
thick: float = 1.0,
|
|
730
|
+
outline: bool = False,
|
|
731
|
+
outline_color: int | None = None,
|
|
732
|
+
outline_thick: float = 1.0,
|
|
733
|
+
) -> None: ...
|
|
734
|
+
def draw_triangle(
|
|
735
|
+
x1: float,
|
|
736
|
+
y1: float,
|
|
737
|
+
x2: float,
|
|
738
|
+
y2: float,
|
|
739
|
+
x3: float,
|
|
740
|
+
y3: float,
|
|
741
|
+
color: int = 0xFFFFFFFF,
|
|
742
|
+
fill: bool = True,
|
|
743
|
+
thick: float = 1.0,
|
|
744
|
+
outline: bool = False,
|
|
745
|
+
outline_color: int | None = None,
|
|
746
|
+
outline_thick: float = 1.0,
|
|
747
|
+
) -> None: ...
|
|
748
|
+
def draw_poly(
|
|
749
|
+
cx: float,
|
|
750
|
+
cy: float,
|
|
751
|
+
sides: int,
|
|
752
|
+
radius: float,
|
|
753
|
+
color: int = 0xFFFFFFFF,
|
|
754
|
+
rotation: float = 0.0,
|
|
755
|
+
fill: bool = True,
|
|
756
|
+
thick: float = 1.0,
|
|
757
|
+
outline: bool = False,
|
|
758
|
+
outline_color: int | None = None,
|
|
759
|
+
outline_thick: float = 1.0,
|
|
760
|
+
) -> None: ...
|
|
761
|
+
def draw_text(
|
|
762
|
+
text: str | list[str],
|
|
763
|
+
x: float,
|
|
764
|
+
y: float,
|
|
765
|
+
size: float,
|
|
766
|
+
color: int = 0xFFFFFFFF,
|
|
767
|
+
align: str = "left",
|
|
768
|
+
outline: bool = False,
|
|
769
|
+
outline_color: int | None = None,
|
|
770
|
+
outline_thick: float = 1.0,
|
|
771
|
+
) -> None: ...
|
|
772
|
+
def draw_text_ex(
|
|
773
|
+
font: _Font,
|
|
774
|
+
text: str | list[str],
|
|
775
|
+
x: float,
|
|
776
|
+
y: float,
|
|
777
|
+
size: float,
|
|
778
|
+
color: int = 0xFFFFFFFF,
|
|
779
|
+
spacing: float = 1.0,
|
|
780
|
+
align: str = "left",
|
|
781
|
+
outline: bool = False,
|
|
782
|
+
outline_color: int | None = None,
|
|
783
|
+
outline_thick: float = 1.0,
|
|
784
|
+
) -> None: ...
|
|
785
|
+
def draw_measure_text(text: str | list[str], size: float, spacing: float = 1.0) -> vec2: ...
|
|
786
|
+
def draw_measure_text_ex(
|
|
787
|
+
font: _Font,
|
|
788
|
+
text: str | list[str],
|
|
789
|
+
size: float,
|
|
790
|
+
spacing: float = 1.0,
|
|
791
|
+
) -> vec2: ...
|
|
792
|
+
def draw_set_font(font: _Font | None = None) -> None: ...
|
|
793
|
+
def draw_font() -> _Font | None: ...
|
|
794
|
+
def draw_fps(
|
|
795
|
+
x: float,
|
|
796
|
+
y: float,
|
|
797
|
+
color: int = 0xFFFFFFFF,
|
|
798
|
+
font: _Font | None = None,
|
|
799
|
+
outline: bool = False,
|
|
800
|
+
outline_color: int | None = None,
|
|
801
|
+
outline_thick: float = 1.0,
|
|
802
|
+
) -> None: ...
|
|
803
|
+
def draw_load_texture(path: str) -> _Texture: ...
|
|
804
|
+
def draw_load_texture_bytes(kind: str, data: Any) -> _Texture: ...
|
|
805
|
+
def draw_texture(
|
|
806
|
+
texture: _Texture,
|
|
807
|
+
x: float,
|
|
808
|
+
y: float,
|
|
809
|
+
scale: float = 1.0,
|
|
810
|
+
rotation: float = 0.0,
|
|
811
|
+
tint: int = 0xFFFFFFFF,
|
|
812
|
+
opacity: float = 1.0,
|
|
813
|
+
outline: bool = False,
|
|
814
|
+
outline_color: int | None = None,
|
|
815
|
+
outline_thick: float = 1.0,
|
|
816
|
+
) -> None: ...
|
|
817
|
+
def draw_texture_rect(
|
|
818
|
+
texture: _Texture,
|
|
819
|
+
source: Any,
|
|
820
|
+
dest: Any,
|
|
821
|
+
tint: int = 0xFFFFFFFF,
|
|
822
|
+
opacity: float = 1.0,
|
|
823
|
+
outline: bool = False,
|
|
824
|
+
outline_color: int | None = None,
|
|
825
|
+
outline_thick: float = 1.0,
|
|
826
|
+
) -> None: ...
|
|
827
|
+
def draw_load_font(path: str, size: float, chars: str = "latin") -> _Font: ...
|
|
828
|
+
def draw_load_font_bytes(
|
|
829
|
+
data: Any,
|
|
830
|
+
size: float,
|
|
831
|
+
chars: str = "latin",
|
|
832
|
+
kind: str = "ttf",
|
|
833
|
+
) -> _Font: ...
|
|
834
|
+
def draw_fonts() -> list[str]: ...
|
|
835
|
+
def draw_screenshot(path: str) -> None: ...
|
|
836
|
+
def draw_entity_box(
|
|
837
|
+
x: float,
|
|
838
|
+
y: float,
|
|
839
|
+
w: float,
|
|
840
|
+
h: float,
|
|
841
|
+
color: int = 0xFFFFFFFF,
|
|
842
|
+
style: str = "line",
|
|
843
|
+
fill: float = 0.0,
|
|
844
|
+
thick: float = 1.5,
|
|
845
|
+
outline: bool = True,
|
|
846
|
+
outline_color: int | None = None,
|
|
847
|
+
outline_thick: float = 1.0,
|
|
848
|
+
) -> _EntityBox: ...
|
|
849
|
+
def draw_entity_box_from_points(
|
|
850
|
+
top: vec2,
|
|
851
|
+
bottom: vec2,
|
|
852
|
+
color: int = 0xFFFFFFFF,
|
|
853
|
+
ratio: float = 0.85,
|
|
854
|
+
style: str = "line",
|
|
855
|
+
fill: float = 0.0,
|
|
856
|
+
thick: float = 1.5,
|
|
857
|
+
outline: bool = True,
|
|
858
|
+
outline_color: int | None = None,
|
|
859
|
+
outline_thick: float = 1.0,
|
|
860
|
+
) -> _EntityBox: ...
|
|
861
|
+
|
|
862
|
+
# a class, not a variable: subclassing pm.mem.Struct needs a static base
|
|
863
|
+
class mem(_Mem): ...
|
|
864
|
+
overlay: _OverlayModule
|
|
865
|
+
draw: _Draw
|
|
866
|
+
input: _Input
|
|
867
|
+
hotkey: _Hotkey
|
|
868
|
+
color: _Color
|
|
869
|
+
keys: _Keys
|
|
870
|
+
utils: _Utils
|
|
871
|
+
errors: _Errors
|