Skip to content

Commit

Permalink
TWW Updates #11
Browse files Browse the repository at this point in the history
  • Loading branch information
Kkthnx committed Aug 17, 2024
1 parent 5eb7f6a commit d28359e
Show file tree
Hide file tree
Showing 7 changed files with 96 additions and 99 deletions.
60 changes: 60 additions & 0 deletions KkthnxUI/Config/Elements/FilterLists/MapReveal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2628,4 +2628,64 @@ C.WorldMapPlusData = {
["W1262H1382X214Y0"] = "5393807,5393808,5393809,5393810,5393811,5393812,5393813,5393814,5393815,5393816,5393817,5393818,5393819,5393820,5393821,5393822,5393823,5393824,5393825,5393826,5393827,5393828,5393829,5393830,5393831,5393832,5393833,5393834,5393835,5393836",
["W1537H1288X362Y1272"] = "5394003,5394004,5394005,5394006,5394007,5394008,5394009,5394010,5394011,5394012,5394013,5394014,5394015,5394016,5394017,5394018,5394019,5394020,5394021,5394022,5394023,5394024,5394025,5394026,5394027,5394028,5394029,5394030,5394031,5394032,5394033,5394034,5394035,5394036,5394037,5394038,5394039,5394040,5394041,5394042,5394043,5394044",
},
-- TWW
[1817] = {
["W1427H943X1973Y1617"] = "6014988,6014989,6014990,6014991,6014992,6014993,6014994,6014995,6014996,6014997,6014998,6014999,6015000,6015001,6015002,6015003,6015004,6015005,6015006,6015007,6015008,6015009,6015010,6015011",
["W1473H913X2005Y1138"] = "6015012,6015013,6015014,6015015,6015016,6015017,6015018,6015019,6015020,6015021,6015022,6015023,6015024,6015025,6015026,6015027,6015028,6015029,6015030,6015031,6015032,6015033,6015034,6015035",
["W1497H910X1796Y873"] = "6015036,6015037,6015038,6015039,6015040,6015041,6015042,6015043,6015044,6015045,6015053,6015057,6015058,6015059,6015060,6015061,6015062,6015063,6015064,6015065,6015066,6015067,6015068,6015069",
["W1590H691X2006Y657"] = "6015094,6015095,6015096,6015097,6015098,6015099,6015100,6015101,6015102,6015103,6015104,6015105,6015106,6015107,6015108,6015109,6015110,6015111,6015112,6015113,6015114",
["W1604H1056X1983Y0"] = "6015115,6015116,6015117,6015118,6015119,6015120,6015121,6015122,6015123,6015124,6015125,6015126,6015127,6015128,6015129,6015130,6015131,6015132,6015133,6015134,6015135,6015136,6015137,6015138,6015139,6015140,6015141,6015142,6015143,6015144,6015145,6015146,6015147,6015148,6015149",
["W1649H802X928Y0"] = "6019756,6019767,6019777,6019778,6019779,6019780,6019781,6019782,6019783,6019757,6019758,6019759,6019760,6019761,6019762,6019763,6019764,6019765,6019766,6019768,6019769,6019770,6019771,6019772,6019773,6019774,6019775,6019776",
["W1879H1321X8Y0"] = "6015159,6015160,6015161,6015162,6015163,6015164,6015165,6015166,6015167,6015178,6015181,6015183,6015184,6015185,6015186,6015187,6015188,6015189,6015190,6015191,6031737,6031738,6031739,6031740,6031741,6031742,6031743,6031744,6031745,6031746,6031747,6031748,6031749,6031750,6031751,6031752,6031753,6031754,6031755,6031756,6031757,6031758,6031759,6031760,6031761,6031762,6031763,6031764",
["W2111H954X87Y746"] = "6015070,6015071,6015072,6015073,6015074,6015075,6015076,6015077,6015078,6015079,6015080,6015081,6015082,6015083,6015084,6015085,6015086,6015087,6015088,6015089,6015090,6015091,6015092,6015093,6031810,6031811,6031812,6031813,6031814,6031815,6031816,6031817,6031818,6031819,6031820,6031821",
["W2406H1321X95Y1239"] = "6014950,6014951,6014952,6014953,6014954,6014955,6014956,6014957,6014958,6014959,6014960,6014961,6014962,6014963,6014964,6014965,6014966,6014967,6014968,6014969,6014970,6014974,6014975,6014976,6014977,6014978,6014979,6014980,6014981,6014982,6014983,6014984,6014985,6014986,6014987,6031767,6031768,6031769,6031770,6031772,6031773,6031775,6031776,6031778,6031779,6031780,6031781,6031782,6031783,6031784,6031785,6031786,6031787,6031788,6031789,6031790,6031791,6031792,6031793,6031794",
["W610H612X1664Y508"] = "6015150,6015151,6015152,6015153,6015154,6015155,6015156,6015157,6015158",
},
[1818] = {
["W1166H619X1719Y1002"] = "6014091,6014092,6014093,6014094,6014095,6014096,6014097,6014098,6014099,6014100,6014101,6014102,6014103,6014104,6014105",
["W1232H1341X1407Y0"] = "6014061,6014062,6014063,6014064,6014065,6014066,6014067,6014068,6014069,6014070,6014071,6014072,6014073,6014074,6014075,6014076,6014077,6014078,6014079,6014080,6014081,6014082,6014083,6014084,6014085,6014086,6014087,6014088,6014089,6014090",
["W1407H1198X2433Y399"] = "6013983,6013984,6013985,6013986,6013987,6013988,6013989,6013990,6013991,6013992,6013993,6013994,6013995,6013996,6013997,6013998,6013999,6014000,6014001,6014002,6014003,6014004,6014005,6014006,6014007,6014008,6014009,6014010,6014011,6014012",
["W1441H1024X666Y976"] = "6014154,6014155,6014156,6014157,6014158,6014159,6014160,6014161,6014162,6014163,6014164,6014165,6014166,6014167,6014168,6014169,6014170,6014171,6014172,6014173,6014174,6014175,6014176,6014177",
["W1490H1082X429Y161"] = "6014178,6014179,6014180,6014181,6014182,6014183,6014184,6014185,6014186,6014187,6014188,6014189,6014190,6014191,6014192,6014193,6014194,6014195,6014196,6014197,6014198,6014199,6014200,6014201,6014202,6014203,6014204,6014205,6014206,6014207",
["W1723H2560X0Y0"] = "6014208,6014209,6014210,6014211,6014212,6014213,6014214,6014215,6014216,6014217,6014218,6014219,6014220,6014221,6014222,6014223,6014224,6014225,6014226,6014227,6014228,6014229,6014230,6014231,6014232,6014233,6014234,6014235,6014236,6014237,6014238,6014239,6014240,6014241,6014242,6014243,6014244,6014245,6014246,6014247,6014248,6014249,6014250,6014251,6014252,6014253,6014254,6014255,6014256,6014257,6014258,6014259,6014260,6014261,6014262,6014263,6014264,6014265,6014266,6014267,6014268,6014269,6014270,6014271,6014272,6014273,6014274,6014275,6014276,6014277",
["W1975H1338X1865Y0"] = "6014013,6014014,6014015,6014016,6014017,6014018,6014019,6014020,6014021,6014022,6014023,6014024,6014025,6014026,6014027,6014028,6014029,6014030,6014031,6014032,6014033,6014034,6014035,6014036,6014037,6014038,6014039,6014040,6014041,6014042,6014043,6014044,6014045,6014046,6014047,6014048,6014049,6014050,6014051,6014052,6014053,6014054,6014055,6014056,6014057,6014058,6014059,6014060",
["W1992H1307X1781Y1253"] = "6014106,6014107,6014108,6014109,6014110,6014111,6014112,6014113,6014114,6014115,6014116,6014117,6014118,6014119,6014120,6014121,6014122,6014123,6014124,6014125,6014126,6014127,6014128,6014129,6014130,6014131,6014132,6014133,6014134,6014135,6014136,6014137,6014138,6014139,6014140,6014141,6014142,6014143,6014144,6014145,6014146,6014147,6014148,6014149,6014150,6014151,6014152,6014153",
["W2459H974X487Y1586"] = "6014278,6014280,6014283,6014284,6014285,6014286,6014287,6014288,6014289,6014290,6014291,6014292,6014293,6014294,6014295,6014296,6014297,6014298,6014299,6014300,6014301,6014302,6014303,6014304,6014305,6014306,6014307,6014308,6014309,6014310,6014311,6014312,6014313,6014314,6014315,6014316,6014317,6014318,6014319,6014320",
},
[1833] = {
["W1010H899X993Y1615"] = "6015361,6015362,6015363,6015364,6015365,6015366,6015367,6015368,6015369,6015370,6015371,6015372,6015373,6015374,6015375,6015376",
["W1054H668X1274Y1298"] = "6015292,6015293,6015294,6015295,6015296,6015297,6015298,6015299,6015300,6015301,6015302,6015303,6015304,6015305,6015306",
["W1095H784X2359Y223"] = "6015220,6015221,6015222,6015223,6015224,6015225,6015226,6015227,6015228,6015229,6015230,6015231,6015232,6015233,6015234,6015235,6015236,6015237,6015238,6015239",
["W1122H941X2470Y716"] = "6015252,6015253,6015254,6015255,6015256,6015257,6015258,6015259,6015260,6015261,6015262,6015263,6015264,6015265,6015266,6015267,6015268,6015269,6015270,6015271",
["W1127H786X2007Y1094"] = "6015272,6015273,6015274,6015275,6015276,6015277,6015278,6015279,6015280,6015281,6015282,6015283,6015284,6015285,6015286,6015287,6015288,6015289,6015290,6015291",
["W1457H1003X919Y557"] = "6015307,6015308,6015309,6015310,6015311,6015312,6015313,6015314,6015315,6015316,6015317,6015318,6015319,6015320,6015321,6015322,6015323,6015324,6015325,6015326,6015327,6015328,6015329,6015330",
["W1480H1061X1551Y1499"] = "6015331,6015332,6015333,6015334,6015335,6015336,6015337,6015338,6015339,6015340,6015341,6015342,6015343,6015344,6015345,6015346,6015347,6015348,6015349,6015350,6015351,6015352,6015353,6015354,6015355,6015356,6015357,6015358,6015359,6015360",
["W1734H969X1145Y0"] = "6015192,6015193,6015194,6015195,6015196,6015197,6015198,6015199,6015200,6015201,6015202,6015203,6015204,6015205,6015206,6015207,6015208,6015209,6015210,6015211,6015212,6015213,6015214,6015215,6015216,6015217,6015218,6015219",
["W2020H2103X331Y53"] = "6015377,6015378,6015379,6015380,6015381,6015382,6015383,6015384,6015385,6015399,6015400,6015401,6015402,6015403,6015404,6015405,6015406,6015407,6015408,6015409,6015410,6015411,6015412,6015413,6015414,6015415,6015416,6015417,6015418,6015419,6015420,6015421,6015422,6015423,6015424,6015425,6015426,6015427,6015428,6015429,6015430,6015431,6015432,6015433,6015434,6015435,6015436,6015437,6015438,6015439,6015440,6015441,6015442,6015443,6015444,6015445,6015446,6015447,6015448,6015449,6015450,6015451,6015452,6015453,6015454,6015455,6015456,6015457,6015458,6015459,6015460,6015461",
["W725H792X2005Y530"] = "6015240,6015241,6015242,6015243,6015244,6015245,6015246,6015247,6015248,6015249,6015250,6015251",
},
[1852] = {
["W1467H1181X383Y1379"] = "6013525,6013526,6013527,6013528,6013529,6013530,6013531,6013532,6013533,6013534,6013535,6013536,6013537,6013538,6013539,6013540,6013541,6013542,6013543,6013544,6013545,6013546,6013547,6013548,6013549,6013550,6013551,6013552,6013553,6013554",
["W1613H1379X2227Y401"] = "6013685,6013686,6013687,6013688,6013689,6013690,6013691,6013692,6013693,6013694,6013695,6013696,6013697,6013698,6013699,6013700,6013701,6013702,6013703,6013704,6013705,6013706,6013707,6013708,6013709,6013710,6013711,6013712,6013713,6013714,6013715,6013716,6013717,6013718,6013719,6013720,6013721,6013722,6013723,6013724,6013725,6013726",
["W1628H1647X756Y0"] = "6013420,6013421,6013422,6013423,6013424,6013425,6013426,6013427,6013428,6013429,6013430,6013431,6013432,6013433,6013434,6013435,6013436,6013437,6013438,6013439,6013440,6013441,6013442,6013443,6013444,6013445,6013446,6013447,6013448,6013449,6013450,6013451,6013452,6013453,6013454,6013455,6013456,6013457,6013458,6013459,6013460,6013461,6013462,6013463,6013464,6013465,6013466,6013467,6013468",
["W1704H1897X0Y0"] = "6013469,6013470,6013471,6013472,6013473,6013474,6013475,6013476,6013477,6013478,6013479,6013480,6013481,6013482,6013483,6013484,6013485,6013486,6013487,6013488,6013489,6013490,6013491,6013492,6013493,6013494,6013495,6013496,6013497,6013498,6013499,6013500,6013501,6013502,6013503,6013504,6013505,6013506,6013507,6013508,6013509,6013510,6013511,6013512,6013513,6013514,6013515,6013516,6013517,6013518,6013519,6013520,6013521,6013522,6013523,6013524",
["W1711H1379X2129Y1181"] = "6013643,6013644,6013645,6013646,6013647,6013648,6013649,6013650,6013651,6013652,6013653,6013654,6013655,6013656,6013657,6013658,6013659,6013660,6013661,6013662,6013663,6013664,6013665,6013666,6013667,6013668,6013669,6013670,6013671,6013672,6013673,6013674,6013675,6013676,6013677,6013678,6013679,6013680,6013681,6013682,6013683,6013684",
["W1819H948X422Y1612"] = "6013555,6013556,6013557,6013558,6013559,6013560,6013561,6013562,6013563,6013564,6013565,6013566,6013567,6013568,6013569,6013570,6013571,6013572,6013573,6013574,6013575,6013576,6013577,6013578,6013579,6013580,6013581,6013582,6013583,6013584,6013585,6013586",
["W1844H1252X1424Y1308"] = "6013603,6013604,6013605,6013606,6013607,6013608,6013609,6013610,6013611,6013612,6013613,6013614,6013615,6013616,6013617,6013618,6013619,6013620,6013621,6013622,6013623,6013624,6013625,6013626,6013627,6013628,6013629,6013630,6013631,6013632,6013633,6013634,6013635,6013636,6013637,6013638,6013639,6013640,6013641,6013642",
["W1995H1151X1845Y0"] = "6013727,6013728,6013729,6013730,6013731,6013732,6013733,6013734,6013735,6013736,6013737,6013738,6013739,6013740,6013741,6013742,6013743,6013744,6013745,6013746,6013747,6013748,6013749,6013750,6013751,6013752,6013753,6013754,6013755,6013756,6013757,6013758,6013759,6013760,6013761,6013762,6013763,6013764,6013765,6013766",
["W876H780X1653Y1780"] = "6013587,6013588,6013589,6013590,6013591,6013592,6013593,6013594,6013595,6013596,6013597,6013598,6013599,6013600,6013601,6013602",
["W991H934X1649Y686"] = "6013404,6013405,6013406,6013407,6013408,6013409,6013410,6013411,6013412,6013413,6013414,6013415,6013416,6013417,6013418,6013419",
},
[1853] = {
["W1467H1181X383Y1379"] = "6014642,6014643,6014644,6014645,6014646,6014647,6014648,6014649,6014650,6014651,6014652,6014653,6014654,6014655,6014656,6014657,6014658,6014659,6014660,6014661,6014662,6014663,6014664,6014665,6014666,6014667,6014668,6014669,6014670,6014671",
["W1613H1379X2227Y401"] = "6014810,6014811,6014812,6014813,6014814,6014815,6014816,6014817,6014818,6014819,6014820,6014821,6014822,6014823,6014824,6014825,6014826,6014827,6014828,6014829,6014830,6014831,6014832,6014833,6014834,6014835,6014836,6014837,6014838,6014839,6014840,6014841,6014842,6014843,6014844,6014845,6014846,6014847,6014848,6014849,6014850,6014851",
["W1628H1647X756Y0"] = "6014537,6014538,6014539,6014540,6014541,6014542,6014543,6014544,6014545,6014546,6014547,6014548,6014549,6014550,6014551,6014552,6014553,6014554,6014555,6014556,6014557,6014558,6014559,6014560,6014561,6014562,6014563,6014564,6014565,6014566,6014567,6014568,6014569,6014570,6014571,6014572,6014573,6014574,6014575,6014576,6014577,6014578,6014579,6014580,6014581,6014582,6014583,6014584,6014585",
["W1704H1897X0Y0"] = "6014586,6014587,6014588,6014589,6014590,6014591,6014592,6014593,6014594,6014595,6014596,6014597,6014598,6014599,6014600,6014601,6014602,6014603,6014604,6014605,6014606,6014607,6014608,6014609,6014610,6014611,6014612,6014613,6014614,6014615,6014616,6014617,6014618,6014619,6014620,6014621,6014622,6014623,6014624,6014625,6014626,6014627,6014628,6014629,6014630,6014631,6014632,6014633,6014634,6014635,6014636,6014637,6014638,6014639,6014640,6014641",
["W1711H1379X2129Y1181"] = "6014764,6014765,6014766,6014767,6014768,6014769,6014770,6014771,6014772,6014773,6014774,6014775,6014776,6014777,6014778,6014779,6014784,6014785,6014786,6014787,6014788,6014789,6014790,6014791,6014792,6014793,6014794,6014795,6014796,6014797,6014798,6014799,6014800,6014801,6014802,6014803,6014804,6014805,6014806,6014807,6014808,6014809",
["W1819H948X422Y1612"] = "6014672,6014673,6014674,6014675,6014676,6014677,6014678,6014679,6014680,6014681,6014682,6014683,6014684,6014685,6014686,6014687,6014688,6014689,6014690,6014691,6014692,6014693,6014694,6014695,6014696,6014697,6014698,6014699,6014700,6014701,6014702,6014703",
["W1844H1252X1424Y1308"] = "6014720,6014721,6014722,6014723,6014724,6014725,6014726,6014727,6014728,6014729,6014730,6014731,6014732,6014733,6014734,6014735,6014736,6014737,6014738,6014739,6014740,6014741,6014742,6014743,6014744,6014745,6014746,6014747,6014748,6014753,6014754,6014755,6014756,6014757,6014758,6014759,6014760,6014761,6014762,6014763",
["W1995H1151X1845Y0"] = "6014852,6014853,6014854,6014855,6014856,6014857,6014858,6014859,6014860,6014861,6014869,6014873,6014875,6014876,6014877,6014878,6014879,6014880,6014881,6014882,6014883,6014884,6014885,6014886,6014887,6014888,6014889,6014890,6014891,6014892,6014893,6014894,6014895,6014896,6014897,6014898,6014899,6014900,6014901,6014902",
["W876H780X1653Y1780"] = "6014704,6014705,6014706,6014707,6014708,6014709,6014710,6014711,6014712,6014713,6014714,6014715,6014716,6014717,6014718,6014719",
["W991H934X1649Y686"] = "6014521,6014522,6014523,6014524,6014525,6014526,6014527,6014528,6014529,6014530,6014531,6014532,6014533,6014534,6014535,6014536",
},
}
75 changes: 1 addition & 74 deletions KkthnxUI/Developer/Core.lua
Original file line number Diff line number Diff line change
@@ -1,78 +1,5 @@
local K, C, L = KkthnxUI[1], KkthnxUI[2], KkthnxUI[3]
local Module = K:NewModule("Developer")

