Giter Club home page Giter Club logo

alh's Introduction

alh

Atlantis Little Helper

alh's People

Contributors

erwin47 avatar sharcashmo avatar ennorehling avatar

Stargazers

JT Traub avatar

Watchers

 avatar

alh's Issues

Shortcuts and superclass

Currently code have next global shortcuts:

entries[0].Set(wxACCEL_CTRL,  (int)'S',     menu_SaveOrders);
entries[1].Set(wxACCEL_CTRL,  (int)'N',     accel_NextUnit );
entries[2].Set(wxACCEL_CTRL,  (int)'P',     accel_PrevUnit );
entries[3].Set(wxACCEL_CTRL,  (int)'U',     accel_UnitList );
entries[4].Set(wxACCEL_CTRL,  (int)'O',     accel_Orders   );

Registered in CahFrame

Each of those events are registered 3 times:
EVT_MENU (accel_NextUnit , CMapFrame::OnNextUnit)
EVT_MENU (accel_NextUnit , CEditsFrame::OnNextUnit)
EVT_MENU (accel_NextUnit , CUnitFrame::OnNextUnit)

In event tables of 3 classes: CMapFrame CEditsFrame CUnitFrame

I commented out CEditsFrame and CUnitFrame -- nothing changed, it still works.
As only I comment out CMapFrame -- Ctrl + 'N' stopped working (even if others are presented).

All of those classes are derived from CahFrame in which events are registered. But just one of them works. And works from every place (I selected all existing windows of AH, combination was still working)

  1. It needs to figure out why other don't work. And then clean them.

  2. class CAhApp have ALL the data, and ALL the functions. Even accel_NextUnit action is implemented there, because it has pointer to CUnitPane. It's definitely superclass-monolith, so it's good to redesign, and during investigation why events behave as they do, extract them from him.

settlement names redrawn every time a unit is selected

with the unit list focused if I simply press up/down/up/down/up/down to change the selected unit repeatedly, the names for cities and towns on the map will get darker each time as they are redrawn on top of the existing anti-aliased text.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.