mirror of
https://github.com/TimeCrafters/timecrafters_configuration_tool_desktop.git
synced 2025-12-15 21:32:35 +00:00
Added basic dialogs, added 'blindman' implementation of TACNET networking code, added font
This commit is contained in:
25
lib/dialogs/name_prompt_dialog.rb
Normal file
25
lib/dialogs/name_prompt_dialog.rb
Normal 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
|
||||
Reference in New Issue
Block a user