mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-23 06:35:33 -07:00
formatting
This commit is contained in:
parent
3566aa9b29
commit
08364154d4
1 changed files with 7 additions and 7 deletions
|
@ -272,8 +272,8 @@ namespace SohImGui {
|
||||||
std::string Cvar_RBM = cvarName;
|
std::string Cvar_RBM = cvarName;
|
||||||
Cvar_RBM += "RBM";
|
Cvar_RBM += "RBM";
|
||||||
std::string RBM_HUE = cvarName;
|
std::string RBM_HUE = cvarName;
|
||||||
RBM_HUE+="Hue";
|
RBM_HUE += "Hue";
|
||||||
f32 Canon = 10.f*s;
|
f32 Canon = 10.f * s;
|
||||||
ImVec4 NewColor;
|
ImVec4 NewColor;
|
||||||
const f32 deltaTime = 1.0f / ImGui::GetIO().Framerate;
|
const f32 deltaTime = 1.0f / ImGui::GetIO().Framerate;
|
||||||
f32 hue = CVar_GetFloat(RBM_HUE.c_str(), 0.0f);
|
f32 hue = CVar_GetFloat(RBM_HUE.c_str(), 0.0f);
|
||||||
|
@ -295,10 +295,10 @@ namespace SohImGui {
|
||||||
case 6: NewColor.x = 255; NewColor.y = 0; NewColor.z = a; break;
|
case 6: NewColor.x = 255; NewColor.y = 0; NewColor.z = a; break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(CVar_GetS32(Cvar_RBM.c_str(), 0) != 0) {
|
if (CVar_GetS32(Cvar_RBM.c_str(), 0) != 0) {
|
||||||
CVar_SetS32(Cvar_Red.c_str(), ClampFloatToInt(NewColor.x,0,255));
|
CVar_SetS32(Cvar_Red.c_str(), ClampFloatToInt(NewColor.x, 0, 255));
|
||||||
CVar_SetS32(Cvar_Green.c_str(), ClampFloatToInt(NewColor.y,0,255));
|
CVar_SetS32(Cvar_Green.c_str(), ClampFloatToInt(NewColor.y, 0, 255));
|
||||||
CVar_SetS32(Cvar_Blue.c_str(), ClampFloatToInt(NewColor.z,0,255));
|
CVar_SetS32(Cvar_Blue.c_str(), ClampFloatToInt(NewColor.z, 0, 255));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue