mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
jesus christ this code was horrible
This commit is contained in:
1 parent
f9ab70cd8a
commit
1a707434d8
1 file changed
+1
-13
@@ -81,20 +81,9 @@ internal static class CreateOptionsPickerPatch
|
||||
public static bool Prefix_FixedUpdate(GameOptionsMapPicker __instance)
|
||||
{
|
||||
if (__instance == null) return true;
|
||||
|
||||
if (__instance.MapName == null) return false;
|
||||
|
||||
if (DleksButton != null)
|
||||
{
|
||||
if (__instance.selectedMapId == 3)
|
||||
{
|
||||
SetDleks = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
SetDleks = false;
|
||||
}
|
||||
}
|
||||
if (DleksButton != null) SetDleks = __instance.selectedMapId == 3;
|
||||
|
||||
if (__instance.selectedMapId == 3)
|
||||
{
|
||||
@@ -169,7 +158,6 @@ internal static class CreateOptionsPickerPatch
|
||||
|
||||
SwapIconOrButtonPositions(airhipIconInMenu, dleksIconInMenuCopy);
|
||||
SwapIconOrButtonPositions(fungleIconInMenu, airhipIconInMenu);
|
||||
|
||||
SwapIconOrButtonPositions(airshipMenuButton, dleksMenuButtonCopy);
|
||||
|
||||
// set flipped dleks map Icon/button
|
||||
|
||||
Reference in new issue
Block a user