Skip to content

Commit

Permalink
update for 0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Choumiko committed Jun 28, 2016
1 parent 00f4d4f commit 4d62e35
Show file tree
Hide file tree
Showing 5 changed files with 314 additions and 232 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
build
build/*
factorio_mods
factorio_mods
/.buildpath
/.project
12 changes: 11 additions & 1 deletion control.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if not defines then
require "defines"
require "defines"
end

require "util"
Expand Down Expand Up @@ -412,6 +412,16 @@ script.on_event(defines.events.on_gui_click, function(event)
else
gui_open_frame(player)
end
elseif element.name == "spritetest" then

local stack = player.cursor_stack
if not stack.valid_for_read then
element.sprite = false
else
element.sprite = "item/".. stack.name
end


elseif element.name == "auto-trash-apply" or element.name == "auto-trash-logistics-apply" then
gui_save_changes(player)
elseif element.name == "auto-trash-clear-all" or element.name == "auto-trash-logistics-clear-all" then
Expand Down
Loading

0 comments on commit 4d62e35

Please sign in to comment.