-- Buttons to enhance popup menu
function Module:MenuButton_AddFriend()
C_FriendList.AddFriend(self.MenuButtonName)
end

function Module:MenuButton_CopyName()
local editBox = ChatEdit_ChooseBoxForSend()
local hasText = (editBox:GetText() ~= "")
ChatEdit_ActivateChat(editBox)
editBox:Insert(self.MenuButtonName)
if not hasText then
editBox:HighlightText()
end
end

function Module:MenuButton_GuildInvite()
GuildInvite(self.MenuButtonName)
end

function Module:MenuButton_Whisper()
ChatFrame_SendTell(self.MenuButtonName)
end

function Module:OnEnable()
local menuList = {
{ text = ADD_FRIEND, func = "MenuButton_AddFriend", color = { 0, 0.6, 1 } },
{ text = gsub(CHAT_GUILD_INVITE_SEND, HEADER_COLON, ""), func = "MenuButton_GuildInvite", color = { 0, 0.8, 0 } },
{ text = COPY_NAME, func = "MenuButton_CopyName", color = { 1, 0, 0 } },
{ text = WHISPER, func = "MenuButton_Whisper", color = { 1, 0.5, 1 } },
}

local frame = CreateFrame("Frame", "KKUI_MenuButtonFrame", DropDownList1)
frame:SetSize(10, 10)
frame:SetPoint("TOPLEFT")
frame:Hide()

