|
|
@ -83,7 +83,7 @@ parse_background_alpha(const char *str)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static float
|
|
|
|
static float
|
|
|
|
parse_frametime_alpha(const char *str)
|
|
|
|
parse_alpha(const char *str)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return strtof(str, NULL);
|
|
|
|
return strtof(str, NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -310,7 +310,7 @@ parse_overlay_config(struct overlay_params *params,
|
|
|
|
params->offset_x = 0;
|
|
|
|
params->offset_x = 0;
|
|
|
|
params->offset_y = 0;
|
|
|
|
params->offset_y = 0;
|
|
|
|
params->background_alpha = 0.5;
|
|
|
|
params->background_alpha = 0.5;
|
|
|
|
params->frametime_alpha = 1.0;
|
|
|
|
params->alpha = 1.0;
|
|
|
|
params->time_format = "%T";
|
|
|
|
params->time_format = "%T";
|
|
|
|
params->gpu_color = strtol("2e9762", NULL, 16);
|
|
|
|
params->gpu_color = strtol("2e9762", NULL, 16);
|
|
|
|
params->cpu_color = strtol("2e97cb", NULL, 16);
|
|
|
|
params->cpu_color = strtol("2e97cb", NULL, 16);
|
|
|
@ -368,7 +368,7 @@ parse_overlay_config(struct overlay_params *params,
|
|
|
|
// Command buffer gets reused and timestamps cause hangs for some reason, force off for now
|
|
|
|
// Command buffer gets reused and timestamps cause hangs for some reason, force off for now
|
|
|
|
params->enabled[OVERLAY_PARAM_ENABLED_gpu_timing] = false;
|
|
|
|
params->enabled[OVERLAY_PARAM_ENABLED_gpu_timing] = false;
|
|
|
|
// Convert from 0xRRGGBB to ImGui's format
|
|
|
|
// Convert from 0xRRGGBB to ImGui's format
|
|
|
|
std::array<unsigned *, 8> colors = {
|
|
|
|
std::array<unsigned *, 9> colors = {
|
|
|
|
¶ms->crosshair_color,
|
|
|
|
¶ms->crosshair_color,
|
|
|
|
¶ms->cpu_color,
|
|
|
|
¶ms->cpu_color,
|
|
|
|
¶ms->gpu_color,
|
|
|
|
¶ms->gpu_color,
|
|
|
@ -377,6 +377,7 @@ parse_overlay_config(struct overlay_params *params,
|
|
|
|
¶ms->engine_color,
|
|
|
|
¶ms->engine_color,
|
|
|
|
¶ms->io_color,
|
|
|
|
¶ms->io_color,
|
|
|
|
¶ms->background_color,
|
|
|
|
¶ms->background_color,
|
|
|
|
|
|
|
|
¶ms->frametime_color,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
for (auto color : colors){
|
|
|
|
for (auto color : colors){
|
|
|
@ -387,12 +388,6 @@ parse_overlay_config(struct overlay_params *params,
|
|
|
|
255);
|
|
|
|
255);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
params->frametime_color =
|
|
|
|
|
|
|
|
IM_COL32(RGBGetRValue(params->frametime_color),
|
|
|
|
|
|
|
|
RGBGetGValue(params->frametime_color),
|
|
|
|
|
|
|
|
RGBGetBValue(params->frametime_color),
|
|
|
|
|
|
|
|
params->frametime_alpha * 255);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
params->tableCols = 3;
|
|
|
|
params->tableCols = 3;
|
|
|
|
|
|
|
|
|
|
|
|
if (!params->font_size) {
|
|
|
|
if (!params->font_size) {
|
|
|
|