Better centered text. Pass by reference for midi variable is not going to work with json serialization.
This commit is contained in:
@@ -29,6 +29,7 @@ namespace VISEQ::APP{
|
||||
float fps;
|
||||
float speed = 16.0f;
|
||||
int gui_selected_midi_out;
|
||||
Color mode_colors[7] = {VS_COLOR_GREEN, VS_COLOR_SUN, VS_COLOR_PINK, VS_COLOR_ORANGE, VS_COLOR_PURPLE, VS_COLOR_LIGHTGREY, (Color){0,0,0,0}};
|
||||
};
|
||||
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT(AppSettings, width, height, grid, bpm, fps, speed, gui_selected_midi_out)
|
||||
|
||||
@@ -84,6 +85,8 @@ namespace VISEQ::APP{
|
||||
Vec2Df mouse_delta;
|
||||
|
||||
Vec2Df selection_origin;
|
||||
|
||||
Color mode_color = settings.mode_colors[0];
|
||||
|
||||
void pushEvent(InteractionEvent e){
|
||||
event_queue.push_back(e);
|
||||
@@ -132,6 +135,8 @@ namespace VISEQ::APP{
|
||||
screen_mouse = {round(mouse_pos.x), round(mouse_pos.y)};
|
||||
raw_mouse = {GetMousePosition().x, GetMousePosition().y};
|
||||
mod_mouse = {round(mouse_pos.x), round(mouse_pos.y)};
|
||||
|
||||
mode_color = settings.mode_colors[node_mode];
|
||||
|
||||
if(keys_down.ctrl) {
|
||||
mod_mouse.x = round(mouse_pos.x / settings.grid) * settings.grid;
|
||||
|
||||
Reference in New Issue
Block a user