for i, menuItem in ipairs(menuList) do
local button = CreateFrame("Button", nil, frame)
button:SetSize(25, 10)
button:SetPoint("TOPLEFT", frame, i * 28, -4)
button.Icon = button:CreateTexture(nil, "ARTWORK")
button.Icon:SetAllPoints()
button.Icon:SetColorTexture(unpack(menuItem.color))
button:SetScript("OnClick", function()
Module[menuItem.func](Module)
end)
K.AddTooltip(button, "ANCHOR_TOP", menuItem.text)
end

hooksecurefunc("ToggleDropDownMenu", function(level, _, dropdownMenu)
if level and level > 1 then
return
end

local name = dropdownMenu.name
local unit = dropdownMenu.unit
local isPlayer = unit and UnitIsPlayer(unit)
local isFriendMenu = dropdownMenu == FriendsDropDown -- menus on FriendsFrame
if not name or (not isPlayer and not dropdownMenu.chatType and not isFriendMenu) then
frame:Hide()
return
end

local gameAccountInfo = dropdownMenu.accountInfo and dropdownMenu.accountInfo.gameAccountInfo
if gameAccountInfo and gameAccountInfo.characterName then
Module.MenuButtonName = gameAccountInfo.characterName
else
Module.MenuButtonName = name
end
frame:Show()
end)
end
-- local Module = K:NewModule("Developer")

K.Devs = {
["Kkthnx-Valdrakken"] = true,
Expand Down
Loading

0 comments on commit d28359e

Please sign in to comment.