GUI: attempt at optimizing pattern draw code
This commit is contained in:
parent
258a905aaa
commit
5f71857439
3 changed files with 39 additions and 9 deletions
|
|
@ -980,6 +980,8 @@ void FurnaceGUI::drawSettings() {
|
|||
UI_COLOR_CONFIG(GUI_COLOR_PATTERN_ACTIVE,"Note");
|
||||
UI_COLOR_CONFIG(GUI_COLOR_PATTERN_INACTIVE,"Blank");
|
||||
UI_COLOR_CONFIG(GUI_COLOR_PATTERN_INS,"Instrument");
|
||||
UI_COLOR_CONFIG(GUI_COLOR_PATTERN_INS_WARN,"Instrument (invalid type)");
|
||||
UI_COLOR_CONFIG(GUI_COLOR_PATTERN_INS_ERROR,"Instrument (out of range)");
|
||||
UI_COLOR_CONFIG(GUI_COLOR_PATTERN_VOLUME_MIN,"Volume (0%)");
|
||||
UI_COLOR_CONFIG(GUI_COLOR_PATTERN_VOLUME_HALF,"Volume (50%)");
|
||||
UI_COLOR_CONFIG(GUI_COLOR_PATTERN_VOLUME_MAX,"Volume (100%)");
|
||||
|
|
@ -1772,6 +1774,8 @@ void FurnaceGUI::commitSettings() {
|
|||
PUT_UI_COLOR(GUI_COLOR_PATTERN_ACTIVE);
|
||||
PUT_UI_COLOR(GUI_COLOR_PATTERN_INACTIVE);
|
||||
PUT_UI_COLOR(GUI_COLOR_PATTERN_INS);
|
||||
PUT_UI_COLOR(GUI_COLOR_PATTERN_INS_WARN);
|
||||
PUT_UI_COLOR(GUI_COLOR_PATTERN_INS_ERROR);
|
||||
PUT_UI_COLOR(GUI_COLOR_PATTERN_VOLUME_MIN);
|
||||
PUT_UI_COLOR(GUI_COLOR_PATTERN_VOLUME_HALF);
|
||||
PUT_UI_COLOR(GUI_COLOR_PATTERN_VOLUME_MAX);
|
||||
|
|
@ -2174,6 +2178,8 @@ void FurnaceGUI::applyUISettings() {
|
|||
GET_UI_COLOR(GUI_COLOR_PATTERN_ACTIVE,ImVec4(1.0f,1.0f,1.0f,1.0f));
|
||||
GET_UI_COLOR(GUI_COLOR_PATTERN_INACTIVE,ImVec4(0.5f,0.5f,0.5f,1.0f));
|
||||
GET_UI_COLOR(GUI_COLOR_PATTERN_INS,ImVec4(0.4f,0.7f,1.0f,1.0f));
|
||||
GET_UI_COLOR(GUI_COLOR_PATTERN_INS_WARN,ImVec4(1.0f,1.0f,0.1f,1.0f));
|
||||
GET_UI_COLOR(GUI_COLOR_PATTERN_INS_ERROR,ImVec4(1.0f,0.1f,0.1f,1.0f));
|
||||
GET_UI_COLOR(GUI_COLOR_PATTERN_VOLUME_MIN,ImVec4(0.0f,0.5f,0.0f,1.0f));
|
||||
GET_UI_COLOR(GUI_COLOR_PATTERN_VOLUME_HALF,ImVec4(0.0f,0.75f,0.0f,1.0f));
|
||||
GET_UI_COLOR(GUI_COLOR_PATTERN_VOLUME_MAX,ImVec4(0.0f,1.0f,0.0f,1.0f));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue