Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ Next Up

### Recently Done

1.1.2
- Added localization support
- Added german localization

1.1.1

- Directory, when ordered, now snaps user back to the top of the scrollbar
Expand Down
3 changes: 2 additions & 1 deletion TurtleRP.toc
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
## Interface: 11200
## Title: |cffabd473Turtle RP Official
## Author: luskanek / OldManAlpha / tempranova / Drixi / Vee / Zara
## Author: luskanek / OldManAlpha / tempranova / Drixi / Vee / Zara / CarnVanBeck
## Version: 1.2
## Notes: RP Addon custom made for Turtle WoW
## SavedVariables: TurtleRPCharacters, TurtleRPQueryablePlayers
## SavedVariablesPerCharacter: TurtleRPCharacterInfo, TurtleRPPlayerProfiles, TurtleRPSettings

ChatThrottleLib\ChatThrottleLib.lua
scripts\TurtleRPTranslation.lua
scripts\TurtleRPConstants.lua
scripts\TurtleRPComms.lua
scripts\TurtleRPEmotes.lua
Expand Down
38 changes: 22 additions & 16 deletions components/TurtleRP_Admin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@
<Layers>
<Layer level="OVERLAY">
<!-- Flavour Text -->
<FontString name="$parent_FlavourText" inherits="OVERLAY" font="Fonts\FRIZQT__.ttf" text="Greetings, adventurer! Tell us about yourself...">
<FontString name="$parent_FlavourText" justifyH="LEFT" justifyV="TOP" inherits="OVERLAY" font="Fonts\FRIZQT__.ttf" text="Greetings, adventurer! Tell us about yourself...">
<Size>
<AbsDimension x="310" y="30"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
Expand Down Expand Up @@ -395,7 +398,7 @@
</CheckButton>
<Button name="$parent_SaveButton" inherits="UIPanelButtonGrayTemplate" text="Save">
<Size>
<AbsDimension x="50" y="25" />
<AbsDimension x="75" y="25" />
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
Expand Down Expand Up @@ -747,7 +750,10 @@
<Layers>
<Layer level="OVERLAY">
<!-- Flavour Text -->
<FontString name="$parent_FlavourText" inherits="OVERLAY" font="Fonts\FRIZQT__.ttf" text="Describe your RP style for others to see.">
<FontString name="$parent_FlavourText" justifyH="LEFT" justifyV="TOP" inherits="OVERLAY" font="Fonts\FRIZQT__.ttf" text="Describe your RP style for others to see.">
<Size>
<AbsDimension x="310" y="30"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
Expand Down Expand Up @@ -787,7 +793,7 @@
</Anchor>
</Anchors>
<FontHeight>
<AbsValue val="10" />
<AbsValue val="12" />
</FontHeight>
<Color r="0" g="0" b="0" />
</FontString>
Expand Down Expand Up @@ -852,7 +858,7 @@
<Frames>
<Button name="$parent_SaveButton" inherits="UIPanelButtonGrayTemplate" text="Save">
<Size>
<AbsDimension x="50" y="25" />
<AbsDimension x="75" y="25" />
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
Expand Down Expand Up @@ -903,7 +909,7 @@
</Frame>
<Frame name="$parent_WalkupsDropdown" inherits="UIDropDownMenuTemplate" enableMouse="true">
<Size>
<AbsDimension x="70" y="20" />
<AbsDimension x="290" y="20" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent_WalkupsText" relativePoint="BOTTOMLEFT">
Expand Down Expand Up @@ -1041,7 +1047,7 @@
<Layers>
<Layer level="OVERLAY">
<!-- Flavour Text -->
<FontString name="$parent_FlavourText" justifyH="LEFT" justifyV="top" inherits="OVERLAY" font="Fonts\FRIZQT__.ttf" text="What are the first things that other adventurers notice about you?">
<FontString name="$parent_FlavourText" justifyH="LEFT" justifyV="TOP" inherits="OVERLAY" font="Fonts\FRIZQT__.ttf" text="What are the first things that other adventurers notice about you?">
<Size>
<AbsDimension x="310" y="30"/>
</Size>
Expand Down Expand Up @@ -1121,7 +1127,7 @@
<Frames>
<Button name="$parent_SaveButton" inherits="UIPanelButtonGrayTemplate" text="Save">
<Size>
<AbsDimension x="50" y="25" />
<AbsDimension x="75" y="25" />
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
Expand Down Expand Up @@ -1588,7 +1594,7 @@
<Frames>
<Button name="$parent_SaveButton" inherits="UIPanelButtonGrayTemplate" text="Save">
<Size>
<AbsDimension x="50" y="25" />
<AbsDimension x="75" y="25" />
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
Expand Down Expand Up @@ -1722,7 +1728,7 @@
<Frames>
<Button name="$parent_SaveButton" inherits="UIPanelButtonGrayTemplate" text="Save">
<Size>
<AbsDimension x="50" y="25" />
<AbsDimension x="75" y="25" />
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
Expand Down Expand Up @@ -1979,7 +1985,7 @@
</CheckButton>
<Button name="$parent_TrayResetButton" inherits="UIPanelButtonTemplate2" text="Reset Tray Position">
<Size>
<AbsDimension x="132" y="24" />
<AbsDimension x="115" y="24" />
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent_TrayButton" relativePoint="RIGHT">
Expand Down Expand Up @@ -2150,7 +2156,7 @@
</Frame>
<Button name="$parent_SaveButton" inherits="UIPanelButtonTemplate2" text="Load Selected Profile">
<Size>
<AbsDimension x="148" y="25" />
<AbsDimension x="170" y="25" />
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent_ProfileDropdown" relativePoint="RIGHT">
Expand Down Expand Up @@ -2283,12 +2289,12 @@
<!-- Issues Reload Button -->
<Button name="$parent_ReloadButton" alpha="0.8" inherits="UIPanelButtonGrayTemplate" text="Rejoin / Reload">
<Size>
<AbsDimension x="100" y="25" />
<AbsDimension x="105" y="25" />
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="$parent_IssuesTitle" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-120"/>
<AbsDimension x="-5" y="-120"/>
</Offset>
</Anchor>
</Anchors>
Expand All @@ -2305,7 +2311,7 @@
<!-- Clear Directory -->
<Button name="$parent_ClearDirectoryButton" alpha="0.8" inherits="UIPanelButtonGrayTemplate" text="Clear Directory">
<Size>
<AbsDimension x="100" y="25" />
<AbsDimension x="105" y="25" />
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent_ReloadButton" relativePoint="RIGHT">
Expand All @@ -2328,7 +2334,7 @@
<!-- Clear Everything -->
<Button name="$parent_ClearAllDataButton" alpha="0.8" inherits="UIPanelButtonGrayTemplate" text="Clear All Data">
<Size>
<AbsDimension x="100" y="25" />
<AbsDimension x="105" y="25" />
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent_ClearDirectoryButton" relativePoint="RIGHT">
Expand Down
10 changes: 5 additions & 5 deletions components/TurtleRP_ChatBox.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@
<Scripts>
<OnLoad>
local items = {
["emote"] = "Emote",
["say"] = "Say",
["yell"] = "Yell"
["emote"] = localize("chat.type.options.emote"),
["say"] = localize("chat.type.options.say"),
["yell"] = localize("chat.type.options.yell")
}
UIDropDownMenu_Initialize(TurtleRP_ChatBox_ChatTypeDropdown, function()
for i, v in items do
Expand Down Expand Up @@ -198,7 +198,7 @@
local messageText = TurtleRP_ChatBox_TextScrollBox_TextInput:GetText()
TurtleRP.SendLongFormMessage(chatType, messageText)
else
_ERRORMESSAGE('Please select a chat type for your message.')
_ERRORMESSAGE(localize("chat.missingType"))
end
</OnClick>
</Scripts>
Expand All @@ -209,7 +209,7 @@
<Scripts>
<OnShow>
TurtleRP.currentChatType = nil
TurtleRP_ChatBox_ChatTypeDropdown_Text:SetText("Chat Type")
TurtleRP_ChatBox_ChatTypeDropdown_Text:SetText(localize("chat.type"))
</OnShow>
<OnMouseDown>
this:StartMoving()
Expand Down
14 changes: 8 additions & 6 deletions components/TurtleRP_Directory.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
if getglobal(this:GetName() .. "Variable"):GetText() == nil then
if getglobal(this:GetName() .. "_StatusOnline"):IsVisible() then
GameTooltip:SetText("Click to view more information.");
GameTooltip:SetText(localize("directory.tooltipMore"));
else
GameTooltip:SetText("Player is offline, more details cannot be loaded.");
GameTooltip:SetText(localize("directory.tooltipOffline"));
end
else
GameTooltip:SetText("Click to view more information.");
GameTooltip:SetText(localize("directory.tooltipMore"));
end
</OnEnter>
<OnLeave>
Expand Down Expand Up @@ -288,7 +288,10 @@
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString name="$parent_InfoText" inherits="GameFontHighlightSmall" text="Click a name to view more details.">
<FontString name="$parent_InfoText" justifyH="LEFT" justifyV="TOP" inherits="GameFontHighlightSmall" text="Click a name to view more details.">
<Size>
<AbsDimension x="250" y="23"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativePoint="RIGHT">
<Offset>
Expand Down Expand Up @@ -720,14 +723,13 @@
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
GameTooltip:SetText("Remove duplicates and players with invalid names.");
GameTooltip:SetText(localize("directory.cleanTooltip"));
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Button>

<Button name="$parent_DeleteButton" inherits="UIPanelButtonTemplate" text="Delete Player">
<Size>
<AbsDimension x="110" y="22"/>
Expand Down
32 changes: 17 additions & 15 deletions components/TurtleRP_IconTray.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<BorderColor r="255" g="255" b="255" a="0" />
</Backdrop>
<Frames>
<Button name="$parent_RPModeButton" inherits="UIPanelButtonGrayTemplate" movable="true" text="RP">
<Button name="$parent_RPModeButton" inherits="UIPanelButtonGrayTemplate" movable="true" text="test">
<Size>
<AbsDimension x="25" y="25"/>
</Size>
Expand All @@ -41,7 +41,7 @@
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT")
GameTooltip:SetText("Enable RP Mode")
GameTooltip:SetText(localize("tray.enableRP"))
GameTooltip:Show()
</OnEnter>
<OnLeave>
Expand Down Expand Up @@ -83,7 +83,7 @@
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT")
GameTooltip:SetText("Disable RP Mode")
GameTooltip:SetText(localize("tray.disableRP"))
GameTooltip:Show()
</OnEnter>
<OnLeave>
Expand Down Expand Up @@ -122,7 +122,7 @@
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT")
GameTooltip:SetText("You are OOC (Out Of Character)")
GameTooltip:SetText(localize("tray.enableIC"))
GameTooltip:Show()
</OnEnter>
<OnLeave>
Expand Down Expand Up @@ -161,7 +161,7 @@
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT")
GameTooltip:SetText("You are IC (In Character)")
GameTooltip:SetText(localize("tray.disableIC"))
GameTooltip:Show()
</OnEnter>
<OnLeave>
Expand Down Expand Up @@ -203,11 +203,13 @@
<OnClick>
if TurtleRP.movingIconTray == nil then
TurtleRP_ChatBox:Show()
TurtleRP_ChatBox_ChatBoxTitle:SetText(localize("chat.title"))
TurtleRP_ChatBox_SendRPText:SetText(localize("chat.send"))
end
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT")
GameTooltip:SetText("Open Extended Chat Window")
GameTooltip:SetText(localize("tray.openChat"))
GameTooltip:Show()
</OnEnter>
<OnLeave>
Expand Down Expand Up @@ -253,7 +255,7 @@
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT")
GameTooltip:SetText("Open Main Window")
GameTooltip:SetText(localize("tray.openMain"))
GameTooltip:Show()
</OnEnter>
<OnLeave>
Expand Down Expand Up @@ -299,7 +301,7 @@
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT")
GameTooltip:SetText("Open Directory Window")
GameTooltip:SetText(localize("tray.openDirectory"))
GameTooltip:Show()
</OnEnter>
<OnLeave>
Expand Down Expand Up @@ -350,9 +352,9 @@
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT")
if ShowingHelm() then
GameTooltip:SetText("Hide Helm")
GameTooltip:SetText(localize("tray.hideHelmet"))
else
GameTooltip:SetText("Show Helm")
GameTooltip:SetText(localize("tray.showHelmet"))
end
GameTooltip:Show()
</OnEnter>
Expand Down Expand Up @@ -404,9 +406,9 @@
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT")
if ShowingCloak() then
GameTooltip:SetText("Hide Cloak")
GameTooltip:SetText(localize("tray.hideCloak"))
else
GameTooltip:SetText("Show Cloak")
GameTooltip:SetText(localize("tray.showCloak"))
end
GameTooltip:Show()
</OnEnter>
Expand Down Expand Up @@ -459,10 +461,10 @@
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT")
if ShowingCloak() then
GameTooltip:SetText("Toggle NPC and Player Names")
if GetCVar("UnitNameNPC") == "1" or GetCVar("UnitNamePlayer") == "1" then
GameTooltip:SetText(localize("tray.hideNames"))
else
GameTooltip:SetText("Show Cloak")
GameTooltip:SetText(localize("tray.showNames"))
end
GameTooltip:Show()
</OnEnter>
Expand Down
9 changes: 6 additions & 3 deletions components/TurtleRP_Profile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,10 @@
<Layers>
<Layer level="OVERLAY">
<!-- Race and class -->
<FontString name="$parent_FlavourText" justifyH="left" inherits="QuestFont" text="Store private notes about this character.">
<FontString name="$parent_FlavourText" justifyH="LEFT" justifyV="TOP" inherits="QuestFont" text="Store private notes about this character.">
<Size>
<AbsDimension x="280" y="30"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
Expand All @@ -752,7 +755,7 @@
<Frames>
<Button name="$parent_SaveButton" inherits="UIPanelButtonGrayTemplate" text="Save">
<Size>
<AbsDimension x="50" y="25" />
<AbsDimension x="75" y="25" />
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
Expand All @@ -774,7 +777,7 @@
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="10" y="-30" />
<AbsDimension x="10" y="-45" />
</Offset>
</Anchor>
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
Expand Down
Loading