View Single Post
07/06/15, 04:35 PM   #2
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by Glen348 View Post
how can i get the dialog window to activate the mouse cursor after confirming delete?
Lua Code:
  1. local confirmDeleteDialog = {
  2.     title = { text = GetString(SI_B1UI_DELETEBUTTON_TITLE)},
  3.     mainText = { text = GetString(SI_B1UI_DELETEBUTTON_MAINTEXT)},
  4.     buttons = {
  5.             [1]={
  6.                 text = GetString(SI_B1UI_YES_LABEL),
  7.                 callback = function()
  8.                     B1UI.DeletePage()
  9.                 end,
  10.                 },
  11.             [2]={
  12.                 text = GetString(SI_B1UI_NO_LABEL)
  13.                 }
  14.             }
  15. }
I think this is what you mean? Use:
Lua Code:
  1. SetGameCameraUIMode(true)

Lua Code:
  1. local confirmDeleteDialog = {
  2.     title = { text = GetString(SI_B1UI_DELETEBUTTON_TITLE)},
  3.     mainText = { text = GetString(SI_B1UI_DELETEBUTTON_MAINTEXT)},
  4.     buttons = {
  5.             [1]={
  6.                 text = GetString(SI_B1UI_YES_LABEL),
  7.                 callback = function()
  8.                     B1UI.DeletePage()
  9.                     SetGameCameraUIMode(true)
  10.                 end,
  11.                 },
  12.             [2]={
  13.                 text = GetString(SI_B1UI_NO_LABEL)
  14.                 }
  15.             }
  16. }
  Reply With Quote