Equipable.lua and forums code formatting

RawrRawr REGISTERED, Tester Posts: 511 Seed
edited November 2015 in Suggestions & Feedback
One suggestion for the script.
One question for the script.
function Equipable:DefaultPrimaryAction( args )
	if not args.targetObj then
		--Why is self:CanToolAffectMaterial not called here?
		self:AffectMaterial(args)
	elseif self:CanToolAffectObject(args.targetObj) then
		self:AffectObject(args)
	end
	--Could we please remove the word Tool from both function names.
end


One suggestion for the forums formatting.
Change the default for code sections to
pre class="CodeBlock"
	--because tabs/spaces might be a thing we'd want to preserve.
or simply because it looks better.

Furthermore, to even know about second formatting, you'd need to have selected multiple lines before pressing the code formatting button. I on the other hand, wanted to make the code section first, then copy paste in my code...
Was slightly baffled for a moment :(
Programmer, designer, artist.
Sign In or Register to comment.