Mercurial > wow > askmrrobot
comparison ui/AmrUiFrame.lua @ 69:69db1c3025ac v27
fixed some bugs with 6.2 item link format changes, added bib overwolf support
author | yellowfive |
---|---|
date | Mon, 06 Jul 2015 17:39:57 -0700 |
parents | cf2b6b9a8337 |
children | 0515882856f1 |
comparison
equal
deleted
inserted
replaced
68:6c523f147709 | 69:69db1c3025ac |
---|---|
160 local bg = frame:CreateTexture(nil, "BORDER") | 160 local bg = frame:CreateTexture(nil, "BORDER") |
161 bg:SetPoint("TOPLEFT", frame, "TOPLEFT", _borderWidth, -_borderWidth) | 161 bg:SetPoint("TOPLEFT", frame, "TOPLEFT", _borderWidth, -_borderWidth) |
162 bg:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -_borderWidth, _borderWidth) | 162 bg:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -_borderWidth, _borderWidth) |
163 | 163 |
164 local btnClose = CreateFrame("Button", nil, frame) | 164 local btnClose = CreateFrame("Button", nil, frame) |
165 btnClose:SetNormalFontObject(Amr.CreateFont("Bold", 16, Amr.Colors.White)) | 165 btnClose:SetNormalTexture("Interface\\AddOns\\" .. Amr.ADDON_NAME .. "\\Media\\IconClose") |
166 btnClose:SetText("x") | 166 btnClose:SetHighlightTexture("Interface\\AddOns\\" .. Amr.ADDON_NAME .. "\\Media\\IconCloseOver") |
167 | |
168 --btnClose:SetNormalFontObject(Amr.CreateFont("Bold", 16, Amr.Colors.White)) | |
169 --btnClose:SetText("x") | |
167 btnClose:SetWidth(22) | 170 btnClose:SetWidth(22) |
168 btnClose:SetHeight(22) | 171 btnClose:SetHeight(22) |
169 btnClose:SetPoint("TOPRIGHT", frame, "TOPRIGHT", -4, -4) | 172 btnClose:SetPoint("TOPRIGHT", frame, "TOPRIGHT", -4, -4) |
170 btnClose:SetScript("OnClick", buttonOnClick) | 173 btnClose:SetScript("OnClick", buttonOnClick) |
171 | 174 |
172 local lbl = btnClose:GetFontString() | 175 --local lbl = btnClose:GetFontString() |
173 lbl:ClearAllPoints() | 176 --lbl:ClearAllPoints() |
174 lbl:SetPoint("TOP", btnClose, "TOP", -1, -2) | 177 --lbl:SetPoint("TOP", btnClose, "TOP", -1, -2) |
175 | 178 |
176 -- style the button similar to AmrUiButton | 179 -- style the button similar to AmrUiButton |
180 --[[ | |
177 Amr.DropShadow(btnClose) | 181 Amr.DropShadow(btnClose) |
178 | 182 |
179 local tex = Amr.CreateTexture(btnClose, Amr.Colors.Red) | 183 local tex = Amr.CreateTexture(btnClose, Amr.Colors.Red) |
180 tex:SetAllPoints(true) | 184 tex:SetAllPoints(true) |
181 btnClose:SetNormalTexture(tex) | 185 btnClose:SetNormalTexture(tex) |
186 btnClose:SetPushedTexture(tex) | 190 btnClose:SetPushedTexture(tex) |
187 | 191 |
188 tex = Amr.CreateTexture(btnClose, Amr.Colors.White, 0.1) | 192 tex = Amr.CreateTexture(btnClose, Amr.Colors.White, 0.1) |
189 tex:SetAllPoints(true) | 193 tex:SetAllPoints(true) |
190 btnClose:SetHighlightTexture(tex) | 194 btnClose:SetHighlightTexture(tex) |
195 ]] | |
191 | 196 |
192 -- title | 197 -- title |
193 local titleFrame = CreateFrame("Frame", nil, frame) | 198 local titleFrame = CreateFrame("Frame", nil, frame) |
194 titleFrame:SetPoint("TOPLEFT", frame, "TOPLEFT", 0, 0) | 199 titleFrame:SetPoint("TOPLEFT", frame, "TOPLEFT", 0, 0) |
195 titleFrame:SetPoint("BOTTOMRIGHT", frame, "TOPRIGHT", 0, -40) | 200 titleFrame:SetPoint("BOTTOMRIGHT", frame, "TOPRIGHT", 0, -40) |