Skip to content

Commit e2711e2

Browse files
author
LocalIdentity
committed
Add Maxroll to buildsite list
1 parent 4e9e1a9 commit e2711e2

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/Classes/ImportTab.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,10 @@ You can get this from your web browser's cookies while logged into the Path of E
218218
local exportWebsitesList = getExportSitesFromImportList()
219219

220220
self.controls.exportFrom = new("DropDownControl", { "LEFT", self.controls.generateCodeCopy,"RIGHT"}, {8, 0, 120, 20}, exportWebsitesList, function(_, selectedWebsite)
221-
main.lastExportWebsite = selectedWebsite.id
221+
main.lastExportedWebsite = selectedWebsite.id
222222
self.exportWebsiteSelected = selectedWebsite.id
223223
end)
224-
self.controls.exportFrom:SelByValue(self.exportWebsiteSelected or main.lastExportWebsite or "Pastebin", "id")
224+
self.controls.exportFrom:SelByValue(self.exportWebsiteSelected or main.lastExportedWebsite or "Maxroll", "id")
225225
self.controls.generateCodeByLink = new("ButtonControl", { "LEFT", self.controls.exportFrom, "RIGHT"}, {8, 0, 100, 20}, "Share", function()
226226
local exportWebsite = exportWebsitesList[self.controls.exportFrom.selIndex]
227227
local subScriptId = buildSites.UploadBuild(self.controls.generateCodeOut.buf, exportWebsite)

src/Modules/BuildSiteTools.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ buildSites = { }
88

99
-- Import/Export websites list used in dropdowns
1010
buildSites.websiteList = {
11+
{
12+
label = "Maxroll", id = "Maxroll", matchURL = "maxroll%.gg/poe/pob/.*", regexURL = "maxroll%.gg/poe/pob/(.+)%s*$", downloadURL = "maxroll%.gg/poe/api/pob/%1",
13+
codeOut = "https://maxroll.gg/poe/pob/", postUrl = "https://maxroll.gg/poe/api/pob", postFields = "pobCode=", linkURL = "maxroll%.gg/poe/pob/%1"
14+
},
1115
{
1216
label = "pobb.in", id = "POBBin", matchURL = "pobb%.in/.+", regexURL = "pobb%.in/(.+)%s*$", downloadURL = "pobb.in/pob/%1",
1317
codeOut = "https://pobb.in/", postUrl = "https://pobb.in/pob/", postFields = "", linkURL = "pobb.in/%1"

src/Modules/Main.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,8 +616,8 @@ function main:LoadSettings(ignoreBuild)
616616
if node.attrib.defaultItemAffixQuality then
617617
self.defaultItemAffixQuality = m_min(tonumber(node.attrib.defaultItemAffixQuality) or 0.5, 1)
618618
end
619-
if node.attrib.lastExportWebsite then
620-
self.lastExportWebsite = node.attrib.lastExportWebsite
619+
if node.attrib.lastExportedWebsite then
620+
self.lastExportedWebsite = node.attrib.lastExportedWebsite
621621
end
622622
if node.attrib.showWarnings then
623623
self.showWarnings = node.attrib.showWarnings == "true"
@@ -756,7 +756,7 @@ function main:SaveSettings()
756756
defaultGemQuality = tostring(self.defaultGemQuality or 0),
757757
defaultCharLevel = tostring(self.defaultCharLevel or 1),
758758
defaultItemAffixQuality = tostring(self.defaultItemAffixQuality or 0.5),
759-
lastExportWebsite = self.lastExportWebsite,
759+
lastExportedWebsite = self.lastExportedWebsite,
760760
showWarnings = tostring(self.showWarnings),
761761
slotOnlyTooltips = tostring(self.slotOnlyTooltips),
762762
notSupportedModTooltips = tostring(self.notSupportedModTooltips),

0 commit comments

Comments
 (0)