1
Utilities and 3rd Party Applications / Re: DFHack 0.47.05-r8 | 50.07-beta2 (pre-release)
« on: April 21, 2023, 08:27:31 am »Code: ("ann.lua") [Select]--proof of concept of an announcement menu.
local dlg=require("gui.dialogs")
local JUNK={}
local Dang=df.global.world.status.announcements
for ultimate,checked_Ann in pairs(Dang) do
local mono=checked_Ann.text
table.insert(JUNK,{mono,search_key = mono:lower()})
end
dlg.showListPrompt("Announcement list","scroll through the list of Announced alerts",COLOR_WHITE,JUNK,nil,nil,nil,nil,true)
ok so out of boredom I decided to write up a script that grabs all the alerts/reports and shoves them into a list... there was a previous version of this script that grab every report but some folks don't want to sift through combat logs so I made this instead. there was an attempt at adding a filter on it but shrugs.
Amazing job!
Really wish to see full-functional annoncement menu.
