Comments (1)
Related code:
function MDT:DrawNote(x, y, text, objectIndex)
if not notePoolCollection then
notePoolCollection = CreateFramePoolCollection()
notePoolCollection:CreatePool("Button", MDT.main_frame.mapPanelFrame, "QuestPinTemplate")
end
local scale = MDT:GetScale()
--setup
local note = notePoolCollection:Acquire("QuestPinTemplate")
-- FramePoolCollection_GetPoolKey is concatenating the sixth argument of CreatePool ("specialization").
-- This naive approach is just using toString on any value, even nil, which results in "nil" as a string.
-- Because of this our pool key is "QuestPinTemplatenil" instead of "QuestPinTemplate".
note.noteIdx = notePoolCollection.pools.QuestPinTemplatenil.numActiveObjects
note.objectIndex = objectIndex
note:ClearAllPoints()
note:SetPoint("CENTER", MDT.main_frame.mapPanelTile1, "TOPLEFT", x, y)
note:SetSize(12 * scale, 12 * scale)
note.NormalTexture:SetSize(15 * scale, 15 * scale)
note.PushedTexture:SetSize(15 * scale, 15 * scale)
note.HighlightTexture:SetSize(15 * scale, 15 * scale)
note.Display.Icon:SetSize(16 * scale, 16 * scale)
note.NormalTexture:SetTexture("Interface/WorldMap/UI-QuestPoi-NumberIcons")
note.PushedTexture:SetTexture("Interface/WorldMap/UI-QuestPoi-NumberIcons")
note.HighlightTexture:SetTexture("Interface/WorldMap/UI-QuestPoi-NumberIcons")
note.Display.Icon:SetTexture("Interface/WorldMap/UI-QuestPoi-NumberIcons")
note.NormalTexture:SetTexCoord(0.500, 0.625, 0.375, 0.5)
note.PushedTexture:SetTexCoord(0.375, 0.500, 0.375, 0.5)
note.HighlightTexture:SetTexCoord(0.625, 0.750, 0.375, 0.5)
-- temporary fix for there not being enough textures in the atlas
-- should copy and fix the atlas instead
local idx = note.noteIdx % 25
if idx == 0 then idx = 1 end
note.Display.Icon:SetTexCoord(POIButton_CalculateNumericTexCoords(idx, 0))
note.Display.Icon:Show()
note.tooltipText = text or ""
from mythicdungeontools.
Related Issues (20)
- DOTI GF: Infinite Infiltrator has stealth detection
- Feature Request: Option for forces count instead of % in MDTSidePanel / MDTPullButton
- Error HOT 2
- Linked mob error in Darkheart Thicket HOT 1
- Waycrest Manor mob not in the game HOT 2
- Waycrest Manor Marked Sisters no longer in the Game
- Shared links are not openable.
- Feature Request: Write real text directly to map
- Localisation-zhCN HOT 6
- Wrong Mob in Rise HOT 3
- Error on load: `Couldn't open MythicDungeonTools/Bindings.xml` HOT 1
- ColorPicker not working HOT 1
- Font and font size on the sidebar
- Spinning wheel HOT 1
- Health of Iridikron in DOTI: Fall is lower than actual
- Error Opening Addon in 10.2.7
- i dont know HOT 1
- Algeth'ar Academy map needs top margin
- TWW spellicon HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mythicdungeontools.