diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-07-15 10:55:47 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-07-15 10:55:47 +0200 |
commit | 594a82b45e5d9dcd90faad8fa4f8eb42b2c981b6 (patch) | |
tree | f44fbc21362e79fb8f9c987b542406cb7d61ca71 /Hex.gd | |
parent | 9274d1351f527de8ccee89eaccea1cf5dc141756 (diff) | |
download | godot-hexgrid-594a82b45e5d9dcd90faad8fa4f8eb42b2c981b6.zip godot-hexgrid-594a82b45e5d9dcd90faad8fa4f8eb42b2c981b6.tar.gz |
add zoom buttons, support one button mouse, add font
Diffstat (limited to 'Hex.gd')
-rw-r--r-- | Hex.gd | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -14,8 +14,8 @@ func inspect() -> String: if type == 0: s = 'city' elif type == 1: s = 'wood' elif type == 2: s = 'mountain' - elif type == 3: s = 'impracticable' - return "%s e:%d h:%d c:%d r:%d\n -> [%d;%d]\n -> (%d;%d)" % [s, elevation(), height(), cost(), roads, coords.x, coords.y, position.x, position.y] + elif type == 3: s = 'blocked' + return "[%d;%d]\n -> (%d;%d)\n -> %s\ne:%d h:%d c:%d r:%d" % [coords.x, coords.y, position.x, position.y, s, elevation(), height(), cost(), roads] func has_road(o : int) -> bool: return (o & roads) > 0 |