2 Commits

Author SHA1 Message Date
49133bb49d update gems 2023-12-11 20:13:04 -06:00
8aaed6bc8d Fix importing action presets not correctly preventing duplicate names 2023-12-11 20:12:39 -06:00
3 changed files with 22 additions and 17 deletions

View File

@@ -5,5 +5,5 @@ gem "gosu_notifications"
group :packaging do
gem "ocra"
gem "releasy"
end
gem "releasy", github: "gosu/releasy"
end

View File

@@ -1,23 +1,28 @@
GEM
remote: https://rubygems.org/
GIT
remote: https://github.com/gosu/releasy.git
revision: e8a24c079c4930c6ddbab17fc444027ba41491ca
specs:
cri (2.1.0)
cyberarm_engine (0.23.0)
excon (~> 0.88)
gosu (~> 1.1)
gosu_more_drawables (~> 0.3)
excon (0.104.0)
gosu (1.4.6)
gosu_more_drawables (0.3.1)
gosu_notifications (0.1.0)
ocra (1.3.11)
rake (13.1.0)
releasy (0.2.3)
bundler (>= 1.2.1)
cri (~> 2.1.0)
ocra (~> 1.3.0)
rake (>= 0.9.2.2)
GEM
remote: https://rubygems.org/
specs:
cri (2.1.0)
cyberarm_engine (0.24.0)
excon (~> 0.88)
gosu (~> 1.1)
gosu_more_drawables (~> 0.3)
excon (0.105.0)
gosu (1.4.6)
gosu_more_drawables (0.3.1)
gosu_notifications (0.1.0)
ocra (1.3.11)
rake (13.1.0)
PLATFORMS
x64-mingw-ucrt
x64-mingw32
@@ -27,7 +32,7 @@ DEPENDENCIES
cyberarm_engine
gosu_notifications
ocra
releasy
releasy!
BUNDLED WITH
2.4.3

View File

@@ -170,7 +170,7 @@ module TAC
button get_image("#{TAC::MEDIA_PATH}/icons/import.png"), image_width: THEME_ICON_SIZE, tip: "Import action from preset" do
if @active_group
push_state(Dialog::PickPresetDialog, title: "Pick Action Preset", limit: :actions, callback_method: proc { |preset|
push_state(Dialog::ActionDialog, title: "Name Action", action: preset, accept_label: "Add", list: @active_group.actions, callback_method: proc { |action, name, comment|
push_state(Dialog::ActionDialog, title: "Name Action", action: preset, cloning: true, accept_label: "Add", list: @active_group.actions, callback_method: proc { |action, name, comment|
clone = TAC::Config::Action.from_json( JSON.parse( action.to_json, symbolize_names: true ))
clone.name = name.to_s
clone.comment = comment.to_s