MCPcopy Create free account
hub / github.com/SolarLune/masterplan / UsingLineTool

Method UsingLineTool

contents.go:3125–3127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3123}
3124
3125func (mc *MapContents) UsingLineTool() bool {
3126 return mc.Tool == MapEditToolLine || (mc.Tool == MapEditToolPencil && globals.Keybindings.Pressed(KBMapQuickLineTool))
3127}
3128
3129func (mc *MapContents) ColorIndex() int {
3130 return MapDrawingColor | MapPattern

Callers 2

UpdateMethod · 0.95
DrawMethod · 0.95

Calls 1

PressedMethod · 0.45

Tested by

no test coverage detected