update
This commit is contained in:
parent
b3e5f8cef3
commit
a5c4ae871b
@ -31,11 +31,11 @@ from pyglet.window import Window
|
|||||||
from pyglet.window import key, mouse
|
from pyglet.window import key, mouse
|
||||||
|
|
||||||
# Difficult_Rocket function
|
# Difficult_Rocket function
|
||||||
|
from Difficult_Rocket.utils import tools
|
||||||
from Difficult_Rocket.api.types import Options
|
from Difficult_Rocket.api.types import Options
|
||||||
from Difficult_Rocket.command import line, tree
|
from Difficult_Rocket.command import line, tree
|
||||||
from Difficult_Rocket.utils.translate import tr
|
from Difficult_Rocket.utils.translate import tr
|
||||||
from Difficult_Rocket import DR_runtime, DR_option
|
from Difficult_Rocket import DR_runtime, DR_option
|
||||||
from Difficult_Rocket.utils import tools, translate
|
|
||||||
from Difficult_Rocket.utils.new_thread import new_thread
|
from Difficult_Rocket.utils.new_thread import new_thread
|
||||||
from Difficult_Rocket.client.fps.fps_log import FpsLogger
|
from Difficult_Rocket.client.fps.fps_log import FpsLogger
|
||||||
from Difficult_Rocket.client.guis.widgets import InputBox
|
from Difficult_Rocket.client.guis.widgets import InputBox
|
||||||
|
@ -31,7 +31,6 @@ pub mod camera {
|
|||||||
#[pymethods]
|
#[pymethods]
|
||||||
impl CameraRs {
|
impl CameraRs {
|
||||||
#[new]
|
#[new]
|
||||||
#[allow(unused_variables)]
|
|
||||||
#[pyo3(signature = (window, zoom=1.0, dx=1.0, dy=1.0, min_zoom=1.0, max_zoom=1.0))]
|
#[pyo3(signature = (window, zoom=1.0, dx=1.0, dy=1.0, min_zoom=1.0, max_zoom=1.0))]
|
||||||
pub fn py_new(window: &PyAny, zoom: f64, dx: f64, dy: f64,min_zoom: f64, max_zoom: f64) -> PyResult<Self> {
|
pub fn py_new(window: &PyAny, zoom: f64, dx: f64, dy: f64,min_zoom: f64, max_zoom: f64) -> PyResult<Self> {
|
||||||
return Ok(CameraRs {dx, dy, zoom, min_zoom, max_zoom,
|
return Ok(CameraRs {dx, dy, zoom, min_zoom, max_zoom,
|
||||||
|
Loading…
Reference in New Issue
Block a user