634 {
635 super.OnDoubleClick(w,
x,
y, button);
637
639 {
641 float pos_y_a =
GetGame().
SurfaceY(screen_to_map[0], screen_to_map[2]);
643 float pos_y = Math.Max(pos_y_a, pos_y_b);
644 screen_to_map[1] = pos_y;
645
647 {
649 float camPosY = camPos[1];
650 screen_to_map[1] = camPosY;
652 }
653 else
654 {
656 }
657
658 return true;
659 }
660
662 {
665 {
667 }
668 else
669 {
671 }
672 return true;
673 }
674
676 {
677 EditBoxWidget.Cast(w).SetText("");
678 return true;
679 }
680
682 {
683 EditBoxWidget.Cast(w).SetText("");
684 return true;
685 }
686 return false;
687 }
proto native float SurfaceY(float x, float z)
proto native float SurfaceRoadY(float x, float z, RoadSurfaceDetection rsd=RoadSurfaceDetection.LEGACY)
EditBoxWidget m_TeleportXYZ
MapWidget m_DebugMapWidget
TextListboxWidget m_PositionsListbox
FreeDebugCamera m_FreeDebugCamera
vector GetCurrentLocationPos()
EditBoxWidget m_TeleportHeading
PluginDeveloper m_Developer
void Teleport(PlayerBase player, vector position)
proto native CGame GetGame()
proto native vector Vector(float x, float y, float z)
Vector constructor from components.