Dragonflight UI Classic

Dragonflight UI Classic

117k Downloads

Feature Request: "Vehicle Bar"

cprin21 opened this issue ยท 3 comments

commented

AKA the "cancel flight" button that cuts a flight path short to the closest flight master in the path.
Currently unable to find it in Dragonflight UI.
Feature request but also could be a possible oversight.

commented

Hey,
you mean customization option, or is the button missing?
Blizzard overrides it a ton, and moves it depending on class, pets etc, but it "should" more or less work ok.
Please comment with Version and character Class; also screenshots appreciated!

commented

Blizzard Code for reference:
image

function MainMenuBarVehicleLeaveButton_Update()
	if ( ( CanExitVehicle() or UnitOnTaxi("player")) and ActionBarController_GetCurrentActionBarState() == LE_ACTIONBAR_STATE_MAIN ) then
		MainMenuBarVehicleLeaveButton:ClearAllPoints();
		if ( IsPossessBarVisible() ) then
			MainMenuBarVehicleLeaveButton:SetPoint("LEFT", PossessButton2, "RIGHT", 30, 0);
		elseif ( GetNumShapeshiftForms() > 0 ) then
			MainMenuBarVehicleLeaveButton:SetPoint("LEFT", StanceBarFrame.StanceButtons[GetNumShapeshiftForms()], "RIGHT", 30, 0);
		elseif ( MultiCastActionBarFrame and HasMultiCastActionBar() ) then
			MainMenuBarVehicleLeaveButton:SetPoint("LEFT", MultiCastActionBarFrame, "RIGHT", 30, 0);
		else
			MainMenuBarVehicleLeaveButton:SetPoint("LEFT", PossessBarFrame, "LEFT", 10, 0);
		end

		MainMenuBarVehicleLeaveButton:Show();
		MainMenuBarVehicleLeaveButton:Enable();
		ShowPetActionBar(true);
	else
		MainMenuBarVehicleLeaveButton:SetHighlightTexture([[Interface\Buttons\ButtonHilight-Square]], "ADD");
		MainMenuBarVehicleLeaveButton:UnlockHighlight();
		MainMenuBarVehicleLeaveButton:Hide();
		ShowPetActionBar(true);
	end

	UIParent_ManageFramePositions();
end
commented

Can confirm, appropriately closed and implemented. Thank you!