@@ -20,7 +20,6 @@ local utils = require 'utils'
2020local gui = require ' gui'
2121local guidm = require ' gui.dwarfmode'
2222local dlg = require ' gui.dialogs'
23- local build = require
2423
2524CopyUI = defclass (CopyUI , guidm .MenuOverlay )
2625
@@ -320,7 +319,7 @@ function CopyUI:onInput(keys)
320319 elseif keys .CUSTOM_H then
321320 self .buffer = self :transformBuffer (function (x ,y ,xlen ,ylen ,tile ) return xlen - x , y end )
322321 elseif keys .CUSTOM_V then
323- self .buffer = self :transformBuffer (function (x ,y ,xlen ,ylen ,tile ) return x , ylen - y end )
322+ self .buffer = self :transformBuffer (function (x ,y ,xlen ,ylen ,tile ) return x , ylen - y end )
324323 elseif keys .CUSTOM_R then
325324 self .buffer = self :transformBuffer (function (x ,y ,xlen ,ylen ,tile ) return y , xlen - x end )
326325 self .offsetDirection = (self .offsetDirection + 1 )% 4
@@ -357,7 +356,7 @@ function CopyUI:onInput(keys)
357356 self .state = ' paste'
358357 return
359358 elseif keys .CUSTOM_P then
360- self .cull = not self .cull
359+ self .cull = not self .cull
361360 end
362361 elseif self .state == ' convert' then
363362 if keys .LEAVESCREEN then
@@ -380,7 +379,7 @@ function CopyUI:onInput(keys)
380379 self .state = ' paste'
381380 elseif keys .CUSTOM_R then
382381 self :transformBuffer (function (x ,y ,xlen ,ylen ,tile ) if tile .dig > 0 then tile .dig = 4 end return x ,y end )
383- self .state = ' paste'
382+ self .state = ' paste'
384383 end
385384
386385 end
394393---- ----------------------WARNING: JANKY SHIT BELOW--------------------------
395394for i = 1 , 4 do
396395 if not string.match (dfhack .gui .getCurFocus (), ' ^dwarfmode/Default' ) then
397- gui .simulateInput (dfhack .gui .getCurViewscreen (true )," LEAVESCREEN" )
396+ gui .simulateInput (dfhack .gui .getCurViewscreen (true )," LEAVESCREEN" )
398397 else
399398 break
400399 end
405404local list = CopyUI {state = ' mark' , blink = false ,cull = true }
406405
407406if not list .df_layout .menu then
408- gui .simulateInput (dfhack .gui .getCurViewscreen (true )," CHANGETAB" ) -- sorry
407+ gui .simulateInput (dfhack .gui .getCurViewscreen (true )," CHANGETAB" ) -- sorry
409408 for i = 1 , 2 do
410409 if not list .df_layout .menu then
411410 gui .simulateInput (dfhack .gui .getCurViewscreen (true )," CHANGETAB" )
0 commit comments