chan color in piano and real volume chan feedback (w/ gamma correction)
now i can recreate the bee video! :>
This commit is contained in:
parent
44ec4f70da
commit
f93dd893c8
5 changed files with 50 additions and 14 deletions
|
|
@ -3505,6 +3505,19 @@ void FurnaceGUI::drawSettings() {
|
|||
settings.channelFeedbackStyle=3;
|
||||
settingsChanged=true;
|
||||
}
|
||||
if (ImGui::RadioButton(_("Volume (Real)##CHF4"),settings.channelFeedbackStyle==4)) {
|
||||
settings.channelFeedbackStyle=4;
|
||||
settingsChanged=true;
|
||||
}
|
||||
if (settings.channelFeedbackStyle==4) {
|
||||
ImGui::Indent();
|
||||
if (ImGui::SliderFloat(_("Gamma##CHF"),&settings.channelFeedbackGamma,0.0f,2.0f)) {
|
||||
if (settings.channelFeedbackGamma<0.0f) settings.channelFeedbackGamma=0.0f;
|
||||
if (settings.channelFeedbackGamma>2.0f) settings.channelFeedbackGamma=2.0f;
|
||||
settingsChanged=true;
|
||||
}
|
||||
ImGui::Unindent();
|
||||
}
|
||||
ImGui::Unindent();
|
||||
|
||||
ImGui::Text(_("Channel font:"));
|
||||
|
|
@ -5123,6 +5136,7 @@ void FurnaceGUI::readConfig(DivConfig& conf, FurnaceGUISettingGroups groups) {
|
|||
settings.channelStyle=conf.getInt("channelStyle",1);
|
||||
settings.channelVolStyle=conf.getInt("channelVolStyle",0);
|
||||
settings.channelFeedbackStyle=conf.getInt("channelFeedbackStyle",1);
|
||||
settings.channelFeedbackGamma=conf.getFloat("channelFeedbackGamma",1.0f);
|
||||
settings.channelFont=conf.getInt("channelFont",1);
|
||||
settings.channelTextCenter=conf.getInt("channelTextCenter",1);
|
||||
|
||||
|
|
@ -5399,7 +5413,8 @@ void FurnaceGUI::readConfig(DivConfig& conf, FurnaceGUISettingGroups groups) {
|
|||
clampSetting(settings.channelTextColors,0,2);
|
||||
clampSetting(settings.channelStyle,0,5);
|
||||
clampSetting(settings.channelVolStyle,0,4);
|
||||
clampSetting(settings.channelFeedbackStyle,0,3);
|
||||
clampSetting(settings.channelFeedbackStyle,0,4);
|
||||
clampSetting(settings.channelFeedbackGamma,0.0f,2.0f);
|
||||
clampSetting(settings.channelFont,0,1);
|
||||
clampSetting(settings.channelTextCenter,0,1);
|
||||
clampSetting(settings.maxRecentFile,0,30);
|
||||
|
|
@ -5711,6 +5726,7 @@ void FurnaceGUI::writeConfig(DivConfig& conf, FurnaceGUISettingGroups groups) {
|
|||
conf.set("channelStyle",settings.channelStyle);
|
||||
conf.set("channelVolStyle",settings.channelVolStyle);
|
||||
conf.set("channelFeedbackStyle",settings.channelFeedbackStyle);
|
||||
conf.set("channelFeedbackGamma",settings.channelFeedbackGamma);
|
||||
conf.set("channelFont",settings.channelFont);
|
||||
conf.set("channelTextCenter",settings.channelTextCenter);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue