Thread Tools Display Modes
02/12/23, 02:07 PM   #1
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 244
Question Looking for a way to display 1 line of text onscreen.

Anyone think of a relatively easy way to display 1 line or a few words on screen? Ive been looking at tools this stuff but cant seem to get it to go onscreen.

CHAT_SYSTEM:AddSystemMessage("what i want to say")

Last edited by sinnereso : 02/12/23 at 02:24 PM.
  Reply With Quote
02/12/23, 02:41 PM   #2
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
Lua Code:
  1. local function ShowAnnoucement(text)
  2.     local message = CENTER_SCREEN_ANNOUNCE:CreateMessageParams(CSA_CATEGORY_SMALL_TEXT, SOUNDS.QUEST_OBJECTIVE_INCREMENT)
  3.     message:SetSound(SOUNDS.QUEST_OBJECTIVE_INCREMENT)
  4.     message:SetText(text)
  5.     message:MarkSuppressIconFrame()
  6.     message:MarkShowImmediately()
  7.     CENTER_SCREEN_ANNOUNCE:QueueMessage(message)
  8. end
  Reply With Quote
02/12/23, 03:27 PM   #3
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 244
Originally Posted by votan View Post
Lua Code:
  1. local function ShowAnnoucement(text)
  2.     local message = CENTER_SCREEN_ANNOUNCE:CreateMessageParams(CSA_CATEGORY_SMALL_TEXT, SOUNDS.QUEST_OBJECTIVE_INCREMENT)
  3.     message:SetSound(SOUNDS.QUEST_OBJECTIVE_INCREMENT)
  4.     message:SetText(text)
  5.     message:MarkSuppressIconFrame()
  6.     message:MarkShowImmediately()
  7.     CENTER_SCREEN_ANNOUNCE:QueueMessage(message)
  8. end
right on ty.. looks small enough to work with.. ill dig into it ina bit and figure out how to activate it
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Looking for a way to display 1 line of text onscreen.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off