Skip to content

Commit

Permalink
General changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mitjafelicijan committed May 8, 2023
1 parent 0474409 commit 80edc0a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 16 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# VanillaTweaks
# TurtleTweaks

**World of Warcraft Tweaks and Enhancements addon.**

Expand All @@ -19,6 +19,8 @@ vanilla experience and avoid forcing pre-selected preferences on users.

This addon works with the following clients:
- World of Warcraft (client version 1.12 / TurtleWoW)

This addon may work with the following clients:
- World of Warcraft (client version 1.13.2 / Classic)
- World of Warcraft (client version 2.4.3 / The Burning Crusade)
- World of Warcraft (client version 3.3.5a / Wrath of the Lich King)
Expand All @@ -29,7 +31,7 @@ I haven't tested it with any other clients, but it may work with others.

1. Download the latest release from the Releases.
2. Extract the contents of the archive into your `World of Warcraft\Interface\AddOns` folder.
3. Rename the extracted folder to `VanillaTweaks` (remove the version number).
3. Rename the extracted folder to `TurtleTweaks` (remove the version number).
4. Restart the game client.

## Features
Expand Down Expand Up @@ -66,7 +68,7 @@ I haven't tested it with any other clients, but it may work with others.
## Contributing

If you would like to contribute to this project, please feel free to submit a
[pull request](https://github.com/mitjafelicijan/VanillaTweaks/pulls).
[pull request](https://github.com/mitjafelicijan/TurtleTweaks/pulls).
I will review it as soon as I can.

## License
Expand Down
2 changes: 1 addition & 1 deletion VanillaTweaks.toc → TurtleTweaks.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 11200
## Title: VanillaTweaks
## Title: TurtleTweaks
## Author: Mitja Felicijan ([email protected])
## Notes: A bunch of tweaks for Vanilla WoW.
## Version: 0.3
Expand Down
2 changes: 1 addition & 1 deletion camera-distance.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CameraDistanceUI.form = function(container, verticalOffset)
CameraDistanceUI["slider"] = CreateFrame("Slider", "MySliderGlobalName", container, "OptionsSliderTemplate")
CameraDistanceUI["slider"]:SetWidth(200)
CameraDistanceUI["slider"]:SetHeight(20)
CameraDistanceUI["slider"]:SetPoint("TOPLEFT", 20, verticalOffset)
CameraDistanceUI["slider"]:SetPoint("TOPLEFT", 25, verticalOffset)
CameraDistanceUI["slider"]:SetMinMaxValues(1, 3)
CameraDistanceUI["slider"]:SetValue(currentCameraDistance)
CameraDistanceUI["slider"]:SetValueStep(0.2)
Expand Down
31 changes: 20 additions & 11 deletions settings.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
local maxWidth = 500
local maxHeight = 400 -- 280
local maxHeight = 360
local alreadyLoaded = false

local settings = CreateFrame("Frame", "VanillaTweaksGUI", UIParent)
local settings = CreateFrame("Frame", "TurtleTweaksGUI", UIParent)

settings:RegisterEvent("ADDON_LOADED")

Expand All @@ -27,7 +27,7 @@ settings:SetScript("OnEvent", function()
})

-- Add a title to the frame.
settings.title = CreateFrame("Frame", "VanillaTweaksGUITitle", settings)
settings.title = CreateFrame("Frame", "TurtleTweaksGUITitle", settings)
settings.title:SetPoint("TOP", settings, "TOP", 0, 12)
settings.title:SetWidth(256)
settings.title:SetHeight(64)
Expand All @@ -39,11 +39,11 @@ settings:SetScript("OnEvent", function()

-- Create a font string for the title.
settings.title.text = settings.title:CreateFontString(nil, "HIGH", "GameFontNormal")
settings.title.text:SetText("Vanilla Tweaks")
settings.title.text:SetText("Turtle Tweaks")
settings.title.text:SetPoint("TOP", 0, -14)

-- Creates a cancel button that is attached to our frame.
settings.cancel = CreateFrame("Button", "VanillaTweaksGUICancel", settings, "GameMenuButtonTemplate")
settings.cancel = CreateFrame("Button", "TurtleTweaksGUICancel", settings, "GameMenuButtonTemplate")
settings.cancel:SetWidth(90)
settings.cancel:SetPoint("BOTTOMRIGHT", settings, "BOTTOMRIGHT", -17, 17)
settings.cancel:SetText(CANCEL)
Expand All @@ -60,7 +60,7 @@ settings:SetScript("OnEvent", function()
end)

-- Creates a okay button that is attached to our frame.
settings.okay = CreateFrame("Button", "VanillaTweaksGUIOkey", settings, "GameMenuButtonTemplate")
settings.okay = CreateFrame("Button", "TurtleTweaksGUIOkey", settings, "GameMenuButtonTemplate")
settings.okay:SetWidth(90)
settings.okay:SetPoint("RIGHT", settings.cancel, "LEFT", 0, 0)
settings.okay:SetText(OKAY)
Expand All @@ -77,7 +77,7 @@ settings:SetScript("OnEvent", function()
end)

-- Creates a defaults button that is attached to our frame.
settings.defaults = CreateFrame("Button", "VanillaTweaksGUIDefaults", settings, "GameMenuButtonTemplate")
settings.defaults = CreateFrame("Button", "TurtleTweaksGUIDefaults", settings, "GameMenuButtonTemplate")
settings.defaults:SetWidth(90)
settings.defaults:SetPoint("BOTTOMLEFT", settings, "BOTTOMLEFT", 17, 17)
settings.defaults:SetText(DEFAULTS)
Expand All @@ -94,10 +94,10 @@ settings:SetScript("OnEvent", function()
end)

-- Add a button to the game menu that opens our addon frame when clicked.
local mainMenuButton = CreateFrame("Button", "VanillaTweaksGUIMenuButton", GameMenuFrame,
local mainMenuButton = CreateFrame("Button", "TurtleTweaksGUIMenuButton", GameMenuFrame,
"GameMenuButtonTemplate")
mainMenuButton:SetPoint("TOP", GameMenuButtonUIOptions, "BOTTOM", 0, -1)
mainMenuButton:SetText("Vanilla Tweaks")
mainMenuButton:SetText("Turtle Tweaks")
mainMenuButton:SetScript("OnClick", function()
HideUIPanel(GameMenuFrame)
settings:Show()
Expand All @@ -109,7 +109,7 @@ settings:SetScript("OnEvent", function()
GameMenuFrame:SetHeight(GameMenuFrame:GetHeight() + 10)

-- Create a container for our settings.
settings.container = CreateFrame("Frame", "VanillaTweaksGUIContainer", settings)
settings.container = CreateFrame("Frame", "TurtleTweaksGUIContainer", settings)
settings.container:SetPoint("CENTER", settings, 0, 20)
settings.container:SetHeight(maxHeight - 30)
settings.container:SetWidth(maxWidth - 20)
Expand All @@ -121,6 +121,15 @@ settings:SetScript("OnEvent", function()
RestedBarUI.form(settings.container, -90)
LootAtMouseUI.form(settings.container, -130)
CommandsUI.form(settings.container, -170)
CameraDistanceUI.form(settings.container, -270)
CameraDistanceUI.form(settings.container, -260)

SLASH_TurtleTweaks1 = "/vt"
SLASH_TurtleTweaks2 = "/TurtleTweaks"
SLASH_TurtleTweaks3 = "/tweaks"
SLASH_TurtleTweaks4 = "/vtweaks"

SlashCmdList["TurtleTweaks"] = function(msg, editbox)
settings:Show()
end
end
end)

0 comments on commit 80edc0a

Please sign in to comment.