Mercurial > wow > wowdb-profiler
comparison Comments.lua @ 262:7f5982e01953
Use ShowUIPanel(comment_frame) instead of comment_frame:Show()
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Tue, 19 Mar 2013 12:54:21 -0500 |
parents | 2f493bc054e5 |
children | 03f1fbe64104 |
comparison
equal
deleted
inserted
replaced
261:2f493bc054e5 | 262:7f5982e01953 |
---|---|
282 comment_subject.label = unit_name | 282 comment_subject.label = unit_name |
283 | 283 |
284 comment_frame.subject_name:SetText(unit_name) | 284 comment_frame.subject_name:SetText(unit_name) |
285 comment_frame.subject_data:SetFormattedText("(%s #%d)", type_name, unit_idnum) | 285 comment_frame.subject_data:SetFormattedText("(%s #%d)", type_name, unit_idnum) |
286 comment_frame.scroll_frame.edit_box:SetText("") | 286 comment_frame.scroll_frame.edit_box:SetText("") |
287 comment_frame:Show() | 287 _G.ShowUIPanel(comment_frame) |
288 end | 288 end |
289 | 289 |
290 local DATA_TYPE_MAPPING = { | 290 local DATA_TYPE_MAPPING = { |
291 merchant = "ITEM", | 291 merchant = "ITEM", |
292 } | 292 } |
330 WDP:Print("Unable to determine comment subject from cursor.") | 330 WDP:Print("Unable to determine comment subject from cursor.") |
331 return | 331 return |
332 end | 332 end |
333 CURSOR_DATA_FUNCS[data_type](DATA_TYPE_MAPPING[data_type] or data_type:upper(), data, data_subtype, subdata) | 333 CURSOR_DATA_FUNCS[data_type](DATA_TYPE_MAPPING[data_type] or data_type:upper(), data, data_subtype, subdata) |
334 comment_frame.scroll_frame.edit_box:SetText("") | 334 comment_frame.scroll_frame.edit_box:SetText("") |
335 comment_frame:Show() | 335 _G.ShowUIPanel(comment_frame) |
336 end | 336 end |
337 | 337 |
338 local function CreateQuestComment() | 338 local function CreateQuestComment() |
339 local index = _G.GetQuestLogSelection() | 339 local index = _G.GetQuestLogSelection() |
340 | 340 |
353 comment_subject.label = title | 353 comment_subject.label = title |
354 | 354 |
355 comment_frame.subject_name:SetText(title) | 355 comment_frame.subject_name:SetText(title) |
356 comment_frame.subject_data:SetFormattedText("(%s #%d)", "QUEST", idnum) | 356 comment_frame.subject_data:SetFormattedText("(%s #%d)", "QUEST", idnum) |
357 comment_frame.scroll_frame.edit_box:SetText("") | 357 comment_frame.scroll_frame.edit_box:SetText("") |
358 comment_frame:Show() | 358 _G.ShowUIPanel(comment_frame) |
359 end | 359 end |
360 | 360 |
361 -- METHODS ------------------------------------------------------------ | 361 -- METHODS ------------------------------------------------------------ |
362 | 362 |
363 function private.ProcessCommentCommand(arg) | 363 function private.ProcessCommentCommand(arg) |