#include <minecart_canvas_tool.h>
Public Member Functions | |
| bool | Draw (const gui::CanvasRuntime &rt, const zelda3::Room &room, int room_id, bool editable, bool shortcut_focus, const MinecartCanvasBinding &binding) |
| void | Cancel () |
| bool | dragging () const |
| const std::optional< MinecartTrack > & | preview () const |
| const std::string & | message () const |
Private Attributes | |
| std::optional< MinecartTrack > | before_ |
| std::optional< MinecartTrack > | preview_ |
| int | room_id_ = -1 |
| uint64_t | revision_ = 0 |
| std::string | message_ |
Definition at line 44 of file minecart_canvas_tool.h.
| bool yaze::editor::MinecartCanvasTool::Draw | ( | const gui::CanvasRuntime & | rt, |
| const zelda3::Room & | room, | ||
| int | room_id, | ||
| bool | editable, | ||
| bool | shortcut_focus, | ||
| const MinecartCanvasBinding & | binding ) |
Definition at line 79 of file minecart_canvas_tool.cc.
References before_, Cancel(), yaze::editor::MinecartCanvasBinding::cancel_pick, yaze::gui::CanvasRuntime::canvas_p0, yaze::gui::CanvasRuntime::canvas_sz, dragging(), yaze::gui::CanvasRuntime::draw_list, yaze::editor::MinecartCanvasBinding::enabled, yaze::editor::FindCartStartSprite(), yaze::editor::AgentUI::GetTheme(), yaze::gui::CanvasRuntime::hovered, message_, yaze::editor::MinecartLocalPosition(), yaze::editor::MinecartCanvasBinding::move, yaze::editor::MinecartCanvasBinding::picking, preview_, yaze::editor::MinecartCanvasBinding::revision, revision_, room_id_, yaze::editor::DungeonCanvasTransform::RoomPixelsToScreen(), yaze::editor::DungeonCanvasTransform::scale(), yaze::gui::CanvasRuntime::scale, yaze::editor::DungeonCanvasTransform::ScreenToRoomPixels(), yaze::gui::CanvasRuntime::scrolling, yaze::editor::MinecartCanvasBinding::select, yaze::editor::MinecartCanvasBinding::selected, yaze::editor::MinecartCanvasBinding::tracks, and yaze::editor::ValidateCartStartDestination().
Referenced by yaze::editor::DungeonCanvasViewer::DrawMinecartCanvas().
| void yaze::editor::MinecartCanvasTool::Cancel | ( | ) |
Definition at line 74 of file minecart_canvas_tool.cc.
References before_, and preview_.
Referenced by yaze::editor::DungeonCanvasViewer::CancelMinecartGesture(), Draw(), yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), yaze::editor::DungeonCanvasViewer::DrawMinecartCanvas(), and yaze::editor::DungeonCanvasViewer::RefreshRomBackedState().
|
inline |
|
inline |
Definition at line 52 of file minecart_canvas_tool.h.
References preview_.
|
inline |
Definition at line 53 of file minecart_canvas_tool.h.
References message_.
|
private |
Definition at line 56 of file minecart_canvas_tool.h.
Referenced by Cancel(), dragging(), and Draw().
|
private |
Definition at line 57 of file minecart_canvas_tool.h.
|
private |
Definition at line 58 of file minecart_canvas_tool.h.
Referenced by Draw().
|
private |
Definition at line 59 of file minecart_canvas_tool.h.
Referenced by Draw().
|
private |
Definition at line 60 of file minecart_canvas_tool.h.