Skip to content

Commit

Permalink
Config screen for issue #4
Browse files Browse the repository at this point in the history
Added config screen entry for world map display of flight node POIs.
  • Loading branch information
illiath committed Sep 24, 2019
1 parent e64b97e commit 50b2055
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
16 changes: 14 additions & 2 deletions ConfigScreen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function EnhancedFlightMap_RegConfig()
EFM_GUI_Display_Options:SetBackdropBorderColor(1, 1, 1, 1.0);
EFM_GUI_Display_Options:SetBackdropColor(0, 0, 0, 0);
EFM_GUI_Display_Options:SetWidth(380)
EFM_GUI_Display_Options:SetHeight(150)
EFM_GUI_Display_Options:SetHeight(180)
EFM_GUI_Display_Options:ClearAllPoints()
EFM_GUI_Display_Options:SetPoint("TOPLEFT", EFM_GUI_Timer_Options, "BOTTOMLEFT", 0, -5)

Expand Down Expand Up @@ -205,10 +205,22 @@ function EnhancedFlightMap_RegConfig()
EFM_GUI_CS_Button_ContinentOverlay:SetScript("OnMouseUp", EFM_CS_Button_OnMouseDownUP)
EFM_GUI_CS_Button_ContinentOverlayText:SetText(EFM_GUITEXT_ContinentOverlay);

-- EFM_CS_Button_WorldOverlay
local EFM_GUI_CS_Button_WorldOverlay = CreateFrame("CheckButton", "EFM_GUI_CS_Button_WorldOverlay", EFM_GUI_OPTIONS_SC, "UICheckButtonTemplate")
EFM_GUI_CS_Button_WorldOverlay:ClearAllPoints()
EFM_GUI_CS_Button_WorldOverlay:SetPoint("TOPLEFT", EFM_GUI_CS_Button_ContinentOverlay, "BOTTOMLEFT", 0, 0)
if (EFM_MyConf.WorldOverlay == false) then
EFM_GUI_CS_Button_WorldOverlay:SetChecked(false) else
EFM_GUI_CS_Button_WorldOverlay:SetChecked(true) end
EFM_GUI_CS_Button_WorldOverlay:SetScript("OnClick", EFM_CS_Button_WorldOverlay_OnClick)
EFM_GUI_CS_Button_WorldOverlay:SetScript("OnMouseDown", EFM_CS_Button_OnMouseDownUP)
EFM_GUI_CS_Button_WorldOverlay:SetScript("OnMouseUp", EFM_CS_Button_OnMouseDownUP)
EFM_GUI_CS_Button_WorldOverlayText:SetText(EFM_GUITEXT_WorldOverlay);

-- EFM_CS_Button_DruidPaths
local EFM_GUI_CS_Button_DruidPaths = CreateFrame("CheckButton", "EFM_GUI_CS_Button_DruidPaths", EFM_GUI_OPTIONS_SC, "UICheckButtonTemplate")
EFM_GUI_CS_Button_DruidPaths:ClearAllPoints()
EFM_GUI_CS_Button_DruidPaths:SetPoint("TOPLEFT", EFM_GUI_CS_Button_ContinentOverlay, "BOTTOMLEFT", 0, 0)
EFM_GUI_CS_Button_DruidPaths:SetPoint("TOPLEFT", EFM_GUI_CS_Button_WorldOverlay, "BOTTOMLEFT", 0, 0)
if (EFM_MyConf.DruidPaths == false) then
EFM_GUI_CS_Button_DruidPaths:SetChecked(false) else
EFM_GUI_CS_Button_DruidPaths:SetChecked(true) end
Expand Down
1 change: 1 addition & 0 deletions localization.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ EFM_GUITEXT_LoadDruid = "Druid";
EFM_GUITEXT_LoadHorde = FACTION_HORDE; -- Should not need localization as this is the official blizzard locale-string.
EFM_GUITEXT_LoadAll = "Load all pre-load data";
EFM_GUITEXT_ContinentOverlay = "Continent Map Overlay";
EFM_GUITEXT_WorldOverlay = "World Map Overlay";
EFM_GUITEXT_UpdateRecorded = "Update Recorded data with Calculated";

-- Key Binding Strings
Expand Down

0 comments on commit 50b2055

Please sign in to comment.