Modify

Ticket #94 (closed enhancement: fixed)

Opened 9 years ago

Last modified 9 years ago

Add a console command to display a grid overlay on the map

Reported by: kaydeth_parpg Owned by: parpg
Priority: minor Milestone: Techdemo 1
Component: scripts Version: trunk
Keywords: Cc:
Blocked By: Blocking:
Department:

Description

A tile grid overlay is need for various things including fine tuning animations.

Attachments

patch_console_split.py (9.5 KB) - added by elie@… 9 years ago.
refactoring the console

Change History

Changed 9 years ago by elie@…

refactoring the console

comment:1 Changed 9 years ago by elie@…

In attachment a patch that will:

  • remove the console logic from run.py and put it under scripts/console.py
  • this contains a array/dictionary which allows easy addition of console commands (to keep an overview)
  • this adds a built-in 'help' console command
  • this add the grid console command (which was the actual subject of this ticket)
  • add basic unittest for the console command (for the part that can be used without the rest of the engine)
  • and instead of the hidden 'default' which would parse python code I added a python command (in my setup entering 'help' would suggest me to type help() and that would bring me in the interactive python help on the console (which is not what i'd want ;-) ).

what isn't functional is the load command, see ticket #73, but that should be rather transparant for the console.

comment:2 Changed 9 years ago by Kaydeth_parpg

  • Status changed from new to closed
  • Resolution set to fixed

(In [281]) Ticket: #94: Patch by amo-ej1. grid console command added to display a grid overlay on the map. Console command logic moved to it's own class (console.py). Also unit tests added for console class. closes #94

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.