|
|
@ -66,11 +66,12 @@ module DFHack
|
|
|
|
world.status.reports << rep
|
|
|
|
world.status.reports << rep
|
|
|
|
world.status.announcements << rep
|
|
|
|
world.status.announcements << rep
|
|
|
|
world.status.display_timer = 2000
|
|
|
|
world.status.display_timer = 2000
|
|
|
|
|
|
|
|
yield rep if block_given?
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
# add an announcement to display in a game popup message
|
|
|
|
# add an announcement to display in a game popup message
|
|
|
|
# (eg "the megabeast foobar arrived")
|
|
|
|
# (eg "the megabeast foobar arrived")
|
|
|
|
def popup_announcement(str, color=nil, bright=nil)
|
|
|
|
def popup_announcement(str, color=nil, bright=nil)
|
|
|
|
pop = PopupMessage.cpp_new(:text => str)
|
|
|
|
pop = PopupMessage.cpp_new(:text => str)
|
|
|
|
pop.color = color if color
|
|
|
|
pop.color = color if color
|
|
|
|