Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Metric themes #376

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/main.mr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "engine_sim.mr"
import "themes/default.mr"
import "themes/default_metric.mr"
import "engines/atg-video-2/01_subaru_ej25_eh.mr"

use_default_theme()
Expand Down
31 changes: 31 additions & 0 deletions assets/themes/amateur_metric.mr
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import "engine_sim.mr"

unit_names units()
public node use_amateur_theme {
input start_fullscreen: false;
input speed_units: units.kph;
input pressure_units: units.bar;
input torque_units: units.Nm;
input power_units: units.kW;

set_application_settings(
start_fullscreen: start_fullscreen,
speed_units: speed_units,
pressure_units: pressure_units,
torque_units:torque_units,
power_units: power_units,

// Default Color Settings
color_background: 0x000000,
color_foreground: 0xFFFFFF,
color_highlight1: 0xFF0000,
color_highlight2: 0xFFFFFF,
color_shadow: 0x000000,
color_pink: 0xFF00FF,
color_red: 0xFF0000,
color_orange: 0xFF8000,
color_yellow: 0xFFFF00,
color_blue: 0x0000FF,
color_green: 0x00FF00
)
}
31 changes: 31 additions & 0 deletions assets/themes/bubble_gum_metric.mr
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import "engine_sim.mr"

unit_names units()
public node use_bubble_gum_theme {
input start_fullscreen: false;
input speed_units: units.kph;
input pressure_units: units.bar;
input torque_units: units.Nm;
input power_units: units.kW;

set_application_settings(
start_fullscreen: start_fullscreen,
speed_units: speed_units,
pressure_units: pressure_units,
torque_units:torque_units,
power_units: power_units,

// Default Color Settings
color_background: 0xF394BE,
color_foreground: 0xFFFFFF,
color_highlight1: 0xfdeaf2,
color_highlight2: 0xFFFFFF,
color_shadow: 0xF394BE,
color_pink: 0xfad4e5,
color_red: 0xf5a9cb,
color_orange: 0xffd086,
color_yellow: 0xffd0c3,
color_blue: 0xcfd2dc,
color_green: 0xd7f7d2
)
}
31 changes: 31 additions & 0 deletions assets/themes/default_metric.mr
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import "engine_sim.mr"

unit_names units()
public node use_default_theme {
input start_fullscreen: false;
input speed_units: units.kph;
input pressure_units: units.bar;
input torque_units: units.Nm;
input power_units: units.kW;

set_application_settings(
start_fullscreen: start_fullscreen,
speed_units: speed_units,
pressure_units: pressure_units,
torque_units: torque_units,
power_units: power_units,

// Default Color Settings
color_background: 0x0E1012,
color_foreground: 0xFFFFFF,
color_shadow: 0x0E1012,
color_highlight1: 0xEF4545,
color_highlight2: 0xFFFFFF,
color_pink: 0xF394BE,
color_red: 0xEE4445,
color_orange: 0xF4802A,
color_yellow: 0xFDBD2E,
color_blue: 0x77CEE0,
color_green: 0xBDD869
)
}
31 changes: 31 additions & 0 deletions assets/themes/minimalistic_metric.mr
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import "engine_sim.mr"

unit_names units()
public node use_minimalistic_theme {
input start_fullscreen: false;
input speed_units: units.kph;
input pressure_units: units.bar;
input torque_units: units.Nm;
input power_units: units.kW;

set_application_settings(
start_fullscreen: start_fullscreen,
speed_units: speed_units,
pressure_units: pressure_units,
torque_units:torque_units,
power_units: power_units,

// Default Color Settings
color_background: 0x000000,
color_foreground: 0xFFFFFF,
color_highlight1: 0xFFFFFF,
color_highlight2: 0xFFFFFF,
color_shadow: 0x000000,
color_pink: 0xFFFFFF,
color_red: 0xFFFFFF,
color_orange: 0xFFFFFF,
color_yellow: 0xFFFFFF,
color_blue: 0xFFFFFF,
color_green: 0xFFFFFF
)
}
32 changes: 32 additions & 0 deletions assets/themes/night_vision_metric.mr
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import "engine_sim.mr"

unit_names units()
public node use_night_vision_theme {
input start_fullscreen: false;
input speed_units: units.kph;
input pressure_units: units.bar;
input torque_units: units.Nm;
input power_units: units.kW;
input color: 0x4dff68;

set_application_settings(
start_fullscreen: start_fullscreen,
speed_units: speed_units,
pressure_units: pressure_units,
torque_units:torque_units,
power_units: power_units,

// Default Color Settings
color_background: 0x000000,
color_foreground: color,
color_highlight1: color,
color_highlight2: color,
color_shadow: 0x000000,
color_pink: color,
color_red: color,
color_orange: color,
color_yellow: color,
color_blue: color,
color_green: color
)
}
32 changes: 32 additions & 0 deletions assets/themes/paper_metric.mr
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import "engine_sim.mr"

unit_names units()
public node use_paper_theme {
input start_fullscreen: false;
input speed_units: units.kph;
input pressure_units: units.bar;
input torque_units: units.Nm;
input power_units: units.kW;
input color: 0x63aaff;

set_application_settings(
start_fullscreen: start_fullscreen,
speed_units: speed_units,
pressure_units: pressure_units,
torque_units:torque_units,
power_units: power_units,

// Default Color Settings
color_background: 0xf8f2f0,
color_foreground: color,
color_highlight1: color,
color_highlight2: color,
color_shadow: 0xf8f2f0,
color_pink: color,
color_red: color,
color_orange: color,
color_yellow: color,
color_blue: color,
color_green: color
)
}