Added basic dialogs, added 'blindman' implementation of TACNET networking code, added font

This commit is contained in:
2020-06-07 15:18:31 -05:00
parent 5ea8d13653
commit c694d29050
20 changed files with 870 additions and 5 deletions

View File

@@ -0,0 +1,25 @@
module TAC
class Dialog
class NamePromptDialog < Dialog
def build
background Gosu::Color::GRAY
label @options[:subtitle]
flow width: 1.0 do
label "Name", width: 0.25
edit_line "", width: 0.70
end
flow width: 1.0 do
button "Cancel", width: 0.475 do
close
end
button @options[:submit_label], width: 0.475 do
@options[:callback].call(self)
end
end
end
end
end
end