mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp
synced 2026-06-12 13:35:43 -04:00
added set time debug ui
This commit is contained in:
@@ -199,8 +199,9 @@ struct DebugContext {
|
||||
int area_index = 0;
|
||||
int scene_index = 0;
|
||||
int entrance_index = 0;
|
||||
uint8_t set_time_hour = 0;
|
||||
uint8_t set_time_minute = 0;
|
||||
int set_time_day = 1;
|
||||
int set_time_hour = 12;
|
||||
int set_time_minute = 0;
|
||||
bool debug_enabled = false;
|
||||
|
||||
DebugContext() {
|
||||
@@ -296,7 +297,7 @@ public:
|
||||
|
||||
recomp::register_event(listener, "set_time",
|
||||
[](const std::string& param, Rml::Event& event) {
|
||||
recomp::set_time(debug_context.set_time_hour, debug_context.set_time_minute);
|
||||
recomp::set_time(debug_context.set_time_day, debug_context.set_time_hour, debug_context.set_time_minute);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -627,6 +628,10 @@ public:
|
||||
constructor.Bind("scene_names", &debug_context.scene_names);
|
||||
constructor.Bind("entrance_names", &debug_context.entrance_names);
|
||||
|
||||
constructor.Bind("debug_time_day", &debug_context.set_time_day);
|
||||
constructor.Bind("debug_time_hour", &debug_context.set_time_hour);
|
||||
constructor.Bind("debug_time_minute", &debug_context.set_time_minute);
|
||||
|
||||
debug_context.model_handle = constructor.GetModelHandle();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user