mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-04 15:50:42 -07:00
overlay: UI scaling option (#495)
## Link to GitHub Issue, if one exists #477 ## Description of change Add a new option for scaling the overlay. Gitadora Arena will receive 250% by default. Various overlay windows have been updated to scale properly, not perfect but they are at least usable.
This commit is contained in:
@@ -68,7 +68,7 @@ namespace overlay::windows {
|
||||
}
|
||||
|
||||
void GitadoraIOPanel::build_io_panel() {
|
||||
ImGui::Dummy(ImVec2(12, 0));
|
||||
ImGui::Dummy(overlay::apply_scaling_to_vector(12, 0));
|
||||
|
||||
ImGui::SameLine();
|
||||
this->draw_buttons(0);
|
||||
@@ -80,7 +80,7 @@ namespace overlay::windows {
|
||||
// draw p2 only if guitar freaks
|
||||
if (this->two_players) {
|
||||
ImGui::SameLine();
|
||||
ImGui::Dummy(ImVec2(12, 0));
|
||||
ImGui::Dummy(overlay::apply_scaling_to_vector(12, 0));
|
||||
ImGui::SameLine();
|
||||
this->draw_buttons(1);
|
||||
if (this->has_guitar_knobs) {
|
||||
@@ -146,7 +146,7 @@ namespace overlay::windows {
|
||||
games::gitadora::Analogs::GuitarP1Knob :
|
||||
games::gitadora::Analogs::GuitarP2Knob;
|
||||
|
||||
const ImVec2 slider_size(32, get_suggested_height());
|
||||
const ImVec2 slider_size(overlay::apply_scaling(32), get_suggested_height());
|
||||
|
||||
// get analog
|
||||
const auto analogs = games::get_analogs(eamuse_get_game());
|
||||
|
||||
Reference in New Issue
Block a user