mirror of
https://github.com/TimeCrafters/timecrafters_configuration_tool_desktop.git
synced 2025-12-15 21:32:35 +00:00
25 lines
626 B
Ruby
25 lines
626 B
Ruby
module TAC
|
|
class Dialog
|
|
class TACNETDialog < Dialog
|
|
def build
|
|
@dialog_root.style.border_color = [ Palette::TACNET_PRIMARY, Palette::TACNET_SECONDARY ]
|
|
@titlebar.style.background = [ Palette::TACNET_PRIMARY, Palette::TACNET_SECONDARY ]
|
|
|
|
background Gosu::Color::GRAY
|
|
label @options[:message]
|
|
|
|
@sound = Gosu::Sample.new(TAC::ROOT_PATH + "/media/error_alarm.ogg").play(1, 1, true)
|
|
|
|
button "Close", width: 1.0, margin_top: THEME_DIALOG_BUTTON_PADDING do
|
|
close
|
|
end
|
|
end
|
|
|
|
def close
|
|
super
|
|
|
|
@sound.stop
|
|
end
|
|
end
|
|
end
|
|
end |