yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
dungeon_room_property_controls.h
Go to the documentation of this file.
1
#ifndef YAZE_APP_EDITOR_DUNGEON_DUNGEON_ROOM_PROPERTY_CONTROLS_H_
2
#define YAZE_APP_EDITOR_DUNGEON_DUNGEON_ROOM_PROPERTY_CONTROLS_H_
3
4
#include <functional>
5
6
namespace
yaze::zelda3
{
7
class
Room;
8
}
9
10
namespace
yaze::editor
{
11
class
DungeonCanvasViewer;
12
13
enum class
RoomPropertyLayout
{
14
kCompact
,
15
kFull
,
16
kCoreGraphics
,
17
kCoreGraphicsRow
,
18
kRoomDetails
,
19
kTags
,
20
kMechanics
,
21
};
22
23
// Both hosts edit through the viewer's validated, undoable metadata callback.
24
// Navigation and surrounding layout remain owned by each host.
25
// kCoreGraphicsRow appends Message and the optional pit-damage checkbox. The
26
// callback draws only the value widget; this renderer owns its label and cell.
27
void
DrawDungeonRoomPropertyFields
(
28
DungeonCanvasViewer& viewer,
zelda3::Room
& room,
int
room_id,
29
RoomPropertyLayout
layout,
30
const
std::function<
void
()>& draw_pit_damage = {});
31
32
}
// namespace yaze::editor
33
34
#endif
// YAZE_APP_EDITOR_DUNGEON_DUNGEON_ROOM_PROPERTY_CONTROLS_H_
yaze::zelda3::Room
Definition
room.h:228
yaze::editor
Editors are the view controllers for the application.
Definition
patch_export_usage.cc:9
yaze::editor::DrawDungeonRoomPropertyFields
void DrawDungeonRoomPropertyFields(DungeonCanvasViewer &viewer, zelda3::Room &room, int room_id, RoomPropertyLayout layout, const std::function< void()> &draw_pit_damage)
Definition
dungeon_canvas_room_chrome.cc:63
yaze::editor::RoomPropertyLayout
RoomPropertyLayout
Definition
dungeon_room_property_controls.h:13
yaze::editor::RoomPropertyLayout::kCompact
@ kCompact
yaze::editor::RoomPropertyLayout::kRoomDetails
@ kRoomDetails
yaze::editor::RoomPropertyLayout::kTags
@ kTags
yaze::editor::RoomPropertyLayout::kCoreGraphics
@ kCoreGraphics
yaze::editor::RoomPropertyLayout::kCoreGraphicsRow
@ kCoreGraphicsRow
yaze::editor::RoomPropertyLayout::kFull
@ kFull
yaze::editor::RoomPropertyLayout::kMechanics
@ kMechanics
yaze::zelda3
Zelda 3 specific classes and functions.
Definition
dungeon_entrance_camera.h:9
src
app
editor
dungeon
dungeon_room_property_controls.h
Generated by
1.10.0