… | |
… | |
1770 | } |
1770 | } |
1771 | |
1771 | |
1772 | sub setup_build_button { |
1772 | sub setup_build_button { |
1773 | my ($enabled) = @_; |
1773 | my ($enabled) = @_; |
1774 | if ($enabled) { |
1774 | if ($enabled) { |
|
|
1775 | $BUILD_BUTTON->hide if $BUILD_BUTTON; |
1775 | $BUILD_BUTTON ||= new CFPlus::UI::Button |
1776 | $BUILD_BUTTON ||= new CFPlus::UI::Button |
1776 | text => "Build", |
1777 | text => "Build", |
1777 | tooltip => "Opens the ingame builder", |
1778 | tooltip => "Opens the ingame builder", |
1778 | on_activate => sub { |
1779 | on_activate => sub { |
1779 | if ($CONN) { |
1780 | if ($CONN) { |