Update to spice2x-25-04-25 (pre-apply)
> broken commit
This commit is contained in:
@@ -17,8 +17,7 @@ namespace overlay::windows {
|
||||
this->has_guitar_knobs = true;
|
||||
|
||||
// drummania can only have one player, no guitar knobs
|
||||
if (avs::game::is_model({ "J32", "K32", "L32" }) ||
|
||||
(avs::game::is_model("M32") && avs::game::SPEC[0] == 'B')) {
|
||||
if (games::gitadora::is_drum()) {
|
||||
this->two_players = false;
|
||||
this->has_guitar_knobs = false;
|
||||
}
|
||||
@@ -39,6 +38,7 @@ namespace overlay::windows {
|
||||
|
||||
void GitadoraIOPanel::find_gfdm_buttons() {
|
||||
const auto buttons = games::get_buttons(eamuse_get_game());
|
||||
const auto lights = games::get_lights(eamuse_get_game());
|
||||
|
||||
// device emulation treats drum controls to be the same as guitar 1p
|
||||
|
||||
@@ -49,12 +49,22 @@ namespace overlay::windows {
|
||||
this->left[0] = &(*buttons)[games::gitadora::Buttons::GuitarP1Left];
|
||||
this->right[0] = &(*buttons)[games::gitadora::Buttons::GuitarP1Right];
|
||||
|
||||
this->start_light[0] = &(*lights)[games::gitadora::Lights::P1MenuStart];
|
||||
this->help_light[0] = &(*lights)[games::gitadora::Lights::P1MenuHelp];
|
||||
this->updown_light[0] = &(*lights)[games::gitadora::Lights::P1MenuUpDown];
|
||||
this->leftright_light[0] = &(*lights)[games::gitadora::Lights::P1MenuLeftRight];
|
||||
|
||||
this->start[1] = &(*buttons)[games::gitadora::Buttons::GuitarP2Start];
|
||||
this->help[1] = &(*buttons)[games::gitadora::Buttons::GuitarP2Help];
|
||||
this->up[1] = &(*buttons)[games::gitadora::Buttons::GuitarP2Up];
|
||||
this->down[1] = &(*buttons)[games::gitadora::Buttons::GuitarP2Down];
|
||||
this->left[1] = &(*buttons)[games::gitadora::Buttons::GuitarP2Left];
|
||||
this->right[1] = &(*buttons)[games::gitadora::Buttons::GuitarP2Right];
|
||||
|
||||
this->start_light[1] = &(*lights)[games::gitadora::Lights::P2MenuStart];
|
||||
this->help_light[1] = &(*lights)[games::gitadora::Lights::P2MenuHelp];
|
||||
this->updown_light[1] = &(*lights)[games::gitadora::Lights::P2MenuUpDown];
|
||||
this->leftright_light[1] = &(*lights)[games::gitadora::Lights::P2MenuLeftRight];
|
||||
}
|
||||
|
||||
void GitadoraIOPanel::build_io_panel() {
|
||||
@@ -96,7 +106,7 @@ namespace overlay::windows {
|
||||
ImGui::BeginGroup();
|
||||
{
|
||||
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + ImGui::GetFrameHeightWithSpacing());
|
||||
this->build_button("<", leftright_size, this->left[p]);
|
||||
this->build_button("<", leftright_size, this->left[p], nullptr, this->leftright_light[p]);
|
||||
}
|
||||
ImGui::EndGroup();
|
||||
|
||||
@@ -104,7 +114,7 @@ namespace overlay::windows {
|
||||
|
||||
ImGui::BeginGroup();
|
||||
{
|
||||
this->build_button("^", updown_size, this->up[p]);
|
||||
this->build_button("^", updown_size, this->up[p], nullptr, this->updown_light[p]);
|
||||
const char *label;
|
||||
if (this->two_players) {
|
||||
if (p == 0) {
|
||||
@@ -115,8 +125,8 @@ namespace overlay::windows {
|
||||
} else {
|
||||
label = "Start";
|
||||
}
|
||||
this->build_button(label, start_button_size, this->start[p]);
|
||||
this->build_button("v", updown_size, this->down[p]);
|
||||
this->build_button(label, start_button_size, this->start[p], nullptr, this->start_light[p]);
|
||||
this->build_button("v", updown_size, this->down[p], nullptr, this->updown_light[p]);
|
||||
}
|
||||
ImGui::EndGroup();
|
||||
|
||||
@@ -124,8 +134,8 @@ namespace overlay::windows {
|
||||
|
||||
ImGui::BeginGroup();
|
||||
{
|
||||
this->build_button("?", tiny_size, this->help[p]);
|
||||
this->build_button(">", leftright_size, this->right[p]);
|
||||
this->build_button("?", tiny_size, this->help[p], nullptr, this->help_light[p]);
|
||||
this->build_button(">", leftright_size, this->right[p], nullptr, this->leftright_light[p]);
|
||||
}
|
||||
ImGui::EndGroup();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user